From 0d18089f713b7f8cf423504acf185845ca303e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Thu, 27 Aug 2026 09:38:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8C=85=E9=82=AE=E8=B4=B9=E7=94=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/system/system-config/api/index.ts | 14 +++ .../components/free-shipping-config-panel.vue | 85 +++++++++++++++++++ .../src/views/system/system-config/index.vue | 6 ++ 3 files changed, 105 insertions(+) create mode 100644 apps/web-antd/src/views/system/system-config/components/free-shipping-config-panel.vue diff --git a/apps/web-antd/src/views/system/system-config/api/index.ts b/apps/web-antd/src/views/system/system-config/api/index.ts index 3183ba7b..6ec6290a 100644 --- a/apps/web-antd/src/views/system/system-config/api/index.ts +++ b/apps/web-antd/src/views/system/system-config/api/index.ts @@ -32,6 +32,20 @@ export async function getSystemConfigByKeys(keys: string[]) { }); } +/** 满额包邮门槛(老库 yii_system_config config_type=2 type=2),返回 { id, name, rule, value } */ +export async function getFreeShippingConfig() { + return requestClient.get(`${prefix}free-shipping-config`); +} + +/** 保存满额包邮门槛,只传 value 时后端保留 name/rule 原值 */ +export async function saveFreeShippingConfig(data: { + name?: string; + rule?: string; + value: number; +}) { + return requestClient.post(`${prefix}save-free-shipping-config`, data); +} + const wxEntryPrefix = 'wx-workbench-entry/'; /** 某角色已分配的医生端功能入口(含 is_default_fav) */ diff --git a/apps/web-antd/src/views/system/system-config/components/free-shipping-config-panel.vue b/apps/web-antd/src/views/system/system-config/components/free-shipping-config-panel.vue new file mode 100644 index 00000000..76c63e1e --- /dev/null +++ b/apps/web-antd/src/views/system/system-config/components/free-shipping-config-panel.vue @@ -0,0 +1,85 @@ + + + diff --git a/apps/web-antd/src/views/system/system-config/index.vue b/apps/web-antd/src/views/system/system-config/index.vue index 6e7d6938..f98d1d9f 100644 --- a/apps/web-antd/src/views/system/system-config/index.vue +++ b/apps/web-antd/src/views/system/system-config/index.vue @@ -17,6 +17,7 @@ import AiModelConfigPanel from './components/ai-model-config-panel.vue'; import DictSearchConfigPanel from './components/dict-search-config-panel.vue'; import DispenseSignConfigPanel from './components/dispense-sign-config-panel.vue'; import DoctorLoginConfigPanel from './components/doctor-login-config-panel.vue'; +import FreeShippingConfigPanel from './components/free-shipping-config-panel.vue'; import HomeDisplayConfigPanel from './components/home-display-config-panel.vue'; import InputAuditConfigPanel from './components/input-audit-config-panel.vue'; import InvoiceNoticeConfigPanel from './components/invoice-notice-config-panel.vue'; @@ -83,6 +84,11 @@ const menuItems: MenuItem[] = [ component: PriceAdjustConfigPanel, }, { key: 'logistics', title: '物流展示', component: LogisticsConfigPanel }, + { + key: 'free_shipping', + title: '满额包邮', + component: FreeShippingConfigPanel, + }, { key: 'public_account_pay', title: '公账支付',