This commit is contained in:
2026-09-09 10:26:17 +08:00
parent 1249263b94
commit 229489271d
8 changed files with 87 additions and 22 deletions
@@ -60,9 +60,10 @@ describe('ContainerDetailView customs integration', () => {
expect(source).toContain("hasAction('RECORD_EMPTY_RETURN')")
expect(source).toContain("terminalDrayage?.allowedActions.includes('RECORD_EMPTY_RETURN')")
expect(source).toContain('v-if="canRecordEmptyReturn" type="primary"')
expect(source).toContain('>确认还柜/还空</el-button>')
expect(source).toContain('>确认还柜</el-button>')
expect(source).toContain('expectedVersion: current.version')
expect(source).toContain('actualAt: emptyReturnAt.value')
expect(source).toContain('remark: emptyReturnReason.value.trim() || undefined')
expect(source).toContain('await load()')
})
@@ -83,7 +84,7 @@ describe('ContainerDetailView customs integration', () => {
expect(lastLegFeesSource).toContain('尾程计费加载失败')
expect(lastLegFeesSource).toContain('empty-text="当前货柜暂无尾程费用"')
expect(lastLegFeesSource).toContain('v-loading="loading"')
expect(lastLegFeesSource).toContain('Promise.all([listOverseasContainerFees(props.containerBookingId), listOverseasContainerCustomers(props.containerBookingId), listContainerFeeSupplierOptions(null)])')
expect(lastLegFeesSource).toContain('props.readonly ? Promise.resolve([]) : listContainerFeeSupplierOptions(null)')
expect(lastLegFeesSource).toContain("sourceType: 'OVERSEAS_CONTAINER_FEE', businessType: 'OVERSEAS_CONTAINER'")
expect(lastLegFeesSource).toContain("form.settlementMode === 'DIRECT_PAID'")
expect(lastLegFeesSource).toContain('uploadContainerFeePaymentVoucher(form.customerId, file.raw)')