From fdc9db9a9c0eac86f2b9c310e20afbd8a550170c Mon Sep 17 00:00:00 2001 From: 2256907009 <2256907009@qq.com> Date: Thu, 5 Feb 2026 15:15:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=95=86=E5=93=81=E5=A5=97=E9=A4=90?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BA=E5=AE=9A=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin/product.js | 18 + src/views/product/ProductList.vue | 156 +++- 问题.MD | 1252 ++--------------------------- 3 files changed, 206 insertions(+), 1220 deletions(-) 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 @@ 禁用 -
+ +