From 7ef3039428f6313187449b7c49da33ce46af4ee0 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Sat, 13 Jan 2024 18:49:52 +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.json | 8 +
pages/index/index.vue | 30 +-
pages/nongKe/gather/select_warehouse.vue | 34 +-
pages/product/addGood/addGood_one.vue | 734 ++++++++++++++++++
.../product/addGood/components/price_one.vue | 230 ++++++
static/images/SMRK/nong.png | Bin 0 -> 1303 bytes
6 files changed, 1029 insertions(+), 7 deletions(-)
create mode 100644 pages/product/addGood/addGood_one.vue
create mode 100644 pages/product/addGood/components/price_one.vue
create mode 100644 static/images/SMRK/nong.png
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 @@
+
+
+
+
+
+ 商品条码
+
+
+
+
+
+ (品牌,名称,规格,口味)
+
+ {{ setFormData.store_name.length }}
+ 0/60
+
+
+
+
+ 建议:图片尺寸为750*750px, 上传2张以上
+
+
+
+
+
+
+
+
+
+
+
+ 添加图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/product/addGood/components/price_one.vue b/pages/product/addGood/components/price_one.vue
new file mode 100644
index 0000000..ec9013b
--- /dev/null
+++ b/pages/product/addGood/components/price_one.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/images/SMRK/nong.png b/static/images/SMRK/nong.png
new file mode 100644
index 0000000000000000000000000000000000000000..c18105e362f65454ba4f6aba894c3ab57e1b3b95
GIT binary patch
literal 1303
zcmV+y1?c*TP)Px((Md!>RA@uhS#QLbR~Wu77K>%2VpC(&K9rRc#TO`s9Duz5*0+(WgSE>^ejV?d18@kyiVlQmv*l`%2TB3FU#ZXT
z!qcSRQUU$k03cPn>Au?L`FgMLmEA~9WIJ9>dmSki(iuajmknHXocE-I0NwyF1%Q6P
zBB67}RR|ttCgT?vff8w7UBZuUk6R=s7aOq{&Ft^mSi`!xBxS^%lbL;78T2-H(6=O)
zH3bmc!TRbJzUW-~2bcF9fF01rU3p4J7wHA^=NC9%~BVGywVJK#NKKFdzUs
zDm(koowbGJ)}{dd0WiredVyq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