talentAllowance_patch.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. /**
  2. * 初始化人才认定申报详情对话框
  3. */
  4. var TalentAllowanceInfoDlg = {
  5. talentAllowanceData: {},
  6. validateFields: {
  7. talentId: {validators: {notEmpty: {message: '申报对象不能为空'}}}
  8. }
  9. };
  10. /**
  11. * 清除数据
  12. */
  13. TalentAllowanceInfoDlg.clearData = function () {
  14. this.talentAllowanceData = {};
  15. }
  16. /**
  17. * 设置对话框中的数据
  18. *
  19. * @param key 数据的名称
  20. * @param val 数据的具体值
  21. */
  22. TalentAllowanceInfoDlg.set = function (key, val) {
  23. this.talentAllowanceData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
  24. return this;
  25. }
  26. /**
  27. * 设置对话框中的数据
  28. *
  29. * @param key 数据的名称
  30. * @param val 数据的具体值
  31. */
  32. TalentAllowanceInfoDlg.get = function (key) {
  33. return $("#" + key).val();
  34. }
  35. /**
  36. * 关闭此对话框
  37. */
  38. TalentAllowanceInfoDlg.close = function () {
  39. parent.layer.close(window.parent.TalentAllowanceInfo.layerIndex);
  40. }
  41. /**
  42. * 收集数据
  43. */
  44. TalentAllowanceInfoDlg.collectData = function () {
  45. this.set('id')
  46. .set('talentId')
  47. .set('year');
  48. }
  49. /**
  50. * 验证数据
  51. */
  52. TalentAllowanceInfoDlg.validate = function () {
  53. $('#talentAllowanceForm').data("bootstrapValidator").resetForm();
  54. $('#talentAllowanceForm').bootstrapValidator('validate');
  55. return $("#talentAllowanceForm").data('bootstrapValidator').isValid();
  56. }
  57. /**
  58. * 选择申报对象初始化
  59. */
  60. TalentAllowanceInfoDlg.init = function () {
  61. var talentId = $("#name").val();
  62. var ajax = new $ax(Feng.ctxPath + "/enterprise/talent/getInfoById/id/" + talentId, function (data) {
  63. $("#talentId").val(talentId);
  64. $("#talentTypeName").val(data.talentTypeName);
  65. $("#enterpriseName").val(data.enterpriseName);
  66. $("#sex").val(data.sex);
  67. $("#idCard").val(data.idCard);
  68. $("#introductionModeName").val(data.introductionModeName);
  69. $("#firstInJJTime").val(data.firstInJJTime);
  70. $("#entryTime").val(data.entryTime);
  71. $("#post").val(data.post);
  72. $("#phone").val(data.phone);
  73. $("#bank").val(data.bank);
  74. $("#bankNumber").val(data.bankNumber);
  75. $("#bankNetwork").val(data.bankNetwork).attr("title", data.bankNetwork);
  76. $("#bankAccount").val(data.bankAccount);
  77. $("#talentArrangeName").val(data.talentArrangeName);
  78. $("#identifyConditionText").val(data.identifyConditionText).attr("title", data.identifyConditionText);
  79. $("#identifyConditionName").val(data.identifyConditionName).attr("title", data.identifyConditionName);
  80. $("#identifyGetTime").val(data.identifyGetTime);
  81. $("#provinceCode").val(data.provinceName + data.cityName + data.countyName);
  82. }, function (data) {
  83. Feng.error("查询失败!" + data.responseJSON.message + "!");
  84. });
  85. ajax.set();
  86. ajax.start();
  87. }
  88. /**
  89. * 初始化工作单位及核查项目情况表
  90. */
  91. TalentAllowanceInfoDlg.initContract = function () {
  92. $("#projectTable").bootstrapTable("destroy", {});
  93. $("#projectTable").bootstrapTable({
  94. url: Feng.ctxPath + "/enterprise/talentAllowance/findAllowanceContractDetail",
  95. method: 'POST',
  96. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  97. search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
  98. showRefresh: false, // 是否显示刷新按钮
  99. clickToSelect: true, // 是否启用点击选中行
  100. singleSelect: true, // 设置True 将禁止多选
  101. striped: true, // 是否显示行间隔色
  102. escape: true,
  103. pagination: false, // 设置为 true 会在表格底部显示分页条
  104. paginationHAlign: "left",
  105. paginationDetailHAlign: "right",
  106. sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
  107. showColumns: false,
  108. detailView: true, //父子表
  109. queryParams: function (params) {
  110. return $.extend({"mainId": $("#id").val()}, params)
  111. },
  112. columns: TalentAllowanceInfoDlg.initContractColumns(),
  113. onPostBody: function () {
  114. $("td.uitd_showTip").bind("mouseover", function () {
  115. var htm = $(this).html();
  116. $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
  117. });
  118. },
  119. onLoadSuccess: function (data) {
  120. $("#projectTable").bootstrapTable('expandAllRows');
  121. },
  122. onExpandRow: function (index, row, $detail) {
  123. var enterpriseId = row.enterpriseId;
  124. var cur_table = $detail.html('<table id="' + enterpriseId + '" class="mytable-hover"></table>').find('table');
  125. $(cur_table).bootstrapTable("destroy", {});
  126. $(cur_table).bootstrapTable({
  127. url: Feng.ctxPath + "/api/talentAllowance/findAllowanceProject",
  128. method: 'POST',
  129. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  130. search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
  131. showRefresh: false, // 是否显示刷新按钮
  132. clickToSelect: true, // 是否启用点击选中行
  133. singleSelect: true, // 设置True 将禁止多选
  134. escape: true,
  135. pagination: false, // 设置为 true 会在表格底部显示分页条
  136. paginationHAlign: "left",
  137. paginationDetailHAlign: "right",
  138. sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
  139. showColumns: false,
  140. queryParams: function (params) {
  141. return $.extend({"mainId": $("#id").val(), "baseId": row.id}, params)
  142. },
  143. columns: TalentAllowanceInfoDlg.initProjectColumns(),
  144. });
  145. }
  146. });
  147. }
  148. //初始化附件类别表单
  149. TalentAllowanceInfoDlg.initFileTable = function () {
  150. TalentAllowanceInfoDlg.initContract();
  151. var queryData = {};
  152. queryData['project'] = CONFIG.project_jbt;
  153. queryData['type'] = $("#type").val();
  154. $("#fileTable").bootstrapTable({
  155. url: Feng.ctxPath + "/common/api/findUnCommonFileType",
  156. method: 'POST',
  157. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  158. search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
  159. showRefresh: false, // 是否显示刷新按钮
  160. clickToSelect: true, // 是否启用点击选中行
  161. singleSelect: true, // 设置True 将禁止多选
  162. striped: true, // 是否显示行间隔色
  163. escape: true,
  164. pagination: false, // 设置为 true 会在表格底部显示分页条
  165. paginationHAlign: "left",
  166. paginationDetailHAlign: "right",
  167. sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
  168. showColumns: false,
  169. detailView: true, //是否显示父子表
  170. pageList: [10, 30, 50],
  171. queryParams: function (params) {
  172. return $.extend(queryData, params)
  173. },
  174. rowStyle: function (row, index) {
  175. return {classes: "info"};
  176. },
  177. columns: TalentAllowanceInfoDlg.initFileTypeColumn(),
  178. onPostBody: function () {
  179. $("td.uitd_showTip").bind("mouseover", function () {
  180. var htm = $(this).html();
  181. $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
  182. });
  183. },
  184. onLoadSuccess: function (data) {
  185. $("#fileTable").bootstrapTable('expandAllRows');
  186. },
  187. onExpandRow: function (index, row, $detail) {
  188. var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentFile", function (data) {
  189. if (data == null || data.length == 0) {
  190. return;
  191. }
  192. var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
  193. var publicStartTime = new Date($("#publicStartTime").val());
  194. var publicEndTime = new Date($("#publicEndTime").val());
  195. for (var key in data) {
  196. var createTime = new Date(data[key].createTime);
  197. var btn = "";
  198. if (createTime >= publicStartTime && createTime <= publicEndTime) {
  199. btn = "<button type=\'button\' onclick=\"TalentAllowanceInfoDlg.checkFile(this,'" + row.id + "','" + data[key].id + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\">" +
  200. "<i class=\"fa fa-paste\"></i>修改" +
  201. "</button>" +
  202. "<button type='button' onclick=\"TalentAllowanceInfoDlg.deleteFile('" + data[key].id + "','" + row.fState + "')\" class=\"btn btn-xs btn-danger\">" +
  203. "<i class=\"fa fa-times\"></i>删除" +
  204. "</button>";
  205. } else {
  206. btn = "";
  207. }
  208. var sn = data[key].url.lastIndexOf(".");
  209. var suffix = data[key].url.substring(sn + 1, data[key].url.length);
  210. var imgStr = "";
  211. if (suffix == "pdf" || suffix == "PDF") {
  212. imgStr = "<button type='button' onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
  213. } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
  214. imgStr = "<button type='button' onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
  215. } else {
  216. imgStr = '<img class=\"imgUrl\" src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
  217. }
  218. html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
  219. '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
  220. '<li style="width: 10%;">' + imgStr + '</li>\n' +
  221. '<li style="width: 10%;padding-top: 2px;">' + btn + '</li>';
  222. }
  223. html = html + '</ul>';
  224. $detail.html(html);
  225. $(".imgs").viewer({
  226. // toolbar:false,
  227. fullscreen: false
  228. });
  229. }, function (data) {
  230. Feng.error("查询失败!" + data.responseJSON.message + "!");
  231. });
  232. var queryData = {};
  233. queryData["mainId"] = $("#id").val();
  234. queryData["fileTypeId"] = row.id;
  235. ajax.set(queryData);
  236. ajax.start();
  237. }
  238. });
  239. }
  240. //初始化工作单位表的列
  241. TalentAllowanceInfoDlg.initContractColumns = function () {
  242. var type = $("#type").val();
  243. if (type == 1) {
  244. return [
  245. {field: 'selectItem', checkbox: false, visible: false},
  246. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
  247. {title: '合同起始时间', field: 'startTime', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
  248. {title: '合同截止时间', field: 'endTime', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
  249. {title: '入职时间', field: 'entryTime', visible: true, align: 'center', valign: 'middle', width: "100px"},
  250. {title: '本年度工作截止时间', field: 'quitTime', visible: true, align: 'center', valign: 'middle', width: "100px"},
  251. {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
  252. {title: '首次来晋行政介绍信时间', field: 'letterTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
  253. /*{title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"120px",
  254. formatter : function(value,row,index){
  255. return "<button type='button' onclick='TalentAllowanceInfoDlg.showLog(\""+row.id+"\")' style='margin-right: 10px' class='btn btn-xs btn-success'>" +
  256. "<i class=\"fa fa-book\"></i>日志" +
  257. "</button>";
  258. }
  259. }*/
  260. ];
  261. } else {
  262. return [
  263. {field: 'selectItem', checkbox: false, visible: false},
  264. {title: '企业名称', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
  265. {title: '合同起始时间', field: 'startTime', visible: true, align: 'center', valign: 'middle', width: "120px"},
  266. {title: '合同截止时间', field: 'endTime', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
  267. {title: '入职时间', field: 'entryTime', visible: true, align: 'center', valign: 'middle', width: "100px"},
  268. {title: '本年度工作截止时间', field: 'quitTime', visible: true, align: 'center', valign: 'middle', width: "100px"},
  269. /*{title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"120px",
  270. formatter : function(value,row,index){
  271. return "<button type='button' onclick='TalentAllowanceInfoDlg.showLog(\""+row.id+"\")' style='margin-right: 10px' class='btn btn-xs btn-success'>" +
  272. "<i class=\"fa fa-book\"></i>日志" +
  273. "</button>"
  274. }
  275. }*/
  276. ];
  277. }
  278. }
  279. //初始化项目表的列
  280. TalentAllowanceInfoDlg.initProjectColumns = function () {
  281. return [
  282. {field: 'selectItem', checkbox: false, visible: false},
  283. {title: '核查项目名称', field: 'projectName', visible: true, align: 'center', valign: 'middle', width: "15%", 'class': 'uitd_showTip'},
  284. {title: '详情', field: 'months', visible: true, align: 'center', valign: 'middle', width: "35%",
  285. formatter: function (value, row, index) {
  286. if (value != null && value != '') {
  287. return value;
  288. } else if (row.days != null && row.days != '') {
  289. return row.days + "天";
  290. } else {
  291. return "";
  292. }
  293. }
  294. },
  295. {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "35%", 'class': 'uitd_showTip'},
  296. {title: '操作', field: 'project', visible: true, align: 'center', valign: 'middle', width: "15%",
  297. formatter: function (value, row, index) {
  298. return "<button type='button' onclick='TalentAllowanceInfoDlg.showLog(\"" + row.id + "\")' style='margin-right: 10px' class='btn btn-xs btn-success'><i class=\"fa fa-book\"></i>日志</button>";
  299. }
  300. }
  301. ];
  302. }
  303. /**
  304. * 初始化附件类别表的列
  305. */
  306. TalentAllowanceInfoDlg.initFileTypeColumn = function () {
  307. return [
  308. {field: 'selectItem', checkbox: false, visible: false},
  309. {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
  310. formatter: function (value, row, index) {
  311. if (row.must == 1) {
  312. return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
  313. }
  314. if (row.must == 2) {
  315. return '<i class="fa fa-paste"></i>' + value;
  316. }
  317. }
  318. },
  319. {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
  320. formatter: function (value, row, index) {
  321. if (value == null || value == '' || value == 'null') {
  322. return '';
  323. }
  324. return "<button type='button' onclick=\"Feng.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
  325. "<i class=\"fa fa-download\"></i>下载" +
  326. "</button>";
  327. }
  328. },
  329. {title: '备注', field: 'description', visible: true, align: 'center', valign: 'middle', width: "52%", 'class': 'uitd_showTip'},
  330. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
  331. formatter: function (value, row, index) {
  332. return "<button type='button' onclick=\"TalentAllowanceInfoDlg.checkFile(this,'" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
  333. "<i class=\"fa fa-upload\"></i>添加" +
  334. "</button>";
  335. }
  336. }
  337. ]
  338. };
  339. //选择附件并显示附件名
  340. TalentAllowanceInfoDlg.checkFile = function (content, fileTypeId, fileId) {
  341. $("#upload_file ").unbind("change");
  342. $("#upload_file ").change(function () {
  343. TalentAllowanceInfoDlg.upload(fileTypeId, fileId);
  344. });
  345. $('#upload_file').val("");
  346. $('#upload_file').click()
  347. }
  348. //上传附件
  349. TalentAllowanceInfoDlg.upload = function (fileTypeId, fileId) {
  350. var id = $("#id").val();
  351. if (id == null || id == '') {
  352. Feng.info("请先添加基本信息并保存后再试");
  353. return;
  354. }
  355. if (fileId != null && fileId != 'null') {
  356. $("#fileId").val(fileId)
  357. } else {
  358. $("#fileId").val("");
  359. }
  360. $("#mainId").val(id);
  361. $("#fileTypeId").val(fileTypeId);
  362. var index = layer.load(0, {shade: false, time: 0});
  363. $("#index").val(index);
  364. $("#uploadForm").submit();
  365. }
  366. //删除附件
  367. TalentAllowanceInfoDlg.deleteFile = function (id) {
  368. var operation = function () {
  369. var ajax = new $ax(Feng.ctxPath + "/common/api/deleteFile", function (data) {
  370. if (data.code = 200) {
  371. Feng.success(data.msg);
  372. $("#fileTable").bootstrapTable("refresh", {});
  373. } else {
  374. Feng.error(data.msg);
  375. }
  376. }, function (data) {
  377. Feng.error("删除失败!" + data.responseJSON.message + "!");
  378. });
  379. ajax.set("id", id);
  380. ajax.set("type", CONFIG.project_jbt);
  381. ajax.start();
  382. }
  383. Feng.confirm("删除后无法恢复,确认删除吗?", operation);
  384. }
  385. TalentAllowanceInfoDlg.showLog = function (id) {
  386. layer.open({
  387. type: 1,
  388. title: "日志",
  389. fixed: false,
  390. content: '<table id="' + id + '"></table>',
  391. area: ['80%', '80%'],
  392. maxmin: true,
  393. success: function (layero, index) {
  394. $('#' + id).bootstrapTable({
  395. url: Feng.ctxPath + "/common/api/getJbtCheckLog",
  396. method: 'POST',
  397. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  398. search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
  399. showRefresh: false, // 是否显示刷新按钮
  400. clickToSelect: true, // 是否启用点击选中行
  401. singleSelect: true, // 设置True 将禁止多选
  402. striped: true, // 是否显示行间隔色
  403. pagination: false, // 设置为 true 会在表格底部显示分页条
  404. paginationHAlign: "left",
  405. paginationDetailHAlign: "right",
  406. sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
  407. showColumns: false,
  408. queryParams: function (params) {
  409. return {"type": CONFIG.project_jbt, "mainId": $("#id").val(), "typeFileId": id, "active": 1}
  410. },
  411. columns:
  412. [
  413. {title: '步骤', field: 'stepName', visible: true, align: 'center', valign: 'middle', width: "10%",
  414. formatter: function (value, row, index) {
  415. return "" + value;
  416. }
  417. },
  418. {title: '操作人', field: 'createUser', visible: true, align: 'center', valign: 'middle', width: "15%"},
  419. {title: '操作时间', field: 'createTime', visible: true, align: 'center', valign: 'middle', width: "20%"},
  420. {title: '描述', field: 'description', visible: true, align: 'center', valign: 'middle', width: "45%",
  421. formatter: function (value, row, index) {
  422. return '<span data-toggle="tooltip" title="' + value + '">"' + value + '"</span>';
  423. }
  424. }
  425. ]
  426. ,
  427. onPostBody: function () {
  428. $('#' + id + "td.uitd_showTip").bind("mouseover", function () {
  429. var htm = $(this).html();
  430. $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show');
  431. });
  432. }
  433. });
  434. }
  435. });
  436. }
  437. //回调
  438. TalentAllowanceInfoDlg.callBack = function (data) {
  439. layer.close(data.obj);
  440. Feng.info(data.msg);
  441. if (data.code == 200) {
  442. var ajax = new $ax(Feng.ctxPath + "/enterprise/talentAllowance/updateSuppleState", function (data) {
  443. if (data.code == 200) {
  444. } else {
  445. }
  446. }, function (data) {
  447. Feng.error("修改失败!" + data.responseJSON.message + "!");
  448. });
  449. ajax.set("id", $("#id").val());
  450. ajax.start();
  451. $("#fileTable").bootstrapTable("refresh", {});
  452. }
  453. }
  454. TalentAllowanceInfoDlg.showAllLog = function () {
  455. var id = $("#id").val();
  456. if (Feng.isNotEmptyStr(id)) {
  457. Feng.getCheckLog("logTable", {"type": CONFIG.project_jbt, "mainId": $("#id").val(), "typeFileId": "", "active": 1})
  458. }
  459. }
  460. $(function () {
  461. Feng.initValidatorTip("talentAllowanceForm", TalentAllowanceInfoDlg.validateFields);
  462. Feng.addAjaxSelect({
  463. "id": 'name',
  464. "displayCode": "id",
  465. "displayName": "name",
  466. "type": "GET",
  467. "url": Feng.ctxPath + "/enterprise/talent/findTalentByEnterpriseInLibrary?type=1&year=" + $("#year").val()
  468. });
  469. TalentAllowanceInfoDlg.validId();
  470. if ($("#type").val() == 2) {
  471. $("#bankNumberSpan,#talentTypeSpan,#introductionModeSpan,#firstInJJTimeSpan").attr("style", "display:none");
  472. }
  473. //批量加载时间控件
  474. $(".date").each(function () {
  475. laydate.render({elem: "#" + $(this).attr("id"), type: 'date', trigger: 'click'});
  476. });
  477. $("select").each(function () {
  478. $(this).val($(this).attr("value"));
  479. });
  480. TalentAllowanceInfoDlg.showAllLog();
  481. });