talentAllowanceInfo_supple.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. var TalentAllowanceInfoSupple = {};
  2. TalentAllowanceInfoSupple.initColumn = function (process) {
  3. var type = $("#type").val();
  4. if (type == 1) {
  5. if (process == 1 || process == 2)
  6. return TalentAllowanceInfoSupple.createColOneAndTwo(process);
  7. else if (process == 3)
  8. return TalentAllowanceInfoSupple.createColThree(process);
  9. else if (process == 4)
  10. return TalentAllowanceInfoSupple.createFour(process);
  11. } else {
  12. if (process == 1 || process == 2)
  13. return TalentAllowanceInfoSupple.createColOneAndTwoIC(process);
  14. else if (process == 3)
  15. return TalentAllowanceInfoSupple.createColThreeIC(process);
  16. else if (process == 4)
  17. return TalentAllowanceInfoSupple.createFourIC(process);
  18. }
  19. };
  20. TalentAllowanceInfoSupple.createColOneAndTwo = function (process) {
  21. return [
  22. {field: 'selectItem', radio: true},
  23. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
  24. {title: '审核单位', field: 'companyName', visible: (process == 1), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  25. {title: '单位名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  26. {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  27. {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  28. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  29. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  30. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
  31. formatter(value, row, index) {
  32. if (value == 1) {
  33. return "男";
  34. }
  35. if (value == 2) {
  36. return "女";
  37. }
  38. }
  39. },
  40. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  41. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  42. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  43. // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"130px"},
  44. {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  45. {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  46. {title: '首次提交时间', field: 'firstSubmitTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
  47. {title: '最新提交时间', field: 'newSubmitTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
  48. {title: '审核状态', field: 'checkState', visible: (process == 2), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  49. formatter(value, row, index) {
  50. if (value == -1) {
  51. return "<span class='label label-warning-light'>审核不通过</span>";
  52. }
  53. if (process == 1) {
  54. if (value == 1) {
  55. return "<span class='label'>待提交</span>"
  56. }
  57. if (value == 5) {
  58. if (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 1) {
  59. return "<span class='label label-success'>重新提交</span>";
  60. } else {
  61. return "<span class='label label-success'>待审核</span>";
  62. }
  63. }
  64. if (value == 13) {
  65. return "<span class='label label-success'>上级驳回</span>";
  66. }
  67. if (value == 10) {
  68. return "<span class='label label-danger'>已驳回</span>";
  69. }
  70. if (value == 15 || value == 20 || value == 25 || value == 30) {
  71. return "<span class='label label-primary'>已通过</span>";
  72. }
  73. } else if (process == 2) {
  74. if (value == 1 || value == 5 || value == 10) {
  75. return "<span class='label label-danger'>已驳回</span>";
  76. }
  77. if (value == 15) {
  78. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 2) {
  79. return "<span class='label label-success'>重新提交</span>"
  80. } else {
  81. return "<span class='label label-success'>待审核</span>"
  82. }
  83. }
  84. if (value == 20 || value == 30) {
  85. return "<span class='label label-primary'>已通过</span>"
  86. }
  87. if (value == 25) {
  88. return "<span class='label label-success'>上级驳回</span>";
  89. }
  90. }
  91. }
  92. },
  93. {title: '审核状态', field: 'depState', visible: (process == 1), align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  94. formatter(value, row, index) {
  95. if (value == -2) {
  96. return "<span class='label'>待提交</span>";
  97. }
  98. if (value == -1) {
  99. return "<span class='label label-warning-light'>审核不通过</span>";
  100. }
  101. if (value == 1) {
  102. return "<span class='label label-success'>待审核</span>";
  103. }
  104. if (value == 2) {
  105. return "<span class='label label-danger'>已驳回</span>";
  106. }
  107. if (value == 3) {
  108. return "<span class='label label-primary'>已通过</span>"
  109. }
  110. if (value == 4) {
  111. return "<span class='label label-success'>上级驳回</span>";
  112. }
  113. if (value == 9) {
  114. return "<span class='label label-success'>重新提交</span>";
  115. }
  116. }
  117. },
  118. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  119. formatter: function (value, row, index) {
  120. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  121. "<i class=\"fa fa-book\"></i>日志" +
  122. "</span>";
  123. }
  124. }
  125. ];
  126. }
  127. TalentAllowanceInfoSupple.createColThree = function (process) {
  128. return [
  129. [
  130. {field: 'selectItem', radio: true, rowspan: 2, align: 'center', valign: 'middle'},
  131. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2},
  132. {title: '单位名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  133. {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "130px", rowspan: 2},
  134. {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  135. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", rowspan: 2},
  136. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  137. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2,
  138. formatter(value, row, index) {
  139. if (value == 1) {
  140. return "男";
  141. }
  142. if (value == 2) {
  143. return "女";
  144. }
  145. }
  146. },
  147. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  148. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  149. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  150. {title: '<span style="color: #682c90">推荐类型</span>', field: 'checkMsg', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
  151. cellStyle: function (value, row, index) {
  152. return {
  153. css: {
  154. background: 'blue'
  155. }
  156. }
  157. }
  158. },
  159. {title: '<span style="color: #fe346e;">最终类型</span>', field: 'highProcess', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
  160. cellStyle: function (value, row, index) {
  161. return {
  162. css: {
  163. background: '#fe346e'
  164. }
  165. }
  166. }
  167. },
  168. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2,
  169. formatter(value, row, index) {
  170. if (value == -1) {
  171. return "<span class='label label-warning-light'>审核不通过</span>";
  172. }
  173. if (value == 1 || value == 5 || value == 10 || value == 13 || value == 15 || value == 25) {
  174. return "<span class='label label-danger'>已驳回</span>";
  175. }
  176. if (value == 20) {
  177. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 3) {
  178. return "<span class='label label-success'>重新提交</span>"
  179. } else {
  180. return "<span class='label label-success'>待审核</span>"
  181. }
  182. }
  183. if (value == 30) {
  184. return "<span class='label label-primary'>已通过</span>"
  185. }
  186. if (value == 35) {
  187. return "<span class='label label-success'>公示驳回</span>";
  188. }
  189. }
  190. },
  191. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px", rowspan: 2,
  192. formatter: function (value, row, index) {
  193. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  194. "<i class=\"fa fa-book\"></i>日志" +
  195. "</span>";
  196. }
  197. }
  198. ], [
  199. // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"150px"},
  200. // {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  201. // {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  202. {title: '推荐津补贴类型', field: 'recommendAllowanceType', 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: 'recommendMonths', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  215. {title: '推荐兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  216. {title: '推荐金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  217. {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  218. formatter(value, row, index) {
  219. if (value == null || value == "")
  220. return "<span style='color: black'>未判定</span>";
  221. if (value == 1)
  222. return "<span style='color: green'>工作津贴</span>";
  223. if (value == 2)
  224. return "<span style='color: blue'>一次性交通补贴</span>";
  225. if (value == 3)
  226. return "<span style='color: red'>不予兑现</span>";
  227. }
  228. },
  229. {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  230. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  231. {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  232. ]];
  233. }
  234. TalentAllowanceInfoSupple.createColOneAndTwoIC = function (process) {
  235. return [
  236. {field: 'selectItem', radio: true},
  237. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
  238. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  239. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  240. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  241. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
  242. formatter(value, row, index) {
  243. if (value == 1) {
  244. return "男";
  245. }
  246. if (value == 2) {
  247. return "女";
  248. }
  249. }
  250. },
  251. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  252. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  253. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  254. {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle', width: "130px"},
  255. {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  256. {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  257. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  258. formatter(value, row, index) {
  259. if (value == -1) {
  260. return "<span class='label label-warning-light'>审核不通过</span>";
  261. }
  262. if (process == 1) {
  263. if (value == 1) {
  264. return "<span class='label'>待提交</span>"
  265. }
  266. if (value == 5) {
  267. if (Feng.isNotEmptyStr(row.highProcess) && row.highProcess >= 1) {
  268. return "<span class='label label-success'>重新提交</span>";
  269. } else {
  270. return "<span class='label label-success'>待审核</span>";
  271. }
  272. }
  273. if (value == 23) {
  274. return "<span class='label label-success'>上级驳回</span>";
  275. }
  276. if (value == 10) {
  277. return "<span class='label label-danger'>已驳回</span>";
  278. }
  279. if (value == 13) {
  280. return "<span class='label label-danger'>上级驳回</span>";
  281. }
  282. if (value == 15 || value == 20 || value == 30) {
  283. return "<span class='label label-primary'>已通过</span>";
  284. }
  285. } else if (process == 2) {
  286. if (value == 1 || value == 5 || value == 10) {
  287. return "<span class='label label-danger'>已驳回</span>";
  288. }
  289. if (value == 15) {
  290. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 2) {
  291. return "<span class='label label-success'>重新提交</span>"
  292. } else {
  293. return "<span class='label label-success'>待审核</span>"
  294. }
  295. }
  296. if (value == 20 || value == 30) {
  297. return "<span class='label label-primary'>已通过</span>"
  298. }
  299. if (value == 25) {
  300. return "<span class='label label-success'>上级驳回</span>";
  301. }
  302. }
  303. }
  304. },
  305. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  306. formatter: function (value, row, index) {
  307. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  308. "<i class=\"fa fa-book\"></i>日志" +
  309. "</span>";
  310. }
  311. }
  312. ];
  313. }
  314. TalentAllowanceInfoSupple.createColThreeIC = function (process) {
  315. return [
  316. {field: 'selectItem', radio: true},
  317. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
  318. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  319. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  320. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  321. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
  322. formatter(value, row, index) {
  323. if (value == 1) {
  324. return "男";
  325. }
  326. if (value == 2) {
  327. return "女";
  328. }
  329. }
  330. },
  331. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  332. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  333. {title: '推荐津补贴类型', field: 'recommendAllowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  334. formatter(value, row, index) {
  335. if (value == null || value == "")
  336. return "<span style='color: black'>未判定</span>";
  337. if (value == 1)
  338. return "<span style='color: green'>工作津贴</span>";
  339. if (value == 2)
  340. return "<span style='color: blue'>一次性交通补贴</span>";
  341. if (value == 3)
  342. return "<span style='color: red'>不予兑现</span>";
  343. }
  344. },
  345. {title: '推荐兑现月份', field: 'recommendMonths', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  346. {title: '推荐兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  347. {title: '推荐金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  348. // {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",
  349. // formatter(value,row,index){
  350. // if(value==null || value=="")return "未判定";
  351. // if(value==1)return "工作津贴";
  352. // if(value==2)return "一次性交通补贴";
  353. // if(value==3)return "不予兑现";
  354. // }
  355. // },
  356. // {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  357. // {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  358. // {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  359. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  360. formatter(value, row, index) {
  361. if (value == -1) {
  362. return "<span class='label label-warning-light'>审核不通过</span>";
  363. }
  364. if (value == 1 || value == 5 || value == 10 || value == 13 || value == 15 || value == 25) {
  365. return "<span class='label label-danger'>已驳回</span>";
  366. }
  367. if (value == 20) {
  368. if (row.highProcess != null && row.highProcess != '' && row.highProcess >= 3) {
  369. return "<span class='label label-success'>重新提交</span>"
  370. } else {
  371. return "<span class='label label-success'>待审核</span>"
  372. }
  373. }
  374. if (value == 30) {
  375. return "<span class='label label-primary'>已通过</span>"
  376. }
  377. if (value == 35) {
  378. return "<span class='label label-success'>公示驳回</span>";
  379. }
  380. }
  381. },
  382. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  383. formatter: function (value, row, index) {
  384. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  385. "<i class=\"fa fa-book\"></i>日志" +
  386. "</span>";
  387. }
  388. }
  389. ];
  390. }
  391. TalentAllowanceInfoSupple.createFour = function (process) {
  392. return [
  393. [
  394. {field: 'selectItem', radio: true, rowspan: 2, align: 'center', valign: 'middle'},
  395. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2},
  396. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  397. // {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"150px",rowspan:2},
  398. {title: '人才标签', field: 'talentTypeName', visible: false, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  399. {title: '所属镇街', field: 'addressName', visible: false, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", rowspan: 2},
  400. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  401. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px", rowspan: 2,
  402. formatter(value, row, index) {
  403. if (value == 1) {
  404. return "男";
  405. }
  406. if (value == 2) {
  407. return "女";
  408. }
  409. }
  410. },
  411. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  412. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2},
  413. {title: '认定条件', field: 'identifyConditionText', visible: false, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px", rowspan: 2},
  414. {title: '<span style="color: #682c90">推荐类型</span>', field: '', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px",
  415. cellStyle(value) {
  416. return "background-color: #682c90";
  417. }
  418. },
  419. {title: '<span style="color: #fe346e;">最终类型</span>', field: '', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', colspan: '4', rowspan: 1, width: "500px"},
  420. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2,
  421. formatter(value, row, index) {
  422. if (value == -1) {
  423. return "<span style='color: #f55a4e'>审核不通过</span>";
  424. }
  425. if (value == 30) {
  426. return "<span style='color: #5cb860'>已通过</span>"
  427. }
  428. }
  429. },
  430. {title: '兑现状态', field: 'publicState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px", rowspan: 2,
  431. formatter(value, row, index) {
  432. if (value == 1)
  433. return "<span style='color: #9d8189'>待核查征信</span>";
  434. if (value == 2)
  435. return "<span style='color: #00d3ee'>待公示</span>";
  436. if (value == 3)
  437. return "<span style='color: #af2cc5'>公示中</span>";
  438. if (value == 4) {
  439. return (row.allowanceType == 3) ? "<span style='color: #f55a4e'>不予兑现</span>" : "<span style='color: #ca9fab'>待兑现</span>";
  440. }
  441. if (value == 5)
  442. return "<span style='color: #5cb860'>已兑现</span>";
  443. }
  444. },
  445. {title: '是否补件', field: 'isSupple', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px", rowspan: 2,
  446. formatter(value, row, index) {
  447. if (value == 1) {
  448. return '<span style="color:#6495ED">是</span>';
  449. }
  450. if (value == 2) {
  451. return '<span style="color:#FF82AB">否</span>';
  452. }
  453. }
  454. },
  455. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px", rowspan: 2,
  456. formatter: function (value, row, index) {
  457. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  458. "<i class=\"fa fa-book\"></i>日志" +
  459. "</span>";
  460. }
  461. }
  462. ], [
  463. // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"150px"},
  464. // {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  465. // {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  466. {title: '津补贴类型', field: 'recommendAllowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  467. formatter(value, row, index) {
  468. if (value == null || value == "")
  469. return "<span style='color: black'>未判定</span>";
  470. if (value == 1)
  471. return "<span style='color: green'>工作津贴</span>";
  472. if (value == 2)
  473. return "<span style='color: blue'>一次性交通补贴</span>";
  474. if (value == 3)
  475. return "<span style='color: red'>不予兑现</span>";
  476. }
  477. },
  478. {title: '兑现月份', field: 'recommendMonths', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  479. {title: '兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  480. {title: '金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  481. {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  482. formatter(value, row, index) {
  483. if (value == null || value == "")
  484. return "<span style='color: black'>未判定</span>";
  485. if (value == 1)
  486. return "<span style='color: green'>工作津贴</span>";
  487. if (value == 2)
  488. return "<span style='color: blue'>一次性交通补贴</span>";
  489. if (value == 3)
  490. return "<span style='color: red'>不予兑现</span>";
  491. }
  492. },
  493. {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  494. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  495. {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  496. ]];
  497. }
  498. TalentAllowanceInfoSupple.createFourIC = function (process) {
  499. return [
  500. {field: 'selectItem', radio: true},
  501. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px"},
  502. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  503. // {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  504. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  505. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "60px",
  506. formatter(value, row, index) {
  507. if (value == 1) {
  508. return "男";
  509. }
  510. if (value == 2) {
  511. return "女";
  512. }
  513. }
  514. },
  515. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px"},
  516. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  517. {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "120px",
  518. formatter(value, row, index) {
  519. if (Feng.isEmptyStr(value))
  520. return "未判定";
  521. if (value == 1)
  522. return "工作津贴";
  523. if (value == 2)
  524. return "一次性交通补贴";
  525. if (value == 3)
  526. return "不予兑现";
  527. }
  528. },
  529. {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px"},
  530. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  531. {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px"},
  532. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  533. formatter(value, row, index) {
  534. if (value == -1) {
  535. return "<span class='label label-warning-light'>审核不通过</span>";
  536. }
  537. if (value == 30) {
  538. return "<span class='label label-primary'>已通过</span>"
  539. }
  540. }
  541. },
  542. {title: '兑现状态', field: 'publicState', visible: true, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "100px",
  543. formatter(value, row, index) {
  544. if (value == 1)
  545. return "<span class='label label-danger'>待核查征信</span>";
  546. if (value == 2)
  547. return "<span class='label label-warning'>待公示</span>";
  548. if (value == 3)
  549. return "<span class='label label-success'>公示中</span>";
  550. if (value == 4) {
  551. if (row.allowanceType == 3) {
  552. return "<span class='label label-danger'>不予兑现</span>";
  553. }
  554. return "<span class='label label-info'>待兑现</span>";
  555. }
  556. if (value == 5)
  557. return "<span class='label label-primary'>已兑现</span>";
  558. }
  559. },
  560. {title: '是否补件', field: 'isSupple', visible: false, align: 'center', valign: 'middle', 'class': 'uitd_showTip', width: "80px",
  561. formatter(value, row, index) {
  562. if (value == 1) {
  563. return '<span style="color:#6495ED">是</span>';
  564. }
  565. if (value == 2) {
  566. return '<span style="color:#FF82AB">否</span>';
  567. }
  568. }
  569. },
  570. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
  571. formatter: function (value, row, index) {
  572. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('" + value + "')\" >" +
  573. "<i class=\"fa fa-book\"></i>日志" +
  574. "</span>";
  575. }
  576. }
  577. ];
  578. }
  579. /**
  580. * 显示审核日志
  581. */
  582. TalentAllowanceInfoSupple.showLog = function (id) {
  583. layer.open({
  584. type: 1,
  585. title: "日志",
  586. fixed: false,
  587. content: '<table id="' + id + '"></table>',
  588. area: ['80%', '80%'],
  589. maxmin: true,
  590. success: function (layero, index) {
  591. Feng.getCheckLog(id, {"type": CONFIG.project_jbt, "mainId": id, "typeFileId": "", "active": 1})
  592. }
  593. });
  594. }
  595. //全选
  596. TalentAllowanceInfoSupple.checkAll = function (id) {
  597. $("#" + id + " input").each(function () {
  598. $(this).iCheck("check");
  599. })
  600. }
  601. //反选
  602. TalentAllowanceInfoSupple.unCheckAll = function (id) {
  603. $("#" + id + " input").each(function () {
  604. if (this.checked) {
  605. $(this).iCheck("uncheck");
  606. } else {
  607. $(this).iCheck("check");
  608. }
  609. })
  610. }
  611. TalentAllowanceInfoSupple.initICheck = function () {
  612. $('.icheckbox').iCheck({
  613. labelHover: false,
  614. cursor: true,
  615. checkboxClass: 'icheckbox_square-green',
  616. radioClass: 'iradio_square-greene',
  617. increaseArea: '20%'
  618. });
  619. }