|
|
@@ -76,19 +76,25 @@
|
|
|
<el-table-column label="操作" width="200" fixed="right">
|
|
|
<template #default="scope">
|
|
|
<div class="flex a-c ">
|
|
|
- <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'" @click="handleCount(scope.row)">结算</el-button>
|
|
|
- <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
- <el-dropdown placement="bottom-start" trigger="click" >
|
|
|
- <span class="el-dropdown-link">
|
|
|
- 明细查询
|
|
|
- </span>
|
|
|
- <template #dropdown>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item :disabled="scope.row.settlementStatus == '未结算'" @click="handleCountRecord(scope.row)">结算记录</el-dropdown-item>
|
|
|
- <el-dropdown-item :disabled="scope.row.settlementStatus == '未结算'" @click="handleInvoiceDetail(scope.row)">开票明细</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
+ <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'"
|
|
|
+ @click="handleCount(scope.row)">结算</el-button>
|
|
|
+ <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'"
|
|
|
+ @click="handleDelete(scope.row)">删除</el-button>
|
|
|
+ <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'"
|
|
|
+ @click="handleSettlement(scope.row)">标识结清</el-button>
|
|
|
+ <el-dropdown placement="bottom-start" trigger="click">
|
|
|
+ <span class="el-dropdown-link">
|
|
|
+ 明细查询
|
|
|
+ </span>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item :disabled="scope.row.settlementStatus == '未结算'"
|
|
|
+ @click="handleCountRecord(scope.row)">结算记录</el-dropdown-item>
|
|
|
+ <el-dropdown-item :disabled="scope.row.settlementStatus == '未结算'"
|
|
|
+ @click="handleInvoiceDetail(scope.row)">开票明细</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@@ -118,8 +124,8 @@
|
|
|
<el-input v-model="countForm.receivableSupervisePremium" disabled placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="actualReceivedAmount" label="实收金额">
|
|
|
- <el-input-number v-model="countForm.actualReceivedAmount" style="width: 100%;" :min="0" :max="countForm.remainSettlementAmount" :precision="2"
|
|
|
- controls-position="right" @change="handleChange()" />
|
|
|
+ <el-input-number v-model="countForm.actualReceivedAmount" style="width: 100%;" :min="0"
|
|
|
+ :max="countForm.remainSettlementAmount" :precision="2" controls-position="right" @change="handleChange()" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="回款差额">
|
|
|
<el-input v-model="countForm.settlementPaymentDifference" disabled placeholder="自动计算" />
|
|
|
@@ -255,6 +261,20 @@ const calSub = async (minuend: number = 0, subtrahend: number) => {
|
|
|
const res = await api.financeApi.calSub({ minuend, subtrahend })
|
|
|
return res.data || 0
|
|
|
}
|
|
|
+// 标识结清
|
|
|
+const handleSettlement = (row: any) => {
|
|
|
+ api.financeApi.updateSettlementStatus(row.id).then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ ElMessage({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ initList()
|
|
|
+ } else {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
// 删除
|
|
|
const handleDelete = (row) => {
|
|
|
ElMessageBox.confirm(
|
|
|
@@ -462,6 +482,7 @@ onMounted(() => {
|
|
|
color: #ccc;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
:deep(.el-dropdown-link) {
|
|
|
display: flex;
|
|
|
align-items: center;
|