From c880739ec4cd5ede33b31eb98ad5f7628ea288e5 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 11 十二月 2023 17:41:40 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/plan/customerorder/customerorder-form.vue |   53 ++++++++++++++++++++++++-----------------------------
 1 files changed, 24 insertions(+), 29 deletions(-)

diff --git a/src/views/plan/customerorder/customerorder-form.vue b/src/views/plan/customerorder/customerorder-form.vue
index ec8dfc5..0dc65bb 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==null"
+                    @click="openPartDialog()"
+
                   ></el-button>
                 </el-input>
               </el-form-item>
@@ -1039,9 +1038,7 @@
             // if (response.data.data.customerOrderList != null) {
             //   this.dataForm = response.data.data.customerOrderList
             //
-            //   console.log('0')
             //   if (this.dataForm.OrderOrContract) {
-            //     console.log('1')
             //     // 灏嗚鍗曡繕鏄悎鍚岃浆涔�
             //     if (this.dataForm.OrderOrContract == '0') {
             //       this.dataForm.OrderOrContract = '鍚堝悓'
@@ -1050,9 +1047,8 @@
             //     }
             //   }
             // } else {
-            //   console.log('2')
             this.dataForm = response.data.data
-            
+
             // }
             // this.fileList = response.data.data.customerOrderAttachmentList
             const sourceId = response.data.data.sourceId
@@ -1194,25 +1190,34 @@
         }
       })
     },
-    // 闆朵欢閫夋嫨
+        // 闆朵欢閫夋嫨
     openPartDialog() {
-      if (
-        this.dataForm.coState === '01partUnCheck' ||
-        this.dataForm.coState === '02technologyUnCheck'
-      ) {
-        this.showPart = true
-      } else {
-        this.$message.warning(
-          '璁㈠崟鍙湁鍦ㄣ�愰浂浠跺緟閫夈�戙�併�愬伐鑹烘枃浠跺緟閫夈�戠姸鎬佷笅锛屾墠鑳借繘琛岄浂浠朵慨鏀�'
-        )
-      }
+      this.showPart = true
     },
     selectPart(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
@@ -1343,7 +1348,6 @@
     // 淇濆瓨閰嶇疆鍗�
     saveConfig() {
       const configId = this.configContent.id
-      console.log(this.configContent)
       for (
         let i = this.configContent.processConfigDataList.length - 1;
         i >= 0;
@@ -1359,7 +1363,6 @@
       }
       if (configId) {
         newProcessConfigEditOne(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1369,7 +1372,6 @@
         })
       } else {
         newProcessConfigAddOne(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1394,7 +1396,6 @@
         } else {
           this.$message.error('璇ラ攢鍞鍗曞彿涓嬶紝娌℃湁鍏朵粬璁㈠崟琛�')
           /* const configId = this.configContent.id
-          console.log(this.configContent)
           for (
             let i = this.configContent.processConfigDataList.length - 1;
             i >= 0;
@@ -1410,7 +1411,6 @@
           }
           if (configId) {
             newProcessConfigEdit(this.configContent).then((res) => {
-              console.log(res)
               if (res.data.code === 0) {
                 this.$message.success('淇濆瓨鎴愬姛')
                 this.init(this.configContent.orderId)
@@ -1420,7 +1420,6 @@
             })
           } else {
             newProcessConfigAdd(this.configContent).then((res) => {
-              console.log(res)
               if (res.data.code === 0) {
                 this.$message.success('淇濆瓨鎴愬姛')
                 this.init(this.configContent.orderId)
@@ -1432,7 +1431,6 @@
         }
       })
       /* const configId = this.configContent.id
-      console.log(this.configContent)
       for (
         let i = this.configContent.processConfigDataList.length - 1;
         i >= 0;
@@ -1448,7 +1446,6 @@
       }
       if (configId) {
         newProcessConfigEdit(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1458,7 +1455,6 @@
         })
       } else {
         newProcessConfigAdd(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1520,7 +1516,6 @@
       // var param = Object.assign({ current: 1, size: 20 })
       // getProcessConfigPage(param).then((res) => {
       //   const list = res.data.data.records
-      //   console.log(list)
       // })
     },
     // 鑾峰彇纭

--
Gitblit v1.9.3