feat(consignment): 匹配弹窗增加付款金额与售价差价
一键查询待匹配订单与手动匹配寄卖新增「工单用户付款金额」列, 售价后括号显示「用户付款金额 - 售价」差价:正数绿、负数红、 0 黄;拼单不显示差价,付款未知显示 -。
This commit is contained in:
@@ -54,3 +54,18 @@ test('一键查询待匹配订单:默认展示全部配对并按枪型/钻石/
|
||||
assert.ok(source.includes('不匹配 {data?.conflictCount ?? 0}'), '必须展示不匹配数量')
|
||||
assert.ok(source.includes('默认展示全部配对,按 枪型 → 钻石 → 璀璨 排序'), '界面必须说明默认口径')
|
||||
})
|
||||
|
||||
test('一键查询 / 手动匹配:展示工单用户付款金额与售价差价', () => {
|
||||
const pending = readSource('../src/components/admin/ConsignmentPendingMatchModal.tsx')
|
||||
const manual = readSource('../src/components/admin/ConsignmentWorkOrderMatchModal.tsx')
|
||||
|
||||
for (const source of [pending, manual]) {
|
||||
assert.ok(source.includes("title: '工单用户付款金额'"), '两个弹窗都必须有用户付款金额列')
|
||||
assert.ok(source.includes('ConsignmentPriceWithDiff'), '售价列必须带差价展示')
|
||||
}
|
||||
assert.ok(pending.includes('sharingEnabled={record.sharingEnabled}'), '拼单不展示差价')
|
||||
assert.ok(
|
||||
manual.includes('sharingEnabled={sharingEnabled && totalQuantity > 1}'),
|
||||
'拼单不展示差价',
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user