feat(order): 下单支持一口价/师傅报价竞价/用户自主定价三种方式

- 下单页新增计价方式选择;自主定价填写总价,师傅报价单进入报价大厅
- 用户订单详情展示师傅报价列表并可选定师傅;选定后同步师傅、金额与订单状态
- 师傅大厅新增用户定价筛选与按价接单;报价单禁止直接抢单
- 后端订单新增 custom 价态、金额口径统一由 calcAmount 输出
- 报价中状态纳入用户可取消范围;超时回流重新开放报价
- 新增 fa_order.price_type custom 枚举迁移脚本(schema_phase6)
这个提交包含在:
linda
2026-10-28 17:48:23 +08:00
父节点 3bba2d6e94
当前提交 e1bf139c5a
共有 11 个文件被更改,包括 500 次插入 和 50 次删除

15
db/schema_phase6.sql 普通文件
查看文件

@@ -0,0 +1,15 @@
-- ============================================================================
-- 优匠优服 · Phase 6 下单三种计价方式
-- 一口价 fixed / 师傅报价竞价 quote / 用户自主定价 custom
-- fa_service 仍使用 fixed / quote / range(服务默认价态)
-- 下单时用户可覆盖 price_type,因此 fa_order 增加 custom
-- ============================================================================
SET NAMES utf8mb4;
ALTER TABLE `fa_order`
MODIFY COLUMN `price_type` enum('fixed','quote','range','custom') NOT NULL DEFAULT 'fixed'
COMMENT '一口价/师傅报价竞价/区间/用户自主定价';
-- 回滚(先确认没有 custom 订单):
-- SELECT COUNT(*) FROM fa_order WHERE price_type='custom';
-- ALTER TABLE fa_order MODIFY COLUMN price_type enum('fixed','quote','range') NOT NULL DEFAULT 'fixed';