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 | 75 +++++++++++++++++++++++++------------
1 files changed, 51 insertions(+), 24 deletions(-)
diff --git a/src/views/plan/customerorder/sample-customerorder-form.vue b/src/views/plan/customerorder/sample-customerorder-form.vue
index 6c11ee7..04fded5 100644
--- a/src/views/plan/customerorder/sample-customerorder-form.vue
+++ b/src/views/plan/customerorder/sample-customerorder-form.vue
@@ -154,7 +154,7 @@
<el-divider>
<span style="font-weight:bold;font-size:16px;">璁㈠崟琛�</span>
</el-divider>
- <div>
+ <div class="l-mes normal-form">
<avue-crud ref="crud"
show-hide="false"
:option="option"
@@ -172,6 +172,9 @@
:label="item.label"
:value="item.value" />
</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>
</template>
</avue-crud>
</div>
@@ -382,26 +385,6 @@
/>
</el-dialog>
</template>
-<style>
-.normal-form .el-input-group__append,
-.normal-form .el-input-group__prepend {
- padding: 0;
- border-top: none;
- border-right: none;
- border-left: none;
- border-radius: 0;
- background-color: transparent;
-}
-.normal-form .el-input-group__append .el-button,
-.normal-form .el-input-group__prepend .el-button {
- padding: 0;
- width: 25px;
- border: none !important;
- line-height: 28px;
- color: #c0c4cc;
- margin: -1px 0;
-}
-</style>
<script>
import { addObj } from '@/api/plan/customer'
import { remote } from '@/api/admin/dict'
@@ -415,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,
@@ -424,7 +428,7 @@
"$cellEdit": true,
"$index": 0,
"partNo": "",
- "customerPartSpec": "",
+ "specs": "",
"manufactureAttr": "",
"productName": "",
"productType": "",
@@ -469,6 +473,9 @@
this.getStaffOptions();
},
methods: {
+ delRow(row,index){
+ this.tableData.splice(index,1)
+ },
selsctionSales(data){
this.dataForm.salesMan = data.staffName
this.dataForm.salerWorkCode = data.staffNo
@@ -503,7 +510,7 @@
"$cellEdit": true,
"$index": 0,
"partNo": "",
- "customerPartSpec": "",
+ "specs": "",
"manufactureAttr": "",
"productName": "",
"productType": "",
@@ -575,4 +582,24 @@
}
}
}
-</script>
\ No newline at end of file
+</script>
+<style>
+.normal-form .el-input-group__append,
+.normal-form .el-input-group__prepend {
+ padding: 0;
+ border-top: none;
+ border-right: none;
+ border-left: none;
+ border-radius: 0;
+ background-color: transparent;
+}
+.normal-form .el-input-group__append .el-button,
+.normal-form .el-input-group__prepend .el-button {
+ padding: 0;
+ width: 25px;
+ border: none !important;
+ line-height: 28px;
+ color: #c0c4cc;
+ margin: -1px 0;
+}
+</style>
\ No newline at end of file
--
Gitblit v1.9.3