IntegralVerify_info.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. /**
  2. * 初始化人才认定申报详情对话框
  3. */
  4. var locked = false;
  5. var IntegralVerifyInfoDlg = {
  6. integralVerifyInfoData: {},
  7. };
  8. /**
  9. * 初始化表格的列
  10. */
  11. IntegralVerifyInfoDlg.initFileTypeColumn = function () {
  12. return [
  13. {field: 'selectItem', checkbox: false, visible: false},
  14. {title: '名称', field: 'name', visible: true, align: 'left', valign: 'middle', width: "82%", 'class': 'uitd_showTip',
  15. formatter: function (value, row, index) {
  16. let str = '<div class="word-wrap">';
  17. if (row.must == 1) {
  18. str = str + '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
  19. }
  20. if (row.must == 2) {
  21. str = str + '<i class="fa fa-paste"></i>' + value;
  22. }
  23. str = str + '<br /><span id="desc_' + row.rel + '">' + row.description + '</span></div>'
  24. return str;
  25. }
  26. },
  27. {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
  28. formatter: function (value, row, index) {
  29. if (value == null || value == '' || value == 'null') {
  30. return '';
  31. }
  32. return "<button type='button' onclick=\"IntegralVerifyInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
  33. "<i class=\"fa fa-download\"></i>下载" +
  34. "</button>";
  35. }
  36. },
  37. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
  38. formatter: function (value, row, index) {
  39. return "";
  40. }
  41. }
  42. ]
  43. };
  44. IntegralVerifyInfoDlg.changeAndLoadFile = function () {
  45. var table = $(".fileTable");
  46. var items = $("select[name='item_id[]']");
  47. var item_id = [];
  48. for (var i = 0; i < items.length; i++) {
  49. let _id = items.eq(i).val();
  50. if (_id) {
  51. item_id.push(_id);
  52. }
  53. }
  54. if (item_id.length == 0) {
  55. table.bootstrapTable("destroy");
  56. return;
  57. }
  58. var ajax = new $ax("/common/api/findCommonFileType", function (data) {
  59. if (data == null || data.length == 0) {
  60. return;
  61. }
  62. table.bootstrapTable("destroy");
  63. table.bootstrapTable({
  64. columns: IntegralVerifyInfoDlg.initFileTypeColumn(),
  65. data: data.rows,
  66. showHeader: true,
  67. rowStyle: function (row, index) {
  68. return {classes: ""};
  69. },
  70. onPostBody: function (data) {
  71. for (var k in data) {
  72. var files = data[k].files;
  73. var html = '<ul class="imgs"><li style="width: 70%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">操作</li>';
  74. for (var key in files) {
  75. var sn = files[key].url.lastIndexOf(".");
  76. var suffix = files[key].ext; //files[key].url.substring(sn + 1, files[key].url.length);
  77. var imgStr = "";
  78. if (suffix == "pdf" || suffix == "PDF") {
  79. imgStr = "<button type='button' onclick=\"Feng.showPdf('" + files[key].url + "','" + files[key].id + "','" + files[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
  80. } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS' || suffix == 'docx' || suffix == 'doc' || suffix == 'DOCX' || suffix == 'DOC') {
  81. imgStr = "<button type='button' onclick=\"Feng.showExcel('" + files[key].url + "','" + files[key].id + "','" + files[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
  82. } else {
  83. imgStr = '<img class=\"imgUrl\" onclick=\"Feng.showImg(this)\" src=\"' + files[key].url + '\" style=\"width:25px;height:25px;\">';
  84. }
  85. html += '<li data-id="' + files[key].id + '">\n\
  86. <div>' + (data[k].step != 1 ? '<input type="hidden" name="uploadFiles[]" value="' + files[key].id + '">' : "") + '</div>\n' +
  87. '<div style="width: 70%;">' + files[key].orignName + '</div>\n' +
  88. '<div style="width: 10%;">' + imgStr + '</div>\n' +
  89. '<div style="width: 20%;"></div>\n\
  90. </li>';
  91. }
  92. html = html + '</ul>';
  93. table.find("tr[data-index='" + k + "']").after('<tr class="detail-view"><td colspan="5">' + html + '</td></tr>');
  94. }
  95. $("td.uitd_showTip").bind("mouseover", function () {
  96. var htm = $(this).html();
  97. $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
  98. });
  99. },
  100. });
  101. }, function (data) {
  102. Feng.error("查询失败!" + data.responseJSON.message + "!");
  103. });
  104. var queryData = {};
  105. queryData["mainId"] = $("#id").val();
  106. queryData['project'] = CONFIG.project_integral_apply;
  107. queryData['type'] = $("#type").val();
  108. queryData["itemId"] = item_id;
  109. queryData['checkState'] = $("#checkState").val();
  110. ajax.set(queryData);
  111. ajax.start();
  112. }
  113. /**
  114. * 关闭此对话框
  115. */
  116. IntegralVerifyInfoDlg.close = function () {
  117. parent.layer.close(window.parent.TalentInfo.layerIndex);
  118. }
  119. IntegralVerifyInfoDlg.callback = function (data) {
  120. Feng.info(data.msg);
  121. }
  122. /**
  123. * 下载附件
  124. * @param value
  125. */
  126. IntegralVerifyInfoDlg.downloadFile = function (id, type) {
  127. window.location.href = "/common/api/downloadFile?id=" + id + "&type=" + type;
  128. }
  129. IntegralVerifyInfoDlg.expandRows = function () {
  130. $(".fileTable").bootstrapTable('expandAllRows')
  131. }
  132. /**
  133. * 显示审核模态框
  134. */
  135. IntegralVerifyInfoDlg.showCommonCheckModal = function () {
  136. var ajax = new $ax("/admin/integralVerify/validateIsCheck", function (data) {
  137. if (data.code == 200) {
  138. layer.open({
  139. type: 1,
  140. id: "neewFieldFormModel",
  141. title: '审核',
  142. area: ['800px', '350px'], //宽高
  143. fix: false, //不固定
  144. shade: 0,
  145. maxmin: true,
  146. content: IntegralVerifyInfoDlg.createNoFieldCheckModal(),
  147. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  148. btnAlign: 'c',
  149. zIndex: layer.zIndex,
  150. success: function (layero, index) {
  151. layer.setTop(layero);
  152. $("#commonCheckForm")[0].reset();
  153. var process = $("#process").val();
  154. if (process == 3) {
  155. var html = '<option value=""></option>\n' +
  156. ' <option value="3">审核通过</option>\n' +
  157. ' <option value="2">审核驳回</option>';
  158. $("#checkStateModal").empty().append(html);
  159. }
  160. $("#checkStateModal").val(data.obj.checkState);
  161. $("#checkMsg").val(data.obj.checkMsg);
  162. },
  163. yes: function (index, layero) {
  164. IntegralVerifyInfoDlg.commonCheck(index);
  165. }
  166. });
  167. } else {
  168. Feng.error(data.msg);
  169. }
  170. }, function (data) {
  171. Feng.error("校验失败!" + data.responseJSON.message + "!");
  172. });
  173. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()})
  174. ajax.start();
  175. }
  176. /**
  177. * 显示初审审核模态框
  178. */
  179. IntegralVerifyInfoDlg.showFirstCheckModal = function () {
  180. var ajax = new $ax("/admin/integralVerify/validateIsCheck", function (data) {
  181. if (data.code == 200) {
  182. layer.open({
  183. type: 1,
  184. id: "neewFieldFormModel",
  185. title: '审核',
  186. area: ['800px', '450px'], //宽高
  187. fix: false, //不固定
  188. shade: 0,
  189. maxmin: true,
  190. content: IntegralVerifyInfoDlg.creatFieldCheckModal(),
  191. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  192. btnAlign: 'c',
  193. zIndex: layer.zIndex,
  194. success: function (layero, index) {
  195. layer.setTop(layero);
  196. var obj = data.obj.talentInfo;
  197. var companyList = data.obj.companys;
  198. var fileList = data.obj.fileList;
  199. var process = data.obj.process;
  200. if (typeof data.obj.fieldList != "undefined" && data.obj.fieldList.length > 0) {
  201. var fieldList = data.obj.fieldList;
  202. var html1 = '';
  203. for (var key in fieldList) {
  204. html1 = html1 + '<li style="float:left;margin:0 10px 10px 0;"><input type="checkbox" value="' + fieldList[key]["key"] + '"><span>' + fieldList[key]["value"] + '</span></li>';
  205. }
  206. }
  207. var html2 = '';
  208. for (var key in fileList) {
  209. html2 = html2 + '<ul><li style="width: 100%"><input type="checkbox" value="' + fileList[key].id + '"><span>' + fileList[key].name + '</span></li></ul>';
  210. }
  211. var html3 = '';
  212. for (var key in companyList) {
  213. html3 += '<li style="width: 100%"><input type="checkbox" value="' + companyList[key].id + '"><span>' + companyList[key].name + '</span></li>';
  214. }
  215. $("#field_info ul").css("overflow", "hidden").empty().append(html1);
  216. $("#field_file").css("overflow", "hidden").empty().append(html2);
  217. $("#company_list ul").css("overflow", "hidden").empty().append(html3);
  218. var optionHtml = "";
  219. if (process <= 4 && process != 2) {
  220. optionHtml = '<option value="">请选择</option>\n' +
  221. (obj.highProcess == 4 && process == 3 ? '<option value="5">审核通过(需要再次部门并审)</option>\n' : '<option value="3">审核通过</option>') +
  222. (obj.highProcess == 4 && process == 3 ? '<option value="4">审核通过(跳过部门并审)</option>\n' : "") +
  223. ' <option value="2">审核驳回</option>\n';
  224. }
  225. if (process == 5 || process == 2) {
  226. optionHtml = '<option value="">请选择</option>\n' +
  227. ' <option value="3">审核通过</option>\n' +
  228. ' <option value="2">审核驳回</option>\n' +
  229. ' <option value="-1">审核不通过</option>';
  230. }
  231. $("#checkStateFirstModal").empty().append(optionHtml);
  232. $("#firstCheckForm")[0].reset();
  233. //$("#checkStateFirstModal").val(obj.checkState);
  234. $("#checkStateFirstModal").trigger("change");
  235. $("#checkMsgFirst").val(obj.checkMsg);
  236. if (obj.fields != null && obj.fields != '') {
  237. $("#field_info input").each(function () {
  238. for (var key in obj.fields) {
  239. if ($(this).val() == obj.fields[key]) {
  240. this.checked = true;
  241. }
  242. }
  243. });
  244. }
  245. if (obj.files != null && obj.files != '') {
  246. $("#field_file input").each(function () {
  247. for (var key in obj.files) {
  248. if ($(this).val() == obj.files[key]) {
  249. this.checked = true;
  250. }
  251. }
  252. //if (obj.files.indexOf($(this).val()) != -1) {
  253. //this.checked = true;
  254. //}
  255. });
  256. }
  257. },
  258. yes: function (index, layero) {
  259. IntegralVerifyInfoDlg.firstCheck(index);
  260. }
  261. });
  262. } else {
  263. Feng.error(data.msg);
  264. }
  265. }, function (data) {
  266. Feng.error("校验失败!" + data.responseJSON.message + "!");
  267. });
  268. ajax.setData({"id": $("#id").val(), "companyId": $("#companyId").val()})
  269. ajax.start();
  270. }
  271. IntegralVerifyInfoDlg.toggledepField = function () {
  272. var checkState = $("#checkStateModal").val();
  273. var checkMsg = $("#checkMsg").val();
  274. if (checkState == 3) {
  275. if (checkMsg == null || checkMsg == '') {
  276. $("#checkMsg").val("部门审核通过,待复核");
  277. }
  278. } else {
  279. $("#checkMsg").val("");
  280. }
  281. }
  282. /**
  283. * 显示字段或者隐藏字段选择
  284. */
  285. IntegralVerifyInfoDlg.toggleField = function () {
  286. var checkState = $("#checkStateFirstModal").val();
  287. var checkMsgFirst = $("#checkMsgFirst").val();
  288. $("#company_list").hide();
  289. if (checkState == 2) {
  290. $("#field").show();
  291. $("#checkMsgFirst").val("");
  292. } else if (checkState == 3 || checkState == 4 || checkState == 5) {
  293. $("#field").hide();
  294. $("#field").find("input[type=checkbox]").removeAttr("checked");
  295. if (checkMsgFirst == null || checkMsgFirst == '') {
  296. $("#checkMsgFirst").val("审核通过");
  297. }
  298. if (checkState == 5) {
  299. $("#company_list").show();
  300. }
  301. } else if (checkState == -1) {
  302. $("#field").hide();
  303. $("#checkMsgFirst").val("审核不通过");
  304. }
  305. }
  306. /**
  307. * 全选
  308. */
  309. IntegralVerifyInfoDlg.checkAll = function () {
  310. $("#field input").each(function () {
  311. this.checked = true;
  312. })
  313. }
  314. /**
  315. * 反选
  316. */
  317. IntegralVerifyInfoDlg.unCheckAll = function () {
  318. $("#field input").each(function () {
  319. if (this.checked) {
  320. this.checked = false;
  321. } else {
  322. this.checked = true;
  323. }
  324. })
  325. }
  326. /**
  327. * 审核提交
  328. */
  329. IntegralVerifyInfoDlg.commonCheck = function (i) {
  330. var checkState = $("#checkStateModal").val();
  331. var checkMsg = $("#checkMsg").val();
  332. if (checkState == null || checkState == '') {
  333. Feng.info("请选择审核状态");
  334. return;
  335. }
  336. if (checkMsg == null || checkMsg == '') {
  337. Feng.info("请填写审核意见");
  338. return;
  339. }
  340. if (locked)
  341. return;
  342. locked = true;
  343. var ajax = new $ax(Feng.ctxPath + "/admin/integralVerify/check", function (data) {
  344. if (data.code == 200) {
  345. Feng.success(data.msg);
  346. // $("#commonModal").modal("hide");
  347. layer.close(i);
  348. } else {
  349. Feng.error(data.msg);
  350. }
  351. locked = false;
  352. }, function (data) {
  353. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  354. locked = false;
  355. });
  356. ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg, "process": $("#process").val(), "companyId": $("#companyId").val()})
  357. ajax.start();
  358. }
  359. /**
  360. * 初审提交
  361. */
  362. IntegralVerifyInfoDlg.firstCheck = function (i) {
  363. var checkState = $("#checkStateFirstModal").val();
  364. var checkMsg = $("#checkMsgFirst").val();
  365. if (checkState == null || checkState == '') {
  366. Feng.info("请选择审核状态");
  367. return;
  368. }
  369. if (checkMsg == null || checkMsg == '') {
  370. Feng.info("请填写审核意见");
  371. return;
  372. }
  373. var fields = '';
  374. var files = '';
  375. var companys = '';
  376. $("#field_info li input").each(function (index) {
  377. if ($(this).is(":checked")) {
  378. fields = fields + $(this).val() + ",";
  379. }
  380. });
  381. $("#field_file li input").each(function (index) {
  382. if ($(this).is(":checked")) {
  383. files = files + $(this).val() + ",";
  384. }
  385. });
  386. $("#company_list li input").each(function (index) {
  387. if ($(this).is(":checked")) {
  388. companys += $(this).val() + ",";
  389. }
  390. });
  391. if (checkState == 2 && fields == '' && files == '') {
  392. Feng.info("请选择可修改的字段或附件!");
  393. return;
  394. }
  395. if (checkState == 5 && companys == "") {
  396. Feng.info("请选择需要再次审核的部门!");
  397. return;
  398. }
  399. if (locked)
  400. return;
  401. locked = true;
  402. var ajax = new $ax("/admin/integralVerify/check", function (data) {
  403. if (data.code == 200) {
  404. // $("#firstModal").modal("hide");
  405. layer.close(i);
  406. Feng.success(data.msg);
  407. } else {
  408. Feng.error(data.msg);
  409. }
  410. locked = false;
  411. }, function (data) {
  412. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  413. locked = false;
  414. });
  415. ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg,
  416. "process": $("#process").val(), "fields": fields, "files": files, "companys": companys})
  417. ajax.start();
  418. }
  419. IntegralVerifyInfoDlg.submitCheck = function () {
  420. var operation = function () {
  421. var ajax = new $ax(Feng.ctxPath + "/admin/integralVerify/submitCheck", function (data) {
  422. if (data.code == 200) {
  423. Feng.success(data.msg);
  424. window.parent.TalentInfo.table.refresh();
  425. IntegralVerifyInfoDlg.close();
  426. } else {
  427. Feng.error(data.msg);
  428. }
  429. }, function (data) {
  430. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  431. });
  432. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()});
  433. ajax.start();
  434. }
  435. Feng.confirm("一旦提交无法修改,是否审核完毕且无误?", operation);
  436. }
  437. IntegralVerifyInfoDlg.fieldCheckd = function (context) {
  438. if ($(context).get(0).checked) {
  439. $(context).parent().next().children()[0].checked = true;
  440. $(context).parent().next().children().eq(0).trigger("change");
  441. }
  442. }
  443. IntegralVerifyInfoDlg.sourceCheckd = function (context) {
  444. if ($(context).get(0).checked) {
  445. $("#talentArrangeCheckBox").attr("checked", true);
  446. $("#talentArrangeCheckBox").trigger("change");
  447. }
  448. }
  449. IntegralVerifyInfoDlg.download = function () {
  450. window.location.href = encodeURI(encodeURI("/common/api/downloadZip?type=1&id=" + $("#id").val()));
  451. }
  452. IntegralVerifyInfoDlg.creatFieldCheckModal = function () {
  453. var type = $("#type").val();
  454. if (type == 1) {
  455. return '<form id="firstCheckForm">\n' +
  456. ' <div class="form-group" style="margin: 10px;">\n' +
  457. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  458. ' <select class="form-control" id="checkStateFirstModal" onchange="IntegralVerifyInfoDlg.toggleField()">\n' +
  459. ' <option value="">请选择</option>\n' +
  460. ' <option value="3">审核通过</option>\n' +
  461. ' <option value="2">审核驳回</option>\n' +
  462. ' <option value="-1">审核不通过</option>\n' +
  463. ' </select>\n' +
  464. ' </div>\n' +
  465. ' <div class="form-group" style="margin: 10px;">\n' +
  466. ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
  467. ' <textarea class="form-control" id="checkMsgFirst" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  468. ' <div id="company_list" style="padding-top:5px;display:none;">\n' +
  469. ' <label for="checkMsg" class="control-label">选择需要再次审核的部门</label>\n' +
  470. ' <div id="companys">' +
  471. ' <ul style="overflow:hidden;list-style:none;"></ul>' +
  472. ' </div>' +
  473. ' </div>\n' +
  474. ' <div id="field" style="padding-top: 5px;display: none">\n' +
  475. ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
  476. ' <div id="field_info">\n' +
  477. ' <ul style="overflow:hidden;list-style:none;">\n' +
  478. ' </ul>\n' +
  479. ' </div>\n' +
  480. ' <label for="checkMsg" class="control-label">可修改附件</label>\n' +
  481. ' <div id="field_file">\n' +
  482. ' </div>\n' +
  483. ' <div class="form-group" style="text-align: center">\n' +
  484. ' <button type="button" class="btn btn-primary" onclick="IntegralVerifyInfoDlg.checkAll()">全选</button>\n' +
  485. ' <button type="button" class="btn btn-success" onclick="IntegralVerifyInfoDlg.unCheckAll()">反选</button>\n' +
  486. ' </div>\n' +
  487. ' </div>\n' +
  488. ' </div>\n' +
  489. ' </form>';
  490. } else if (type == 2) {
  491. return '<form id="firstCheckForm">\n' +
  492. ' <div class="form-group" style="margin: 10px;">\n' +
  493. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  494. ' <select class="form-control" id="checkStateFirstModal" onchange="IntegralVerifyInfoDlg.toggleField()">\n' +
  495. ' <option value="">请选择</option>\n' +
  496. ' <option value="3">审核通过</option>\n' +
  497. ' <option value="2">审核驳回</option>\n' +
  498. ' <option value="-1">审核不通过</option>\n' +
  499. ' </select>\n' +
  500. ' </div>\n' +
  501. ' <div class="form-group" style="margin: 10px;">\n' +
  502. ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
  503. ' <textarea class="form-control" id="checkMsgFirst" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  504. ' <div id="company_list" style="padding-top:5px;display:none;">\n' +
  505. ' <label for="checkMsg" class="control-label">选择需要再次审核的部门</label>\n' +
  506. ' <div id="companys">' +
  507. ' <ul style="overflow:hidden;list-style:none;"></ul>' +
  508. ' </div>' +
  509. ' </div>\n' +
  510. ' <div id="field" style="padding-top: 5px;display: none">\n' +
  511. ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
  512. ' <div id="field_info">\n' +
  513. ' <ul style="overflow:hidden;list-style:none;">\n' +
  514. ' </ul>\n' +
  515. ' </div>\n' +
  516. ' <label for="checkMsg" class="control-label">可修改附件</label>\n' +
  517. ' <div id="field_file">\n' +
  518. ' </div>\n' +
  519. ' <div class="form-group" style="text-align: center">\n' +
  520. ' <button type="button" class="btn btn-primary" onclick="IntegralVerifyInfoDlg.checkAll()">全选</button>\n' +
  521. ' <button type="button" class="btn btn-success" onclick="IntegralVerifyInfoDlg.unCheckAll()">反选</button>\n' +
  522. ' </div>\n' +
  523. ' </div>\n' +
  524. ' </div>\n' +
  525. ' </form>';
  526. }
  527. }
  528. IntegralVerifyInfoDlg.createNoFieldCheckModal = function () {
  529. return '<form id="commonCheckForm" >\n' +
  530. ' <div class="form-group" style="margin: 10px;">\n' +
  531. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  532. ' <select class="form-control" id="checkStateModal" >\n' +
  533. ' <option value=""></option>\n' +
  534. ' <option value="3">审核通过</option>\n' +
  535. ' <option value="2">审核驳回</option>\n' +
  536. ' </select>\n' +
  537. ' </div>\n' +
  538. ' <div class="form-group" style="margin: 10px;">\n' +
  539. ' <label for="checkMsg" class="control-label">审核意见</label>\n' +
  540. ' <textarea class="form-control" id="checkMsg" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  541. ' </div>\n' +
  542. ' </form>';
  543. }
  544. $(function () {
  545. $("select:not(#checkStateModal,#checkStateFirstModal)").each(function () {
  546. //$(this).attr("disabled", "disabled");
  547. });
  548. $("input,textarea").not("#checkMsg,#checkMsgFirst").each(function () {
  549. $(this).attr("readonly", "readonly");
  550. });
  551. $('[data-toggle="tooltip"]').tooltip();
  552. var type = $("#type").val();
  553. IntegralVerifyInfoDlg.changeAndLoadFile();
  554. Feng.getCheckLog("logTable", {"type": CONFIG.project_integral_apply, "mainId": $("#id").val(), "typeFileId": "", "active": 1})
  555. });