fix(consignment): 修复内部匹配绑定与留痕并顺延迁移

This commit is contained in:
2026-11-06 11:21:50 +08:00
parent e30a5fa67e
commit 3f16b15c5c
15 changed files with 1473 additions and 128 deletions
@@ -3,10 +3,11 @@ import { readFileSync } from 'node:fs'
import test from 'node:test'
test('寄售仓库必须提供通过审核入库时间范围筛选,并透传到库存查询', () => {
// Windows 检出为 CRLF,多行断言里的 \n 会匹配失败,先统一换行
const source = readFileSync(
new URL('../src/pages/admin/panels/ConsignmentInventoryPanel.tsx', import.meta.url).pathname,
'utf8',
)
).replace(/\r\n/g, '\n')
assert.ok(
source.includes("from '@/components/admin/AdminDatePicker'"),
@@ -20,7 +20,7 @@ test('后台全量选项:系统含通用,区服含互通', () => {
assert.ok(source.includes("value: '互通'"), '区服选项必须包含「互通」')
})
test('苏尔南默认配置:取消代码内置字段,由迁移 137 提供五个单选字段', () => {
test('苏尔南默认配置:取消代码内置字段,由迁移 144 提供五个单选字段', () => {
const utils = readFileSync(
new URL('../src/utils/consignment-spec.ts', import.meta.url).pathname,
'utf8',