|
@@ -198,6 +198,7 @@ export default {
|
|
|
this.spinning = true
|
|
|
supplierProductSnList({ sn: this.supplierSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
+ this.$refs.table.clearTable()
|
|
|
this.chooseData = res.data // 包含先前所选产品
|
|
|
this.handleSearch()
|
|
|
}
|
|
@@ -210,7 +211,6 @@ export default {
|
|
|
_this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
if (_this.supplierSn) {
|
|
|
- // _this.$refs.table.clearTable()
|
|
|
_this.$refs.table.refresh(true)
|
|
|
} else {
|
|
|
_this.$message.warning('请先选择供应商!')
|