chenrui 2 лет назад
Родитель
Сommit
760ea603c8

+ 2 - 1
src/views/common/chooseProductsModal.vue

@@ -254,7 +254,8 @@ export default {
     //  重置
     resetSearchForm () {
       this.resetData()
-      this.$refs.table.clearTable()
+      // this.$refs.table.clearTable()
+      this.$refs.table.refresh(true)
     },
     // 保存
     handleSave () {

+ 3 - 3
src/views/supplierManagement/costSetting/addProductModal.vue

@@ -209,11 +209,11 @@ export default {
       const _this = this
       _this.$refs.ruleForm.validate(valid => {
         if (valid) {
-          if (this.supplierSn) {
-            _this.$refs.table.clearTable()
+          if (_this.supplierSn) {
+            // _this.$refs.table.clearTable()
             _this.$refs.table.refresh(true)
           } else {
-            this.$message.warning('请先选择供应商!')
+            _this.$message.warning('请先选择供应商!')
           }
         } else {
           return false