From 5b4acf22b23079c1f689e217f55780f864ac79c6 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 06 八月 2024 10:38:28 +0800
Subject: [PATCH] 完成定时更新

---
 src/components/do/b1-ins-order/add.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 77a6e60..83edca8 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -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