chenrui hace 6 meses
padre
commit
38b6f0d2a1
Se han modificado 1 ficheros con 19 adiciones y 3 borrados
  1. 19 3
      src/views/supplierManagement/supplierInfo/editModal.vue

+ 19 - 3
src/views/supplierManagement/supplierInfo/editModal.vue

@@ -288,6 +288,24 @@ export default {
           }
         }
       })
+    },
+    resetSearchForm () {
+      this.form.supplierName = ''
+      this.form.provinceSn = undefined
+      this.form.provinceName = ''
+      this.form.citySn = undefined
+      this.form.cityName = ''
+      this.form.countySn = undefined
+      this.form.countyName = ''
+      this.form.supplierAddress = ''
+      this.form.contactPerson = ''
+      this.form.contactTel = ''
+      this.form.businessScope = undefined
+      this.form.enabledFlag = 1
+      this.form.supplierSn = undefined
+      this.addrCityList = []
+      this.addrDistrictList = []
+      this.$refs.ruleForm.resetFields()
     }
   },
   watch: {
@@ -299,9 +317,7 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
-        this.$refs.ruleForm.resetFields()
-        this.addrCityList = []
-        this.addrDistrictList = []
+        this.resetSearchForm()
       } else {
         this.getArea('province')
       }