IntegralVerify_info.js 27 KB

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