From 7c863257d23fd7f01c84a8996677e682d9d50b07 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 30 十二月 2025 09:38:38 +0800
Subject: [PATCH] 1.海川开心-部分页面添加默认值

---
 src/views/procurementManagement/procurementLedger/index.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index ebba6a8..668e82a 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -475,7 +475,9 @@
 								@change="mathNum"
 							>
 								<el-option label="1" value="1" />
+								<el-option label="3" value="3" />
 								<el-option label="6" value="6" />
+								<el-option label="9" value="9" />
 								<el-option label="13" value="13" />
 							</el-select>
 						</el-form-item>
@@ -1036,6 +1038,11 @@
   });
   form.value.recorderId = userStore.id;
   form.value.entryDate = getCurrentDate();
+  if (type === "add") {
+    // 鏂板鏃惰缃粯璁ゅ��
+    form.value.paymentMethod = "鐢垫眹"; // 浠樻鏂瑰紡榛樿涓虹數姹�
+    form.value.executionDate = getCurrentDate(); // 绛捐鏃ユ湡榛樿涓哄綋澶�
+  }
   if (type === "edit") {
     currentId.value = row.id;
     getPurchaseById({ id: row.id, type: 2 }).then((res) => {
@@ -1134,12 +1141,17 @@
   proxy.resetForm("productFormRef");
   if (type === "edit") {
     productForm.value = { ...row };
+  } else {
+    // 鏂板浜у搧鏃惰缃粯璁ゅ��
+    productForm.value.taxRate = "13"; // 绋庣巼榛樿涓�13%
+    productForm.value.invoiceType = "澧炰笓绁�"; // 鍙戠エ绫诲瀷榛樿涓哄涓撶エ
+    productForm.value.warnNum = 500; // 棰勮閲忛粯璁や负500
   }
   productFormVisible.value = true;
   getProductOptions();
 };
 const getProductOptions = () => {
-  productTreeList().then((res) => {
+  productTreeList({productName: '閲囪喘'}).then((res) => {
     productOptions.value = convertIdToValue(res);
   });
 };

--
Gitblit v1.9.3