From dd043652e2fb0e5613a39d09292fa32c7b789b30 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期六, 16 五月 2026 13:58:38 +0800
Subject: [PATCH] 过程检功能修改,修改三种检验修改时delete item.id限制

---
 src/pages/qualityManagement/processInspection/add.vue |   34 +++++++++++++++++++---------------
 1 files changed, 19 insertions(+), 15 deletions(-)

diff --git a/src/pages/qualityManagement/processInspection/add.vue b/src/pages/qualityManagement/processInspection/add.vue
index f146fe1..9b362fb 100644
--- a/src/pages/qualityManagement/processInspection/add.vue
+++ b/src/pages/qualityManagement/processInspection/add.vue
@@ -115,10 +115,10 @@
         <up-input v-model="form.checkTime"
                   placeholder="璇烽�夋嫨妫�娴嬫棩鏈�"
                   readonly />
-        <!-- <template #right>
+        <template #right>
           <up-icon name="calendar"
                    @click="showDatePicker"></up-icon>
-        </template> -->
+        </template>
       </up-form-item>
       <!-- 妫�楠岄」鐩� -->
       <view class="inspection-items-container">
@@ -184,11 +184,15 @@
       </up-button>
     </view>
     <!-- 鏃ユ湡閫夋嫨鍣� -->
-    <up-popup v-model:show="showDate"
-              mode="date"
-              :start-year="2020"
-              :end-year="2030"
-              @confirm="confirmDate" />
+    <up-popup :show="showDate"
+              mode="bottom"
+              @close="showDate = false">
+      <up-datetime-picker :show="true"
+                          v-model="pickerValue"
+                          @confirm="confirmDate"
+                          @cancel="showDate = false"
+                          mode="date" />
+    </up-popup>
     <!-- 宸ュ簭閫夋嫨 -->
     <up-action-sheet :show="showprocessSheet"
                      :actions="processOptions"
@@ -313,8 +317,8 @@
     qualityInspectParamInfo,
     qualityInspectDetailByProductId,
     getQualityTestStandardParamByTestStandardId,
-    list,
   } from "@/api/qualityManagement/materialInspection.js";
+  import { getProcessList } from "@/api/productionManagement/processManagement.js";
   import { userListNoPage } from "@/api/system/user.js";
 
   // 鏄剧ず鎻愮ず淇℃伅
@@ -602,8 +606,8 @@
 
   // 鑾峰彇宸ュ簭鍒楄〃
   const getprocessList = () => {
-    list().then(res => {
-      processList.value = res.data;
+    getProcessList({ size: -1, current: -1 }).then(res => {
+      processList.value = res.data?.records || res.data || [];
     });
   };
 
@@ -699,11 +703,11 @@
       loading.value = true;
 
       form.value.inspectType = 1;
-      if (isEdit.value) {
-        tableData.value.forEach(item => {
-          delete item.id;
-        });
-      }
+      // if (!isEdit.value) {
+      tableData.value.forEach(item => {
+        delete item.id;
+      });
+      // }
 
       const data = { ...form.value, qualityInspectParams: tableData.value };
       data.quantity = Number(data.quantity);

--
Gitblit v1.9.3