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.
 
 
 
 
 
 

171 lines
9.9 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. url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
  23. value: 'value',
  24. text: 'text'
  25. });
  26. $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' });
  27. $('#Department').lrselect({
  28. type: 'tree',
  29. // 展开最大高度
  30. maxHeight: 200,
  31. // 是否允许搜索
  32. allowSearch: true,
  33. // 访问数据接口地址
  34. url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
  35. });
  36. // 刷新
  37. $('#lr_refresh').on('click', function () {
  38. location.reload();
  39. });
  40. // 新增
  41. $('#lr_add').on('click', function () {
  42. learun.layerForm({
  43. id: 'form',
  44. title: '新增',
  45. url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/Form',
  46. width: 600,
  47. height: 400,
  48. callBack: function (id) {
  49. return top[id].acceptClick(refreshGirdData);
  50. }
  51. });
  52. });
  53. // 编辑
  54. $('#lr_edit').on('click', function () {
  55. var keyValue = $('#gridtable').jfGridValue('SalaryID');
  56. if (learun.checkrow(keyValue)) {
  57. learun.layerForm({
  58. id: 'form',
  59. title: '编辑',
  60. url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/Form?keyValue=' + keyValue,
  61. width: 600,
  62. height: 400,
  63. callBack: function (id) {
  64. return top[id].acceptClick(refreshGirdData);
  65. }
  66. });
  67. }
  68. });
  69. // 删除
  70. $('#lr_delete').on('click', function () {
  71. var keyValue = $('#gridtable').jfGridValue('SalaryID');
  72. if (learun.checkrow(keyValue)) {
  73. learun.layerConfirm('是否确认删除该项!', function (res) {
  74. if (res) {
  75. learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/DeleteForm', { keyValue: keyValue }, function () {
  76. refreshGirdData();
  77. });
  78. }
  79. });
  80. }
  81. });
  82. // 打印
  83. $('#lr_print').on('click', function () {
  84. $('#gridtable').jqprintTable();
  85. });
  86. },
  87. // 初始化列表
  88. initGird: function () {
  89. $('#gridtable').jfGrid({
  90. url: top.$.rootUrl + '/PersonnelManagement/Emp_Payroll/GetPageList',
  91. headData: [
  92. //{ label: "姓名", name: "UserId", width: 100, align: "left" },
  93. {
  94. label: "名称", name: "UserId", width: 100, align: "left",
  95. formatterAsync: function (callback, value, row, op, $cell) {
  96. learun.clientdata.getAsync('custmerData', {
  97. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
  98. key: value,
  99. keyId: 'f_userid',
  100. callback: function (_data) {
  101. callback(_data['f_realname']);
  102. }
  103. });
  104. }
  105. },
  106. { label: "岗位工资", name: "PostSalary", width: 100, align: "left", statistics: true },
  107. { label: "薪级工资", name: "PayWages", width: 100, align: "left", statistics: true },
  108. { label: "提高百分之十", name: "UpTenpercent", width: 100, align: "left", statistics: true },
  109. { label: "校内补贴", name: "SchoolSub", width: 100, align: "left", statistics: true },
  110. { label: "临时性补贴", name: "TemporarySub", width: 100, align: "left", statistics: true },
  111. { label: "职级工资", name: "RankWage", width: 100, align: "left", statistics: true },
  112. { label: "级差补贴", name: "DifferentialSub", width: 100, align: "left", statistics: true },
  113. { label: "绩效工资", name: "MeritPay", width: 100, align: "left", statistics: true },
  114. { label: "绩效工资减少额", name: "MeritPayLess", width: 100, align: "left", statistics: true },
  115. { label: "月发一次性绩效", name: "MonthlyoneMerit", width: 100, align: "left", statistics: true },
  116. { label: "倾斜", name: "Tilt", width: 100, align: "left", statistics: true },
  117. { label: "课时费", name: "Classfees", width: 100, align: "left", statistics: true },
  118. { label: "超课时", name: "SuperClass", width: 100, align: "left", statistics: true },
  119. { label: "培训课酬", name: "TrainingDollars", width: 100, align: "left", statistics: true },
  120. { label: "奖金", name: "Bonus", width: 100, align: "left", statistics: true },
  121. { label: "婴补", name: "BabySubsidies", width: 100, align: "left", statistics: true },
  122. { label: "班主任", name: "ClassTeacher", width: 100, align: "left", statistics: true },
  123. { label: "骨干津贴", name: "KeyBenefits", width: 100, align: "left", statistics: true },
  124. { label: "职务补", name: "PositionFill", width: 100, align: "left", statistics: true },
  125. { label: "加班费", name: "OvertimePay", width: 100, align: "left", statistics: true },
  126. { label: "值班费", name: "OnDutyfee", width: 100, align: "left", statistics: true },
  127. { label: "考务费", name: "ExaminationFee", width: 100, align: "left", statistics: true },
  128. { label: "安全绩效", name: "SecurityPay", width: 100, align: "left", statistics: true },
  129. { label: "医药费", name: "MedicalBills", width: 100, align: "left", statistics: true },
  130. { label: "防暑降温", name: "CoolingPurposes", width: 100, align: "left", statistics: true },
  131. { label: "房补", name: "HousSub", width: 100, align: "left", statistics: true },
  132. { label: "物业补贴", name: "PropertySub", width: 100, align: "left", statistics: true },
  133. { label: "采暖补贴", name: "HeatingSub", width: 100, align: "left", statistics: true },
  134. { label: "综合补助", name: "ComprehensiveSub", width: 100, align: "left", statistics: true },
  135. { label: "综治奖", name: "ControlSub", width: 100, align: "left", statistics: true },
  136. { label: "补发", name: "Replacement", width: 100, align: "left", statistics: true },
  137. { label: "应发合计", name: "SendSum", width: 100, align: "left", statistics: true },
  138. { label: "失保", name: "LossInsurance", width: 100, align: "left", statistics: true },
  139. { label: "养保", name: "Bartender", width: 100, align: "left", statistics: true },
  140. { label: "职业年金", name: "OcPension", width: 100, align: "left", statistics: true },
  141. { label: "房积金", name: "HousFund", width: 100, align: "left", statistics: true },
  142. { label: "医保", name: "HealthCare", width: 100, align: "left", statistics: true },
  143. { label: "房租", name: "TheRent", width: 100, align: "left", statistics: true },
  144. { label: "网费", name: "InternetFee", width: 100, align: "left", statistics: true },
  145. { label: "考核扣款", name: "AssDeductions", width: 100, align: "left", statistics: true },
  146. { label: "其他扣款", name: "OtherDeductions", width: 100, align: "left", statistics: true },
  147. { label: "代扣个税", name: "WithBuckletax", width: 100, align: "left", statistics: true },
  148. { label: "扣款合计", name: "DeductionsSum", width: 100, align: "left", statistics: true },
  149. { label: "纳税收入", name: "TaxRevenue", width: 100, align: "left", statistics: true },
  150. { label: "免税收入", name: "TaxIncome", width: 100, align: "left", statistics: true },
  151. { label: "应发合计", name: "NetCombined", width: 100, align: "left", statistics: true },
  152. { label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
  153. { label: "发放年份", name: "IssueYear", width: 100, align: "left" },
  154. ],
  155. mainId: 'SalaryID',
  156. isPage: true
  157. });
  158. page.search();
  159. },
  160. search: function (param) {
  161. param = param || {};
  162. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  163. }
  164. };
  165. refreshGirdData = function () {
  166. $('#gridtable').jfGridSet('reload');
  167. };
  168. page.init();
  169. }