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/qualityManagement/processInspection/components/formDia.vue | 12 ++++++++++--
src/views/procurementManagement/procurementLedger/index.vue | 14 +++++++++++++-
src/views/basicData/product/index.vue | 2 --
src/views/qualityManagement/metricMaintenance/index.vue | 4 +---
4 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index b331a61..85aefc2 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -25,9 +25,7 @@
:data="list"
@node-click="handleNodeClick"
:expand-on-click-node="false"
- default-expand-all
:default-expanded-keys="expandedKeys"
- :draggable="true"
:filter-node-method="filterNode"
:props="{ children: 'children', label: 'label' }"
highlight-current
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);
});
};
diff --git a/src/views/qualityManagement/metricMaintenance/index.vue b/src/views/qualityManagement/metricMaintenance/index.vue
index 016a4c1..5758897 100644
--- a/src/views/qualityManagement/metricMaintenance/index.vue
+++ b/src/views/qualityManagement/metricMaintenance/index.vue
@@ -19,9 +19,7 @@
:data="list"
@node-click="handleNodeClick"
:expand-on-click-node="false"
- default-expand-all
:default-expanded-keys="expandedKeys"
- :draggable="true"
:filter-node-method="filterNode"
:props="{ children: 'children', label: 'label' }"
highlight-current
@@ -221,7 +219,7 @@
// 鏌ヨ浜у搧鏍�
const getProductTreeList = () => {
treeLoad.value = true;
- productTreeList().then((res) => {
+ productTreeList({productName: '璐ㄩ噺'}).then((res) => {
list.value = res;
list.value.forEach((a) => {
expandedKeys.value.push(a.label);
diff --git a/src/views/qualityManagement/processInspection/components/formDia.vue b/src/views/qualityManagement/processInspection/components/formDia.vue
index e7ba6d7..924d7a8 100644
--- a/src/views/qualityManagement/processInspection/components/formDia.vue
+++ b/src/views/qualityManagement/processInspection/components/formDia.vue
@@ -10,7 +10,10 @@
<el-row :gutter="30">
<el-col :span="12">
<el-form-item label="宸ュ簭锛�" prop="process">
- <el-input v-model="form.process" placeholder="璇疯緭鍏�" clearable/>
+ <el-select v-model="form.process" placeholder="璇烽�夋嫨" clearable>
+ <el-option label="璇曞帇" value="璇曞帇" />
+ <el-option label="鎶芥" value="鎶芥" />
+ </el-select>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -104,7 +107,7 @@
</template>
<script setup>
-import {ref, computed} from "vue";
+import {ref, computed, reactive, toRefs, getCurrentInstance} from "vue";
import {getOptions} from "@/api/procurementManagement/procurementLedger.js";
import {modelList, productTreeList} from "@/api/basicData/product.js";
import {qualityInspectAdd, qualityInspectUpdate} from "@/api/qualityManagement/rawMaterialInspection.js";
@@ -204,6 +207,11 @@
});
}
getQualityInspectParamList(row.id)
+ } else {
+ // 鏂板鏃惰缃粯璁ゅ��
+ form.value.unit = "鍖�"; // 鍗曚綅榛樿涓哄寘
+ form.value.quantity = 3; // 鏁伴噺榛樿涓�3
+ form.value.checkResult = "鍚堟牸"; // 妫�楠岀粨鏋滈粯璁や负鍚堟牸
}
// 榛樿妫�楠屽憳涓哄綋鍓嶇櫥褰曚汉锛屾娴嬫棩鏈熼粯璁や负褰撳ぉ锛堢┖鏃跺~鍏咃級
if (currentUserName.value && !form.value.checkName) {
--
Gitblit v1.9.3