From 5bc9c6d734d469ad647388b5cd94c5a05cd7dbe7 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期六, 03 八月 2024 16:21:18 +0800
Subject: [PATCH] x撤销审核功能增加

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

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index b94b79c..96d8980 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -1379,6 +1379,9 @@
             a.price = obj.price
             a.tell = obj.tell
           }
+          if(a.state == 0&&a.bsmRow){
+            a = this.HaveJson(a.bsmRow)
+          }
         })
       },
       searchFilterList () {
@@ -2088,7 +2091,11 @@
         this.productList0 = JSON.parse(JSON.stringify(this.productList))
         setTimeout(() => {
           this.productList.forEach(a => {
-            if (a.state == 1) this.toggleSelection(a)
+            if (a.state == 1) {
+              this.toggleSelection(a)
+            }else{
+              this.$refs.productTable.toggleRowSelection(a, false);
+            }
           })
         }, 200)
       },
@@ -2332,9 +2339,9 @@
         }
         this.getProductLoad = true
         let selectTreeList = this.selectTree.split(" - ")
-        selectTreeList[selectTreeList.length - 1] = this.addObj.model
+        this.addObj.model&&(selectTreeList[selectTreeList.length - 1] = this.addObj.model)
         this.$axios.post(this.$api.standardTree.selectStandardProductList, {
-          model: this.addObj.model + '-' + row.modelNum,
+          model: (this.addObj.model?this.addObj.model:row.model) + '-' + row.modelNum,
           standardMethodListId: val,
           factory: selectTreeList.join(" - "),
         }, {

--
Gitblit v1.9.3