diff --git a/pages.json b/pages.json index c20e736..4bae478 100644 --- a/pages.json +++ b/pages.json @@ -1406,6 +1406,14 @@ "enablePullDownRefresh" : false } }, + { + "path" : "addGood/addGood_one", + "style" : + { + "navigationBarTitleText" : "商品设置", + "enablePullDownRefresh" : false + } + }, { "path" : "addGood/specGood", "style" : diff --git a/pages/index/index.vue b/pages/index/index.vue index 158994d..c558eb8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -102,6 +102,14 @@ {{item.name}} + + + + + + {{item.name}} + + @@ -578,7 +586,27 @@ import { Toast } from '../../libs/uniApi'; type: 8, image: require('@/static/images/index3.png') }], - + typePersonalStoreList: [{ + name: '商品管理', + type: 1, + image: require('@/static/images/index7.png') + }, + { + name: '入库管理', + type: 13, + image: require('@/static/images/index9.png') + }, + { + name: '订单管理', + type: 2, + image: require('@/static/images/index1.png') + }, + { + name: '提现管理', + type: 5, + image: require('@/static/images/index8.png') + } + ], refundInfo: {}, company: '', organization_code: '', diff --git a/pages/nongKe/gather/select_warehouse.vue b/pages/nongKe/gather/select_warehouse.vue index cdb6538..9323762 100644 --- a/pages/nongKe/gather/select_warehouse.vue +++ b/pages/nongKe/gather/select_warehouse.vue @@ -286,6 +286,14 @@ this.mer_id = e.mer_id this.userInfo = this.$store.state.app.userInfo; if(typeof this.userInfo == 'string') this.userInfo = JSON.parse(this.userInfo); + if(this.userInfo.mer_info.type_code=='PersonalStore'){ + this.goodsData = [{ + name: '非标手动入库', + type: 4, + // src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png' + src: '/static/images/SMRK/nong.png' + }] + } }, onShow() { @@ -606,10 +614,10 @@ } else if(type==2) { this.scanCode(); this.pageType = 1; - }else { + }else { // this.photograph(); // this.pageType = 2; - this.jumpAddGoods(); + this.jumpAddGoods(type); } }, // 扫码 @@ -704,7 +712,7 @@ }) }, // 跳转添加商品界面 - jumpAddGoods() { + jumpAddGoods(type=3) { const data = getStorage('addGoodsFormData'); if (data && data.product_id) { let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData', @@ -715,9 +723,18 @@ } }) } - navigateTo(1, '/pages/product/addGood/addGood', { - mer_id: this.mer_id - }); + if(type==4){ // 个人商户 + // navigateTo(1, '/pages/product/addGood/addGood_one', { + // mer_id: this.mer_id + // }); + navigateTo(1, '/pages/product/addGood/addGood', { + mer_id: this.mer_id + }); + } else { + navigateTo(1, '/pages/product/addGood/addGood', { + mer_id: this.mer_id + }); + } }, }, onPullDownRefresh() { @@ -734,6 +751,7 @@ .wrapper { width: 694.74rpx; margin: 0 auto; + flex-wrap: wrap; } .goods-wrapper { @@ -764,6 +782,7 @@ width: 220.84rpx; // width: 336rpx; height: 189.47rpx; + margin-bottom: 20rpx; border-radius: 8px; background-color: #eee; padding: 22rpx 0; @@ -794,6 +813,9 @@ .select_item3{ background: linear-gradient(to right, #ff7245, #ff3f02) !important; } + .select_item4{ + background: linear-gradient(to right, #2be45d, #02bb34) !important; + } .search_goods_box { width: 694.74rpx; diff --git a/pages/product/addGood/addGood_one.vue b/pages/product/addGood/addGood_one.vue new file mode 100644 index 0000000..56a5dd6 --- /dev/null +++ b/pages/product/addGood/addGood_one.vue @@ -0,0 +1,734 @@ +