talentInfo_base.js 29 KB

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