talentInfo_common_check.js 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. /**
  2. * 初始化人才认定申报详情对话框
  3. */
  4. var locked = false;
  5. var TalentInfoInfoDlg = {
  6. talentInfoInfoData: {},
  7. };
  8. /**
  9. * 初始化表格的列
  10. */
  11. TalentInfoInfoDlg.initFileTypeColumn = function () {
  12. return [
  13. {field: 'selectItem', checkbox: false, visible: false},
  14. {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
  15. formatter: function (value, row, index) {
  16. if (row.must == 1) {
  17. return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
  18. }
  19. if (row.must == 2) {
  20. return '<i class="fa fa-paste"></i>' + value;
  21. }
  22. }
  23. },
  24. {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
  25. formatter: function (value, row, index) {
  26. if (value == null || value == '' || value == 'null') {
  27. return '无';
  28. }
  29. return "<button type='button' onclick=\"TalentInfoInfoDlg.downloadFile('" + row.id + "',5)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
  30. "<i class=\"fa fa-download\"></i>下载" +
  31. "</button>";
  32. }
  33. },
  34. {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "52%", 'class': 'uitd_showTip'},
  35. ]
  36. };
  37. //初始化附件类别表单
  38. TalentInfoInfoDlg.initFileTable = function () {
  39. var queryData = {};
  40. queryData['project'] = CONFIG.project_rcrd;
  41. queryData['type'] = $("#type").val();
  42. queryData["talent_condition"] = $("#talent_condition").val();
  43. queryData['checkState'] = $("#checkState").val();
  44. queryData['isMix'] = 1;
  45. $("#fileTable").bootstrapTable({
  46. url: Feng.ctxPath + "/common/api/findCommonFileType",
  47. method: 'POST',
  48. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  49. search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
  50. showRefresh: false, // 是否显示刷新按钮
  51. clickToSelect: true, // 是否启用点击选中行
  52. singleSelect: true, // 设置True 将禁止多选
  53. striped: true, // 是否显示行间隔色
  54. escape: true,
  55. pagination: false, // 设置为 true 会在表格底部显示分页条
  56. paginationHAlign: "left",
  57. paginationDetailHAlign: "right",
  58. sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
  59. showColumns: false,
  60. detailView: true, //是否显示父子表
  61. pageList: [10, 30, 50],
  62. queryParams: function (params) {
  63. return $.extend(queryData, params)
  64. },
  65. rowStyle: function (row, index) {
  66. return {classes: "info"};
  67. },
  68. columns: TalentInfoInfoDlg.initFileTypeColumn(),
  69. onPostBody: function () {
  70. $("td.uitd_showTip").bind("mouseover", function () {
  71. var htm = $(this).html();
  72. $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
  73. });
  74. },
  75. onLoadSuccess: function (data) {
  76. $("#fileTable").bootstrapTable('expandAllRows');
  77. },
  78. onExpandRow: function (index, row, $detail) {
  79. var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentFile", function (data) {
  80. if (data == null || data.length == 0) {
  81. return;
  82. }
  83. var html = '<ul class="imgs"><li style="width: 75%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width:15%;font-weight: bold;padding-top: 5px;">操作</li>';
  84. var files = $("#files").val();
  85. var checkState = $("#checkState").val();
  86. var realState = $("#realState").val();
  87. for (var key in data) {
  88. var btn = "";
  89. if (Feng.isEmptyStr(checkState) || (checkState == 8 && (realState == 8 || Feng.isEmptyStr(realState))) || (checkState == 11 && realState != 14) || (realState == 11 && files.indexOf(row.id) != -1)) {
  90. btn = "<button type=\'button\' onclick=\"TalentInfoInfoDlg.checkFile(this,'" + row.fState + "','" + row.id + "','" + data[key].id + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
  91. "<i class=\"fa fa-paste\"></i>修改" +
  92. "</button>" +
  93. "<button type='button' onclick=\"TalentInfoInfoDlg.deleteFile('" + data[key].id + "','" + row.fState + "')\" class=\"btn btn-xs btn-danger\">" +
  94. "<i class=\"fa fa-times\"></i>删除" +
  95. "</button>";
  96. } else {
  97. btn = "";
  98. }
  99. var sn = data[key].url.lastIndexOf(".");
  100. var suffix = data[key].url.substring(sn + 1, data[key].url.length);
  101. var imgStr = "";
  102. if (suffix == "pdf" || suffix == "PDF") {
  103. imgStr = "<button type='button' onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
  104. } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
  105. imgStr = "<button type='button' onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
  106. } else {
  107. imgStr = '<img class=\"imgUrl\" src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
  108. }
  109. html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
  110. '<li style="width: 75%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
  111. '<li style="width: 10%;">' + imgStr + '</li>\n' +
  112. '<li style="width: 15%;padding-top: 2px;">' + btn + '</li>';
  113. }
  114. html = html + '</ul>';
  115. $detail.html(html);
  116. $(".imgs").viewer({fullscreen: false});
  117. }, function (data) {
  118. Feng.error("查询失败!" + data.responseJSON.message + "!");
  119. });
  120. var queryData = {};
  121. queryData["mainId"] = $("#id").val();
  122. queryData["fileTypeId"] = row.id;
  123. ajax.set(queryData);
  124. ajax.start();
  125. }
  126. });
  127. }
  128. /**
  129. * 关闭此对话框
  130. */
  131. TalentInfoInfoDlg.close = function () {
  132. parent.layer.close(window.parent.TalentInfo.layerIndex);
  133. }
  134. TalentInfoInfoDlg.callback = function (data) {
  135. Feng.info(data.msg);
  136. }
  137. /**
  138. * 下载附件
  139. * @param value
  140. */
  141. TalentInfoInfoDlg.downloadFile = function (id, type) {
  142. window.location.href = "/common/api/downloadFile?id=" + id + "&type=" + type;
  143. }
  144. TalentInfoInfoDlg.expandRows = function () {
  145. $(".fileTable").bootstrapTable('expandAllRows')
  146. }
  147. /**
  148. * 显示审核模态框
  149. */
  150. TalentInfoInfoDlg.showCommonCheckModal = function () {
  151. var ajax = new $ax("/admin/talent/validateIsCheck", function (data) {
  152. if (data.code == 200) {
  153. layer.open({
  154. type: 1,
  155. id: "neewFieldFormModel",
  156. title: '审核',
  157. area: ['800px', '350px'], //宽高
  158. fix: false, //不固定
  159. shade: 0,
  160. maxmin: true,
  161. content: TalentInfoInfoDlg.createNoFieldCheckModal(),
  162. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  163. btnAlign: 'c',
  164. zIndex: layer.zIndex,
  165. success: function (layero, index) {
  166. layer.setTop(layero);
  167. $("#commonCheckForm")[0].reset();
  168. var process = $("#process").val();
  169. if (process == 3) {
  170. var html = '<option value=""></option>\n' +
  171. ' <option value="3">审核通过</option>\n' +
  172. ' <option value="2">审核驳回</option>';
  173. $("#checkStateModal").empty().append(html);
  174. }
  175. $("#checkStateModal").val(data.obj.checkState);
  176. $("#checkMsg").val(data.obj.checkMsg);
  177. },
  178. yes: function (index, layero) {
  179. TalentInfoInfoDlg.commonCheck(index);
  180. }
  181. });
  182. } else {
  183. Feng.error(data.msg);
  184. }
  185. }, function (data) {
  186. Feng.error("校验失败!" + data.responseJSON.message + "!");
  187. });
  188. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()})
  189. ajax.start();
  190. }
  191. /**
  192. * 显示初审审核模态框
  193. */
  194. TalentInfoInfoDlg.showFirstCheckModal = function () {
  195. var ajax = new $ax("/admin/talent/validateIsCheck", function (data) {
  196. if (data.code == 200) {
  197. layer.open({
  198. type: 1,
  199. id: "neewFieldFormModel",
  200. title: '审核',
  201. area: ['800px', '450px'], //宽高
  202. fix: false, //不固定
  203. shade: 0,
  204. maxmin: true,
  205. content: TalentInfoInfoDlg.creatFieldCheckModal(),
  206. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  207. btnAlign: 'c',
  208. zIndex: layer.zIndex,
  209. success: function (layero, index) {
  210. layer.setTop(layero);
  211. var obj = data.obj.talentInfo;
  212. var companyList = data.obj.companys;
  213. var type = data.obj.type;
  214. var fileList = data.obj.fileList;
  215. var process = data.obj.process;
  216. if (typeof data.obj.fieldList != "undefined" && data.obj.fieldList.length > 0) {
  217. var fieldList = data.obj.fieldList;
  218. var html1 = '';
  219. for (var key in fieldList) {
  220. html1 = html1 + '<li style="float:left;margin:0 10px 10px 0;"><input type="checkbox" value="' + fieldList[key]["key"] + '"><span>' + fieldList[key]["value"] + '</span></li>';
  221. }
  222. }
  223. var html2 = '';
  224. for (var key in fileList) {
  225. html2 = html2 + '<ul><li style="width: 100%"><input type="checkbox" value="' + fileList[key].id + '"><span>' + fileList[key].name + '</span></li></ul>';
  226. }
  227. var html3 = '';
  228. for (var key in companyList) {
  229. html3 += '<li style="width: 100%"><input type="checkbox" value="' + companyList[key].id + '"><span>' + companyList[key].name + (companyList[key].uncheck == true ? "<span style='color:#ff0000;'>(上次驳回)</span>" : "") + '</span></li>';
  230. }
  231. $("#field_info ul").css("overflow", "hidden").empty().append(html1);
  232. $("#field_file").css("overflow", "hidden").empty().append(html2);
  233. $("#company_list ul").css("overflow", "hidden").empty().append(html3);
  234. var optionHtml = "";
  235. if (process <= 4 && process != 2) {
  236. optionHtml = '<option value="">请选择</option>\n' +
  237. (obj.highProcess >= 3 && companyList.length > 0 && process == 3 && obj.isMatchZhiren == 0 ? '<option value="5">审核通过(需要再次部门并审)</option>\n' : '<option value="3">审核通过</option>') +
  238. (obj.highProcess >= 3 && companyList.length > 0 && process == 3 && obj.isMatchZhiren == 0 ? '<option value="4">审核通过(跳过部门并审)</option>\n' : "") +
  239. ' <option value="2">审核驳回</option>\n' +
  240. (type == 5 && process == 3 ? '<option value="6">驳回到分院</option>\n' : '');
  241. }
  242. if (process == 5 || process == 2) {
  243. optionHtml = '<option value="">请选择</option>\n' +
  244. ' <option value="3">审核通过</option>\n' +
  245. ' <option value="2">审核驳回</option>\n' +
  246. ' <option value="-1">审核不通过</option>';
  247. }
  248. $("#checkStateFirstModal").empty().append(optionHtml);
  249. $("#firstCheckForm")[0].reset();
  250. $("#checkStateFirstModal").val(data.obj.check.checkState);
  251. $("#checkStateFirstModal").trigger("change");
  252. $("#checkMsgFirst").val(data.obj.check.msg);
  253. if (obj.fields != null && obj.fields != '') {
  254. $("#field_info input").each(function () {
  255. for (var key in obj.fields) {
  256. if ($(this).val() == obj.fields[key]) {
  257. this.checked = true;
  258. }
  259. }
  260. });
  261. }
  262. if (obj.files != null && obj.files != '') {
  263. $("#field_file input").each(function () {
  264. for (var key in obj.files) {
  265. if ($(this).val() == obj.files[key]) {
  266. this.checked = true;
  267. }
  268. }
  269. //if (obj.files.indexOf($(this).val()) != -1) {
  270. //this.checked = true;
  271. //}
  272. });
  273. }
  274. if (obj.re_check_companys != null && obj.re_check_companys != '') {
  275. $("#company_list input").each(function () {
  276. for (var key in obj.re_check_companys) {
  277. if ($(this).val() == obj.re_check_companys[key]) {
  278. this.checked = true;
  279. }
  280. }
  281. });
  282. }
  283. },
  284. yes: function (index, layero) {
  285. TalentInfoInfoDlg.firstCheck(index);
  286. }
  287. });
  288. } else {
  289. Feng.error(data.msg);
  290. }
  291. }, function (data) {
  292. Feng.error("校验失败!" + data.responseJSON.message + "!");
  293. });
  294. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()})
  295. ajax.start();
  296. }
  297. TalentInfoInfoDlg.toggledepField = function () {
  298. var checkState = $("#checkStateModal").val();
  299. var checkMsg = $("#checkMsg").val();
  300. if (checkState == 3) {
  301. if (checkMsg == null || checkMsg == '') {
  302. $("#checkMsg").val("部门审核通过,待复核");
  303. }
  304. } else {
  305. $("#checkMsg").val("");
  306. }
  307. }
  308. /**
  309. * 显示字段或者隐藏字段选择
  310. */
  311. TalentInfoInfoDlg.toggleField = function () {
  312. var checkState = $("#checkStateFirstModal").val();
  313. var checkMsgFirst = $("#checkMsgFirst").val();
  314. $("#company_list").hide();
  315. if (checkState == 2 || checkState == 6) {
  316. $("#field").show();
  317. $("#checkMsgFirst").val("");
  318. } else if (checkState == 3 || checkState == 4 || checkState == 5) {
  319. $("#field").hide();
  320. $("#field").find("input[type=checkbox]").removeAttr("checked");
  321. if (checkMsgFirst == null || checkMsgFirst == '' || checkMsgFirst == "等待部门审核") {
  322. $("#checkMsgFirst").val("审核通过");
  323. }
  324. if (checkState == 5) {
  325. $("#company_list").show();
  326. }
  327. } else if (checkState == -1) {
  328. $("#field").hide();
  329. $("#checkMsgFirst").val("审核不通过");
  330. }
  331. }
  332. /**
  333. * 全选
  334. */
  335. TalentInfoInfoDlg.checkAll = function () {
  336. $("#field input").each(function () {
  337. this.checked = true;
  338. })
  339. }
  340. /**
  341. * 反选
  342. */
  343. TalentInfoInfoDlg.unCheckAll = function () {
  344. $("#field input").each(function () {
  345. if (this.checked) {
  346. this.checked = false;
  347. } else {
  348. this.checked = true;
  349. }
  350. })
  351. }
  352. /**
  353. * 审核提交
  354. */
  355. TalentInfoInfoDlg.commonCheck = function (i) {
  356. var checkState = $("#checkStateModal").val();
  357. var checkMsg = $("#checkMsg").val();
  358. if (checkState == null || checkState == '') {
  359. Feng.info("请选择审核状态");
  360. return;
  361. }
  362. if (checkMsg == null || checkMsg == '') {
  363. Feng.info("请填写审核意见");
  364. return;
  365. }
  366. if (locked)
  367. return;
  368. locked = true;
  369. var ajax = new $ax(Feng.ctxPath + "/admin/talent/check", function (data) {
  370. if (data.code == 200) {
  371. Feng.success(data.msg);
  372. // $("#commonModal").modal("hide");
  373. layer.close(i);
  374. } else {
  375. Feng.error(data.msg);
  376. }
  377. locked = false;
  378. }, function (data) {
  379. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  380. locked = false;
  381. });
  382. ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg, "process": $("#process").val(), "companyId": $("#companyId").val()})
  383. ajax.start();
  384. }
  385. /**
  386. * 初审提交
  387. */
  388. TalentInfoInfoDlg.firstCheck = function (i) {
  389. var checkState = $("#checkStateFirstModal").val();
  390. var checkMsg = $("#checkMsgFirst").val();
  391. if (checkState == null || checkState == '') {
  392. Feng.info("请选择审核状态");
  393. return;
  394. }
  395. if (checkMsg == null || checkMsg == '') {
  396. Feng.info("请填写审核意见");
  397. return;
  398. }
  399. var fields = '';
  400. var files = '';
  401. var companys = '';
  402. $("#field_info li input").each(function (index) {
  403. if ($(this).is(":checked")) {
  404. fields = fields + $(this).val() + ",";
  405. }
  406. });
  407. $("#field_file li input").each(function (index) {
  408. if ($(this).is(":checked")) {
  409. files = files + $(this).val() + ",";
  410. }
  411. });
  412. $("#company_list li input").each(function (index) {
  413. if ($(this).is(":checked")) {
  414. companys += $(this).val() + ",";
  415. }
  416. });
  417. if (checkState == 2 && fields == '' && files == '') {
  418. Feng.info("请选择可修改的字段或附件!");
  419. return;
  420. }
  421. if (checkState == 5 && companys == "") {
  422. Feng.info("请选择需要再次审核的部门!");
  423. return;
  424. }
  425. if (locked)
  426. return;
  427. locked = true;
  428. var ajax = new $ax("/admin/talent/check", function (data) {
  429. if (data.code == 200) {
  430. // $("#firstModal").modal("hide");
  431. layer.close(i);
  432. Feng.success(data.msg);
  433. } else {
  434. Feng.error(data.msg);
  435. }
  436. locked = false;
  437. }, function (data) {
  438. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  439. locked = false;
  440. });
  441. ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg,
  442. "process": $("#process").val(), "fields": fields, "files": files, "companys": companys})
  443. ajax.start();
  444. }
  445. TalentInfoInfoDlg.submitCheck = function () {
  446. var operation = function () {
  447. var ajax = new $ax(Feng.ctxPath + "/admin/talent/submitCheck", function (data) {
  448. if (data.code == 200) {
  449. Feng.success(data.msg);
  450. window.parent.TalentInfo.table.refresh();
  451. TalentInfoInfoDlg.close();
  452. } else {
  453. Feng.error(data.msg);
  454. }
  455. }, function (data) {
  456. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  457. });
  458. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()});
  459. ajax.start();
  460. }
  461. Feng.confirm("一旦提交无法修改,是否审核完毕且无误?", operation);
  462. }
  463. TalentInfoInfoDlg.fieldCheckd = function (context) {
  464. if ($(context).get(0).checked) {
  465. $(context).parent().next().children()[0].checked = true;
  466. $(context).parent().next().children().eq(0).trigger("change");
  467. }
  468. }
  469. TalentInfoInfoDlg.sourceCheckd = function (context) {
  470. if ($(context).get(0).checked) {
  471. $("#talentArrangeCheckBox").attr("checked", true);
  472. $("#talentArrangeCheckBox").trigger("change");
  473. }
  474. }
  475. TalentInfoInfoDlg.download = function () {
  476. window.location.href = encodeURI(encodeURI("/common/api/downloadZip?type=1&id=" + $("#id").val()));
  477. }
  478. TalentInfoInfoDlg.creatFieldCheckModal = function () {
  479. return '<form id="firstCheckForm">\n' +
  480. ' <div class="form-group" style="margin: 10px;">\n' +
  481. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  482. ' <select class="form-control" id="checkStateFirstModal" onchange="TalentInfoInfoDlg.toggleField()">\n' +
  483. ' <option value="">请选择</option>\n' +
  484. ' <option value="3">审核通过</option>\n' +
  485. ' <option value="2">审核驳回</option>\n' +
  486. ' <option value="-1">审核不通过</option>\n' +
  487. ' </select>\n' +
  488. ' </div>\n' +
  489. ' <div class="form-group" style="margin: 10px;">\n' +
  490. ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
  491. ' <textarea class="form-control" id="checkMsgFirst" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  492. ' <div id="company_list" style="padding-top:5px;display:none;">\n' +
  493. ' <label for="checkMsg" class="control-label">选择需要再次审核的部门</label>\n' +
  494. ' <div id="companys">' +
  495. ' <ul style="overflow:hidden;list-style:none;"></ul>' +
  496. ' </div>' +
  497. ' </div>\n' +
  498. ' <div id="field" style="padding-top: 5px;display: none">\n' +
  499. ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
  500. ' <div id="field_info">\n' +
  501. ' <ul style="overflow:hidden;list-style:none;">\n' +
  502. ' <li style="width:10%"><input type="checkbox" value="name"><span>姓名</span></li>\n' +
  503. ' <li style="width:10%"><input type="checkbox" value="sex"><span>性别</span></li>\n' +
  504. ' <li style="width:10%"><input type="checkbox" value="birthday"><span>出生日期</span></li>\n' +
  505. ' <li style="width:10%"><input type="checkbox" value="industryField"><span>行业领域</span></li>\n' +
  506. ' <li style="width:10%"><input type="checkbox" value="address"><span>所属镇街</span></li>\n' +
  507. ' <li style="width:20.5%"><input type="checkbox" value="nationality"><span>国籍/地区</span></li>\n' +
  508. ' <li style="width:10%"><input type="checkbox" value="provinceCode"><span>籍贯省</span></li>\n' +
  509. ' <li style="width:10%"><input type="checkbox" value="cityCode"><span>籍贯市</span></li>\n' +
  510. ' <li style="width:10%"><input type="checkbox" value="countyCode"><span>籍贯县</span></li>\n' +
  511. ' <li style="width:10%"><input type="checkbox" value="cardType"><span>证件类型</span></li>\n' +
  512. ' <li style="width:10%"><input type="checkbox" value="idCard"><span>证件号码</span></li>\n' +
  513. ' <li style="width:10%"><input type="checkbox" value="nation"><span>民族</span></li>\n' +
  514. ' <li style="width:10%"><input type="checkbox" value="politics"><span>政治面貌</span></li>\n' +
  515. ' <li style="width:20.5%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>\n' +
  516. ' <li style="width:10%"><input type="checkbox" value="post"><span>职务</span></li>\n' +
  517. ' <li style="width:20.5%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>\n' +
  518. ' <li style="width:20.5%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>\n' +
  519. ' <li style="width:10%"><input type="checkbox" value="highEducation"><span>最高学历</span></li>\n' +
  520. ' <li style="width:10%"><input type="checkbox" value="graduateSchool"><span>毕业院校</span></li>\n' +
  521. ' <li style="width:10%"><input type="checkbox" value="major"><span>专业</span></li>\n' +
  522. ' <li style="width:10%"><input type="checkbox" value="title"><span>职称</span></li>\n' +
  523. ' <li style="width:20.5%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>\n' +
  524. ' <li style="width:20.5%"><input type="checkbox" value="studyAbroad"><span>是否有留学经历</span></li>\n' +
  525. ' <li style="width:10%"><input type="checkbox" value="phone"><span>手机号码</span></li>\n' +
  526. ' <li style="width:10%"><input type="checkbox" value="email"><span>电子邮箱</span></li>\n' +
  527. ' <li style="width:10%"><input type="checkbox" value="bank"><span>开户银行</span></li>\n' +
  528. ' <li style="width:20.5%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>\n' +
  529. ' <li style="width:10%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>\n' +
  530. ' <li style="width:10%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>\n' +
  531. ' <li style="width:31%"><input type="checkbox" value="breakFaith"><span>曾被相关主管部门列为失信个人</span></li>\n' +
  532. ' <li style="width:10%"><input type="checkbox" value="talentArrange"><span>人才层次</span></li>\n' +
  533. ' <li style="width:10%"><input type="checkbox" value="identifyCondition"><span>认定条件</span></li>\n' +
  534. ' <li style="width:20.5%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>\n' +
  535. ' <li style="width:20.5%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>\n' +
  536. ' <li style="width:20.5%"><input type="checkbox" value="educationAndResume"><span>教育背景及工作简历</span></li>\n' +
  537. ' <li style="width:20.5%"><input type="checkbox" value="mainHonours"><span>主要业绩及取得的荣誉</span></li>\n' +
  538. ' <li style="width:10%"><input type="checkbox" value="description"><span>备注</span></li>\n' +
  539. ' </ul>\n' +
  540. ' </div>\n' +
  541. ' <label for="checkMsg" class="control-label">可修改附件</label>\n' +
  542. ' <div id="field_file">\n' +
  543. ' </div>\n' +
  544. ' <div class="form-group" style="text-align: center">\n' +
  545. ' <button type="button" class="btn btn-primary" onclick="TalentInfoInfoDlg.checkAll()">全选</button>\n' +
  546. ' <button type="button" class="btn btn-success" onclick="TalentInfoInfoDlg.unCheckAll()">反选</button>\n' +
  547. ' </div>\n' +
  548. ' </div>\n' +
  549. ' </div>\n' +
  550. ' </form>';
  551. }
  552. TalentInfoInfoDlg.createNoFieldCheckModal = function () {
  553. return '<form id="commonCheckForm" >\n' +
  554. ' <div class="form-group" style="margin: 10px;">\n' +
  555. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  556. ' <select class="form-control" id="checkStateModal" >\n' +
  557. ' <option value=""></option>\n' +
  558. ' <option value="3">审核通过</option>\n' +
  559. ' <option value="2">审核驳回</option>\n' +
  560. ' </select>\n' +
  561. ' </div>\n' +
  562. ' <div class="form-group" style="margin: 10px;">\n' +
  563. ' <label for="checkMsg" class="control-label">审核意见</label>\n' +
  564. ' <textarea class="form-control" id="checkMsg" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  565. ' </div>\n' +
  566. ' </form>';
  567. }
  568. $(function () {
  569. $("select:not(#checkStateModal,#checkStateFirstModal)").each(function () {
  570. //$(this).attr("disabled", "disabled");
  571. });
  572. $("input,textarea").not("#checkMsg,#checkMsgFirst").each(function () {
  573. $(this).attr("readonly", "readonly");
  574. });
  575. $('[data-toggle="tooltip"]').tooltip();
  576. $("input,select,textarea").not("input[type='hidden']").not("input[type='file']").attr("style", "pointer-events: none;background-color: #e2ecf2;;");
  577. TalentInfoInfoDlg.initFileTable();
  578. Feng.getCheckLog("logTable", {"type": CONFIG.project_rcrd, "mainId": $("#id").val(), "typeFileId": "", "active": 1})
  579. });