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.
 
 
 
 
 
 

68 lines
2.5 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2021-04-21 15:42
  5. * 描 述:一次性工资条统计
  6. */
  7. var refreshGirdData;
  8. var bootstrap = function ($, learun) {
  9. "use strict";
  10. var page = {
  11. init: function () {
  12. page.initGird();
  13. page.bind();
  14. },
  15. bind: function () {
  16. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  17. page.search(queryJson);
  18. }, 220, 400);
  19. //年份
  20. $('#IssueYear').lrselect({
  21. allowSearch: true,
  22. type: 'multiple',
  23. url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
  24. value: 'value',
  25. text: 'text'
  26. });
  27. $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth', type: 'multiple' });
  28. $('#Department').lrselect({
  29. type: 'tree',
  30. // 展开最大高度
  31. maxHeight: 200,
  32. // 是否允许搜索
  33. allowSearch: true,
  34. // 访问数据接口地址
  35. url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
  36. });
  37. // 刷新
  38. $('#lr_refresh').on('click', function () {
  39. location.reload();
  40. });
  41. },
  42. // 初始化列表
  43. initGird: function () {
  44. $('#gridtable').jfGrid({
  45. url: top.$.rootUrl + '/PersonnelManagement/Emp_PayrollOnce/GetStatisticList',
  46. headData: [
  47. { label: "发放年份", name: "IssueYear", width: 100, align: "left" },
  48. { label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
  49. { label: "应发金额", name: "TotalPayAmount", width: 100, align: "left", statistics: true },
  50. { label: "实发金额", name: "FinalPayAmount", width: 100, align: "left", statistics: true },
  51. ],
  52. mainId: 'SalaryID',
  53. isPage: false
  54. });
  55. page.search();
  56. },
  57. search: function (param) {
  58. param = param || {};
  59. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  60. }
  61. };
  62. refreshGirdData = function () {
  63. $('#gridtable').jfGridSet('reload');
  64. };
  65. page.init();
  66. }