From e87aa5d7b6b44e36a7dfb3b0a705446d0fe55e2d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 01 十二月 2023 15:31:57 +0800
Subject: [PATCH] 工作台修复

---
 src/views/plan/customerorder/customerorder-form.vue |   46 ++++++++++++++++++++++++++--------------------
 1 files changed, 26 insertions(+), 20 deletions(-)

diff --git a/src/views/plan/customerorder/customerorder-form.vue b/src/views/plan/customerorder/customerorder-form.vue
index 9427657..f131c55 100644
--- a/src/views/plan/customerorder/customerorder-form.vue
+++ b/src/views/plan/customerorder/customerorder-form.vue
@@ -209,13 +209,12 @@
                 <el-input
                   v-model="dataForm.partNo"
                   placeholder=""
-                  disabled
                 >
                   <el-button
                     slot="append"
                     icon="el-icon-search"
-                    @click="openSalesPartDialog()"
-                    v-show="dataForm.id"
+                    @click="openPartDialog()"
+
                   ></el-button>
                 </el-input>
               </el-form-item>
@@ -828,6 +827,7 @@
         productName: '',
         productType: '',
         partNo: '',
+        technologyDocumentId: '',
         docNumber: '',
         docName: '',
         shippingAddress: '',
@@ -1051,7 +1051,7 @@
             // } else {
             //   console.log('2')
             this.dataForm = response.data.data
-            
+
             // }
             // this.fileList = response.data.data.customerOrderAttachmentList
             const sourceId = response.data.data.sourceId
@@ -1193,25 +1193,35 @@
         }
       })
     },
-    // 闆朵欢閫夋嫨
+        // 闆朵欢閫夋嫨
     openPartDialog() {
-      if (
-        this.dataForm.coState === '01partUnCheck' ||
-        this.dataForm.coState === '02technologyUnCheck'
-      ) {
-        this.showPart = true
-      } else {
-        this.$message.warning(
-          '璁㈠崟鍙湁鍦ㄣ�愰浂浠跺緟閫夈�戙�併�愬伐鑹烘枃浠跺緟閫夈�戠姸鎬佷笅锛屾墠鑳借繘琛岄浂浠朵慨鏀�'
-        )
-      }
+      this.showPart = true
     },
     selectPart(part) {
+      console.log(part);
       if (part) {
         this.dataForm.partNo = part.partNo
-        this.$refs.dataForm.validateField('partNo', (valid) => {})
       }
     },
+    // 闆朵欢閫夋嫨
+    // openPartDialog() {
+    //   if (
+    //     this.dataForm.coState === '01partUnCheck' ||
+    //     this.dataForm.coState === '02technologyUnCheck'
+    //   ) {
+    //     this.showPart = true
+    //   } else {
+    //     this.$message.warning(
+    //       '璁㈠崟鍙湁鍦ㄣ�愰浂浠跺緟閫夈�戙�併�愬伐鑹烘枃浠跺緟閫夈�戠姸鎬佷笅锛屾墠鑳借繘琛岄浂浠朵慨鏀�'
+    //     )
+    //   }
+    // },
+    // selectPart(part) {
+    //   if (part) {
+    //     this.dataForm.partNo = part.partNo
+    //     this.$refs.dataForm.validateField('partNo', (valid) => {})
+    //   }
+    // },
     // 鍏ㄥ睆
     fullscreen() {
       this.isFullScreen = !this.isFullScreen
@@ -1298,9 +1308,6 @@
       this.getConfigFiles()
     },
     delProcessConfigFile(row) {
-      if (row.lineNumber !== this.dataForm.otcLineNo) {
-        this.$message.error('涓婁紶鏂囦欢琛屽彿涓庡綋鍓嶉攢鍞鍗曡鍙蜂笉涓�鑷达紝涓嶅厑璁稿垹闄�')
-      } else {
         this.$confirm('鏄惁鍒犻櫎宸ヨ壓閰嶇疆鏂囦欢', '鎻愮ず', {
           confirmButtonText: '纭畾',
           cancelButtonText: '鍙栨秷',
@@ -1313,7 +1320,6 @@
           .then((data) => {
             this.getConfigFiles()
           })
-      }
     },
     downloadProcessConfigFile(row) {
       downloadProcessConfigFile(

--
Gitblit v1.9.3