talentAllowanceInfo_supple.js 36 KB

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