You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

413 lines
22 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2023-03-16 17:18
  5. * 描 述:家庭经济信息(二级学院)
  6. */
  7. var selectedRow;
  8. var refreshGirdData;
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var startTime;
  12. var endTime;
  13. var page = {
  14. init: function () {
  15. page.initGird();
  16. page.bind();
  17. },
  18. bind: function () {
  19. // 时间搜索框
  20. $('#datesearch').lrdate({
  21. dfdata: [
  22. { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
  23. { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
  24. { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
  25. { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
  26. ],
  27. // 月
  28. mShow: false,
  29. premShow: false,
  30. // 季度
  31. jShow: false,
  32. prejShow: false,
  33. // 年
  34. ysShow: false,
  35. yxShow: false,
  36. preyShow: false,
  37. yShow: false,
  38. // 默认
  39. dfvalue: '1',
  40. selectfn: function (begin, end) {
  41. startTime = begin;
  42. endTime = end;
  43. page.search();
  44. }
  45. });
  46. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  47. page.search(queryJson);
  48. }, 450, 600);
  49. $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  50. $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
  51. $('#IsLowIncome').lrDataItemSelect({ code: 'YesOrNoBit' });
  52. $('#IsOrphan').lrDataItemSelect({ code: 'YesOrNoBit' });
  53. $('#IsSingleFamilyChildren').lrDataItemSelect({ code: 'YesOrNoBit' });
  54. $('#IsDisabledChildren').lrDataItemSelect({ code: 'YesOrNoBit' });
  55. $('#IsDisabled').lrDataItemSelect({ code: 'YesOrNoBit' });
  56. $('#IsParentsLoseWork').lrDataItemSelect({ code: 'YesOrNoBit' });
  57. $('#IsSeriouslyIllPatientInHome').lrDataItemSelect({ code: 'YesOrNoBit' });
  58. $('#IsOvercomePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' });
  59. $('#IsUnstablePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' });
  60. $('#IsEdgePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' });
  61. $('#IsEdgeAcuteDifficultyStudent').lrDataItemSelect({ code: 'YesOrNoBit' });
  62. $('#IsLowIncomeFamily').lrDataItemSelect({ code: 'YesOrNoBit' });
  63. $('#IsMartyrChildren').lrDataItemSelect({ code: 'YesOrNoBit' });
  64. $('#FamilyIsSufferNaturalDisaster').lrDataItemSelect({ code: 'YesOrNoBit' });
  65. $('#FamilyIsSufferUnexpectEvent').lrDataItemSelect({ code: 'YesOrNoBit' });
  66. $('#IsSpecialPovertySupport').lrDataItemSelect({ code: 'YesOrNoBit' });
  67. $('#FamilyIsSufferEpidemic').lrDataItemSelect({ code: 'YesOrNoBit' });
  68. // 刷新
  69. $('#lr_refresh').on('click', function () {
  70. location.reload();
  71. });
  72. // 审核
  73. $('#lr_edit').on('click', function () {
  74. var keyValue = $('#gridtable').jfGridValue('Id');
  75. selectedRow = $('#gridtable').jfGridGet('rowdata');
  76. if (learun.checkrow(keyValue)) {
  77. var Status = $('#gridtable').jfGridValue('Status');
  78. if (Status != "1") {
  79. learun.alert.warning("当前项不属于学院审核状态,无法审核!");
  80. return false;
  81. }
  82. learun.layerForm({
  83. id: 'formOfTwo',
  84. title: '审核',
  85. url: top.$.rootUrl + '/StudentWork/FamilyEconomy/Form?Step=2&keyValue=' + keyValue,
  86. width: 1100,
  87. height: 800,
  88. callBack: function (id) {
  89. return top[id].acceptClick(refreshGirdData);
  90. }
  91. });
  92. }
  93. });
  94. // 提交学工部审核
  95. $('#lr_submit').on('click', function () {
  96. var keyValue = $('#gridtable').jfGridValue('Id');
  97. if (learun.checkrow(keyValue)) {
  98. var Status = $('#gridtable').jfGridValue('Status');
  99. if (Status != "1") {
  100. learun.alert.warning("当前项不属于学院审核状态,无法提交学工部审核!");
  101. return false;
  102. }
  103. learun.layerConfirm('是否确认提交该项!', function (res) {
  104. if (res) {
  105. learun.postForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/DoSubmit', { keyValue: keyValue, status: '2', step: '2' }, function () {
  106. refreshGirdData();
  107. });
  108. }
  109. });
  110. }
  111. });
  112. // 退回辅导员
  113. $('#lr_back').on('click', function () {
  114. var keyValue = $('#gridtable').jfGridValue('Id');
  115. if (learun.checkrow(keyValue)) {
  116. var Status = $('#gridtable').jfGridValue('Status');
  117. if (Status != "1") {
  118. learun.alert.warning("当前项不属于学院审核状态,无法退回辅导员!");
  119. return false;
  120. }
  121. learun.layerConfirm('是否确认退回该项!', function (res) {
  122. if (res) {
  123. learun.postForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/DoBack', { keyValue: keyValue, status: '0', step: '2' }, function () {
  124. refreshGirdData();
  125. });
  126. }
  127. });
  128. }
  129. });
  130. },
  131. initGird: function () {
  132. $('#gridtable').jfGrid({
  133. url: top.$.rootUrl + '/StudentWork/FamilyEconomy/GetPageList',
  134. headData: [
  135. { label: '学号', name: 'StuNo', width: 100, align: "left" },
  136. { label: '姓名', name: 'StuName', width: 150, align: "left" },
  137. {
  138. label: '院校', name: 'F_SchoolId', width: 120, align: "left",
  139. formatterAsync: function (callback, value, row, op, $cell) {
  140. learun.clientdata.getAsync('custmerData', {
  141. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
  142. key: value,
  143. keyId: 'f_companyid',
  144. callback: function (_data) {
  145. callback(_data['f_fullname']);
  146. }
  147. });
  148. }
  149. },
  150. {
  151. label: '班级', name: 'ClassNo', width: 100, align: "left",
  152. formatterAsync: function (callback, value, row, op, $cell) {
  153. learun.clientdata.getAsync('custmerData', {
  154. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  155. key: value,
  156. keyId: 'classno',
  157. callback: function (_data) {
  158. callback(_data['classname']);
  159. }
  160. });
  161. }
  162. },
  163. {
  164. label: '身份证件类型', name: 'IdCardType', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  165. learun.clientdata.getAsync('dataItem', {
  166. key: value,
  167. code: 'IdCardType',
  168. callback: function (_data) {
  169. callback(_data.text);
  170. }
  171. });
  172. }
  173. },
  174. { label: '身份证件号', name: 'IdentityCardNo', width: 150, align: "left" },
  175. {
  176. label: '申请时间', name: 'ApplyTime', width: 100, align: "left", formatter: function (cellvalue) {
  177. return cellvalue.substring(0, 11);
  178. }
  179. },
  180. {
  181. label: '是否低保', name: 'IsLowIncome', width: 100, align: "left",
  182. formatter: function (cellvalue) {
  183. return cellvalue == true ? "是" : "否";
  184. }
  185. },
  186. {
  187. label: '是否孤儿', name: 'IsOrphan', width: 100, align: "left",
  188. formatter: function (cellvalue) {
  189. return cellvalue == true ? "是" : "否";
  190. }
  191. },
  192. {
  193. label: '是否单亲家庭子女', name: 'IsSingleFamilyChildren', width: 150, align: "left",
  194. formatter: function (cellvalue) {
  195. return cellvalue == true ? "是" : "否";
  196. }
  197. },
  198. {
  199. label: '是否残疾人子女', name: 'IsDisabledChildren', width: 100, align: "left",
  200. formatter: function (cellvalue) {
  201. return cellvalue == true ? "是" : "否";
  202. }
  203. },
  204. {
  205. label: '本人是否残疾', name: 'IsDisabled', width: 100, align: "left",
  206. formatter: function (cellvalue) {
  207. return cellvalue == true ? "是" : "否";
  208. }
  209. },
  210. {
  211. label: '残疾类别', name: 'DisabledCategory', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  212. learun.clientdata.getAsync('dataItem', {
  213. key: value,
  214. code: 'DisabledCategory',
  215. callback: function (_data) {
  216. callback(_data.text);
  217. }
  218. });
  219. }
  220. },
  221. {
  222. label: '是否父母丧失劳动能力', name: 'IsParentsLoseWork', width: 150, align: "left",
  223. formatter: function (cellvalue) {
  224. return cellvalue == true ? "是" : "否";
  225. }
  226. },
  227. {
  228. label: '是否家中有大病患者', name: 'IsSeriouslyIllPatientInHome', width: 150, align: "left",
  229. formatter: function (cellvalue) {
  230. return cellvalue == true ? "是" : "否";
  231. }
  232. },
  233. {
  234. label: '是否脱贫家庭学生', name: 'IsOvercomePovertyFamilyStudent', width: 150, align: "left",
  235. formatter: function (cellvalue) {
  236. return cellvalue == true ? "是" : "否";
  237. }
  238. },
  239. {
  240. label: '是否脱贫不稳定家庭学生', name: 'IsUnstablePovertyFamilyStudent', width: 150, align: "left",
  241. formatter: function (cellvalue) {
  242. return cellvalue == true ? "是" : "否";
  243. }
  244. },
  245. {
  246. label: '是否边缘易致贫家庭学生', name: 'IsEdgePovertyFamilyStudent', width: 150, align: "left",
  247. formatter: function (cellvalue) {
  248. return cellvalue == true ? "是" : "否";
  249. }
  250. },
  251. {
  252. label: '是否边突发严重困难学生', name: 'IsEdgeAcuteDifficultyStudent', width: 150, align: "left",
  253. formatter: function (cellvalue) {
  254. return cellvalue == true ? "是" : "否";
  255. }
  256. },
  257. {
  258. label: '是否低收入家庭', name: 'IsLowIncomeFamily', width: 100, align: "left",
  259. formatter: function (cellvalue) {
  260. return cellvalue == true ? "是" : "否";
  261. }
  262. },
  263. {
  264. label: '烈士子女', name: 'IsMartyrChildren', width: 100, align: "left",
  265. formatter: function (cellvalue) {
  266. return cellvalue == true ? "是" : "否";
  267. }
  268. },
  269. { label: '家庭人均年收入', name: 'FamilyAverageIncome', width: 100, align: "left" },
  270. {
  271. label: '家庭主要收入来源类型', name: 'FamilyIncomeSourceCategory', width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  272. learun.clientdata.getAsync('dataItem', {
  273. key: value,
  274. code: 'FamilyIncomeSourceCategory',
  275. callback: function (_data) {
  276. callback(_data.text);
  277. }
  278. });
  279. }
  280. },
  281. {
  282. label: '家庭是否遭受自然灾害', name: 'FamilyIsSufferNaturalDisaster', width: 150, align: "left",
  283. formatter: function (cellvalue) {
  284. return cellvalue == true ? "是" : "否";
  285. }
  286. },
  287. { label: '自然灾害具体情况描述', name: 'SufferNaturalDisasterDescription', width: 150, align: "left" },
  288. {
  289. label: '家庭是否遭受突发意外事件', name: 'FamilyIsSufferUnexpectEvent', width: 200, align: "left",
  290. formatter: function (cellvalue) {
  291. return cellvalue == true ? "是" : "否";
  292. }
  293. },
  294. { label: '突发意外事件具体描述', name: 'SufferUnexpectEventDescription', width: 150, align: "left" },
  295. { label: '家庭欠债金额', name: 'FamilyOwesAmount', width: 100, align: "left" },
  296. { label: '家庭欠债原因', name: 'FamilyOwesReason', width: 100, align: "left" },
  297. { label: '家庭人口数', name: 'FamilyNumber', width: 100, align: "left" },
  298. { label: '劳动力人口数', name: 'LaborNumber', width: 100, align: "left" },
  299. { label: '家庭成员失业人数', name: 'FamilyUnemployNumber', width: 150, align: "left" },
  300. { label: '赡养人口数', name: 'SupportNumber', width: 100, align: "left" },
  301. { label: '其他信息', name: 'OtherInformation', width: 100, align: "left" },
  302. {
  303. label: '是否特困供养', name: 'IsSpecialPovertySupport', width: 100, align: "left",
  304. formatter: function (cellvalue) {
  305. return cellvalue == true ? "是" : "否";
  306. }
  307. },
  308. { label: '其他', name: 'Others', width: 100, align: "left" },
  309. {
  310. label: '家庭是否遭受疫情', name: 'FamilyIsSufferEpidemic', width: 150, align: "left",
  311. formatter: function (cellvalue) {
  312. return cellvalue == true ? "是" : "否";
  313. }
  314. },
  315. { label: '家庭遭受疫情具体情况描述', name: 'SufferEpidemicDescription', width: 200, align: "left" },
  316. {
  317. label: '认定困难级别名称', name: 'IdentifyDifficultyLevel', width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  318. learun.clientdata.getAsync('dataItem', {
  319. key: value,
  320. code: 'DifficultyLevel',
  321. callback: function (_data) {
  322. callback(_data.text);
  323. }
  324. });
  325. }
  326. },
  327. {
  328. label: '认定时间', name: 'IdentifyTime', width: 100, align: "left", formatter: function (cellvalue) {
  329. if (cellvalue != null && cellvalue != undefined && cellvalue != "") {
  330. return cellvalue.substring(0, 11);
  331. }
  332. }
  333. },
  334. { label: '认定原因', name: 'IdentifyReason', width: 100, align: "left" },
  335. { label: '班级认定意见', name: 'ClassIdentifyOpinion', width: 100, align: "left" },
  336. { label: '年级认定意见', name: 'GradeIdentifyOpinion', width: 100, align: "left" },
  337. {
  338. label: '审核状态', name: 'Status', width: 100, align: "left", formatter: function (cellvalue) {
  339. return cellvalue == "0" ? "<span class=\"label label-default\">草稿</span>" : cellvalue == "1" ? "<span class=\"label label-success\">学院审核中</span>" : cellvalue == "2" ? "<span class=\"label label-success\">学工部审核中</span>" : cellvalue == "3" ? "<span class=\"label label-success\">已归档</span>" : "<span class=\"label label-default\">草稿</span>";
  340. }
  341. },
  342. {
  343. label: '创建人', name: 'CreateUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  344. learun.clientdata.getAsync('custmerData', {
  345. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
  346. key: value,
  347. keyId: 'f_userid',
  348. callback: function (_data) {
  349. callback(_data['f_realname']);
  350. }
  351. });
  352. }
  353. },
  354. { label: '创建时间', name: 'CreateTime', width: 130, align: "left" },
  355. { label: '提交时间', name: 'SubmitTime', width: 130, align: "left" },
  356. {
  357. label: '提交人', name: 'SubmitUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  358. learun.clientdata.getAsync('custmerData', {
  359. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
  360. key: value,
  361. keyId: 'f_userid',
  362. callback: function (_data) {
  363. callback(_data['f_realname']);
  364. }
  365. });
  366. }
  367. },
  368. {
  369. label: '学院审核人', name: 'FirstCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  370. learun.clientdata.getAsync('custmerData', {
  371. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
  372. key: value,
  373. keyId: 'f_userid',
  374. callback: function (_data) {
  375. callback(_data['f_realname']);
  376. }
  377. });
  378. }
  379. },
  380. { label: '学院审核时间', name: 'FirstCheckTime', width: 130, align: "left" },
  381. {
  382. label: '学工部审核人', name: 'SecondCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  383. learun.clientdata.getAsync('custmerData', {
  384. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
  385. key: value,
  386. keyId: 'f_userid',
  387. callback: function (_data) {
  388. callback(_data['f_realname']);
  389. }
  390. });
  391. }
  392. },
  393. { label: '学工部审核时间', name: 'SecondCheckTime', width: 130, align: "left" },
  394. ],
  395. mainId: 'Id',
  396. isPage: true,
  397. sidx: 'SubmitTime desc'
  398. });
  399. },
  400. search: function (param) {
  401. param = param || {};
  402. param.StartTime = startTime;
  403. param.EndTime = endTime;
  404. param.Step = "2";//第二步:二级学院审核
  405. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  406. }
  407. };
  408. refreshGirdData = function () {
  409. page.search();
  410. };
  411. page.init();
  412. }