|
@@ -27,6 +27,7 @@
|
|
|
v-model="form.type"
|
|
v-model="form.type"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
|
+ @change="handleTypeChange"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in typeOptions"
|
|
v-for="item in typeOptions"
|
|
@@ -474,6 +475,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleTypeChange() {
|
|
|
|
|
+ // 调用inventoryTable的putTableValue方法,传入空数组清空数据
|
|
|
|
|
+ if (this.$refs.inventoryTable) {
|
|
|
|
|
+ this.$refs.inventoryTable.putTableValue([]);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
opportunityTypeChange() {
|
|
opportunityTypeChange() {
|
|
|
if (this.form.opportunityType === 0) {
|
|
if (this.form.opportunityType === 0) {
|
|
|
this.form.opportunityId = '';
|
|
this.form.opportunityId = '';
|