完善配送订单列表可读信息

This commit is contained in:
czl231
2026-08-25 23:32:58 +08:00
parent 59a01192c0
commit 44014a0e4f
7 changed files with 154 additions and 11 deletions

View File

@@ -138,5 +138,9 @@ assert(recordPage.includes('if (saving.value) return'), '订单保存缺少显
assert(orderCreation.includes('productAmount + deliveryFee - discountAmount'), '订单金额预估公式不正确');
assert(orderCreation.includes("优惠金额必须小于商品金额与配送费之和"), '优惠金额缺少应付金额正数校验');
assert(orderPreview.includes('金额仅供预览'), '订单金额预估未声明服务端最终计算');
assert(definitions.includes("listDisplayKey: 'address'"), '订单列表收货地址未使用受控地址快照');
assert(definitions.includes("listDisplayKey: 'contract_products_summary'"), '订单列表合同气瓶未使用可读摘要');
assert(listPage.includes('function displayListField'), '资源列表未支持后端派生展示字段');
assert(listPage.includes('field.listDetailLink'), '订单气瓶摘要缺少详情入口');
console.log(`独立资源页面契约通过:详情 ${listResources.length},新建 ${creatable.size},编辑 ${editable.size}`);