feat: 同步报销流程与工作台改动
This commit is contained in:
@@ -1169,6 +1169,28 @@ test('draft submit validation uses expense detail date and amount when claim sum
|
||||
assert.ok(!issues.some((issue) => issue.includes('报销事由未完善')))
|
||||
})
|
||||
|
||||
test('returned application submit validation does not require expense detail rows', () => {
|
||||
const issues = buildDraftBlockingIssues(
|
||||
{
|
||||
id: 'AP-202606060001-RETURNED',
|
||||
claimNo: 'AP-202606060001-RETURNED',
|
||||
documentTypeCode: 'application',
|
||||
approvalKey: 'rejected',
|
||||
profileName: '曹笑竹',
|
||||
typeLabel: '差旅费用申请',
|
||||
typeCode: 'travel_application',
|
||||
reason: '支撑国网仿生产环境部署',
|
||||
location: '上海',
|
||||
occurredDisplay: '2026-02-20 至 2026-02-23',
|
||||
amountValue: 1880
|
||||
},
|
||||
[]
|
||||
)
|
||||
|
||||
assert.deepEqual(issues, [])
|
||||
assert.equal(issues.includes('费用明细不能为空'), false)
|
||||
})
|
||||
|
||||
test('transport ticket descriptions use route format and invalid format becomes risk advice', () => {
|
||||
const routeItem = buildExpenseItemViewModel(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user