From d271f2493796a557eac67b95b310df776abaf48b Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 06 五月 2024 16:15:24 +0800
Subject: [PATCH] 修改产品检,不合格处理等页面

---
 src/views/quality/finishedProductInspection/finishedProduct-form.vue |   44 +++++++++++++++++++++++++++-----------------
 1 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/src/views/quality/finishedProductInspection/finishedProduct-form.vue b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
index c504af6..f427a02 100644
--- a/src/views/quality/finishedProductInspection/finishedProduct-form.vue
+++ b/src/views/quality/finishedProductInspection/finishedProduct-form.vue
@@ -620,22 +620,31 @@
                 result: this.inspectionResultForm[0].result
             }
             if (pro > 0) {
-                this.$prompt('璇疯緭鍏ヤ笉鍚堟牸鏁伴噺', '涓嶅悎鏍兼暟閲�', {
-                    confirmButtonText: '纭畾',
-                    cancelButtonText: '鍙栨秷',
-                    inputPattern: /^\d+$/,
-                    inputErrorMessage: '璇疯緭鍏ユ纭暟瀛楁牸寮�'
-                }).then(({ value }) => {
-                    obj.number = value
-                    updateFinishedInspectById(obj).then(res => {
-                        if(res.data.data.indexOf("鎴愬姛") > 0){
-                            this.$message.success("涓婃姤鎴愬姛");
-                            this.checkTestState()
-                        }else{
-                            this.$message.warning(res.data.data)
-                        }
-                    });
-                }).catch(() => {});
+                obj.number = 1;
+                updateFinishedInspectById(obj).then(res => {
+                    if(res.data.data.indexOf("鎴愬姛") > 0){
+                        this.$message.success("涓婃姤鎴愬姛");
+                        this.checkTestState()
+                    }else{
+                        this.$message.warning(res.data.data)
+                    }
+                });
+                // this.$prompt('璇疯緭鍏ヤ笉鍚堟牸鏁伴噺', '涓嶅悎鏍兼暟閲�', {
+                //     confirmButtonText: '纭畾',
+                //     cancelButtonText: '鍙栨秷',
+                //     inputPattern: /^\d+$/,
+                //     inputErrorMessage: '璇疯緭鍏ユ纭暟瀛楁牸寮�'
+                // }).then(({ value }) => {
+                //     obj.number = value
+                //     updateFinishedInspectById(obj).then(res => {
+                //         if(res.data.data.indexOf("鎴愬姛") > 0){
+                //             this.$message.success("涓婃姤鎴愬姛");
+                //             this.checkTestState()
+                //         }else{
+                //             this.$message.warning(res.data.data)
+                //         }
+                //     });
+                // }).catch(() => {});
             }else{
                 updateFinishedInspectById(obj).then(res => {
                     if(res.data.data.indexOf("鎴愬姛") > 0){
@@ -696,7 +705,8 @@
                                 if(obj.inspectionValue){
                                     arr = obj.inspectionValue.split(",")
                                 }
-                                obj.empiricalValueAddss = arr
+                                this.$set(obj,'empiricalValueAddss',arr)
+                                // obj.empiricalValueAddss = arr
                                 if(obj.note){
                                         snote=obj.inote
                                     }

--
Gitblit v1.9.3