|
|
@@ -95,6 +95,70 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
|
|
|
+ <template v-slot:amountDiff="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.amountDiff"
|
|
|
+ type="number"
|
|
|
+ :min="0"
|
|
|
+ disabled
|
|
|
+ placeholder="0"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:dealType="scope">
|
|
|
+ <el-select
|
|
|
+ v-model="scope.row.dealType"
|
|
|
+ placeholder="请选择"
|
|
|
+ class="ele-block"
|
|
|
+ disabled
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in dealTypeOp"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:offsetMode="scope">
|
|
|
+ <el-select
|
|
|
+ v-if="scope.row.dealType === 3"
|
|
|
+ v-model="scope.row.offsetMode"
|
|
|
+ placeholder="请选择"
|
|
|
+ class="ele-block"
|
|
|
+ disabled
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in offsetModeOp"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ <span v-else class="ele-block diff-direction-empty">-</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:offsetRef="scope">
|
|
|
+ <el-tag
|
|
|
+ v-if="scope.row.dealType === 3 && isWriteoffMode(scope.row.offsetMode) && (scope.row.writeoffList || []).length"
|
|
|
+ size="mini"
|
|
|
+ type="success"
|
|
|
+ >
|
|
|
+ 已选{{ (scope.row.writeoffList || []).length }}张/合计{{ sumWriteoff(scope.row) }}
|
|
|
+ </el-tag>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-slot:exceptionRemark="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.exceptionRemark"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 1, maxRows: 3 }"
|
|
|
+ disabled
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
<template v-slot:action="scope">
|
|
|
<el-link
|
|
|
v-if="!isView"
|
|
|
@@ -146,10 +210,25 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- cacheKeyUrl: 'eom-202608171425-account-receivable-table',
|
|
|
+ // 缓存键变更:强制重建列配置,确保「差异汇总金额」「异常处理」「冲抵处置方式」「冲抵单据」「异常说明」五列在审批页显示
|
|
|
+ cacheKeyUrl: 'wt-202611172100-account-receivable-table',
|
|
|
paymentTypeOp,
|
|
|
transactionMethodsOp,
|
|
|
paymentStatusOp: paymentStatus,
|
|
|
+ // 金额差异异常处理类型(与后端 FinStatDealTypeEnum 一致)
|
|
|
+ dealTypeOp: [
|
|
|
+ { value: 1, label: '收款' },
|
|
|
+ { value: 2, label: '退款' },
|
|
|
+ { value: 3, label: '冲抵下期' },
|
|
|
+ { value: 4, label: '不处置' }
|
|
|
+ ],
|
|
|
+ // 冲抵处置方式(与后端 FinOffsetModeEnum 一致)
|
|
|
+ offsetModeOp: [
|
|
|
+ { value: 1, label: '借向结转(应补未补)' },
|
|
|
+ { value: 2, label: '贷向结转(应退未退)' },
|
|
|
+ { value: 3, label: '核销冲抵单据(借向)' },
|
|
|
+ { value: 4, label: '核销冲抵单据(贷向)' }
|
|
|
+ ],
|
|
|
rules: {},
|
|
|
// 本地维护的应收明细,避免每次编辑都同步回父组件
|
|
|
localList: [],
|
|
|
@@ -241,6 +320,41 @@
|
|
|
label: '累计应收金额',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 140,
|
|
|
+ prop: 'amountDiff',
|
|
|
+ label: '差异汇总金额',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'amountDiff'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 160,
|
|
|
+ prop: 'dealType',
|
|
|
+ label: '异常处理',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'dealType'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 180,
|
|
|
+ prop: 'offsetMode',
|
|
|
+ label: '冲抵处置方式',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'offsetMode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 220,
|
|
|
+ prop: 'writeoffList',
|
|
|
+ label: '冲抵单据',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'offsetRef'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 160,
|
|
|
+ prop: 'exceptionRemark',
|
|
|
+ label: '异常说明',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'exceptionRemark'
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
@@ -287,6 +401,18 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 是否核销模式(3核销借向 / 4核销贷向)
|
|
|
+ isWriteoffMode(mode) {
|
|
|
+ return mode === 3 || mode === 4;
|
|
|
+ },
|
|
|
+ // 已选冲抵金额合计
|
|
|
+ sumWriteoff(row) {
|
|
|
+ const sum = (row.writeoffList || []).reduce(
|
|
|
+ (pre, cur) => pre + (+cur.writeoffAmt || 0),
|
|
|
+ 0
|
|
|
+ );
|
|
|
+ return Math.round(sum * 100) / 100;
|
|
|
+ },
|
|
|
openReceiveTerms(index) {
|
|
|
this.currentRowIndex = index;
|
|
|
this.$refs.receiveTermsDialogRef.open();
|