diff --git a/src/api/admin/product.js b/src/api/admin/product.js index 6f3c9df..7e41745 100644 --- a/src/api/admin/product.js +++ b/src/api/admin/product.js @@ -195,6 +195,24 @@ export const enableProductPlan = (data) => { }) } +/**禁用套餐固定价格 */ +export const disablePlanFixedPrice = (data) => { + return http2.post('/api/v1/admin/good/plan/disable_fixed_price', data,{ + headers:{ + 'Content-Type':'multipart/form-data' + } + }) +} + +/**启用套餐固定价格 */ +export const enablePlanFixedPrice = (data) => { + return http2.post('/api/v1/admin/good/plan/enable_fixed_price', data,{ + headers:{ + 'Content-Type':'multipart/form-data' + } + }) +} + /**---------------------------------- */ /**商品分组标签管理 */ diff --git a/src/views/product/ProductList.vue b/src/views/product/ProductList.vue index 99c1786..a93b271 100644 --- a/src/views/product/ProductList.vue +++ b/src/views/product/ProductList.vue @@ -520,13 +520,15 @@ :title="planFormType === 'add' ? '新增套餐' : '编辑套餐'" width="700px" append-to-body + class="plan-form-dialog" > - +
+ @@ -665,6 +667,22 @@ +
0 表示没有库存
+
+ + +
启用后套餐价格将使用固定价格,不再根据参数计算
+
+ + @@ -675,7 +693,8 @@ 禁用 -
+ +