寄卖手动匹配改走内部现货并统一展示与超时口径
- 手动匹配不再指派供货打手:停在待加好友,清空截止时间与超时分钟 - 物品名模板去掉「0 璀璨」残留;寄卖单号无提报号时回退库存编号 - 状态列按寄卖库存显示内部匹配,打手列保留供货打手标签 - 超时配置增加启用开关,默认关闭(不限时) - 补充前后端回归测试
This commit is contained in:
@@ -58,3 +58,25 @@ test('寄售仓库:列表/详情按模板渲染,编辑不再写死旧字段'
|
||||
assert.ok(page.includes('...(hasDynamicSpecs'), '有模板规格时不得再提交旧规格字段')
|
||||
assert.ok(page.includes('请填写「'), '动态必填字段必须在表单层校验')
|
||||
})
|
||||
|
||||
test('物品详情的打手提报时间取来源提报创建时间', () => {
|
||||
const inventoryPage = readPanel('ConsignmentInventoryPanel.tsx')
|
||||
assert.ok(
|
||||
inventoryPage.includes('viewingItem.sourceSubmissionCreatedAt || viewingItem.createdAt'),
|
||||
'打手提报时间必须优先取来源提报创建时间',
|
||||
)
|
||||
|
||||
const repo = readFileSync(
|
||||
fileURLToPath(
|
||||
new URL(
|
||||
'../../backend/src/repositories/worker-platform/consignment-repo.ts',
|
||||
import.meta.url,
|
||||
),
|
||||
),
|
||||
'utf8',
|
||||
)
|
||||
assert.ok(
|
||||
repo.includes('cs.created_at AS source_submission_created_at'),
|
||||
'库存查询必须带来源提报创建时间',
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user