feat: 结算调整单接入金蝶列表展示与冲销预检
This commit is contained in:
@@ -414,6 +414,8 @@ export default {
|
||||
});
|
||||
this.details = [];
|
||||
this.recalculate();
|
||||
// 金蝶冲销预检:软提示,不阻断建单(金蝶不可用时静默降级)
|
||||
this.precheckWriteOff(formalSettlementId);
|
||||
this.loading = true;
|
||||
try {
|
||||
const { data } = await api.getFormalDetails(formalSettlementId);
|
||||
@@ -431,6 +433,19 @@ export default {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
async precheckWriteOff(formalSettlementId) {
|
||||
try {
|
||||
const { data } = await api.kingdeeWriteOffPrecheck(formalSettlementId);
|
||||
if (String(this.form.formalSettlementId) !== String(formalSettlementId)) return;
|
||||
const result = data?.data || data || {};
|
||||
if (!result.message) return;
|
||||
if (result.syncStatus === 'synced' && result.writtenOff === false)
|
||||
this.$message.warning(result.message);
|
||||
else this.$message.info(result.message);
|
||||
} catch (error) {
|
||||
// 预检软提示:金蝶查询失败静默降级,不阻断建单
|
||||
}
|
||||
},
|
||||
addFeeRow() {
|
||||
this.details.push({
|
||||
formalSettlementDetailId: null,
|
||||
|
||||
Reference in New Issue
Block a user