OvertimePayroll.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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="6" :sm="8">
  19. <a-form-model-item label="时间" prop="totalNum">
  20. <a-input placeholder="" v-model="formState.DateTime" />
  21. </a-form-model-item>
  22. </a-col>
  23. <a-col :md="6" :sm="8">
  24. <a-form-model-item label="版本" >
  25. <a-input placeholder="请输入" v-model="formState.version" />
  26. </a-form-model-item>
  27. </a-col>
  28. <a-col :md="6" :sm="8">
  29. <a-form-model-item label="姓名" >
  30. <a-input placeholder="请输入" v-model="formState.name" />
  31. </a-form-model-item>
  32. </a-col>
  33. <a-col :md="6" :sm="8">
  34. <a-form-model-item label="" >
  35. <a-button type="primary" icon="search" @click="searchSonList">查询</a-button>
  36. </a-form-model-item>
  37. </a-col>
  38. </a-row>
  39. <a-row :gutter="24">
  40. <a-col :md="24" :sm="8">
  41. <a-form-model-item label="备注" class="nresume" style="height:100px !important">
  42. <a-input type="textarea" placeholder="请输入" v-model="formState.demo" />
  43. </a-form-model-item>
  44. </a-col>
  45. </a-row>
  46. </a-form-model>
  47. <a-table
  48. bordered
  49. :columns="columns"
  50. :data-source="dataSource"
  51. :loading="loading"
  52. :scroll="{x: 3500 ,y:300}"
  53. :pagination="false"
  54. >
  55. </a-table>
  56. </div>
  57. </a-modal>
  58. </div>
  59. </template>
  60. <script>
  61. import moment from 'moment'
  62. import pick from 'lodash.pick'
  63. import { FormTypes } from '@/utils/JEditableTableUtil'
  64. import { putAction,getAction } from '@/api/manage'
  65. export default {
  66. name: 'OvertimePayroll',
  67. components: {
  68. moment,
  69. },
  70. data() {
  71. return {
  72. formState:{},
  73. dataSource: [{}],
  74. visible:false,
  75. loading:false,
  76. columns: [
  77. {
  78. title: '序号',
  79. align:"center",
  80. width:'2%',
  81. dataIndex: 'index',
  82. customRender:function (t, r, index) {
  83. return parseInt(index)+1;
  84. }
  85. },
  86. {
  87. title: '编号',
  88. align: "center",
  89. dataIndex: 'number',
  90. ellipsis: true,
  91. width:'4%'
  92. },
  93. {
  94. title: '姓名',
  95. align: "center",
  96. dataIndex: 'name',
  97. ellipsis: true,
  98. width:'4%'
  99. },
  100. {
  101. title: '基本薪资',
  102. align: "center",
  103. dataIndex: 'organization',
  104. ellipsis: true,
  105. width:'4%'
  106. },
  107. {
  108. title: '话费补贴',
  109. align: "center",
  110. dataIndex: 'salaryCardNumber',
  111. ellipsis: true,
  112. width:'4%'
  113. },
  114. {
  115. title: '午餐补贴',
  116. align: "center",
  117. dataIndex: 'singlesWeekendsOff',
  118. ellipsis: true,
  119. width:'4%'
  120. },
  121. {
  122. title: '住房补贴',
  123. align: "center",
  124. dataIndex: 'workingHours',
  125. ellipsis: true,
  126. width:'4%'
  127. },
  128. {
  129. title: '交通补贴',
  130. align: "center",
  131. dataIndex: 'attendanceDays',
  132. ellipsis: true,
  133. width:'4%'
  134. },
  135. {
  136. title: '全勤奖',
  137. align: "center",
  138. dataIndex: 'telephoneSubsidy',
  139. ellipsis: true,
  140. width:'4%'
  141. },
  142. {
  143. title: '合计应发',
  144. align: "center",
  145. dataIndex: 'lunchSubsidy',
  146. ellipsis: true,
  147. width:'4%'
  148. },
  149. {
  150. title: '社保',
  151. align: "center",
  152. dataIndex: 'housingSubsidies',
  153. ellipsis: true,
  154. width:'4%'
  155. },
  156. {
  157. title: '公积金',
  158. align: "center",
  159. dataIndex: 'transportationSubsidies',
  160. ellipsis: true,
  161. width:'4%'
  162. },
  163. {
  164. title: '个税',
  165. align: "center",
  166. dataIndex: 'fullAttendanceAward',
  167. ellipsis: true,
  168. width:'4%'
  169. },
  170. {
  171. title: '迟到',
  172. align: "center",
  173. dataIndex: 'endowmentInsurance',
  174. ellipsis: true,
  175. width:'4%'
  176. },
  177. {
  178. title: '事假',
  179. align: "center",
  180. dataIndex: 'unemploymentInsurance',
  181. ellipsis: true,
  182. width:'4%'
  183. },
  184. {
  185. title: '病假',
  186. align: "center",
  187. dataIndex: 'medicalInsurance',
  188. ellipsis: true,
  189. width:'4%'
  190. },
  191. {
  192. title: '婚假',
  193. align: "center",
  194. dataIndex: 'accumulationFund',
  195. ellipsis: true,
  196. width:'4%'
  197. },
  198. {
  199. title: '丧假',
  200. align: "center",
  201. dataIndex: 'salaryDeduction',
  202. ellipsis: true,
  203. width:'4%'
  204. },
  205. {
  206. title: '合计应扣',
  207. align: "center",
  208. dataIndex: 'latenessTimes',
  209. ellipsis: true,
  210. width:'4%'
  211. },
  212. {
  213. title: '实发合计',
  214. align: "center",
  215. dataIndex: 'lateDeductionFees',
  216. ellipsis: true,
  217. width:'4%'
  218. },
  219. ]
  220. }
  221. },
  222. created(){
  223. },
  224. watch: {
  225. },
  226. methods: {
  227. handleCancel(){
  228. this.visible = false
  229. },
  230. searchSonList(){
  231. }
  232. }
  233. }
  234. </script>
  235. <style scoped lang="less">
  236. /deep/ .nresume .ant-input{
  237. height: 100px !important;
  238. }
  239. /deep/ .ant-select{
  240. width: 100%;
  241. }
  242. .form-table-heard:before {
  243. content: '*';
  244. color: red;
  245. }
  246. /deep/ .ant-calendar-picker{
  247. width: 113px !important;
  248. }
  249. </style>