talentInfo_common_check.js 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  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: '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=\"TalentInfoInfoDlg.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. TalentInfoInfoDlg.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 tableIndex = 0;
  87. if ($("#talent_condition").parents(".table").length > 0) {
  88. tableIndex = $("#talent_condition").parents(".table").find("table.fileTable").index(".fileTable");
  89. } else {
  90. tableIndex = $("#talent_condition").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
  91. }
  92. data["rows"][k].tableIndex = tableIndex;
  93. data["rows"][k].trIndex = datas[tableIndex].length;
  94. datas[tableIndex].push(data["rows"][k]);//放入人才条件后面的附件表
  95. } else {
  96. var tableIndex = $(".fileTable").length - 1;
  97. data["rows"][k].tableIndex = tableIndex;
  98. data["rows"][k].trIndex = datas[tableIndex].length;
  99. datas[$(".fileTable").length - 1].push(data["rows"][k]);//没有归属,放入最后一个附件表
  100. }
  101. }
  102. }
  103. for (var i = 0; i < $(".fileTable").length; i++) {
  104. var that = $(".fileTable").eq(i);
  105. that.bootstrapTable({
  106. columns: TalentInfoInfoDlg.initFileTypeColumn(),
  107. data: datas[i],
  108. showHeader: false,
  109. rowStyle: function (row, index) {
  110. return {classes: ""};
  111. },
  112. onPostBody: function (data) {
  113. for (var k in data) {
  114. var files = data[k].files;
  115. 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>';
  116. for (var key in files) {
  117. var sn = files[key].url.lastIndexOf(".");
  118. var suffix = files[key].ext;//files[key].url.substring(sn + 1, files[key].url.length);
  119. var imgStr = "";
  120. if (suffix == "pdf" || suffix == "PDF") {
  121. 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>";
  122. } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
  123. 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>";
  124. } else {
  125. imgStr = '<img class="imgUrl" onclick="Feng.showImg(this)" src="' + files[key].url + '" style="width:25px;height:25px;">';
  126. }
  127. html += '<li data-id="' + files[key].id + '">\n\
  128. <div><input type="hidden" name="uploadFiles[]" value="' + files[key].id + '"></div>\n' +
  129. '<div style="width: 60%;">' + files[key].orignName + '</div>\n' +
  130. '<div style="width: 15%;">' + imgStr + '</div>\n' +
  131. '<div style="width: 25%;"></div>\n\
  132. </li>';
  133. }
  134. html = html + '</ul>';
  135. that.find("tr[data-index='" + k + "']").attr("data-rel", data[k]["rel"]);
  136. that.find("tr[data-index='" + k + "']").attr("data-option", data[k]["option"]);
  137. that.find("tr[data-index='" + k + "']").after('<tr class="detail-view"><td colspan="5">' + html + '</td></tr>');
  138. if (typeof data[k].hidden != "undefined") {
  139. that.find("tr[data-index='" + k + "']").css("display", "none");
  140. that.find("tr[data-index='" + k + "']").next("tr.detail-view").css("display", "none");
  141. }
  142. }
  143. $("td.uitd_showTip").bind("mouseover", function () {
  144. var htm = $(this).html();
  145. $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
  146. });
  147. },
  148. });
  149. }
  150. }, function (data) {
  151. Feng.error("查询失败!" + data.responseJSON.message + "!");
  152. });
  153. var queryData = {};
  154. queryData["mainId"] = $("#id").val();
  155. queryData['project'] = CONFIG.project_rcrd;
  156. queryData['type'] = $("#type").val();
  157. queryData["source"] = $("#source").val();
  158. queryData["talent_condition"] = $("#talent_condition option:selected").val();
  159. queryData['checkState'] = $("#checkState").val();
  160. ajax.set(queryData);
  161. ajax.start();
  162. }
  163. /**
  164. * 关闭此对话框
  165. */
  166. TalentInfoInfoDlg.close = function () {
  167. parent.layer.close(window.parent.TalentInfo.layerIndex);
  168. }
  169. //人才标签变化
  170. TalentInfoInfoDlg.typeChange = function () {
  171. var talentType = $("#talentType").val();
  172. if (talentType == 'gbwszb' || talentType == 'zzbsh' || talentType == 'sydw') {
  173. $("#letterTime").parent().attr("style", "display:block");
  174. // }else if(talentType=='gyqyl' || talentType=="gyqyh"){
  175. // $("#letterTime").parent().attr("style","display:none");
  176. } else {
  177. $("#letterTime").parent().attr("style", "display:none");
  178. }
  179. }
  180. TalentInfoInfoDlg.sourceChange = function () {
  181. var source = $("#source").val();
  182. if (source == 1) {
  183. $("#fromCityName").parent().attr("style", "display:none");
  184. $("#qzBatch").parent().attr("style", "display:block");
  185. $("#qzgccrcActiveTime").parent().attr("style", "display:block");
  186. $("#certificateStartTime").parent().attr("style", "display:block");
  187. $("#ourCitySource").parent().attr("style", "display:block");
  188. }
  189. if (source == 2) {
  190. $("#certificateStartTime").parent().attr("style", "display:block");
  191. $("#qzgccrcActiveTime").parent().attr("style", "display:block");
  192. $("#fromCityName").parent().attr("style", "display:block");
  193. $("#qzBatch").parent().attr("style", "display:block");
  194. $("#ourCitySource").parent().attr("style", "display:none");
  195. }
  196. if (source == 3 || source == null || source == '') {
  197. $("#certificateStartTime").parent().attr("style", "display:none");
  198. $("#qzgccrcActiveTime").parent().attr("style", "display:none");
  199. $("#fromCityName").parent().attr("style", "display:none");
  200. $("#qzBatch").parent().attr("style", "display:none");
  201. $("#ourCitySource").parent().attr("style", "display:none");
  202. }
  203. }
  204. TalentInfoInfoDlg.callback = function (data) {
  205. Feng.info(data.msg);
  206. }
  207. /**
  208. * 下载附件
  209. * @param value
  210. */
  211. TalentInfoInfoDlg.downloadFile = function (id, type) {
  212. window.location.href = "/common/api/downloadFile?id=" + id + "&type=" + type;
  213. }
  214. TalentInfoInfoDlg.expandRows = function () {
  215. $(".fileTable").bootstrapTable('expandAllRows')
  216. }
  217. /**
  218. * 显示审核模态框
  219. */
  220. TalentInfoInfoDlg.showCommonCheckModal = function () {
  221. var ajax = new $ax("/admin/talent/validateIsCheck", function (data) {
  222. if (data.code == 200) {
  223. layer.open({
  224. type: 1,
  225. id: "neewFieldFormModel",
  226. title: '审核',
  227. area: ['800px', '350px'], //宽高
  228. fix: false, //不固定
  229. shade: 0,
  230. maxmin: true,
  231. content: TalentInfoInfoDlg.createNoFieldCheckModal(),
  232. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  233. btnAlign: 'c',
  234. zIndex: layer.zIndex,
  235. success: function (layero, index) {
  236. layer.setTop(layero);
  237. $("#commonCheckForm")[0].reset();
  238. var process = $("#process").val();
  239. if (process == 2) {
  240. var html = '<option value=""></option>\n' +
  241. ' <option value="3">审核通过</option>\n' +
  242. ' <option value="2">审核驳回</option>';
  243. $("#checkStateModal").empty().append(html);
  244. }
  245. $("#checkStateModal").val(data.obj.checkState);
  246. $("#checkMsg").val(data.obj.checkMsg);
  247. },
  248. yes: function (index, layero) {
  249. TalentInfoInfoDlg.commonCheck(index);
  250. }
  251. });
  252. } else {
  253. Feng.error(data.msg);
  254. }
  255. }, function (data) {
  256. Feng.error("校验失败!" + data.responseJSON.message + "!");
  257. });
  258. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()})
  259. ajax.start();
  260. }
  261. /**
  262. * 显示初审审核模态框
  263. */
  264. TalentInfoInfoDlg.showFirstCheckModal = function () {
  265. var ajax = new $ax("/admin/talent/validateIsCheck", function (data) {
  266. if (data.code == 200) {
  267. layer.open({
  268. type: 1,
  269. id: "neewFieldFormModel",
  270. title: '审核',
  271. area: ['800px', '450px'], //宽高
  272. fix: false, //不固定
  273. shade: 0,
  274. maxmin: true,
  275. content: TalentInfoInfoDlg.creatFieldCheckModal(),
  276. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  277. btnAlign: 'c',
  278. zIndex: layer.zIndex,
  279. success: function (layero, index) {
  280. layer.setTop(layero);
  281. var obj = data.obj.talentInfo;
  282. var fileList = data.obj.fileList;
  283. var process = data.obj.process;
  284. if (typeof data.obj.fieldList != "undefined" && data.obj.fieldList.length > 0) {
  285. var fieldList = data.obj.fieldList;
  286. var html1 = '';
  287. for (var key in fieldList) {
  288. html1 = html1 + '<li style="float:left;margin:0 10px 10px 0;"><input type="checkbox" value="' + fieldList[key]["key"] + '"><span>' + fieldList[key]["value"] + '</span></li>';
  289. }
  290. }
  291. var html2 = '';
  292. for (var key in fileList) {
  293. html2 = html2 + '<ul><li style="width: 100%"><input type="checkbox" value="' + fileList[key].id + '"><span>' + fileList[key].name + '</span></li></ul>';
  294. }
  295. $("#field_info ul").empty().append(html1);
  296. $("#field_file").empty().append(html2);
  297. var optionHtml = "";
  298. if (process <= 3) {
  299. optionHtml = '<option value="">请选择</option>\n' +
  300. ' <option value="3">审核通过</option>\n' +
  301. (obj.highProcess >= 3 && process == 2 ? '<option value="4">审核通过(跳过部门并审)</option>\n' : "") +
  302. ' <option value="2">审核驳回</option>\n';
  303. }
  304. if (process == 4) {
  305. optionHtml = '<option value="">请选择</option>\n' +
  306. ' <option value="3">审核通过</option>\n' +
  307. ' <option value="2">审核驳回</option>\n' +
  308. ' <option value="-1">审核不通过</option>';
  309. }
  310. $("#checkStateFirstModal").empty().append(optionHtml);
  311. $("#firstCheckForm")[0].reset();
  312. //$("#checkStateFirstModal").val(obj.checkState);
  313. $("#checkStateFirstModal").trigger("change");
  314. $("#checkMsgFirst").val(obj.checkMsg);
  315. if (obj.fields != null && obj.fields != '') {
  316. $("#field_info input").each(function () {
  317. for (var key in obj.fields) {
  318. if ($(this).val() == obj.fields[key]) {
  319. this.checked = true;
  320. }
  321. }
  322. });
  323. }
  324. if (obj.files != null && obj.files != '') {
  325. $("#field_file input").each(function () {
  326. for (var key in obj.files) {
  327. if ($(this).val() == obj.files[key]) {
  328. this.checked = true;
  329. }
  330. }
  331. //if (obj.files.indexOf($(this).val()) != -1) {
  332. //this.checked = true;
  333. //}
  334. });
  335. }
  336. },
  337. yes: function (index, layero) {
  338. TalentInfoInfoDlg.firstCheck(index);
  339. }
  340. });
  341. } else {
  342. Feng.error(data.msg);
  343. }
  344. }, function (data) {
  345. Feng.error("校验失败!" + data.responseJSON.message + "!");
  346. });
  347. ajax.setData({"id": $("#id").val(), "companyId": $("#companyId").val()})
  348. ajax.start();
  349. }
  350. TalentInfoInfoDlg.toggledepField = function () {
  351. var checkState = $("#checkStateModal").val();
  352. var checkMsg = $("#checkMsg").val();
  353. if (checkState == 3) {
  354. if (checkMsg == null || checkMsg == '') {
  355. $("#checkMsg").val("部门审核通过,待复核");
  356. }
  357. } else {
  358. $("#checkMsg").val("");
  359. }
  360. }
  361. /**
  362. * 显示字段或者隐藏字段选择
  363. */
  364. TalentInfoInfoDlg.toggleField = function () {
  365. var checkState = $("#checkStateFirstModal").val();
  366. var checkMsgFirst = $("#checkMsgFirst").val();
  367. if (checkState == 2) {
  368. $("#field").show();
  369. $("#checkMsgFirst").val("");
  370. } else if (checkState == 3 || checkState == 4) {
  371. $("#field").hide();
  372. $("#field").find("input[type=checkbox]").removeAttr("checked");
  373. if (checkMsgFirst == null || checkMsgFirst == '') {
  374. $("#checkMsgFirst").val("审核通过");
  375. }
  376. } else if (checkState == -1) {
  377. $("#field").hide();
  378. $("#checkMsgFirst").val("审核不通过");
  379. }
  380. }
  381. /**
  382. * 全选
  383. */
  384. TalentInfoInfoDlg.checkAll = function () {
  385. $("#field input").each(function () {
  386. this.checked = true;
  387. })
  388. }
  389. /**
  390. * 反选
  391. */
  392. TalentInfoInfoDlg.unCheckAll = function () {
  393. $("#field input").each(function () {
  394. if (this.checked) {
  395. this.checked = false;
  396. } else {
  397. this.checked = true;
  398. }
  399. })
  400. }
  401. /**
  402. * 审核提交
  403. */
  404. TalentInfoInfoDlg.commonCheck = function (i) {
  405. var checkState = $("#checkStateModal").val();
  406. var checkMsg = $("#checkMsg").val();
  407. if (checkState == null || checkState == '') {
  408. Feng.info("请选择审核状态");
  409. return;
  410. }
  411. if (checkMsg == null || checkMsg == '') {
  412. Feng.info("请填写审核意见");
  413. return;
  414. }
  415. if (locked)
  416. return;
  417. locked = true;
  418. var ajax = new $ax(Feng.ctxPath + "/admin/talent/check", function (data) {
  419. if (data.code == 200) {
  420. Feng.success(data.msg);
  421. // $("#commonModal").modal("hide");
  422. layer.close(i);
  423. } else {
  424. Feng.error(data.msg);
  425. }
  426. locked = false;
  427. }, function (data) {
  428. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  429. locked = false;
  430. });
  431. ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg, "process": $("#process").val(), "companyId": $("#companyId").val()})
  432. ajax.start();
  433. }
  434. /**
  435. * 初审提交
  436. */
  437. TalentInfoInfoDlg.firstCheck = function (i) {
  438. var checkState = $("#checkStateFirstModal").val();
  439. var checkMsg = $("#checkMsgFirst").val();
  440. if (checkState == null || checkState == '') {
  441. Feng.info("请选择审核状态");
  442. return;
  443. }
  444. if (checkMsg == null || checkMsg == '') {
  445. Feng.info("请填写审核意见");
  446. return;
  447. }
  448. var fields = '';
  449. var files = '';
  450. $("#field_info li input").each(function (index) {
  451. if ($(this).is(":checked")) {
  452. fields = fields + $(this).val() + ",";
  453. }
  454. });
  455. $("#field_file li input").each(function (index) {
  456. if ($(this).is(":checked")) {
  457. files = files + $(this).val() + ",";
  458. }
  459. });
  460. if (checkState == 2 && fields == '' && files == '') {
  461. Feng.info("请选择可修改的字段或附件!");
  462. return;
  463. }
  464. if (locked)
  465. return;
  466. locked = true;
  467. var ajax = new $ax("/admin/talent/check", function (data) {
  468. if (data.code == 200) {
  469. // $("#firstModal").modal("hide");
  470. layer.close(i);
  471. Feng.success(data.msg);
  472. } else {
  473. Feng.error(data.msg);
  474. }
  475. locked = false;
  476. }, function (data) {
  477. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  478. locked = false;
  479. });
  480. ajax.setData({"id": $("#id").val(), "checkState": checkState, "checkMsg": checkMsg,
  481. "process": $("#process").val(), "fields": fields, "files": files})
  482. ajax.start();
  483. }
  484. TalentInfoInfoDlg.submitCheck = function () {
  485. var operation = function () {
  486. var ajax = new $ax(Feng.ctxPath + "/admin/talent/submitCheck", function (data) {
  487. if (data.code == 200) {
  488. Feng.success(data.msg);
  489. window.parent.TalentInfo.table.refresh();
  490. TalentInfoInfoDlg.close();
  491. } else {
  492. Feng.error(data.msg);
  493. }
  494. }, function (data) {
  495. Feng.error("提交审核失败!" + data.responseJSON.message + "!");
  496. });
  497. ajax.setData({"id": $("#id").val(), "process": $("#process").val(), "companyId": $("#companyId").val()});
  498. ajax.start();
  499. }
  500. Feng.confirm("一旦提交无法修改,是否审核完毕且无误?", operation);
  501. }
  502. TalentInfoInfoDlg.fieldCheckd = function (context) {
  503. if ($(context).get(0).checked) {
  504. $(context).parent().next().children()[0].checked = true;
  505. $(context).parent().next().children().eq(0).trigger("change");
  506. }
  507. }
  508. TalentInfoInfoDlg.sourceCheckd = function (context) {
  509. if ($(context).get(0).checked) {
  510. $("#talentArrangeCheckBox").attr("checked", true);
  511. $("#talentArrangeCheckBox").trigger("change");
  512. }
  513. }
  514. TalentInfoInfoDlg.download = function () {
  515. window.location.href = encodeURI(encodeURI("/common/api/downloadZip?type=1&id=" + $("#id").val()));
  516. }
  517. TalentInfoInfoDlg.creatFieldCheckModal = function () {
  518. var type = $("#type").val();
  519. if (type == 1) {
  520. return '<form id="firstCheckForm">\n' +
  521. ' <div class="form-group" style="margin: 10px;">\n' +
  522. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  523. ' <select class="form-control" id="checkStateFirstModal" onchange="TalentInfoInfoDlg.toggleField()">\n' +
  524. ' <option value="">请选择</option>\n' +
  525. ' <option value="3">审核通过</option>\n' +
  526. ' <option value="2">审核驳回</option>\n' +
  527. ' <option value="-1">审核不通过</option>\n' +
  528. ' </select>\n' +
  529. ' </div>\n' +
  530. ' <div class="form-group" style="margin: 10px;">\n' +
  531. ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
  532. ' <textarea class="form-control" id="checkMsgFirst" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  533. ' <div id="field" style="padding-top: 5px;display: none">\n' +
  534. ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
  535. ' <div id="field_info">\n' +
  536. ' <ul style="overflow:hidden;list-style:none;">\n' +
  537. ' <li style="width:10%"><input type="checkbox" value="name"><span>姓名</span></li>\n' +
  538. ' <li style="width:10%"><input type="checkbox" value="sex"><span>性别</span></li>\n' +
  539. ' <li style="width:10%"><input type="checkbox" value="birthday"><span>出生日期</span></li>\n' +
  540. ' <li style="width:10%"><input type="checkbox" value="industryField"><span>行业领域</span></li>\n' +
  541. ' <li style="width:10%"><input type="checkbox" value="address"><span>所属镇街</span></li>\n' +
  542. ' <li style="width:20.5%"><input type="checkbox" value="nationality"><span>国籍/地区</span></li>\n' +
  543. ' <li style="width:10%"><input type="checkbox" value="provinceCode"><span>籍贯省</span></li>\n' +
  544. ' <li style="width:10%"><input type="checkbox" value="cityCode"><span>籍贯市</span></li>\n' +
  545. ' <li style="width:10%"><input type="checkbox" value="countyCode"><span>籍贯县</span></li>\n' +
  546. ' <li style="width:10%"><input type="checkbox" value="cardType"><span>证件类型</span></li>\n' +
  547. ' <li style="width:10%"><input type="checkbox" value="idCard"><span>证件号码</span></li>\n' +
  548. ' <li style="width:10%"><input type="checkbox" value="nation"><span>民族</span></li>\n' +
  549. ' <li style="width:10%"><input type="checkbox" value="politics"><span>政治面貌</span></li>\n' +
  550. ' <li style="width:20.5%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>\n' +
  551. ' <li style="width:10%"><input type="checkbox" value="post"><span>职务</span></li>\n' +
  552. ' <li style="width:20.5%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>\n' +
  553. ' <li style="width:20.5%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>\n' +
  554. ' <li style="width:10%"><input type="checkbox" value="highEducation"><span>最高学历</span></li>\n' +
  555. ' <li style="width:10%"><input type="checkbox" value="graduateSchool"><span>毕业院校</span></li>\n' +
  556. ' <li style="width:10%"><input type="checkbox" value="major"><span>专业</span></li>\n' +
  557. ' <li style="width:10%"><input type="checkbox" value="title"><span>职称</span></li>\n' +
  558. ' <li style="width:20.5%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>\n' +
  559. ' <li style="width:20.5%"><input type="checkbox" value="studyAbroad"><span>是否有留学经历</span></li>\n' +
  560. ' <li style="width:10%"><input type="checkbox" value="phone"><span>手机号码</span></li>\n' +
  561. ' <li style="width:10%"><input type="checkbox" value="email"><span>电子邮箱</span></li>\n' +
  562. ' <li style="width:10%"><input type="checkbox" value="bank"><span>开户银行</span></li>\n' +
  563. ' <li style="width:20.5%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>\n' +
  564. ' <li style="width:10%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>\n' +
  565. ' <li style="width:10%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>\n' +
  566. ' <li style="width:31%"><input type="checkbox" value="breakFaith"><span>曾被相关主管部门列为失信个人</span></li>\n' +
  567. ' <li style="width:10%"><input type="checkbox" value="talentArrange"><span>人才层次</span></li>\n' +
  568. ' <li style="width:10%"><input type="checkbox" value="identifyCondition"><span>认定条件</span></li>\n' +
  569. ' <li style="width:20.5%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>\n' +
  570. ' <li style="width:20.5%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>\n' +
  571. ' <li style="width:20.5%"><input type="checkbox" value="educationAndResume"><span>教育背景及工作简历</span></li>\n' +
  572. ' <li style="width:20.5%"><input type="checkbox" value="mainHonours"><span>主要业绩及取得的荣誉</span></li>\n' +
  573. ' <li style="width:10%"><input type="checkbox" value="description"><span>备注</span></li>\n' +
  574. ' </ul>\n' +
  575. ' </div>\n' +
  576. ' <label for="checkMsg" class="control-label">可修改附件</label>\n' +
  577. ' <div id="field_file">\n' +
  578. ' </div>\n' +
  579. ' <div class="form-group" style="text-align: center">\n' +
  580. ' <button type="button" class="btn btn-primary" onclick="TalentInfoInfoDlg.checkAll()">全选</button>\n' +
  581. ' <button type="button" class="btn btn-success" onclick="TalentInfoInfoDlg.unCheckAll()">反选</button>\n' +
  582. ' </div>\n' +
  583. ' </div>\n' +
  584. ' </div>\n' +
  585. ' </form>';
  586. } else if (type == 2) {
  587. return '<form id="firstCheckForm">\n' +
  588. ' <div class="form-group" style="margin: 10px;">\n' +
  589. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  590. ' <select class="form-control" id="checkStateFirstModal" onchange="TalentInfoInfoDlg.toggleField()">\n' +
  591. ' <option value="">请选择</option>\n' +
  592. ' <option value="3">审核通过</option>\n' +
  593. ' <option value="2">审核驳回</option>\n' +
  594. ' <option value="-1">审核不通过</option>\n' +
  595. ' </select>\n' +
  596. ' </div>\n' +
  597. ' <div class="form-group" style="margin: 10px;">\n' +
  598. ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
  599. ' <textarea class="form-control" id="checkMsgFirst" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  600. ' <div id="field" style="padding-top: 5px;display: none">\n' +
  601. ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
  602. ' <div id="field_info">\n' +
  603. ' <ul>\n' +
  604. ' <li style="width:10%"><input type="checkbox" value="name"><span>姓名</span></li>\n' +
  605. ' <li style="width:10%"><input type="checkbox" value="sex"><span>性别</span></li>\n' +
  606. ' <li style="width:10%"><input type="checkbox" value="birthday"><span>出生日期</span></li>\n' +
  607. ' <li style="width:10%"><input type="checkbox" value="industryField"><span>行业领域</span></li>\n' +
  608. ' <li style="width:10%"><input type="checkbox" value="address"><span>所属镇街</span></li>\n' +
  609. ' <li style="width:20.5%"><input type="checkbox" value="nationality"><span>国籍/地区</span></li>\n' +
  610. ' <li style="width:10%"><input type="checkbox" value="provinceCode"><span>籍贯省</span></li>\n' +
  611. ' <li style="width:10%"><input type="checkbox" value="cityCode"><span>籍贯市</span></li>\n' +
  612. ' <li style="width:10%"><input type="checkbox" value="countyCode"><span>籍贯县</span></li>\n' +
  613. ' <li style="width:10%"><input type="checkbox" value="cardType"><span>证件类型</span></li>\n' +
  614. ' <li style="width:10%"><input type="checkbox" value="idCard"><span>证件号码</span></li>\n' +
  615. ' <li style="width:10%"><input type="checkbox" value="nation"><span>民族</span></li>\n' +
  616. ' <li style="width:10%"><input type="checkbox" value="politics"><span>政治面貌</span></li>\n' +
  617. ' <li style="width:20.5%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>\n' +
  618. ' <li style="width:10%"><input type="checkbox" value="post"><span>职务</span></li>\n' +
  619. ' <li style="width:20.5%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>\n' +
  620. ' <li style="width:20.5%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>\n' +
  621. ' <li style="width:10%"><input type="checkbox" value="highEducation"><span>最高学历</span></li>\n' +
  622. ' <li style="width:10%"><input type="checkbox" value="graduateSchool"><span>毕业院校</span></li>\n' +
  623. ' <li style="width:10%"><input type="checkbox" value="major"><span>专业</span></li>\n' +
  624. ' <li style="width:10%"><input type="checkbox" value="title"><span>职称</span></li>\n' +
  625. ' <li style="width:20.5%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>\n' +
  626. ' <li style="width:20.5%"><input type="checkbox" value="studyAbroad"><span>是否有留学经历</span></li>\n' +
  627. ' <li style="width:10%"><input type="checkbox" value="phone"><span>手机号码</span></li>\n' +
  628. ' <li style="width:10%"><input type="checkbox" value="email"><span>电子邮箱</span></li>\n' +
  629. ' <li style="width:10%"><input type="checkbox" value="bank"><span>开户银行</span></li>\n' +
  630. ' <li style="width:20.5%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>\n' +
  631. ' <li style="width:10%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>\n' +
  632. ' <li style="width:10%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>\n' +
  633. ' <li style="width:31%"><input type="checkbox" value="breakFaith"><span>曾被相关主管部门列为失信个人</span></li>\n' +
  634. ' <li style="width:10%"><input type="checkbox" value="talentArrange"><span>人才层次</span></li>\n' +
  635. ' <li style="width:10%"><input type="checkbox" value="identifyCondition"><span>认定条件</span></li>\n' +
  636. ' <li style="width:20.5%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>\n' +
  637. ' <li style="width:20.5%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>\n' +
  638. ' <li style="width:20.5%"><input type="checkbox" value="educationAndResume"><span>教育背景及工作简历</span></li>\n' +
  639. ' <li style="width:20.5%"><input type="checkbox" value="mainHonours"><span>主要业绩及取得的荣誉</span></li>\n' +
  640. ' <li style="width:10%"><input type="checkbox" value="description"><span>备注</span></li>\n' +
  641. ' </ul>\n' +
  642. ' </div>\n' +
  643. ' <label for="checkMsg" class="control-label">可修改附件</label>\n' +
  644. ' <div id="field_file">\n' +
  645. ' </div>\n' +
  646. ' <div class="form-group" style="text-align: center">\n' +
  647. ' <button type="button" class="btn btn-primary" onclick="TalentInfoInfoDlg.checkAll()">全选</button>\n' +
  648. ' <button type="button" class="btn btn-success" onclick="TalentInfoInfoDlg.unCheckAll()">反选</button>\n' +
  649. ' </div>\n' +
  650. ' </div>\n' +
  651. ' </div>\n' +
  652. ' </form>';
  653. }
  654. }
  655. TalentInfoInfoDlg.createNoFieldCheckModal = function () {
  656. return '<form id="commonCheckForm" >\n' +
  657. ' <div class="form-group" style="margin: 10px;">\n' +
  658. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  659. ' <select class="form-control" id="checkStateModal" >\n' +
  660. ' <option value=""></option>\n' +
  661. ' <option value="3">审核通过</option>\n' +
  662. ' <option value="2">审核驳回</option>\n' +
  663. ' </select>\n' +
  664. ' </div>\n' +
  665. ' <div class="form-group" style="margin: 10px;">\n' +
  666. ' <label for="checkMsg" class="control-label">审核意见</label>\n' +
  667. ' <textarea class="form-control" id="checkMsg" placeholder="审核状态属“审核通过”的,仅代表此步骤已操作完成,不代表用户提交的信息符合认定条件。若不符合认定条件的,请写明不符合原因。" rows="6"></textarea>\n' +
  668. ' </div>\n' +
  669. ' </form>';
  670. }
  671. $(function () {
  672. $("select:not(#checkStateModal,#checkStateFirstModal)").each(function () {
  673. //$(this).attr("disabled", "disabled");
  674. });
  675. $("input,textarea").not("#checkMsg,#checkMsgFirst").each(function () {
  676. $(this).attr("readonly", "readonly");
  677. });
  678. TalentInfoInfoDlg.typeChange();
  679. TalentInfoInfoDlg.sourceChange();
  680. $('[data-toggle="tooltip"]').tooltip();
  681. TalentInfoInfoDlg.initFileTable();
  682. //$(".ibox-content").viewer({fullscreen: false});
  683. Feng.getCheckLog("logTable", {"type": CONFIG.project_rcrd, "mainId": $("#id").val(), "typeFileId": "", "active": 1})
  684. });