From ec5790cd8e6bd32a3dd599ace9b27f298789bc2d Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 15 十一月 2023 15:42:23 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/zs-mes-before

---
 src/views/plan/customerorder/sample-customerorder-form.vue |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/views/plan/customerorder/sample-customerorder-form.vue b/src/views/plan/customerorder/sample-customerorder-form.vue
index 244ede5..04fded5 100644
--- a/src/views/plan/customerorder/sample-customerorder-form.vue
+++ b/src/views/plan/customerorder/sample-customerorder-form.vue
@@ -174,7 +174,7 @@
             </el-select>
           </template>
           <template slot="menu" slot-scope="scope">
-              <el-button type="text" icon="el-icon-circle-close" :disabled="tableData.length<2"  @click="delRow(scope.row,scope.$index)">鍙栨秷</el-button>
+              <el-button type="text" icon="el-icon-circle-close" :disabled="tableData.length<2"  @click="delRow(scope.row,scope.index)">鍙栨秷</el-button>
           </template>
       </avue-crud>
     </div>
@@ -398,6 +398,27 @@
   components: {
     PartDialog
   },
+  watch:{
+    visible(newVal){
+      if(!newVal){
+        
+        this.tableData = [{
+            "$cellEdit": true,
+            "$index": 0,
+            "partNo": "",
+            "specs": "",
+            "manufactureAttr": "",
+            "productName": "",
+            "productType": "",
+            "otcUnit": "",
+            "buyQtyDue": "",
+            "shippingAddress": "",
+            "remark": "",
+            "isTrusted": true
+        }]
+      }
+    }
+  },
   data() {
     return {
       salesSelectData: null,

--
Gitblit v1.9.3