- 下单页新增计价方式选择;自主定价填写总价,师傅报价单进入报价大厅 - 用户订单详情展示师傅报价列表并可选定师傅;选定后同步师傅、金额与订单状态 - 师傅大厅新增用户定价筛选与按价接单;报价单禁止直接抢单 - 后端订单新增 custom 价态、金额口径统一由 calcAmount 输出 - 报价中状态纳入用户可取消范围;超时回流重新开放报价 - 新增 fa_order.price_type custom 枚举迁移脚本(schema_phase6)
16 行
853 B
SQL
16 行
853 B
SQL
-- ============================================================================
|
||
-- 优匠优服 · 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';
|