From fc8f6fada78598ff9e4149f2b30355a0b25eb2f5 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 23 五月 2024 13:37:35 +0800
Subject: [PATCH] 修改检测值输入bug

---
 src/views/plan/customerorder/customerorder-form.vue |   66 +++++++++++++++------------------
 1 files changed, 30 insertions(+), 36 deletions(-)

diff --git a/src/views/plan/customerorder/customerorder-form.vue b/src/views/plan/customerorder/customerorder-form.vue
index 22b36b5..ce6d7f6 100644
--- a/src/views/plan/customerorder/customerorder-form.vue
+++ b/src/views/plan/customerorder/customerorder-form.vue
@@ -187,12 +187,14 @@
             </el-col>
             <el-col :span="6">
               <el-form-item label="浜у搧鍚嶇О" prop="productName">
+                <el-tooltip class="item" effect="dark" :content="dataForm.productName" >
                 <el-input
                   v-model="dataForm.productName"
                   placeholder=""
                   disabled
                 >
                 </el-input>
+                </el-tooltip>
               </el-form-item>
             </el-col>
             <el-col :span="6">
@@ -209,13 +211,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>
@@ -275,11 +276,13 @@
             </el-col>
             <el-col :span="6">
               <el-form-item label="浜у搧鍨嬪彿" prop="customerPartSpec">
+                <el-tooltip class="item" effect="dark" :content="dataForm.customerPartSpec" >
                 <el-input
                   v-model="dataForm.customerPartSpec"
                   placeholder=""
                   disabled
                 ></el-input>
+                </el-tooltip>
               </el-form-item>
             </el-col>
           </el-row>
@@ -326,10 +329,12 @@
           <el-row>
             <el-col :span="6">
               <el-form-item label="鏀惰揣鍦板潃" prop="shippingAddress">
+                <el-tooltip class="item" effect="dark" :content="dataForm.shippingAddress" >
                 <el-input
                   v-model="dataForm.shippingAddress"
                   placeholder=""
                 ></el-input>
+                </el-tooltip>
               </el-form-item>
             </el-col>
             <!-- <el-col :span="6">
@@ -885,9 +890,6 @@
         customerOrderNo: [
           { required: true, message: '瀹㈡埛璁㈠崟鍙蜂笉鑳戒负绌�', trigger: 'blur' }
         ],
-        customerNo: [
-          { required: true, message: '瀹㈡埛缂栧彿涓嶈兘涓虹┖', trigger: 'blur' }
-        ],
         customerName: [
           { required: true, message: '瀹㈡埛鍚嶇О涓嶈兘涓虹┖', trigger: 'blur' }
         ],
@@ -1039,9 +1041,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 +1050,8 @@
             //     }
             //   }
             // } else {
-            //   console.log('2')
             this.dataForm = response.data.data
-            
+
             // }
             // this.fileList = response.data.data.customerOrderAttachmentList
             const sourceId = response.data.data.sourceId
@@ -1194,25 +1193,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
@@ -1299,9 +1307,6 @@
       this.getConfigFiles()
     },
     delProcessConfigFile(row) {
-      if (row.lineNumber !== this.dataForm.otcLineNo) {
-        this.$message.error('涓婁紶鏂囦欢琛屽彿涓庡綋鍓嶉攢鍞鍗曡鍙蜂笉涓�鑷达紝涓嶅厑璁稿垹闄�')
-      } else {
         this.$confirm('鏄惁鍒犻櫎宸ヨ壓閰嶇疆鏂囦欢', '鎻愮ず', {
           confirmButtonText: '纭畾',
           cancelButtonText: '鍙栨秷',
@@ -1314,7 +1319,6 @@
           .then((data) => {
             this.getConfigFiles()
           })
-      }
     },
     downloadProcessConfigFile(row) {
       downloadProcessConfigFile(
@@ -1347,7 +1351,6 @@
     // 淇濆瓨閰嶇疆鍗�
     saveConfig() {
       const configId = this.configContent.id
-      console.log(this.configContent)
       for (
         let i = this.configContent.processConfigDataList.length - 1;
         i >= 0;
@@ -1363,7 +1366,6 @@
       }
       if (configId) {
         newProcessConfigEditOne(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1373,7 +1375,6 @@
         })
       } else {
         newProcessConfigAddOne(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1398,7 +1399,6 @@
         } else {
           this.$message.error('璇ラ攢鍞鍗曞彿涓嬶紝娌℃湁鍏朵粬璁㈠崟琛�')
           /* const configId = this.configContent.id
-          console.log(this.configContent)
           for (
             let i = this.configContent.processConfigDataList.length - 1;
             i >= 0;
@@ -1414,7 +1414,6 @@
           }
           if (configId) {
             newProcessConfigEdit(this.configContent).then((res) => {
-              console.log(res)
               if (res.data.code === 0) {
                 this.$message.success('淇濆瓨鎴愬姛')
                 this.init(this.configContent.orderId)
@@ -1424,7 +1423,6 @@
             })
           } else {
             newProcessConfigAdd(this.configContent).then((res) => {
-              console.log(res)
               if (res.data.code === 0) {
                 this.$message.success('淇濆瓨鎴愬姛')
                 this.init(this.configContent.orderId)
@@ -1436,7 +1434,6 @@
         }
       })
       /* const configId = this.configContent.id
-      console.log(this.configContent)
       for (
         let i = this.configContent.processConfigDataList.length - 1;
         i >= 0;
@@ -1452,7 +1449,6 @@
       }
       if (configId) {
         newProcessConfigEdit(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1462,7 +1458,6 @@
         })
       } else {
         newProcessConfigAdd(this.configContent).then((res) => {
-          console.log(res)
           if (res.data.code === 0) {
             this.$message.success('淇濆瓨鎴愬姛')
             this.init(this.configContent.orderId)
@@ -1524,7 +1519,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