This commit is contained in:
parent
c5f092b66e
commit
f3bb480013
|
|
@ -72,6 +72,14 @@ export const exportThreeAndOneMonthlyWagePaymentListAPI = (data) => {
|
|||
params: data,
|
||||
})
|
||||
}
|
||||
// 综合查询 导出三表一册单月农名工工资支付表获取工资信息
|
||||
export const getThreeAndOneMonthlyWagePaymentInfoAPI = (data) => {
|
||||
return request({
|
||||
url: '/bmw/pmProject/getSalaryByWorkerId',
|
||||
method: 'GET',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 综合查询 三表一册封档操作
|
||||
export const updateProMonthTableAPI = (data) => {
|
||||
|
|
|
|||
|
|
@ -109,10 +109,10 @@
|
|||
"
|
||||
>
|
||||
<AddOrEditForm
|
||||
:proId="proId"
|
||||
:formType="formType"
|
||||
:workerId="workerId"
|
||||
:einStatus="einStatus"
|
||||
:proId="proId"
|
||||
ref="addOrEditFormContentRef"
|
||||
:queryDetailsId="queryDetailsId"
|
||||
@onOpenAddOrEdit="onHandleOpenAddOrEdit"
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
v-for="item in columnData"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
<!-- <el-input
|
||||
clearable
|
||||
style="width: 100px"
|
||||
v-model.trim="scope.row[item.prop]"
|
||||
|
|
@ -104,7 +104,15 @@
|
|||
item.prop === 'actualMoney') &&
|
||||
isEdit
|
||||
"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<span
|
||||
class="cursor-blue"
|
||||
@click="onHandleOpenPayMoney(scope.row)"
|
||||
v-if="item.prop === 'payMoney'"
|
||||
>
|
||||
{{ scope.row[item.prop] }}
|
||||
</span>
|
||||
|
||||
<template v-else-if="item.prop === 'isAccord'">
|
||||
{{ scope.row[item.prop] == 1 ? '是' : '否' }}
|
||||
|
|
@ -124,6 +132,26 @@
|
|||
/>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<DialogModel
|
||||
:dialogConfig="dialogConfig"
|
||||
@closeDialogOuter="handleCloseDialogOuter"
|
||||
>
|
||||
<template slot="outerContent">
|
||||
<el-table border stripe :data="wagePayInfoListData">
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="考勤日期"
|
||||
prop="attDay"
|
||||
/>
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="日工资"
|
||||
prop="priceWage"
|
||||
/>
|
||||
</el-table>
|
||||
</template>
|
||||
</DialogModel>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -131,9 +159,15 @@
|
|||
import {
|
||||
exportThreeAndOneMonthlyWagePaymentListAPI,
|
||||
saveThreeAndOneMonthlyWagePaymentAPI,
|
||||
getThreeAndOneMonthlyWagePaymentInfoAPI,
|
||||
} from '@/api/synthesize-query/three-and-one'
|
||||
|
||||
import DialogModel from '@/components/DialogModel/index.vue'
|
||||
export default {
|
||||
name: 'WagePay',
|
||||
components: {
|
||||
DialogModel,
|
||||
},
|
||||
props: {
|
||||
id: {
|
||||
type: [Number, String],
|
||||
|
|
@ -143,6 +177,10 @@ export default {
|
|||
type: [Number, String],
|
||||
default: '',
|
||||
},
|
||||
month: {
|
||||
type: [Number, String],
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -219,6 +257,14 @@ export default {
|
|||
prop: 'bankNumber',
|
||||
},
|
||||
],
|
||||
dialogConfig: {
|
||||
outerTitle: '工资信息',
|
||||
outerWidth: '40%',
|
||||
outerVisible: false,
|
||||
minHeight: '50vh',
|
||||
maxHeight: '90vh',
|
||||
},
|
||||
wagePayInfoListData: [],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
@ -373,6 +419,27 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 查看工资信息
|
||||
async onHandleOpenPayMoney(row) {
|
||||
console.log(row)
|
||||
|
||||
const params = {
|
||||
workerId: row.userId,
|
||||
tableMonth: row.month,
|
||||
proId: row.proId,
|
||||
}
|
||||
|
||||
const res = await getThreeAndOneMonthlyWagePaymentInfoAPI(params)
|
||||
this.wagePayInfoListData = res?.data
|
||||
|
||||
this.dialogConfig.outerVisible = true
|
||||
},
|
||||
|
||||
// 关闭
|
||||
handleCloseDialogOuter() {
|
||||
this.dialogConfig.outerVisible = false
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue