From 27f476f73443ff7fbcbe4172c0c9c5beb47f9739 Mon Sep 17 00:00:00 2001 From: fanfan Date: Sat, 22 Jun 2024 21:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop/index.js | 23 +- src/common/model/goods/MultiSpec.js | 2 +- src/config/router.config.js | 6 + src/views/goods/Copy.vue | 4 +- src/views/goods/Create.vue | 2 +- src/views/goods/Index.vue | 8 +- src/views/goods/Update.vue | 2 +- src/views/goods/distributionPrice/Index.vue | 4 +- src/views/goods/memberPrice/Index.vue | 2 +- src/views/goods/modules/MultiSpec.vue | 4 +- src/views/goods/modules/Update.vue | 2 +- src/views/server/modules/Add.vue | 2 +- src/views/shop/classification.vue | 243 ++++++++++++++++++++ 13 files changed, 290 insertions(+), 14 deletions(-) create mode 100644 src/views/shop/classification.vue diff --git a/src/api/shop/index.js b/src/api/shop/index.js index 6996fdb..a735483 100644 --- a/src/api/shop/index.js +++ b/src/api/shop/index.js @@ -9,7 +9,28 @@ const api = { shopDetail: '/merchant/detail', getUser: '/merchant/userinfo' } - +/** + * 商户分类新增 + * @param {*} data + */ + export function setMerchantGoodsCate(data) { + return axios({ + url: 'merchant/setMerchantGoodsCate', + method: 'post', + data + }) +} +/** + * 商户分类获取 + * @param {*} data + */ + export function getMerchantGoodsCate(data) { + return axios({ + url: 'merchant/getMerchantGoodsCate', + method: 'post', + data + }) +} /** * 商户列表 * @param {*} params diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js index bb56dc2..b3b9530 100644 --- a/src/common/model/goods/MultiSpec.js +++ b/src/common/model/goods/MultiSpec.js @@ -30,7 +30,7 @@ const defaultColumns = [ scopedSlots: { customRender: 'goods_price' } }, { - title: '成本价', + title: '行情价', dataIndex: 'cost_price', width: 120, scopedSlots: { customRender: 'cost_price' } diff --git a/src/config/router.config.js b/src/config/router.config.js index 3c88776..1c8da9e 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -240,6 +240,12 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "server" */ '@/views/shop/Index'), meta: { title: '商户管理', keepAlive: false, permission: ['/shop/index'] }, }, + { + path: '/shop/classification', + moduleKey: 'merchant-manage', + component: () => import(/* webpackChunkName: "server" */ '@/views/shop/classification'), + meta: { title: '商户分类', keepAlive: false, permission: ['/shop/classification'] }, + }, ], }, // 商品管理 diff --git a/src/views/goods/Copy.vue b/src/views/goods/Copy.vue index 24e94a6..0c282bf 100644 --- a/src/views/goods/Copy.vue +++ b/src/views/goods/Copy.vue @@ -154,10 +154,10 @@ diff --git a/src/views/goods/Create.vue b/src/views/goods/Create.vue index bf92a06..2c4c08a 100644 --- a/src/views/goods/Create.vue +++ b/src/views/goods/Create.vue @@ -160,7 +160,7 @@ ]" /> - + diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue index 4b72fe8..e218afe 100644 --- a/src/views/goods/Index.vue +++ b/src/views/goods/Index.vue @@ -232,7 +232,7 @@ const columns = [ sorter: true, }, { - title: '成本价', + title: '行情价', width: '80px', dataIndex: 'cost_price_min', scopedSlots: { customRender: 'cost_price_min' }, @@ -301,6 +301,12 @@ const columns = [ dataIndex: 'sort', sorter: true, }, + { + title: '更新时间', + width: '150px', + dataIndex: 'update_time', + sorter: true, + }, { title: '添加时间', width: '150px', diff --git a/src/views/goods/Update.vue b/src/views/goods/Update.vue index 49664a4..178e7ed 100644 --- a/src/views/goods/Update.vue +++ b/src/views/goods/Update.vue @@ -222,7 +222,7 @@ /> - + diff --git a/src/views/goods/distributionPrice/Index.vue b/src/views/goods/distributionPrice/Index.vue index bd36bd6..f382b44 100644 --- a/src/views/goods/distributionPrice/Index.vue +++ b/src/views/goods/distributionPrice/Index.vue @@ -11,8 +11,8 @@ 利润空间(元)
分销说明:A.当加价率生效后,分销价高于市场价,分销价统一自动按以下标准执行: - (市场价-成本价)x_____% +成本价=分销价 _____%为此时的加价率。 - B.当加价率生效后,分销价高于会员价,分销价进一步统一自动按以下标准执行:(会员价-成本价)x_____% +成本价=分销价 _____%为此时的加价率。
+ (市场价-行情价)x_____% +行情价=分销价 _____%为此时的加价率。 + B.当加价率生效后,分销价高于会员价,分销价进一步统一自动按以下标准执行:(会员价-行情价)x_____% +行情价=分销价 _____%为此时的加价率。
diff --git a/src/views/goods/memberPrice/Index.vue b/src/views/goods/memberPrice/Index.vue index 990b732..4a9bdc7 100644 --- a/src/views/goods/memberPrice/Index.vue +++ b/src/views/goods/memberPrice/Index.vue @@ -11,7 +11,7 @@ 利润空间(元)
会员说明:A.当加价率生效后,会员价高于市场价,会员价统一自动按以下标准执行: - (市场价-成本价)x_____% +成本价=会员价 _____%为此时的加价率。
+ (市场价-行情价)x_____% +行情价=会员价 _____%为此时的加价率。
diff --git a/src/views/goods/modules/MultiSpec.vue b/src/views/goods/modules/MultiSpec.vue index 06d35a7..c46bac2 100644 --- a/src/views/goods/modules/MultiSpec.vue +++ b/src/views/goods/modules/MultiSpec.vue @@ -61,7 +61,7 @@ /> @@ -101,7 +101,7 @@ - + diff --git a/src/views/goods/modules/Update.vue b/src/views/goods/modules/Update.vue index 482cf93..b6625d2 100644 --- a/src/views/goods/modules/Update.vue +++ b/src/views/goods/modules/Update.vue @@ -160,7 +160,7 @@ - + diff --git a/src/views/server/modules/Add.vue b/src/views/server/modules/Add.vue index b23768a..a0b14fd 100644 --- a/src/views/server/modules/Add.vue +++ b/src/views/server/modules/Add.vue @@ -34,7 +34,7 @@ /> - + + +
{{ $route.meta.title }}
+ + + + + + + 提交 + + + +
+ + + +