From a19b816b72460c32e1df0e780cc7e27ca1af78a8 Mon Sep 17 00:00:00 2001 From: dy-hu Date: Tue, 25 Jun 2024 17:45:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=95=86=E5=AE=B6=E7=AB=AF=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=B8=8A=E6=9E=B6=E7=8A=B6=E6=80=81=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=202.=E5=95=86=E5=AE=B6=E7=AB=AF=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E6=96=B0=E5=A2=9E=E5=B9=B3=E5=8F=B0=E4=B8=8A=E6=9E=B6?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=8A=9F=E8=83=BD=203.=E5=95=86=E5=AE=B6?= =?UTF-8?q?=E7=AB=AF=E5=95=86=E5=93=81=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B9=B3=E5=8F=B0=E4=B8=8A=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/commodity.js | 9 +++++ .../commodity/commoditySystem/addCommodity.vue | 9 +++++ src/views/commodity/commoditySystem/index.vue | 47 ++++++++++++++++++++-- 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/src/api/commodity.js b/src/api/commodity.js index e893513..7aa1d51 100644 --- a/src/api/commodity.js +++ b/src/api/commodity.js @@ -80,6 +80,15 @@ export function getClassifyStart(data) { }) } +// 商品平台上下架 +export function getClassifyPlatStart(data) { + return request({ + url: '/product/platStart', + method: 'post', + data + }) +} + // 商品分类 export function getClassify(data,headers) { return request({ diff --git a/src/views/commodity/commoditySystem/addCommodity.vue b/src/views/commodity/commoditySystem/addCommodity.vue index 13fb226..e5b75a6 100644 --- a/src/views/commodity/commoditySystem/addCommodity.vue +++ b/src/views/commodity/commoditySystem/addCommodity.vue @@ -222,6 +222,13 @@ + + + {{ $t('product.shelveson') }} + {{ $t('product.shelvesoff') }} + + + {{ $t('common.yes') }} @@ -363,6 +370,7 @@ export default { brandId: null, // 品牌ID ifLogistics: '', // 是否需要物流 1-是 0-否 shelveState: '', // 是否上架 1-上架 0-不上架 + platshelvestate: '', // 是否平台上架 1-上架 0-不上架 ifOversold: '', // 是否允许超卖 1-是 0-否 ifCredit: '', // 是否支持积分兑换 1-是 0-否 creditLimit: '', // 单笔订单限制使用多少积分 @@ -551,6 +559,7 @@ export default { brandId: null, // 品牌ID ifLogistics: '', // 是否需要物流 1-是 0-否 shelveState: '', // 是否上架 1-上架 0-不上架 + platShelveState: '', // 是否平台上架 1-上架 0-不上架 ifOversold: '', // 是否允许超卖 1-是 0-否 ifCredit: '', // 是否支持积分兑换 1-是 0-否 creditLimit: '', // 单笔订单限制使用多少积分 diff --git a/src/views/commodity/commoditySystem/index.vue b/src/views/commodity/commoditySystem/index.vue index 1a3c9c6..493cecc 100644 --- a/src/views/commodity/commoditySystem/index.vue +++ b/src/views/commodity/commoditySystem/index.vue @@ -69,7 +69,7 @@ - + + + + - +