<Select
ref="vendorId" v-model="formInline.vendorId" @on-open-change="venSelect" filterable style="width: 162px;" @on-change="vendorChange"
v-if="vendorShow">
<Option v-for="item in vendorList" :value="item.vendorId" :key="item.vendorId">{{ item.venAbbName + '-' + item.vendorCode }}</Option>
</Select>
要重置查询的数据。在重置中清空refs
// 重置
reloadFun() {
this.formInline = {
vendorId: '',
productCode: '',
inventoryCode: '',
sendDate: '',
remark: '',
cwhCode:''
}
this.$refs.vendorId.query = ''//.query是因为this.$refs.vendorId只能清空展示的下拉框的数据,不能清空底层的数据所以要.query清空底层数据
this.tableData = []
},
所有评论(0)