PayrollDetail.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <template>
  2. <div class="reply" ref = "replyModal">
  3. <a-modal
  4. title="月度工资单"
  5. width="85%"
  6. :visible="visible"
  7. :confirmLoading="loading"
  8. :getContainer ='()=>$refs.replyModal'
  9. @cancel="handleCancel"
  10. destroyOnClose
  11. >
  12. <template #footer>
  13. <a-button @click="handleCancel" style="margin-left: 8px;">取消</a-button>
  14. </template>
  15. <div class="table-page-search-wrapper">
  16. <a-form-model layout="inline" ref="form" :model="formState" >
  17. <a-row :gutter="24">
  18. <a-col :md="8" :sm="8">
  19. <a-form-model-item label="姓名" >
  20. <a-input placeholder="请输入" v-model="formState.name" />
  21. </a-form-model-item>
  22. </a-col>
  23. <a-col :xl="8" :lg="7" :md="8" :sm="24">
  24. <a-form-item label="部门">
  25. <j-search-select-tag v-model="formState.sysOrgCode" placeholder="请选择部门"
  26. dict="sys_depart,depart_name,depart_name,org_type='3' or org_code='TBD' order by org_code"/>
  27. </a-form-item>
  28. </a-col>
  29. <a-col :md="8" :sm="8">
  30. <a-form-model-item label="" >
  31. <a-button type="primary" icon="search" @click="searchSonList">查询</a-button>
  32. </a-form-model-item>
  33. </a-col>
  34. </a-row>
  35. </a-form-model>
  36. <a-table
  37. bordered
  38. :columns="columns"
  39. :data-source="dataSource"
  40. :loading="loading"
  41. :scroll="{x: 3500 ,y:300}"
  42. :pagination="false"
  43. >
  44. </a-table>
  45. </div>
  46. </a-modal>
  47. </div>
  48. </template>
  49. <script>
  50. import moment from 'moment'
  51. import pick from 'lodash.pick'
  52. import { FormTypes } from '@/utils/JEditableTableUtil'
  53. import { putAction,getAction } from '@/api/manage'
  54. export default {
  55. name: 'PayrollDetail',
  56. components: {
  57. moment,
  58. },
  59. data() {
  60. return {
  61. formState:{},
  62. dataSource: [{}],
  63. visible:false,
  64. loading:false,
  65. columns: [
  66. {
  67. title: '序号',
  68. align:"center",
  69. width:'2%',
  70. dataIndex: 'index',
  71. customRender:function (t, r, index) {
  72. return parseInt(index)+1;
  73. }
  74. },
  75. {
  76. title: '编号',
  77. align: "center",
  78. dataIndex: 'code',
  79. ellipsis: true,
  80. width:'4%'
  81. },
  82. {
  83. title: '姓名',
  84. align: "center",
  85. dataIndex: 'name',
  86. ellipsis: true,
  87. width:'4%'
  88. },
  89. {
  90. title: '基本薪资',
  91. align: "center",
  92. dataIndex: 'wages',
  93. ellipsis: true,
  94. width:'4%'
  95. },
  96. {
  97. title: '话费补贴',
  98. align: "center",
  99. dataIndex: 'phoneBill',
  100. ellipsis: true,
  101. width:'4%'
  102. },
  103. {
  104. title: '午餐补贴',
  105. align: "center",
  106. dataIndex: 'lunch',
  107. ellipsis: true,
  108. width:'4%'
  109. },
  110. {
  111. title: '住房补贴',
  112. align: "center",
  113. dataIndex: 'housingSubsidies',
  114. ellipsis: true,
  115. width:'4%'
  116. },
  117. {
  118. title: '交通补贴',
  119. align: "center",
  120. dataIndex: 'transportation',
  121. ellipsis: true,
  122. width:'4%'
  123. },
  124. {
  125. title: '全勤奖',
  126. align: "center",
  127. dataIndex: 'fullAttendance',
  128. ellipsis: true,
  129. width:'4%'
  130. },
  131. {
  132. title: '合计应发',
  133. align: "center",
  134. dataIndex: 'totalPayable',
  135. ellipsis: true,
  136. width:'4%'
  137. },
  138. {
  139. title: '社保',
  140. align: "center",
  141. dataIndex: 'socialSecurity',
  142. ellipsis: true,
  143. width:'4%'
  144. },
  145. {
  146. title: '公积金',
  147. align: "center",
  148. dataIndex: 'accumulationFund',
  149. ellipsis: true,
  150. width:'4%'
  151. },
  152. {
  153. title: '个税',
  154. align: "center",
  155. dataIndex: 'personalTax',
  156. ellipsis: true,
  157. width:'4%'
  158. },
  159. {
  160. title: '迟到',
  161. align: "center",
  162. dataIndex: 'latenessCost',
  163. ellipsis: true,
  164. width:'4%'
  165. },
  166. {
  167. title: '事假',
  168. align: "center",
  169. dataIndex: 'personalCost',
  170. ellipsis: true,
  171. width:'4%'
  172. },
  173. {
  174. title: '病假',
  175. align: "center",
  176. dataIndex: 'sickCost',
  177. ellipsis: true,
  178. width:'4%'
  179. },
  180. {
  181. title: '婚假',
  182. align: "center",
  183. dataIndex: 'marriageCost',
  184. ellipsis: true,
  185. width:'4%'
  186. },
  187. {
  188. title: '丧假',
  189. align: "center",
  190. dataIndex: 'funeralCost',
  191. ellipsis: true,
  192. width:'4%'
  193. },
  194. {
  195. title: '合计应扣',
  196. align: "center",
  197. dataIndex: 'totalDeduction',
  198. ellipsis: true,
  199. width:'4%'
  200. },
  201. {
  202. title: '实发合计',
  203. align: "center",
  204. dataIndex: 'actualOccurrence',
  205. ellipsis: true,
  206. width:'4%'
  207. },
  208. ]
  209. }
  210. },
  211. created(){
  212. },
  213. watch: {
  214. },
  215. methods: {
  216. handleCancel(){
  217. this.visible = false
  218. },
  219. detail(id){
  220. this.formState = {}
  221. this.formState.id = id
  222. this.getTableList()
  223. },
  224. getTableList(){
  225. this.loading = true
  226. getAction('/salary/salaryManagement/querySalaryManagementDetailByMainId',this.formState).then(res=>{
  227. this.loading = false
  228. if(res.success){
  229. this.dataSource =res.result
  230. }else{
  231. this.$message.error(res.message);
  232. }
  233. })
  234. },
  235. searchSonList(){
  236. this.getTableList()
  237. }
  238. }
  239. }
  240. </script>
  241. <style scoped lang="less">
  242. /deep/ .nresume .ant-input{
  243. height: 100px !important;
  244. }
  245. /deep/ .ant-select{
  246. width: 100%;
  247. }
  248. .form-table-heard:before {
  249. content: '*';
  250. color: red;
  251. }
  252. /deep/ .ant-calendar-picker{
  253. width: 113px !important;
  254. }
  255. </style>