From a2e34466d521fb5773db57b97b9b938394081639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 1 Feb 2026 02:42:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(store):=20=E6=B7=BB=E5=8A=A0=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E5=92=8C=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=85=8D=E9=80=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在app.config.ts中添加门店相关路由配置 - 在config/app.ts中添加租户名称常量 - 在Header.tsx中实现门店选择功能,包括定位、距离计算和门店切换 - 更新ShopOrder模型,添加门店ID、门店名称、配送员ID和仓库ID字段 - 新增ShopStore相关API和服务,支持门店的增删改查 - 新增ShopStoreRider相关API和服务,支持配送员管理 - 新增ShopStoreUser相关API和服务,支持店员管理 - 新增ShopWarehouse相关API和服务,支持仓库管理 - 添加配送订单页面,支持订单状态管理和送达确认功能 - 优化经销商页面的样式布局 --- src/utils/payment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/payment.ts b/src/utils/payment.ts index 7cb32c4..6ea1a41 100644 --- a/src/utils/payment.ts +++ b/src/utils/payment.ts @@ -191,7 +191,7 @@ export class PaymentHandler { // 后端字段可能叫 dealerId 或 storeId,这里都带上,服务端忽略未知字段即可。 // 这里做一次路径兼容(camel vs kebab),避免接口路径不一致导致整单失败。 const list = await this.listByCompatEndpoint( - ['/shop/shopStoreRider', '/shop/shop-store-rider'], + ['/shop/shop-store-rider', '/shop/shop-store-rider'], { dealerId: storeId, storeId: storeId, @@ -224,7 +224,7 @@ export class PaymentHandler { private static async getWarehouses(): Promise { if (this.warehousesCache) return this.warehousesCache; const list = await this.listByCompatEndpoint( - ['/shop/shopWarehouse', '/shop/shop-warehouse'], + ['/shop/shop-warehouse', '/shop/shop-warehouse'], {} ); const usable = (list || []).filter(w => w?.isDelete !== 1 && (w.status === undefined || w.status === 1));