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 @@ - + + + + - +