talentAllowanceInfo_supple.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. var TalentAllowanceInfoSupple = {};
  2. TalentAllowanceInfoSupple.initColumn = function () {
  3. return TalentAllowanceInfoSupple.createColOneAndTwoIC();
  4. };
  5. TalentAllowanceInfoSupple.createColOneAndTwo = function (process) {
  6. return [
  7. {field: 'selectItem', radio: true},
  8. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
  9. {title: '审核单位', field: 'companyName', visible: (process == 1), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  10. {title: '单位名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  11. {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  12. {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  13. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  14. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  15. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
  16. formatter(value, row, index) {
  17. if (value == 1) {
  18. return "男";
  19. }
  20. if (value == 2) {
  21. return "女";
  22. }
  23. }
  24. },
  25. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  26. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  27. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  28. // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"130px"},
  29. {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  30. {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  31. {title: '首次提交时间', field: 'firstSubmitTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
  32. {title: '最新提交时间', field: 'newSubmitTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
  33. {title: '审核状态', field: 'checkState', visible: (process == 2), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  34. formatter(value, row, index) {
  35. if (value == -1) {
  36. return "<span class='label label-warning-light'>审核不通过</span>";
  37. }
  38. if (process == 1) {
  39. if (value == 1) {
  40. return "<span class='label'>待提交</span>"
  41. }
  42. if (value == 5) {
  43. if (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 1) {
  44. return "<span class='label label-success'>重新提交</span>";
  45. } else {
  46. return "<span class='label label-success'>待审核</span>";
  47. }
  48. }
  49. if (value == 13) {
  50. return "<span class='label label-success'>上级驳回</span>";
  51. }
  52. if (value == 10) {
  53. return "<span class='label label-danger'>已驳回</span>";
  54. }
  55. if (value == 15 || value == 20 || value == 25 || value == 30) {
  56. return "<span class='label label-primary'>已通过</span>";
  57. }
  58. } else if (process == 2) {
  59. if (value == 1 || value == 5 || value == 10) {
  60. return "<span class='label label-danger'>已驳回</span>";
  61. }
  62. if (value == 15) {
  63. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 2) {
  64. return "<span class='label label-success'>重新提交</span>"
  65. } else {
  66. return "<span class='label label-success'>待审核</span>"
  67. }
  68. }
  69. if (value == 20 || value == 30) {
  70. return "<span class='label label-primary'>已通过</span>"
  71. }
  72. if (value == 25) {
  73. return "<span class='label label-success'>上级驳回</span>";
  74. }
  75. }
  76. }
  77. },
  78. {title: '审核状态', field: 'depState', visible: (process == 1), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  79. formatter(value, row, index) {
  80. if (value == -2) {
  81. return "<span class='label'>待提交</span>";
  82. }
  83. if (value == -1) {
  84. return "<span class='label label-warning-light'>审核不通过</span>";
  85. }
  86. if (value == 1) {
  87. return "<span class='label label-success'>待审核</span>";
  88. }
  89. if (value == 2) {
  90. return "<span class='label label-danger'>已驳回</span>";
  91. }
  92. if (value == 3) {
  93. return "<span class='label label-primary'>已通过</span>"
  94. }
  95. if (value == 4) {
  96. return "<span class='label label-success'>上级驳回</span>";
  97. }
  98. if (value == 9) {
  99. return "<span class='label label-success'>重新提交</span>";
  100. }
  101. }
  102. },
  103. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  104. formatter: function (value, row, index) {
  105. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  106. "<i class=\"fa fa-book\"></i>日志" +
  107. "</span>";
  108. }
  109. }
  110. ];
  111. }
  112. TalentAllowanceInfoSupple.createColThree = function (process) {
  113. return [
  114. [
  115. {field: 'selectItem', radio: true, rowspan: 2, align: 'center', valign: 'middle'},
  116. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2},
  117. {title: '单位名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  118. {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "130px", rowspan: 2},
  119. {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  120. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", rowspan: 2},
  121. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  122. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2,
  123. formatter(value, row, index) {
  124. if (value == 1) {
  125. return "男";
  126. }
  127. if (value == 2) {
  128. return "女";
  129. }
  130. }
  131. },
  132. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  133. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  134. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  135. {title: '<span style="color: #682c90">推荐类型</span>', field: 'checkMsg', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
  136. cellStyle: function (value, row, index) {
  137. return {
  138. css: {
  139. background: 'blue'
  140. }
  141. }
  142. }
  143. },
  144. {title: '<span style="color: #fe346e;">最终类型</span>', field: 'highProcess', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
  145. cellStyle: function (value, row, index) {
  146. return {
  147. css: {
  148. background: '#fe346e'
  149. }
  150. }
  151. }
  152. },
  153. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2,
  154. formatter(value, row, index) {
  155. if (value == -1) {
  156. return "<span class='label label-warning-light'>审核不通过</span>";
  157. }
  158. if (value == 1 || value == 5 || value == 10 || value == 13 || value == 15 || value == 25) {
  159. return "<span class='label label-danger'>已驳回</span>";
  160. }
  161. if (value == 20) {
  162. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 3) {
  163. return "<span class='label label-success'>重新提交</span>"
  164. } else {
  165. return "<span class='label label-success'>待审核</span>"
  166. }
  167. }
  168. if (value == 30) {
  169. return "<span class='label label-primary'>已通过</span>"
  170. }
  171. if (value == 35) {
  172. return "<span class='label label-success'>公示驳回</span>";
  173. }
  174. }
  175. },
  176. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px", rowspan: 2,
  177. formatter: function (value, row, index) {
  178. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  179. "<i class=\"fa fa-book\"></i>日志" +
  180. "</span>";
  181. }
  182. }
  183. ], [
  184. // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"150px"},
  185. // {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  186. // {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  187. {title: '推荐津补贴类型', field: 'recommendAllowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  188. formatter(value, row, index) {
  189. if (value == null || value == "")
  190. return "<span style='color: black'>未判定</span>";
  191. if (value == 1)
  192. return "<span style='color: green'>工作津贴</span>";
  193. if (value == 2)
  194. return "<span style='color: blue'>一次性交通补贴</span>";
  195. if (value == 3)
  196. return "<span style='color: red'>不予兑现</span>";
  197. }
  198. },
  199. {title: '推荐兑现月份', field: 'recommendMonths', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  200. {title: '推荐兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  201. {title: '推荐金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  202. {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  203. formatter(value, row, index) {
  204. if (value == null || value == "")
  205. return "<span style='color: black'>未判定</span>";
  206. if (value == 1)
  207. return "<span style='color: green'>工作津贴</span>";
  208. if (value == 2)
  209. return "<span style='color: blue'>一次性交通补贴</span>";
  210. if (value == 3)
  211. return "<span style='color: red'>不予兑现</span>";
  212. }
  213. },
  214. {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  215. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  216. {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  217. ]];
  218. }
  219. TalentAllowanceInfoSupple.createColOneAndTwoIC = function () {
  220. return [
  221. {field: 'selectItem', radio: true},
  222. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
  223. {title: '医院名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  224. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  225. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  226. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
  227. formatter(value, row, index) {
  228. if (value == 1) {
  229. return "男";
  230. }
  231. if (value == 2) {
  232. return "女";
  233. }
  234. }
  235. },
  236. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  237. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  238. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  239. {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle', width: "130px"},
  240. {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  241. {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  242. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  243. formatter(value, row, index) {
  244. if (value == -1) {
  245. return "<span class='label label-warning-light'>审核不通过</span>";
  246. }
  247. if (value == 1) {
  248. return "<span class='label'>待提交</span>"
  249. }
  250. if (value == 3) {
  251. if (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 1) {
  252. return "<span class='label label-success'>重新提交</span>";
  253. }
  254. return "<span class='label'>待审核</span>"
  255. }
  256. if (value == 8) {
  257. return "<span class='label label-danger'>已驳回</span>";
  258. }
  259. if (value == 9) {
  260. return "<span class='label label-danger'>上级驳回至分院</span>";
  261. }
  262. if (value == 10) {
  263. return "<span class='label label-success'>上级驳回,待重新审核</span>";
  264. }
  265. if (value == 30 && row.publicState == 5) {
  266. return "<span class='label label-primary'>已通过</span>";
  267. }
  268. return "<span class='label label-success'>待上级审核</span>";
  269. }
  270. },
  271. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  272. formatter: function (value, row, index) {
  273. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  274. "<i class=\"fa fa-book\"></i>日志" +
  275. "</span>";
  276. }
  277. }
  278. ];
  279. }
  280. /**
  281. * 显示审核日志
  282. */
  283. TalentAllowanceInfoSupple.showLog = function (id) {
  284. layer.open({
  285. type: 1,
  286. title: "日志",
  287. fixed: false,
  288. content: '<table id="' + id + '"></table>',
  289. area: ['80%', '80%'],
  290. maxmin: true,
  291. success: function (layero, index) {
  292. Feng.getCheckLog(id, {"type": CONFIG.project_jbt, "mainId": id, "typeFileId": "", "active": 1})
  293. }
  294. });
  295. }
  296. //全选
  297. TalentAllowanceInfoSupple.checkAll = function (id) {
  298. $("#" + id + " input").each(function () {
  299. $(this).iCheck("check");
  300. })
  301. }
  302. //反选
  303. TalentAllowanceInfoSupple.unCheckAll = function (id) {
  304. $("#" + id + " input").each(function () {
  305. if (this.checked) {
  306. $(this).iCheck("uncheck");
  307. } else {
  308. $(this).iCheck("check");
  309. }
  310. })
  311. }
  312. TalentAllowanceInfoSupple.initICheck = function () {
  313. $('.icheckbox').iCheck({
  314. labelHover: false,
  315. cursor: true,
  316. checkboxClass: 'icheckbox_square-green',
  317. radioClass: 'iradio_square-greene',
  318. increaseArea: '20%'
  319. });
  320. }