From a96e9c262ebadc2e7e731b28aa5035b0dd2a7aad Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 15 十一月 2023 17:13:13 +0800
Subject: [PATCH] 1.0
---
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