IntegralVerify_info.js 27 KB

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