123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <template>
- <div class="reply" ref = "replyModal">
- <a-modal
- title="月度工资单"
- width="85%"
- :visible="visible"
- :confirmLoading="loading"
- :getContainer ='()=>$refs.replyModal'
- @cancel="handleCancel"
- destroyOnClose
- >
- <template #footer>
- <a-button @click="handleCancel" style="margin-left: 8px;">取消</a-button>
- </template>
- <div class="table-page-search-wrapper">
- <a-form-model layout="inline" ref="form" :model="formState" >
- <a-row :gutter="24">
- <a-col :md="8" :sm="8">
- <a-form-model-item label="姓名" >
- <a-input placeholder="请输入" v-model="formState.name" />
- </a-form-model-item>
- </a-col>
- <a-col :xl="8" :lg="7" :md="8" :sm="24">
- <a-form-item label="部门">
- <j-search-select-tag v-model="formState.sysOrgCode" placeholder="请选择部门"
- dict="sys_depart,depart_name,depart_name,org_type='3' or org_code='TBD' order by org_code"/>
- </a-form-item>
- </a-col>
- <a-col :md="8" :sm="8">
- <a-form-model-item label="" >
- <a-button type="primary" icon="search" @click="searchSonList">查询</a-button>
- </a-form-model-item>
- </a-col>
- </a-row>
- </a-form-model>
- <a-table
- bordered
- :columns="columns"
- :data-source="dataSource"
- :loading="loading"
- :scroll="{x: 3500 ,y:300}"
- :pagination="false"
- >
- </a-table>
- </div>
- </a-modal>
- </div>
- </template>
- <script>
-
- import moment from 'moment'
- import pick from 'lodash.pick'
- import { FormTypes } from '@/utils/JEditableTableUtil'
- import { putAction,getAction } from '@/api/manage'
- export default {
- name: 'PayrollDetail',
- components: {
- moment,
- },
- data() {
- return {
- formState:{},
- dataSource: [{}],
- visible:false,
- loading:false,
- columns: [
- {
- title: '序号',
- align:"center",
- width:'2%',
- dataIndex: 'index',
- customRender:function (t, r, index) {
- return parseInt(index)+1;
- }
- },
- {
- title: '编号',
- align: "center",
- dataIndex: 'code',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '姓名',
- align: "center",
- dataIndex: 'name',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '基本薪资',
- align: "center",
- dataIndex: 'wages',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '话费补贴',
- align: "center",
- dataIndex: 'phoneBill',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '午餐补贴',
- align: "center",
- dataIndex: 'lunch',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '住房补贴',
- align: "center",
- dataIndex: 'housingSubsidies',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '交通补贴',
- align: "center",
- dataIndex: 'transportation',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '全勤奖',
- align: "center",
- dataIndex: 'fullAttendance',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '合计应发',
- align: "center",
- dataIndex: 'totalPayable',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '社保',
- align: "center",
- dataIndex: 'socialSecurity',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '公积金',
- align: "center",
- dataIndex: 'accumulationFund',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '个税',
- align: "center",
- dataIndex: 'personalTax',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '迟到',
- align: "center",
- dataIndex: 'latenessCost',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '事假',
- align: "center",
- dataIndex: 'personalCost',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '病假',
- align: "center",
- dataIndex: 'sickCost',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '婚假',
- align: "center",
- dataIndex: 'marriageCost',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '丧假',
- align: "center",
- dataIndex: 'funeralCost',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '合计应扣',
- align: "center",
- dataIndex: 'totalDeduction',
- ellipsis: true,
- width:'4%'
- },
- {
- title: '实发合计',
- align: "center",
- dataIndex: 'actualOccurrence',
- ellipsis: true,
- width:'4%'
- },
- ]
- }
- },
- created(){
- },
- watch: {
- },
- methods: {
- handleCancel(){
- this.visible = false
- },
- detail(id){
- this.formState = {}
- this.formState.id = id
- this.getTableList()
- },
- getTableList(){
- this.loading = true
- getAction('/salary/salaryManagement/querySalaryManagementDetailByMainId',this.formState).then(res=>{
- this.loading = false
- if(res.success){
- this.dataSource =res.result
- }else{
- this.$message.error(res.message);
- }
- })
- },
- searchSonList(){
- this.getTableList()
- }
- }
- }
- </script>
-
- <style scoped lang="less">
- /deep/ .nresume .ant-input{
- height: 100px !important;
- }
- /deep/ .ant-select{
- width: 100%;
- }
- .form-table-heard:before {
- content: '*';
- color: red;
- }
- /deep/ .ant-calendar-picker{
- width: 113px !important;
- }
- </style>
|