提交 407948d9 authored 作者: zsf's avatar zsf

预支工资账单页面加收款

上级 e50c7b98
...@@ -47,10 +47,10 @@ export function billSettle(query) { ...@@ -47,10 +47,10 @@ export function billSettle(query) {
data: query, data: query,
}) })
} }
// //
export function billPayment(query) { export function billCollect(query) {
return request({ return request({
url: "/djl-salary/advance/salary/bill/payment", url: "/djl-salary/advance/salary/bill/collect",
method: 'post', method: 'post',
data: query, data: query,
}) })
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<el-table-column label="操作" width="240" align="center"> <el-table-column label="操作" width="240" align="center">
<template #default="{row}"> <template #default="{row}">
<el-button v-if="row.state == 'none'" link type="primary" icon="Memo" @click="handleSettle(row)">结算</el-button> <el-button v-if="row.state == 'none'" link type="primary" icon="Memo" @click="handleSettle(row)">结算</el-button>
<el-button v-if="row.state == 'settle'" link type="primary" icon="Tickets" @click="handlePayment(row)">收款</el-button> <el-button v-if="row.state == 'payment'" link type="primary" icon="Tickets" @click="handleCollect(row)">收款</el-button>
<el-button link type="primary" icon="Edit" @click="handleDetails(row)">明细</el-button> <el-button link type="primary" icon="Edit" @click="handleDetails(row)">明细</el-button>
<el-button link type="primary" icon="Download" @click="exportData(row)">导出</el-button> <el-button link type="primary" icon="Download" @click="exportData(row)">导出</el-button>
</template> </template>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</template> </template>
<script setup> <script setup>
import {ref} from "vue"; import {ref} from "vue";
import {billList, billPayment, billSettle, queryAllDispatch} from "@/api/bill" import {billCollect, billList, billSettle, queryAllDispatch} from "@/api/bill"
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const options = ref([]); // 派遣下拉 const options = ref([]); // 派遣下拉
const list = ref([{}]); const list = ref([{}]);
...@@ -102,10 +102,10 @@ function handleSettle(row) { ...@@ -102,10 +102,10 @@ function handleSettle(row) {
proxy.$modal.msgSuccess(res.code); proxy.$modal.msgSuccess(res.code);
}).catch(() => {}); }).catch(() => {});
} }
// //
function handlePayment(row) { function handleCollect(row) {
proxy.$modal.confirm('是否确认收款?').then(function() { proxy.$modal.confirm('是否确认收款?').then(function() {
return billPayment({ return billCollect({
id: row.id, id: row.id,
baseCode: row.baseCode baseCode: row.baseCode
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论