From 3da849246bb859734fa367b9568e23529d12334d Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期四, 15 一月 2026 17:44:13 +0800
Subject: [PATCH] 增加必填,字段修改
---
ui/admin-ui3/src/components/ClaimBillDialog/index.vue | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/ui/admin-ui3/src/components/ClaimBillDialog/index.vue b/ui/admin-ui3/src/components/ClaimBillDialog/index.vue
index aa0f5fe..2af57dc 100644
--- a/ui/admin-ui3/src/components/ClaimBillDialog/index.vue
+++ b/ui/admin-ui3/src/components/ClaimBillDialog/index.vue
@@ -38,10 +38,10 @@
</el-descriptions-item v-if="isViewMode">
<el-descriptions-item label="鍏宠仈璐﹀崟绫诲瀷">
<span v-if="detail.incomeExpenseFlag == 0">
- 渚涘簲鍟�
+ 瀹㈡埛
</span>
<span v-if="detail.incomeExpenseFlag == 1">
- 瀹㈡埛
+ 渚涘簲鍟�
</span>
</el-descriptions-item>
<el-descriptions-item label="" :span="1"></el-descriptions-item>
@@ -158,6 +158,7 @@
import { addFundFlowClaimDetailClaim } from "@/api/cwgl/fundFlow";
import { delFundFlowClaimDetail, } from "@/api/cwgl/fundFlowClaimDetail";
import { listFundFlowClaimDetail } from "@/api/cwgl/fundFlowClaimDetail";
+import { getFundFlow, } from "@/api/cwgl/fundFlow";
const { proxy } = useCurrentInstance();
const { sys_income_expenses } = proxy.useDict('sys_income_expenses');
@@ -301,13 +302,6 @@
// 鍙栧嚭绗竴鏉℃槑缁嗙殑鍏宠仈浼佷笟绫诲瀷
const firstCompanyType = detail.value.claimDetails[0].relatedCompanyType;
- if (firstCompanyType === '瀹㈡埛') {
- billType.value = 'RECEIVABLE';
- } else if (firstCompanyType === '渚涘簲鍟�') {
- billType.value = 'PAYABLE';
- }
- // 濡傛灉鏈塈D锛屽垯璇锋眰鍚庣鏄庣粏鏁版嵁
-
// 纭繚宸叉湁鐨勬暟鎹涓嶄細鍙樻垚缂栬緫妯″紡
getList()
}
@@ -334,7 +328,7 @@
// 淇敼鏂板琛岄�昏緫
const handleAddRow = () => {
- const defaultCompanyType = detail.value.incomeExpenseFlag == '0' ? '瀹㈡埛' : '渚涘簲鍟�';
+ const defaultCompanyType = detail.value.incomeExpenseFlag == 0 ? '瀹㈡埛' : '渚涘簲鍟�';
// 鑾峰彇褰撳墠鏃堕棿鐨� YYYY-MM-DD HH:mm:ss 鏍煎紡
const now = new Date();
@@ -390,7 +384,13 @@
addFundFlowClaimDetailClaim(row, detail.value.id).then((response) => {
if (response.code == 200) {
proxy.$modal.msgSuccess("淇濆瓨鎴愬姛");
- getList(); // 浣跨敤缁熶竴鐨� getList 鏂规硶
+ getFundFlow(detail.value.id).then((res) => {
+ if (res.code == 200) {
+ detail.value = res.data;
+ getList(); // 浣跨敤缁熶竴鐨� getList 鏂规硶
+
+ }
+ });
}
})
};
@@ -424,7 +424,7 @@
// 鍥炲~寮圭獥閫変腑鐨勬暟鎹�
const receivablForm = (data: any) => {
- const defaultCompanyType = billType.value === 'RECEIVABLE' ? '瀹㈡埛' : '渚涘簲鍟�';
+ const defaultCompanyType = detail.value.incomeExpenseFlag == 0 ? '瀹㈡埛' : '渚涘簲鍟�';
if (currentRowIndex.value !== null && data) {
const row = detail.value.claimDetails[currentRowIndex.value];
@@ -442,8 +442,7 @@
};
const accountsForm = (data: any) => {
- const defaultCompanyType = billType.value === 'RECEIVABLE' ? '瀹㈡埛' : '渚涘簲鍟�';
-
+ const defaultCompanyType = detail.value.incomeExpenseFlag == 0 ? '瀹㈡埛' : '渚涘簲鍟�';
if (currentRowIndex.value !== null && data) {
const row = detail.value.claimDetails[currentRowIndex.value];
row.billNo = data.systemNo
--
Gitblit v1.8.0