|
@@ -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')
|
|
|
}
|