From 15375a133f255a93a9734d9c66fb0b90dfd12341 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 14 七月 2025 13:14:56 +0800
Subject: [PATCH] 1.回款登记优化

---
 src/views/procurementManagement/procurementInvoiceLedger/Modal/EditModal.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/views/procurementManagement/procurementInvoiceLedger/Modal/EditModal.vue b/src/views/procurementManagement/procurementInvoiceLedger/Modal/EditModal.vue
index 2ac2c10..da4fd04 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/Modal/EditModal.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/Modal/EditModal.vue
@@ -21,6 +21,7 @@
 });
 const emits = defineEmits(["success"]);
 
+const saleLedgerProjectId = ref('')
 const editFormRef = ref();
 const {
   id,
@@ -32,10 +33,11 @@
   closeModal,
 } = useModal({ title: "鏉ョエ鍙拌处" });
 
-const open = async (id) => {
-  openModal(id);
+const open = async (row) => {
+  openModal(row.id);
+	saleLedgerProjectId.value = row.saleLedgerProjectId;
   await nextTick();
-  editFormRef.value.load(id);
+  editFormRef.value.load(row.id);
 };
 
 const close = () => {
@@ -45,6 +47,7 @@
 
 const sendForm = async () => {
   const form = editFormRef.value.form;
+	form.saleLedgerProjectId = saleLedgerProjectId.value;
   const { code } = await updateRegistration(form);
   if (code === 200) {
     emits("success");

--
Gitblit v1.9.3