talentInfo_base.js 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. /**
  2. * 人才认定申报管理初始化
  3. */
  4. var TalentInfo = {
  5. id: "TalentInfoTable", //表格id
  6. seItem: null, //选中的条目
  7. table: null,
  8. layerIndex: -1
  9. };
  10. /**
  11. * 初始化表格的列
  12. */
  13. TalentInfo.initColumn = function () {
  14. var type = $("#type").val();
  15. var superpriv = $("#superpriv").val();
  16. var process = $("#process").val();
  17. var isShow = true;
  18. var isShowVerifyDept = false;
  19. if (type == 2) {
  20. isShow = false;
  21. }
  22. isShowVerifyDept = process == 4 && superpriv ? true : false;
  23. return [
  24. {field: 'selectItem', checkbox: true},
  25. {title: '申报年度', field: 'apply_year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  26. {title: '企业名称', field: 'enterprise_name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  27. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  28. formatter: function (value, row, index) {
  29. if (row.sex == 1) {
  30. return value + '<span style="color:#6495ED">【男】</span>';
  31. }
  32. if (row.sex == 2) {
  33. return value + '<span style="color:#FF82AB">【女】</span>';
  34. }
  35. }
  36. },
  37. {title: '单位标签', field: 'enterprise_tag', visible: isShow, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
  38. {title: '证件号码', field: 'card_number', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  39. {title: '认定层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  40. {title: '认定条件', field: 'talentConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "150px"},
  41. {title: '审核部门', field: 'verifyDepts', visible: isShowVerifyDept, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "150px",
  42. formatter: function (value, row, index) {
  43. var html = "";
  44. for (var i in value) {
  45. let checkState = "";
  46. if (value[i].active == 1) {
  47. if (value[i].checkState == 9) {
  48. checkState = "<span style='color:#ff0000;'>审核驳回</span>";
  49. }
  50. if (value[i].checkState == 12) {
  51. checkState = "<span style='color:green;'>审核通过</span>";
  52. }
  53. } else {
  54. checkState = "<span style='color:gray;'>待审核</span>";
  55. }
  56. html += "<p style='margin:0 auto;'>" + value[i].name + "(" + checkState + ")</p>"
  57. }
  58. return html
  59. }
  60. },
  61. {title: '首次提交时间', field: 'first_submit_time', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  62. {title: '最新提交时间', field: 'new_submit_time', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  63. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  64. formatter: function (value, row, index) {
  65. if (typeof row.deptCheckState != "undefined") {
  66. if ((row.deptActive == 0 && row.realState == 10) || !row.deptActive) {
  67. if (row.resubmit) {
  68. return "<span class='label label-success'>待部门并审(重新提交)</span>";
  69. } else {
  70. return "<span class='label label-success'>待部门并审(首次提交)</span>";
  71. }
  72. }
  73. if (row.deptActive == 1 && row.newState == 12) {
  74. return "<span class='label label-primary'>部门并审通过</span>";
  75. }
  76. if (row.deptActive == 1 && row.newState == 9) {
  77. return "<span class='label label-danger'>部门并审驳回</span>";
  78. }
  79. } else {
  80. if (value == 2) {
  81. if (row.lastState == 4) {
  82. return "<span class='label label-success'>待审核(重新提交)</span>"
  83. }
  84. if (row.realState == 6) {
  85. return "<span class='label label-danger'>复审驳回</span>"
  86. }
  87. return "<span class='label label-success'>待审核</span>"
  88. }
  89. if (value == 3) {
  90. return "<span class='label label-success'>待复审</span>"
  91. }
  92. if (value == 5) {
  93. return "<span class='label label-primary'>复审通过</span>"
  94. }
  95. if (value == 10) {
  96. if (process == 3) {
  97. if (row.pass_dept_check == 1) {
  98. return "<span class='label label-primary'>初审通过(待复审)</span>"
  99. }
  100. return "<span class='label label-primary'>初审通过(待部门并审)</span>"
  101. }
  102. if (process == 4) {
  103. if (row.resubmit) {
  104. return "<span class='label label-success'>待部门并审(重新提交)</span>";
  105. } else {
  106. return "<span class='label label-success'>待部门并审(首次提交)</span>";
  107. }
  108. }
  109. if (row.resubmit) {
  110. return "<span class='label label-success'>待复审(重新提交)</span>";
  111. } else {
  112. return "<span class='label label-success'>待复审(首次提交)</span>";
  113. }
  114. }
  115. if (value == 8) {
  116. if (row.realState == 11) {
  117. return "<span class='label label-danger'>初审驳回</span>"
  118. } else {
  119. return "<span class='label label-success'>保存未提交</span>"
  120. }
  121. }
  122. if (value == 9) {
  123. if (row.realState == 13) {
  124. if (process == 3) {
  125. return "<span class='label label-danger'>待初审(部门并审驳回)</span>";
  126. }
  127. return "<span class='label label-danger'>部门并审驳回</span>";
  128. } else if (row.realState == 15) {
  129. if (process == 3) {
  130. return "<span class='label label-danger'>待初审(复审驳回)</span>";
  131. }
  132. return "<span class='label label-danger'>复审驳回</span>";
  133. } else {
  134. if (row.lastState == 11) {
  135. return "<span class='label label-success'>待初审(重新提交)</span>"
  136. }
  137. return "<span class='label label-success'>待初审(首次提交)</span>"
  138. }
  139. }
  140. if (value == -2) {
  141. return "<span class='label label-danger'>初审不通过</span>"
  142. }
  143. if (value == 16) {
  144. return "<span class='label label-danger'>复审不通过</span>"
  145. }
  146. if (value == -1 || value == 7) {
  147. return "<span class='label label-danger'>审核不通过</span>"
  148. }
  149. if (value == 4) {
  150. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 1) {
  151. return "<span class='label label-success'>上级驳回</span>"
  152. } else {
  153. return "<span class='label label-success'>待审核</span>"
  154. }
  155. }
  156. if (value == 11) {
  157. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 3) {
  158. return "<span class='label label-success'>上级驳回</span>"
  159. } else {
  160. return "<span class='label label-success'>待审核</span>"
  161. }
  162. }
  163. if (value == 12) {
  164. if (process == 4) {
  165. return "<span class='label label-primary'>部门并审通过</span>";
  166. }
  167. if (process == 3) {
  168. return "<span class='label label-primary'>待复审(部门并审通过)</span>";
  169. }
  170. if (row.resubmit) {
  171. return "<span class='label label-success'>待复审(重新提交)</span>";
  172. } else {
  173. return "<span class='label label-success'>待复审(首次提交)</span>";
  174. }
  175. }
  176. if (value == 13) {
  177. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 4) {
  178. return "<span class='label label-danger'>上级驳回</span>"
  179. } else {
  180. return "<span class='label label-success'>待审核</span>"
  181. }
  182. }
  183. if (value == 14) {
  184. return "<span class='label label-primary'>复审通过</span>"
  185. }
  186. if (value == 15) {
  187. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 5) {
  188. return "<span class='label label-success'>上级驳回</span>"
  189. } else {
  190. return "<span class='label label-success'>待审核</span>"
  191. }
  192. }
  193. }
  194. }
  195. },
  196. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  197. formatter: function (value, row, index) {
  198. return "<span class='label label-success' onclick=\"TalentInfo.showLog('" + value + "')\" >" +
  199. "<i class=\"fa fa-book\"></i>日志" +
  200. "</span>";
  201. }
  202. }
  203. ];
  204. };
  205. /**
  206. * 检查是否选中
  207. */
  208. TalentInfo.check = function () {
  209. var selected = $('#' + this.id).bootstrapTable('getSelections');
  210. if (selected.length != 1) {
  211. Feng.info("请先选中表格中的某一记录!");
  212. return false;
  213. } else {
  214. TalentInfo.seItem = selected[0];
  215. return true;
  216. }
  217. };
  218. TalentInfo.openCheckTalentInfo = function () {
  219. var title = $("#title").val();
  220. var process = $("#process").val();
  221. if (this.check()) {
  222. var index = layer.open({
  223. type: 2,
  224. title: '人才认定' + " - " + title,
  225. area: ['800px', '420px'], //宽高
  226. fix: false, //不固定
  227. maxmin: true,
  228. shade: 0,
  229. content: '/admin/talent/common_check/id/' + TalentInfo.seItem.id + '/process/' + process,
  230. btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;保存未提交', '<i class="fa fa-save"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  231. btnAlign: 'c',
  232. btn1: function (index, layero) {
  233. var obj = layero.find("iframe")[0].contentWindow;
  234. obj.TalentInfoInfoDlg.showFirstCheckModal();
  235. }, btn2: function (index, layero) {
  236. var obj = layero.find("iframe")[0].contentWindow;
  237. obj.TalentInfoInfoDlg.submitCheck();
  238. return false;
  239. }
  240. });
  241. layer.full(index);
  242. TalentInfo.layerIndex = index;
  243. }
  244. }
  245. /**
  246. * 打开查看人才认定-初级审核详情
  247. */
  248. TalentInfo.openTalentInfoDetail = function () {
  249. if (this.check()) {
  250. var index = layer.open({
  251. type: 2,
  252. title: '人才认定申报详情',
  253. area: ['800px', '420px'], //宽高
  254. fix: false, //不固定
  255. maxmin: true,
  256. content: Feng.ctxPath + '/talentInfo/talentInfo_toDetail/' + TalentInfo.seItem.id + '/1'
  257. });
  258. layer.full(index);
  259. TalentInfo.layerIndex = index;
  260. }
  261. };
  262. TalentInfo.cancleFirstCheck = function () {
  263. if (this.check()) {
  264. var index = layer.open({
  265. type: 1,
  266. title: '撤销初审失败',
  267. area: ['800px', '420px'], //宽高
  268. fix: false, //不固定
  269. maxmin: true,
  270. content: '<form >\n' +
  271. ' <div class="form-group" style="margin: 10px;">\n' +
  272. ' <label for="checkMsg" class="control-label">撤销原因</label>\n' +
  273. ' <textarea class="form-control" id="msg" rows="6"></textarea>\n' +
  274. ' </div>\n' +
  275. ' </form>',
  276. btn: ['<i class="fa fa-save layui-bg-green"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  277. yes: function (index, layero) {
  278. var cancleMsg = $("#msg").val();
  279. if (Feng.isEmptyStr(cancleMsg)) {
  280. Feng.error("撤销原因不能为空");
  281. return;
  282. }
  283. var operation = function () {
  284. var ajax = new $ax(Feng.ctxPath + "/admin/talent/cancleFirstCheck", function (data) {
  285. if (data.code == 200) {
  286. Feng.success(data.msg);
  287. TalentInfo.table.refresh();
  288. layer.close(index);
  289. } else {
  290. Feng.error(data.msg);
  291. }
  292. locked = false;
  293. }, function (data) {
  294. Feng.error("撤销失败!" + data.responseJSON.message + "!");
  295. locked = false;
  296. });
  297. ajax.setData({"id": TalentInfo.seItem.id, "checkMsg": cancleMsg})
  298. ajax.start();
  299. };
  300. Feng.confirm("一旦提交无法修改,确定要撤销吗?", operation);
  301. }
  302. });
  303. }
  304. }
  305. TalentInfo.cancleThirdCheck = function () {
  306. if (this.check()) {
  307. var index = layer.open({
  308. type: 1,
  309. title: '撤销复核',
  310. area: ['800px', '420px'], //宽高
  311. fix: false, //不固定
  312. maxmin: true,
  313. content: '<form >\n' +
  314. ' <div class="form-group" style="margin: 10px;">\n' +
  315. ' <label for="checkMsg" class="control-label">撤销原因</label>\n' +
  316. ' <textarea class="form-control" id="msg" rows="6"></textarea>\n' +
  317. ' </div>\n' +
  318. ' </form>',
  319. btn: ['<i class="fa fa-save layui-bg-green"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  320. yes: function (index, layero) {
  321. var cancleMsg = $("#msg").val();
  322. if (Feng.isEmptyStr(cancleMsg)) {
  323. Feng.error("撤销原因不能为空");
  324. return;
  325. }
  326. var operation = function () {
  327. var ajax = new $ax(Feng.ctxPath + "/admin/talent/cancleThirdCheck", function (data) {
  328. if (data.code == 200) {
  329. Feng.success(data.msg);
  330. TalentInfo.table.refresh();
  331. layer.close(index);
  332. } else {
  333. Feng.error(data.msg);
  334. }
  335. locked = false;
  336. }, function (data) {
  337. Feng.error("撤销复核失败!" + data.responseJSON.message + "!");
  338. locked = false;
  339. });
  340. ajax.setData({"id": TalentInfo.seItem.id, "checkMsg": cancleMsg})
  341. ajax.start();
  342. };
  343. Feng.confirm("一旦提交无法修改,确定要撤销吗?", operation);
  344. }
  345. });
  346. }
  347. }
  348. /**
  349. * 修改驳回的字段及附件
  350. */
  351. TalentInfo.updateFieldsAndFiles = function () {
  352. if (this.check()) {
  353. var ajax = new $ax("/admin/talent/findFieldsAndFiles?id=" + TalentInfo.seItem.id, function (data) {
  354. if (data.code == 200) {
  355. layer.open({
  356. type: 1,
  357. id: "neewFieldFormModel",
  358. title: '修改',
  359. area: ['800px', '450px'], //宽高
  360. fix: false, //不固定
  361. shade: 0,
  362. maxmin: true,
  363. content: TalentInfo.creatFieldCheckModal(),
  364. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  365. btnAlign: 'c',
  366. zIndex: layer.zIndex,
  367. success: function (layero, index) {
  368. var html1 = '';
  369. if (typeof data.fieldList != "undefined" && data.fieldList.length > 0) {
  370. for (var key in data.fieldList) {
  371. html1 += '<li style="float:left;margin:0 10px 10px 0;"><input type="checkbox" value="' + data.fieldList[key]["key"] + '"><span>' + data.fieldList[key]["value"] + '</span></li>';
  372. }
  373. }
  374. var html2 = '';
  375. for (var key in data.fileList) {
  376. html2 = html2 + '<ul><li style="width: 100%"><input type="checkbox" value="' + data.fileList[key].id + '"><span>' + data.fileList[key].name + '</span></li></ul>';
  377. }
  378. $("#firstCheckForm #field_info ul").css("overflow", "hidden").html(html1);
  379. $("#field_file").css("overflow", "hidden").empty().append(html2);
  380. //$("#field_file").empty().append(html);
  381. if (data.select.fields != null && data.select.fields != '') {
  382. $("#firstCheckForm #field_info li input").each(function () {
  383. if (data.select.fields.indexOf($(this).val()) != -1) {
  384. this.checked = true;
  385. }
  386. });
  387. }
  388. if (data.select.files != null && data.select.files != '') {
  389. $("#field_file input").each(function () {
  390. if (data.select.files.indexOf($(this).val()) != -1) {
  391. this.checked = true;
  392. }
  393. });
  394. }
  395. },
  396. yes: function (index, layero) {
  397. TalentInfo.submitFieldsAndFiles(index, data.id);
  398. }
  399. });
  400. } else {
  401. Feng.error(data.msg);
  402. }
  403. }, function (data) {
  404. Feng.error("查询失败!" + data.responseJSON.message + "!");
  405. });
  406. ajax.start();
  407. }
  408. }
  409. /**
  410. * 修改提交
  411. * @param index
  412. * @param id
  413. */
  414. TalentInfo.submitFieldsAndFiles = function (index, id) {
  415. var fields = '';
  416. var files = '';
  417. $("#firstCheckForm #field_info li input").each(function (index) {
  418. if ($(this).is(":checked")) {
  419. fields = fields + $(this).val() + ",";
  420. }
  421. });
  422. $("#field_file li input").each(function (index) {
  423. if ($(this).is(":checked")) {
  424. files = files + $(this).val() + ",";
  425. }
  426. });
  427. if (fields == '' && files == '') {
  428. Feng.info("请选择可修改的字段或附件!");
  429. return;
  430. }
  431. var ajax = new $ax("/admin/talent/updateFieldsAndFiles", function (data) {
  432. if (data.code == 200) {
  433. layer.close(index);
  434. Feng.success(data.msg);
  435. } else {
  436. Feng.error(data.msg);
  437. }
  438. }, function (data) {
  439. Feng.error("修改失败!" + data.responseJSON.message + "!");
  440. });
  441. ajax.setData({"id": id, "fields": fields, "files": files})
  442. ajax.start();
  443. }
  444. /**
  445. * 审核不通过
  446. */
  447. TalentInfo.setNotPass = function () {
  448. var selecteds = $('#' + this.id).bootstrapTable('getSelections');
  449. if (selecteds.length == 0) {
  450. Feng.info("请选择需要设置审核不通过的行");
  451. return;
  452. }
  453. var ids = "";
  454. for (var key in selecteds) {
  455. ids = ids + selecteds[key].id + ",";
  456. }
  457. ids = ids.substring(0, ids.length - 1);
  458. layer.open({
  459. type: 1,
  460. id: "notPassModal",
  461. title: '修改',
  462. area: ['800px', '450px'], //宽高
  463. fix: false, //不固定
  464. shade: 0,
  465. maxmin: true,
  466. content: '<form id="checkNotPass">\n' +
  467. ' <div class="form-group" style="margin: 10px;">\n' +
  468. ' <label for="checkMsgNotPass" class="control-label" >审核不通过原因</label>\n' +
  469. ' <textarea class="form-control" id="checkMsgNotPass" placeholder="此功能适用于未在申报提交截止时间内提交的数据" rows="6"></textarea>\n' +
  470. ' </div>\n' +
  471. ' </form>',
  472. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  473. btnAlign: 'c',
  474. zIndex: layer.zIndex,
  475. yes: function (index, layero) {
  476. var checkMsg = $("#checkMsgNotPass").val();
  477. if (Feng.isEmptyStr(checkMsg)) {
  478. Feng.info("请填写审核不通过原因");
  479. return;
  480. }
  481. var operation = function () {
  482. var ajax = new $ax("/admin/talent/cancel_verify", function (data) {
  483. if (data.code == 200) {
  484. Feng.success(data.msg);
  485. TalentInfo.table.refresh();
  486. layer.close(index);
  487. } else {
  488. Feng.error(data.msg);
  489. }
  490. }, function (data) {
  491. Feng.error("设置审核不通过失败!" + data.responseJSON.message + "!");
  492. });
  493. ajax.set("ids", ids);
  494. ajax.set("msg", checkMsg);
  495. ajax.start();
  496. }
  497. Feng.confirm("一旦提交无法修改,确定设置所选数据为审核不通过?", operation);
  498. }
  499. });
  500. }
  501. TalentInfo.creatFieldCheckModal = function () {
  502. return '<form id="firstCheckForm">\n' +
  503. ' <div class="form-group" style="margin: 10px;">\n' +
  504. ' <div >\n' +
  505. ' <label for="checkMsg" class="control-label">可修改字段</label>\n' +
  506. ' <div id="field_info">\n' +
  507. ' <ul>\n' +
  508. ' <li style="width:10%"><input type="checkbox" value="name"><span>姓名</span></li>\n' +
  509. ' <li style="width:10%"><input type="checkbox" value="sex"><span>性别</span></li>\n' +
  510. ' <li style="width:10%"><input type="checkbox" value="birthday"><span>出生日期</span></li>\n' +
  511. ' <li style="width:10%"><input type="checkbox" value="nationality"><span>国籍/地区</span></li>\n' +
  512. ' <li style="width:10%"><input type="checkbox" value="provinceCode" onchange="TalentInfo.fieldCheckd(this)"><span>籍贯省</span></li>\n' +
  513. ' <li style="width:10%"><input type="checkbox" value="cityCode" onchange="TalentInfo.fieldCheckd(this)"><span>籍贯市</span></li>\n' +
  514. ' <li style="width:10%"><input type="checkbox" value="countyCode"><span>籍贯县</span></li>\n' +
  515. ' <li style="width:10%"><input type="checkbox" value="nation"><span>民族</span></li>\n' +
  516. ' <li style="width:10%"><input type="checkbox" value="politics"><span>政治面貌</span></li>\n' +
  517. ' <li style="width:10%"><input type="checkbox" value="cardType"><span>证件类型</span></li>\n' +
  518. ' <li style="width:10%"><input type="checkbox" value="idCard"><span>证件号码</span></li>\n' +
  519. ' <li style="width:20.5%"><input type="checkbox" value="firstInJJTime"><span>首次来晋工作时间</span></li>\n' +
  520. ' <li style="width:10%"><input type="checkbox" value="source" onchange="TalentInfo.sourceCheckd(this)"><span>申报来源</span></li>\n' +
  521. ' <li style="width:20.5%"><input type="checkbox" value="ourCitySource"><span>公布入选来源</span></li>\n' +
  522. ' <li style="width:20.5%"><input type="checkbox" value="fromCity"><span>入选来源县市</span></li>\n' +
  523. ' <li style="width:20.5%"><input type="checkbox" value="qzBatch"><span>入选名单的文件号及批次</span></li>\n' +
  524. ' <li style="width:31%"><input type="checkbox" value="certificateStartTime"><span>泉州高层次人才证书发证日期</span></li>\n' +
  525. ' <li style="width:31%"><input type="checkbox" value="qzgccrcActiveTime"><span>泉州高层次人才证书的有效期</span></li>\n' +
  526. ' <li style="width:10%"><input type="checkbox" id="talentArrangeCheckBox" value="talentArrange" onchange="TalentInfo.fieldCheckd(this)"><span>人才层次</span></li>\n' +
  527. ' <li style="width:10%"><input type="checkbox" value="identifyCondition"><span>认定条件</span></li>\n' +
  528. ' <li style="width:20.5%"><input type="checkbox" value="identifyConditionName"><span>认定条件名称</span></li>\n' +
  529. ' <li style="width:20.5%"><input type="checkbox" value="identifyGetTime"><span>认定条件证书取得时间</span></li>\n' +
  530. ' <li style="width:10%"><input type="checkbox" value="talentType"><span>人才标签</span></li>\n' +
  531. ' <li style="width:31%"><input type="checkbox" value="letterTime"><span>首次来晋行政介绍信时间</span></li>\n' +
  532. ' <li style="width:10%"><input type="checkbox" value="introductionMode"><span>引进方式</span></li>\n' +
  533. ' <li style="width:20.5%"><input type="checkbox" value="entryTime"><span>本单位入职时间</span></li>\n' +
  534. ' <li style="width:10%"><input type="checkbox" value="post"><span>职务</span></li>\n' +
  535. ' <li style="width:20.5%"><input type="checkbox" value="startTime"><span>工作合同开始时间</span></li>\n' +
  536. ' <li style="width:20.5%"><input type="checkbox" value="endTime"><span>工作合同结束时间</span></li>\n' +
  537. ' <li style="width:20.5%"><input type="checkbox" value="lastYearWages"><span>上一年度年薪</span></li>\n' +
  538. ' <li style="width:10%"><input type="checkbox" value="highEducation"><span>最高学历</span></li>\n' +
  539. ' <li style="width:10%"><input type="checkbox" value="graduateSchool"><span>毕业院校</span></li>\n' +
  540. ' <li style="width:10%"><input type="checkbox" value="major"><span>专业</span></li>\n' +
  541. ' <li style="width:10%"><input type="checkbox" value="title"><span>职称</span></li>\n' +
  542. ' <li style="width:20.5%"><input type="checkbox" value="professionalQualifications"><span>国家职业资格</span></li>\n' +
  543. ' <li style="width:20.5%"><input type="checkbox" value="studyAbroad"><span>是否有留学经历</span></li>\n' +
  544. ' <li style="width:10%"><input type="checkbox" value="phone"><span>手机号码</span></li>\n' +
  545. ' <li style="width:10%"><input type="checkbox" value="email"><span>电子邮箱</span></li>\n' +
  546. ' <li style="width:10%"><input type="checkbox" value="bank"><span>开户银行</span></li>\n' +
  547. ' <li style="width:20.5%"><input type="checkbox" value="bankNetwork"><span>开户银行网点</span></li>\n' +
  548. ' <li style="width:10%"><input type="checkbox" value="bankNumber"><span>银行行号</span></li>\n' +
  549. ' <li style="width:10%"><input type="checkbox" value="bankAccount"><span>银行账号</span></li>\n' +
  550. ' <li style="width:31%"><input type="checkbox" value="breakFaith"><span>曾被相关主管部门列为失信个人</span></li>\n' +
  551. ' <li style="width:20.5%"><input type="checkbox" value="educationAndResume"><span>教育背景及工作简历</span></li>\n' +
  552. ' <li style="width:20.5%"><input type="checkbox" value="mainHonours"><span>主要业绩及取得的荣誉</span></li>\n' +
  553. ' </ul>\n' +
  554. ' </div>\n' +
  555. ' <label for="checkMsg" class="control-label">可修改附件</label>\n' +
  556. ' <div id="field_file">\n' +
  557. ' </div>\n' +
  558. ' <div class="form-group" style="text-align: center">\n' +
  559. ' <button type="button" class="btn btn-primary" onclick="TalentInfo.checkAll()">全选</button>\n' +
  560. ' <button type="button" class="btn btn-success" onclick="TalentInfo.unCheckAll()">反选</button>\n' +
  561. ' </div>\n' +
  562. ' </div>\n' +
  563. ' </div>\n' +
  564. ' </form>';
  565. }
  566. TalentInfo.fieldCheckd = function (context) {
  567. if ($(context).get(0).checked) {
  568. $(context).parent().next().children()[0].checked = true;
  569. $(context).parent().next().children().eq(0).trigger("change");
  570. }
  571. }
  572. TalentInfo.sourceCheckd = function (context) {
  573. if ($(context).get(0).checked) {
  574. $("#talentArrangeCheckBox").attr("checked", true);
  575. $("#talentArrangeCheckBox").trigger("change");
  576. }
  577. }
  578. TalentInfo.getPhones = function () {
  579. var process = $("#process").val();
  580. var ajax = new $ax("/admin/talent/getPhones/process/" + process, function (data) {
  581. if (data.code == 200) {
  582. layer.open({
  583. type: 1,
  584. title: "手机号码",
  585. area: ['830px', '300px'], //宽高
  586. fix: false, //不固定
  587. maxmin: true,
  588. content: "<span style='word-break:break-all'>" + data.obj + "</span>"
  589. });
  590. } else {
  591. Feng.info(data.msg);
  592. }
  593. }, function (data) {
  594. Feng.error("操作失败!");
  595. });
  596. ajax.setData(TalentInfo.formParams());
  597. ajax.start();
  598. }
  599. TalentInfo.getEnterprisePhones = function () {
  600. var process = $("#process").val();
  601. var ajax = new $ax("/admin/talent/getEnterprisePhones/process/" + process, function (data) {
  602. if (data.code == 200) {
  603. layer.open({
  604. type: 1,
  605. title: "手机号码",
  606. area: ['830px', '300px'], //宽高
  607. fix: false, //不固定
  608. maxmin: true,
  609. content: "<span style='word-break:break-all'>" + data.obj + "</span>"
  610. });
  611. } else {
  612. Feng.info(data.msg);
  613. }
  614. }, function (data) {
  615. Feng.error("操作失败!");
  616. });
  617. ajax.setData(TalentInfo.formParams());
  618. ajax.start();
  619. }
  620. $(function () {
  621. var defaultColunms = TalentInfo.initColumn();
  622. var process = $("#process").val();
  623. var table = new BSTable(TalentInfo.id, "/admin/talent/base_verify_list/process/" + process, defaultColunms);
  624. table.setPaginationType("server");
  625. table.setSingleSelect(false);
  626. table.setOnDblClickRow(function () {
  627. TalentInfo.openCheckTalentInfo();
  628. });
  629. TalentInfo.table = table.init();
  630. TalentInfo.init();
  631. // var defaultColunms = TalentInfo.initColumn();
  632. // var table = new KDTable(TalentInfo.id, "/talentInfo/list/1", defaultColunms);
  633. // table.setPaginationType("server");
  634. // TalentInfo.table = table.init();
  635. });