From 6b35989783d91899169f89e21a7d3734d8cadc1d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期日, 04 一月 2026 15:19:54 +0800
Subject: [PATCH] 1.海川开心
---
src/views/procurementManagement/procurementLedger/index.vue | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index ebba6a8..92cfd76 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -180,6 +180,7 @@
</div>
<el-dialog
v-model="dialogFormVisible"
+ draggable
:title="operationType === 'add' ? '鏂板閲囪喘鍙拌处椤甸潰' : '缂栬緫閲囪喘鍙拌处椤甸潰'"
width="70%"
@close="closeDia"
@@ -410,6 +411,7 @@
</el-dialog>
<el-dialog
v-model="productFormVisible"
+ draggable
:title="productOperationType === 'add' ? '鏂板浜у搧' : '缂栬緫浜у搧'"
width="40%"
@close="closeProductDia"
@@ -475,7 +477,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 +1040,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 +1143,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