IntegralVerify_info.js 31 KB

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