diff --git a/pages/admin/business/index.vue b/pages/admin/business/index.vue index a7fbb44..1b56dbe 100644 --- a/pages/admin/business/index.vue +++ b/pages/admin/business/index.vue @@ -73,7 +73,7 @@ export default { icon: 'iconfont icon-kefujilu' }); } - if(this.service.is_verify && [0,3,4].includes(Number(merchantInfo.merchant_type))){ + if(this.service.is_verify && [0,3,4,5].includes(Number(merchantInfo.merchant_type))){ list.push({ title: '订单核销', url: '/pages/admin/order_cancellation/index?mer_id=' + merId, @@ -92,14 +92,14 @@ export default { icon: 'iconfont icon-daihexiao' }); } - if(this.service.customer && [0,1,3,4].includes(Number(merchantInfo.merchant_type))){ + if(this.service.customer && [0,1,3,4,5].includes(Number(merchantInfo.merchant_type))){ list.push({ title: '订单管理', url: '/pages/admin/order/index?mer_id=' + merId, icon: 'iconfont icon-dingdanguanli' }); } - if(this.service.is_goods && [0].includes(Number(merchantInfo.merchant_type))){ + if(this.service.is_goods && [0,5].includes(Number(merchantInfo.merchant_type))){ list.push({ title: '商品管理', url: '/pages/product/list/index?mer_id=' + merId, @@ -144,7 +144,7 @@ export default { icon: 'iconfont icon-erweima1' }); } - if(this.service.purchase_permission && [1,3,4].includes(Number(merchantInfo.merchant_type))){ + if(this.service.purchase_permission && [1,3,4,5].includes(Number(merchantInfo.merchant_type))){ list.push({ title: '进货', url: '/pages/supplier/stock/with_goods', @@ -171,6 +171,8 @@ export default { if(this.is_sys == 1) this.pageTitle = '平台管理'; if(this.is_sys == 2) this.pageTitle = '酒道馆管理'; else if(this.is_sys == 3) this.pageTitle = '烟酒店管理'; + else if(this.is_sys == 4) this.pageTitle = '超市管理'; + else if(this.is_sys == 5) this.pageTitle = '省公司门店管理'; uni.setNavigationBarTitle({ title: this.pageTitle }) diff --git a/pages/product/addGoods/index.vue b/pages/product/addGoods/index.vue index cd1cb68..f44e0c7 100644 --- a/pages/product/addGoods/index.vue +++ b/pages/product/addGoods/index.vue @@ -13,8 +13,8 @@ 建议:图片尺寸为750*750px - - + + @@ -23,7 +23,7 @@ - + 商品简介 @@ -368,7 +368,7 @@ export default { } if(this.step == 2) { this.secoundModel = !this.secoundModel; - } + } }, watch: { @@ -378,7 +378,7 @@ export default { setTimeout(()=>{ setStorage('addGoodsFormData', this.setFormData); }); - + }, deep: true }, @@ -456,12 +456,17 @@ export default { delivery_way: [], // 配送方式 1 到店核销 2 快递配送 delivery_free: '0', // 是否包邮 0不包邮 1包邮 temp_id: '', // 运费模板ID - tempName: '' // 运费模板名称 - }; - + tempName: '', // 运费模板名称 + extension_type: 0,// 佣金设置 0.系统,1.自定义 + // 赠送酒卡额度 + is_give_quota: 0, + give_quota_num: 0, + is_give_dish: 0, + give_dish_num: 0, + }; if(getStorage('editGoodsDetils')) { removeStorage('editGoodsDetils'); - } + } productDetail(this.merId, this.product_id).then(res => { setStorage('editGoodsDetils', res.data); let editGoodsDetils = res.data; @@ -477,16 +482,16 @@ export default { if(this.setFormData.spec_type == 1) { if(editGoodsDetils.attr.length) { this.setFormData.specifica = '点击修改规格' - } + } if(editGoodsDetils.attrValue.length) { this.setFormData.setSpecificaValue2 = '点击修改价格' - } + } } if (editGoodsDetils.spec_type == 0) { setStorage('singleSpecification', editGoodsDetils.attrValue[0]); if(editGoodsDetils.attrValue.length) { this.setFormData.setSpecificaValue = '点击修改价格' - } + } } setStorage('attrValue', editGoodsDetils.attrValue); editGoodsDetils.temp && (this.setFormData.tempName = editGoodsDetils.temp.name); @@ -499,7 +504,7 @@ export default { let that = this; that.$util.uploadImageOne('upload/image', function(res) { that.setFormData.imageList.push(res.data.path); - + }); }, clk() { @@ -531,7 +536,7 @@ export default { complete(res) { console.log(res) } - }); + }); }, getImgName(name){ this.imgName = name diff --git a/pages/product/addGoods/secound.vue b/pages/product/addGoods/secound.vue index b9fe63c..5d5c9c2 100644 --- a/pages/product/addGoods/secound.vue +++ b/pages/product/addGoods/secound.vue @@ -141,14 +141,14 @@ export default { return; } - if (getStorage('addGoodsSecoundData')) { + if (getStorage('addGoodsSecoundData')) { Object.keys(this.addGoodsSecoundData).forEach(item => { if (getStorage('addGoodsSecoundData')[item] || getStorage('addGoodsSecoundData')[item] == 0) { this.addGoodsSecoundData[item] = getStorage('addGoodsSecoundData')[item]; } }); - + } diff --git a/pages/supplier/stock/with_goods.vue b/pages/supplier/stock/with_goods.vue index 3f0ec14..4a339c1 100644 --- a/pages/supplier/stock/with_goods.vue +++ b/pages/supplier/stock/with_goods.vue @@ -269,12 +269,12 @@ export default { // 数据合并 let list = res.data.list || {}; if (Object.values(list).length > 0) { - oldList = _this.$util.SplitArray(list, oldList); + oldList = Object.values(oldList).concat(list); _this.search.page++; } - _this.$set(_this, 'list', oldList); }).catch(err => { + console.log('错误', err) this.$util.Tips({title: err}); }); }, diff --git a/pages/user/index.vue b/pages/user/index.vue index ddd18f9..2ac82e1 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -177,7 +177,7 @@ - + 运营中心 @@ -192,7 +192,7 @@ {{ operation_center.province_title }} - + {{ operation_center.county_title }} @@ -299,6 +299,12 @@ 超市管理中心 + + 省公司门店管理 + + 省公司门店管理中心 + +