From ed7a42835a7aec7582d8a64ba7e3a3314fdc514e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 23 六月 2026 16:11:05 +0800
Subject: [PATCH] fix(salesQuotation): 调整价格显示与输入的小数精度为4位
---
src/views/qualityManagement/processInspection/components/formDia.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/views/qualityManagement/processInspection/components/formDia.vue b/src/views/qualityManagement/processInspection/components/formDia.vue
index 444c7b4..d5aca1a 100644
--- a/src/views/qualityManagement/processInspection/components/formDia.vue
+++ b/src/views/qualityManagement/processInspection/components/formDia.vue
@@ -216,7 +216,7 @@
const modelOptions = ref([]);
// 鎵撳紑寮规
-const openDialog = async (type, row, defaultCheckResult = "") => {
+const openDialog = async (type, row, defaultCheckResult = "", defaultCheckName = "", defaultTestStandardId = "", defaultCheckCompany = "", defaultQualityInspectParams = []) => {
operationType.value = type;
getOptions().then((res) => {
supplierList.value = res.data;
@@ -239,7 +239,7 @@
form.value = {
checkTime: "",
process: "",
- checkName: "",
+ checkName: defaultCheckName || "",
productName: "",
productId: "",
productModelId: "",
@@ -261,8 +261,11 @@
form.value = {...row, testStandardId: ''}
// 濡傛灉浼犲叆浜嗛粯璁ゆ娴嬬粨鏋滐紝瑕嗙洊row涓殑鍊�
if (defaultCheckResult) {
- form.value.checkResult = defaultCheckResult;
+ form.value.checkResult = defaultCheckResult;
}
+ // 濡傛灉浼犲叆浜嗛粯璁ゆ楠屽憳锛岃鐩杛ow涓殑鍊硷紙浼樺厛浣跨敤浼犲叆鐨勬楠屽憳锛�
+ console.log('formDia checkName debug:', { defaultCheckName, rowCheckName: row.checkName });
+ form.value.checkName = defaultCheckName || row.checkName || "";
currentProductId.value = row.productId || 0
// 鍏抽敭锛氱紪杈戞椂鍔犺浇瑙勬牸鍨嬪彿涓嬫媺閫夐」锛屾墠鑳藉弽鏄� productModelId
if (currentProductId.value) {
--
Gitblit v1.9.3