fix(ocean-booking): make customer optional through release

This commit is contained in:
2026-09-09 11:21:13 +08:00
parent 89d237e129
commit 87fc08b06e
4 changed files with 58 additions and 9 deletions
@@ -57,7 +57,7 @@ describe('OceanBookingDetailView draft and release contract', () => {
expect(source).toContain('放舱前请填写起运港代码或名称')
expect(source).toContain('放舱前请填写目的港代码或名称')
expect(source).toContain("[form.data.placeOfDelivery, '交货地点']")
expect(source).toContain("[form.data.customerId, '客户']")
expect(source).not.toContain("[form.data.customerId, '客户']")
expect(source).toContain("if (!form.data.carrierCode) return '放舱前请重新选择船公司,所选船公司必须配置标准编码'")
expect(source).not.toContain('请先保存草稿后再放舱')
expect(source).toContain('放舱前请填写${missing[1]}')
@@ -88,7 +88,7 @@ describe('OceanBookingDetailView draft and release contract', () => {
it('keeps warehouse-scoped channel and server-filtered booking-agent selectors accessible', () => {
expect(source).toContain("warehouseType: 'DOMESTIC', status: 'ACTIVE'")
expect(source).toContain('listWarehouseLogisticsChannels')
expect(source).toContain('placeholder="草稿可暂不选择"')
expect(source).toContain('placeholder="单客户可选择,多客户可留空"')
expect(source).toContain('当前船公司暂无可用订舱代理')
expect(source).toContain(':label="supplier.name"')
expect(source).toContain('filterable clearable')