Commit 9bee5d18 authored by 许珑标's avatar 许珑标

查看回单

parent 12743a09
......@@ -26,6 +26,14 @@ export function getPayOutDetail(id) {
})
}
// 查询发薪支付回单
export function viewPayEvi(id) {
return request({
url: '/business/payOutDetail/evi/view/' + id,
method: 'get'
})
}
// 新增发薪详情
export function addPayOutDetail(data) {
return request({
......
......@@ -52,7 +52,8 @@
</el-table-column>
<el-table-column label="员工姓名" align="center" prop="userName" fixed />
<el-table-column label="身份证号" align="center" prop="userCode" fixed />
<el-table-column label="用工单位" align="center" prop="companyName">
<el-table-column label="所属合同" align="center" prop="contractName" />
<el-table-column label="发薪主体" align="center" prop="companyName">
<template slot-scope="scope">
{{ scope.row.companyName }}
<el-tag>{{ scope.row.companyCode }}</el-tag>
......@@ -154,6 +155,10 @@
type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['business:payOutDetail:remove']">删除
</el-button>
<el-button v-if="scope.row.payStatus && 3 == scope.row.payStatus"
size="mini" type="text" icon="el-icon-info"
@click="eviView(scope.row)">查看回单
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -388,7 +393,7 @@ import {
getPayOutDetail,
delPayOutDetail,
addPayOutDetail,
updatePayOutDetail, adjustSalary
updatePayOutDetail, adjustSalary, viewPayEvi
} from '@/api/business/payOutDetail'
export default {
......@@ -823,6 +828,16 @@ export default {
this.getList()
}
});
},
eviView(row) {
this.$modal.loading("正在处理...")
viewPayEvi(row.id).then(resp => {
if (200 == resp.code && resp.data) {
window.open(resp.data)
}
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
......
......@@ -52,7 +52,8 @@
</el-table-column>
<el-table-column label="人员姓名" align="center" prop="userName" fixed />
<el-table-column label="身份证号" align="center" prop="userCode" fixed />
<el-table-column label="发放单位" align="center" prop="companyName">
<el-table-column label="所属合同" align="center" prop="contractName" />
<el-table-column label="发薪主体" align="center" prop="companyName">
<template slot-scope="scope">
{{ scope.row.companyName }}
<el-tag>{{ scope.row.companyCode }}</el-tag>
......@@ -137,7 +138,7 @@
<span>{{ parseTime(scope.row.payTime ? scope.row.payTime : '--') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" width="110" fixed="right" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button v-if="scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus"
size="mini" type="text"
......@@ -153,6 +154,10 @@
size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['business:payOutDetail:remove']">删除
</el-button>
<el-button v-if="scope.row.payStatus && 3 == scope.row.payStatus"
size="mini" type="text" icon="el-icon-info"
@click="eviView(scope.row)">查看回单
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -381,7 +386,7 @@ import {
getPayOutDetail,
delPayOutDetail,
addPayOutDetail,
updatePayOutDetail
updatePayOutDetail, viewPayEvi
} from '@/api/business/payOutDetail'
export default {
......@@ -797,6 +802,16 @@ export default {
} else {
this.cwForm.postWage = this.cwForm.postWage + Number(this.cwForm.checkWorkCost)
}
},
eviView(row) {
this.$modal.loading("正在处理...")
viewPayEvi(row.id).then(resp => {
if (200 == resp.code && resp.data) {
window.open(resp.data)
}
}).finally(() => {
this.$modal.closeLoading()
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment