feat: 发票登记弹窗匹配结算单金额支持手动修改
This commit is contained in:
@@ -172,8 +172,19 @@
|
||||
<el-table-column label="发票金额(含税)" min-width="140" align="right">
|
||||
<template #default="{ row }">{{ formatMoney(row.invoiceAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="匹配结算单金额" min-width="150" align="right">
|
||||
<template #default="{ row }">{{ formatMoney(row.invoiceAmount) }}</template>
|
||||
<el-table-column label="匹配结算单金额" min-width="160" align="right">
|
||||
<template #default="{ row }">
|
||||
<!-- 匹配金额支持手动修改(默认=发票金额全额),已认领回显行只读 -->
|
||||
<el-input-number
|
||||
v-if="!row.claimed"
|
||||
v-model="row.matchedAmount"
|
||||
:min="0"
|
||||
:max="Number(row.invoiceAmount || 0)"
|
||||
:precision="2"
|
||||
:controls="false"
|
||||
/>
|
||||
<span v-else>{{ formatMoney(row.matchedAmount || row.invoiceAmount) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="90" fixed="right" align="center">
|
||||
<template #default="{ row, $index }">
|
||||
@@ -756,7 +767,7 @@ export default {
|
||||
invoiceType: row.invoiceType || '',
|
||||
taxRate: row.taxRate ?? null,
|
||||
availableInvoiceAmount: Number(row.invoiceAmount || 0),
|
||||
matchedAmount: Number(row.invoiceAmount || 0),
|
||||
matchedAmount: Number(row.matchedAmount || row.invoiceAmount || 0),
|
||||
}));
|
||||
try {
|
||||
// 先确认后保存:确定才认领并推送指定应付,取消不保存任何数据
|
||||
|
||||
Reference in New Issue
Block a user