diff --git a/pkg_join/views/supplier.vue b/pkg_join/views/supplier.vue index 97f660f..5cfb772 100644 --- a/pkg_join/views/supplier.vue +++ b/pkg_join/views/supplier.vue @@ -508,7 +508,7 @@ type="error" text="确定" :disabled="!isAgree" - @click="save" + @click="handlAgree" /> @@ -700,7 +700,13 @@ export default { required: true, message: '请填写介绍内容', trigger: ['blur', 'change'] - } + }, + 'serviceTime': { + type:'string', + required: true, + message: '请选择营业时间', + trigger: ['blur', 'change'] + }, }, columnsType: [], indexType: 0, @@ -708,7 +714,7 @@ export default { indexSupplierType: 0, district: [], isAgree: false, - show: false, + show: true, notice: '', showRemove: false, isDraft: null, @@ -776,6 +782,9 @@ export default { this.$refs.supplierForm.setRules(this.rulesSupplier) }, methods: { + handlAgree() { + this.show = false + }, timeRange(e) { this.form.serviceTime = e[0] this.form.serviceEndTime = e[1] @@ -1039,7 +1048,8 @@ export default { _this.$refs.shopForm.validate().then(res => { // 校验通过 _this.$refs.supplierForm.validate().then(() => { - _this.show = true + // _this.show = true + _this.save() }).catch(errors => { // 校验失败 console.log(errors)