From ff1f7e37285917a07d3ce700ef8832c9f33cd94b Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 4 Nov 2023 20:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/store/settled/index.vue | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index b643a76..5a88fce 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -68,7 +68,7 @@ 商户分类 - + @@ -353,7 +353,7 @@ category_name: '', merchant_category_id: '' }], - bindPickerChangeidx: 0, + bindPickerChangeidx: [], storeTypeArr: [{ type_name: '', mer_type_id: '' @@ -596,16 +596,17 @@ } }, bindPickerChange: function(e) { - this.index = e.target.value - let idx = e.target.value; - this.merchantData.classification = this.array[idx]['merchant_category_id'] - this.mer_classification = this.array[idx]['category_name'] + // console.log(e.detail); + this.index = e.target.value[1]; + let idx = e.target.value[1]; + this.merchantData.classification = this.bindPickerChangeidx[idx]['store_category_id'] + this.mer_classification = this.bindPickerChangeidx[idx]['cate_name'] this.validateBtn() }, columnchange(e){ // console.log(e.detail); if(e.detail.column==0){ - this.bindPickerChangeidx = e.detail.value; + this.bindPickerChangeidx = this.array[e.detail.value].children; } }, bindPickerChange1: function(e) { @@ -665,12 +666,13 @@ // }); getCategoryList() .then(res => { - console.log(res); + // console.log(res); res.data.list.forEach(item=>{ item.category_name = item.cate_name; item.merchant_category_id = item.store_category_id; }) this.array = res.data.list; + this.bindPickerChangeidx = this.array[0].children; }) .catch(res => { this.$util.Tips({ @@ -844,6 +846,7 @@ address: that.merchantData.address, social_credit_code: that.merchantData.social_credit_code, merchant_category_id: that.merchantData.classification, + merchant_category_name: that.mer_classification, mer_type_id: that.merchantData.mer_type, mer_storeType: this.mer_storeType, area_id: this.area_id, @@ -891,6 +894,7 @@ } }, formSubmit() { + console.log('sss'); if (this.validateForm() && this.validate) { if (this.codenote.length == 0) { this.isshow = true @@ -979,7 +983,7 @@ if (value.enterprise_name && value.user_name && value.phone && /^1(3|4|5|7|8|9|6)\d{9}$/i.test( value .phone) && - value.yanzhengma && that.isAgree && value.classification) { + value.yanzhengma && that.isAgree && this.mer_classification) { if (!that.isShowCode) { that.validate = true; } else { @@ -1020,7 +1024,7 @@ if (!value.yanzhengma) return that.$util.Tips({ title: '请填写验证码' }); - if (!value.classification) return that.$util.Tips({ + if (!this.mer_classification) return that.$util.Tips({ title: '请选择商户分类' });