talentAllowanceInfo_supple.js 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  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: 'enterpriseName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  216. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  217. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  218. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px",
  219. formatter(value,row,index){
  220. if(value==1){
  221. return "男";
  222. }
  223. if(value==2){
  224. return "女";
  225. }
  226. }
  227. },
  228. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  229. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  230. {title: '认定条件', field: 'identifyConditionText', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  231. {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"130px"},
  232. {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  233. {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  234. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",
  235. formatter(value,row,index){
  236. if(value==-1){
  237. return "<span class='label label-warning-light'>审核不通过</span>";
  238. }
  239. if(process==1){
  240. if(value==1){
  241. return "<span class='label'>待提交</span>"
  242. }if(value==5){
  243. if(Feng.isNotEmptyStr(row.highProcess) && row.highProcess>=1){
  244. return "<span class='label label-success'>重新提交</span>";
  245. }else{
  246. return "<span class='label label-success'>待审核</span>";
  247. }
  248. }if(value==23){
  249. return "<span class='label label-success'>上级驳回</span>";
  250. }if(value==10){
  251. return "<span class='label label-danger'>已驳回</span>";
  252. }if(value == 15 ||value==20 || value==30){
  253. return "<span class='label label-primary'>已通过</span>";
  254. }
  255. }else if(process==2){
  256. if(value==1 || value==5 || value==10 ){
  257. return "<span class='label label-danger'>已驳回</span>";
  258. }if(value==15){
  259. if(row.highProcess!=null && row.highProcess!='' && row.highProcess>=2){
  260. return "<span class='label label-success'>重新提交</span>"
  261. }else{
  262. return "<span class='label label-success'>待审核</span>"
  263. }
  264. }if(value==20 || value==30){
  265. return "<span class='label label-primary'>已通过</span>"
  266. }if(value==25){
  267. return "<span class='label label-success'>上级驳回</span>";
  268. }
  269. }
  270. }
  271. },
  272. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
  273. formatter : function (value,row,index){
  274. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('"+value+"')\" >" +
  275. "<i class=\"fa fa-book\"></i>日志" +
  276. "</span>";
  277. }
  278. }
  279. ];
  280. }
  281. TalentAllowanceInfoSupple.createColThreeIC = function(process){
  282. return [
  283. {field: 'selectItem', radio: true},
  284. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px"},
  285. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  286. {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  287. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  288. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px",
  289. formatter(value,row,index){
  290. if(value==1){
  291. return "男";
  292. }
  293. if(value==2){
  294. return "女";
  295. }
  296. }
  297. },
  298. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  299. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  300. {title: '推荐津补贴类型', field: 'recommendAllowanceType', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",
  301. formatter(value,row,index){
  302. if(value==null || value=="")return "<span style='color: black'>未判定</span>";
  303. if(value==1)return "<span style='color: green'>工作津贴</span>";
  304. if(value==2)return "<span style='color: blue'>一次性交通补贴</span>";
  305. if(value==3)return "<span style='color: red'>不予兑现</span>";
  306. }
  307. },
  308. {title: '推荐兑现月份', field: 'recommendMonths', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  309. {title: '推荐兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  310. {title: '推荐金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  311. // {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",
  312. // formatter(value,row,index){
  313. // if(value==null || value=="")return "未判定";
  314. // if(value==1)return "工作津贴";
  315. // if(value==2)return "一次性交通补贴";
  316. // if(value==3)return "不予兑现";
  317. // }
  318. // },
  319. // {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  320. // {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  321. // {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  322. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",
  323. formatter(value,row,index){
  324. if(value==-1){
  325. return "<span class='label label-warning-light'>审核不通过</span>";
  326. }
  327. if(value==1 || value==5 || value==10 || value==13||value==15 || value==25){
  328. return "<span class='label label-danger'>已驳回</span>";
  329. }if(value==20){
  330. if(row.highProcess!=null && row.highProcess!='' && row.highProcess>=3){
  331. return "<span class='label label-success'>重新提交</span>"
  332. }else{
  333. return "<span class='label label-success'>待审核</span>"
  334. }
  335. }if( value==30){
  336. return "<span class='label label-primary'>已通过</span>"
  337. }if( value==35){
  338. return "<span class='label label-success'>公示驳回</span>";
  339. }
  340. }
  341. },
  342. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
  343. formatter : function (value,row,index){
  344. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('"+value+"')\" >" +
  345. "<i class=\"fa fa-book\"></i>日志" +
  346. "</span>";
  347. }
  348. }
  349. ];
  350. }
  351. TalentAllowanceInfoSupple.createFour = function(process){
  352. return [
  353. [
  354. {field: 'selectItem', radio: true,rowspan:2,align: 'center', valign: 'middle'},
  355. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px",rowspan:2},
  356. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",rowspan:2},
  357. // {title: '泉州证书有效期', field: 'qzgccrcActiveTime', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"150px",rowspan:2},
  358. {title: '人才标签', field: 'talentTypeName', visible: false, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",rowspan:2},
  359. {title: '所属镇街', field: 'addressName', visible: false, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px",rowspan:2},
  360. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",rowspan:2},
  361. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px",rowspan:2,
  362. formatter(value,row,index){
  363. if(value==1){
  364. return "男";
  365. }
  366. if(value==2){
  367. return "女";
  368. }
  369. }
  370. },
  371. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",rowspan:2},
  372. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",rowspan:2},
  373. {title: '认定条件', field: 'identifyConditionText', visible: false, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",rowspan:2},
  374. {title: '<span style="color: #682c90">推荐类型</span>', field: '', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',colspan:'4',rowspan:1,width:"500px",
  375. cellStyle(value){
  376. return "background-color: #682c90";
  377. }
  378. },
  379. {title: '<span style="color: #fe346e;">最终类型</span>', field: '', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',colspan:'4',rowspan:1,width:"500px"},
  380. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",rowspan:2,
  381. formatter(value,row,index){
  382. if(value==-1){
  383. return "<span style='color: #f55a4e'>审核不通过</span>";
  384. }
  385. if( value==30){
  386. return "<span style='color: #5cb860'>已通过</span>"
  387. }
  388. }
  389. },
  390. {title: '兑现状态', field: 'publicState', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",rowspan:2,
  391. formatter(value,row,index){
  392. if(value==1)return "<span style='color: #9d8189'>待核查征信</span>";
  393. if(value==2)return "<span style='color: #00d3ee'>待公示</span>";
  394. if(value==3)return "<span style='color: #af2cc5'>公示中</span>";
  395. if(value==4){
  396. return (row.allowanceType == 3)?"<span style='color: #f55a4e'>不予兑现</span>":"<span style='color: #ca9fab'>待兑现</span>";
  397. }
  398. if(value==5)return "<span style='color: #5cb860'>已兑现</span>";
  399. }
  400. },
  401. {title: '是否补件', field: 'isSupple', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px",rowspan:2,
  402. formatter(value,row,index){
  403. if(value==1){
  404. return '<span style="color:#6495ED">是</span>';
  405. }
  406. if(value==2){
  407. return '<span style="color:#FF82AB">否</span>';
  408. }
  409. }
  410. },
  411. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",rowspan:2,
  412. formatter : function (value,row,index){
  413. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('"+value+"')\" >" +
  414. "<i class=\"fa fa-book\"></i>日志" +
  415. "</span>";
  416. }
  417. }
  418. ],[
  419. // {title: '认定条件证书取得时间', field: 'identifyGetTime', visible: true, align: 'center', valign: 'middle',width:"150px"},
  420. // {title: '认定条件名称', field: 'identifyConditionName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  421. // {title: '公布入选月份', field: 'identifyMonth', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  422. {title: '津补贴类型', field: 'recommendAllowanceType', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",
  423. formatter(value,row,index){
  424. if(value==null || value=="")return "<span style='color: black'>未判定</span>";
  425. if(value==1)return "<span style='color: green'>工作津贴</span>";
  426. if(value==2)return "<span style='color: blue'>一次性交通补贴</span>";
  427. if(value==3)return "<span style='color: red'>不予兑现</span>";
  428. }
  429. },
  430. {title: '兑现月份', field: 'recommendMonths', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  431. {title: '兑现金额', field: 'recommendMoney', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  432. {title: '金额说明', field: 'recommendMoneyDesc', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  433. {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",
  434. formatter(value,row,index){
  435. if(value==null || value=="")return "<span style='color: black'>未判定</span>";
  436. if(value==1)return "<span style='color: green'>工作津贴</span>";
  437. if(value==2)return "<span style='color: blue'>一次性交通补贴</span>";
  438. if(value==3)return "<span style='color: red'>不予兑现</span>";
  439. }
  440. },
  441. {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  442. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  443. {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  444. ]];
  445. }
  446. TalentAllowanceInfoSupple.createFourIC = function(process){
  447. return [
  448. {field: 'selectItem', radio: true},
  449. {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px"},
  450. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  451. // {title: '所属镇街', field: 'addressName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  452. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  453. {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"60px",
  454. formatter(value,row,index){
  455. if(value==1){
  456. return "男";
  457. }
  458. if(value==2){
  459. return "女";
  460. }
  461. }
  462. },
  463. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px"},
  464. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  465. {title: '津补贴类型', field: 'allowanceType', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"120px",
  466. formatter(value,row,index){
  467. if(Feng.isEmptyStr(value))return "未判定";
  468. if(value==1)return "工作津贴";
  469. if(value==2)return "一次性交通补贴";
  470. if(value==3)return "不予兑现";
  471. }
  472. },
  473. {title: '兑现月份', field: 'months', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px"},
  474. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  475. {title: '金额说明', field: 'moneyDesc', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px"},
  476. {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",
  477. formatter(value,row,index){
  478. if(value==-1){
  479. return "<span class='label label-warning-light'>审核不通过</span>";
  480. }
  481. if( value==30){
  482. return "<span class='label label-primary'>已通过</span>"
  483. }
  484. }
  485. },
  486. {title: '兑现状态', field: 'publicState', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"100px",
  487. formatter(value,row,index){
  488. if(value==1)return "<span class='label label-danger'>待核查征信</span>";
  489. if(value==2)return "<span class='label label-warning'>待公示</span>";
  490. if(value==3)return "<span class='label label-success'>公示中</span>";
  491. if(value==4)return "<span class='label label-info'>待兑现</span>";
  492. if(value==5)return "<span class='label label-primary'>已兑现</span>";
  493. }
  494. },
  495. {title: '是否补件', field: 'isSupple', visible: true, align: 'center', valign: 'middle','class': 'uitd_showTip',width:"80px",
  496. formatter(value,row,index){
  497. if(value==1){
  498. return '<span style="color:#6495ED">是</span>';
  499. }
  500. if(value==2){
  501. return '<span style="color:#FF82AB">否</span>';
  502. }
  503. }
  504. },
  505. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
  506. formatter : function (value,row,index){
  507. return "<span class='label label-success' onclick=\"TalentAllowanceInfoSupple.showLog('"+value+"')\" >" +
  508. "<i class=\"fa fa-book\"></i>日志" +
  509. "</span>";
  510. }
  511. }
  512. ];
  513. }
  514. /**
  515. * 显示审核日志
  516. */
  517. TalentAllowanceInfoSupple.showLog = function (id){
  518. layer.open({
  519. type: 1,
  520. title:"日志",
  521. fixed:false,
  522. content: '<table id="'+id+'"></table>',
  523. area: ['80%', '80%'],
  524. maxmin: true,
  525. success :function (layero, index) {
  526. Feng.getCheckLog(id,{"type":CONFIG.project_jbt,"mainId":id,"typeFileId":"","active":1})
  527. }
  528. });
  529. }
  530. //全选
  531. TalentAllowanceInfoSupple.checkAll = function (id) {
  532. $("#"+id+" input").each(function () {
  533. $(this).iCheck("check");
  534. })
  535. }
  536. //反选
  537. TalentAllowanceInfoSupple.unCheckAll = function (id) {
  538. $("#"+id+" input").each(function () {
  539. if(this.checked){
  540. $(this).iCheck("uncheck");
  541. }else{
  542. $(this).iCheck("check");
  543. }
  544. })
  545. }
  546. TalentAllowanceInfoSupple.initICheck = function(){
  547. $('.icheckbox').iCheck({
  548. labelHover : false,
  549. cursor : true,
  550. checkboxClass : 'icheckbox_square-green',
  551. radioClass : 'iradio_square-greene',
  552. increaseArea : '20%'
  553. });
  554. }