From abee269f17c1241e9cbe9f31c4a888758c4d8ee6 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 06 八月 2024 17:19:45 +0800
Subject: [PATCH] 给全局el-table添加min-table

---
 src/components/do/b1-ins-order/add.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 77a6e60..3557a4d 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -475,7 +475,7 @@
             <template slot-scope="scope">
               <el-input size="small" placeholder="瑕佹眰鍊�" v-model="scope.row.ask" clearable type="textarea"
                 :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row,'ask')"
-                v-if="active==1&&isAskOnlyRead"></el-input>
+                v-if="active==1&&isAskOnlyRead&&/[0-9]/.test(scope.row.ask)"></el-input>
               <span v-else>
                 <!-- <template v-if="(scope.row.ask.indexOf('D')>-1
                 ||scope.row.ask.indexOf('W')>-1
@@ -1572,10 +1572,19 @@
               isHaveBushing = false
             }
           })
+          console.log('isHaveBushing===', this.totalArr)
+          // inspectionItem
+          let spcialItem = this.totalArr.find(a => a.state == 1 && a.inspectionItem.includes('鏉惧绠�'))
           // console.log('isHaveBushing===', isHaveBushing)
           if (productListSelected && select[2] === '鍏夌紗' && isHaveBushing === false) {
             this.$message.error('鍏夌紗娓╁害寰幆椤圭洰蹇呴』杩涜鍏夌氦閰嶇疆')
-
+            this.$refs.sampleTable.setCurrentRow(this.currentMethod, true)
+            this.rowClick(this.currentMethod)
+            this.sampleIds = [this.currentMethod.id]
+            this.openConfig()
+            return
+          }else if(spcialItem&& isHaveBushing === false){
+            this.$message.error('鏉惧绠¢」鐩繀椤昏繘琛屽厜绾ら厤缃�')
             this.$refs.sampleTable.setCurrentRow(this.currentMethod, true)
             this.rowClick(this.currentMethod)
             this.sampleIds = [this.currentMethod.id]
@@ -1821,7 +1830,6 @@
       },
       saveMethod(sampleList){
         this.saveLoad = true
-        console.log(333333,sampleList)
         this.$axios.post(this.$api.insOrder.addInsOrder, {
           str: JSON.stringify({
             insOrder: this.addObj,

--
Gitblit v1.9.3