fix: 修正海外出库前端质量门禁
This commit is contained in:
@@ -18,7 +18,7 @@ import { cancelOutbound, createOneClickDropshipOutbound, createReturnOutbound, l
|
||||
import { type InventoryBalanceDto, type InventoryPositionDto } from '../api/inventory'
|
||||
import { formatOverseasDateTime } from '../lastMilePresentation'
|
||||
import { overseasWarehousePermissions as permission } from '../permissions'
|
||||
import { listPlatformTenants, type PlatformTenantResource } from '@/modules/iam/api/platformIam'
|
||||
import { listPlatformTenants, type PlatformTenantResource } from '@/modules/iam'
|
||||
import { listPlatformWarehouses, type PlatformWarehouseSummaryResource } from '@/modules/warehouses'
|
||||
import { getReturnCarton, listReturnCartons, listReturnStock, type ReturnCartonDetail, type ReturnCartonRow, type ReturnStockRow } from '../api/returnInventory'
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ describe('phase-five outbound, delivery, exception and visit behavior', () => {
|
||||
expect(detail).toContain('getOutbound(outboundNo.value)')
|
||||
expect(detail).toContain('cancelOutbound(outboundNo.value, reason)')
|
||||
expect(detail).not.toContain('customerId')
|
||||
expect(list).toContain('createOneClickDropshipOutbound(selectedCustomerId.value')
|
||||
expect(list).toContain("createOneClickDropshipOutbound([...customerIds][0] || ''")
|
||||
expectOperationColumnFirst('OutboundsView.vue')
|
||||
})
|
||||
|
||||
|
||||
@@ -349,9 +349,10 @@ describe('overseas warehouse first-batch prototype contract', () => {
|
||||
expect(value).toContain('aria-label="尾程订单状态"')
|
||||
expect(value).toContain('<el-radio-button value="全部">全部</el-radio-button>')
|
||||
expect(value).toContain('<el-radio-button value="待分配">待分配</el-radio-button>')
|
||||
expect(value.indexOf("label: '入库单号'")).toBeLessThan(value.indexOf("label: '出库单号'"))
|
||||
expect(value.indexOf("label: '出库单号'")).toBeLessThan(value.indexOf("label: '派送单号'"))
|
||||
expect(value.indexOf("label: '派送单号'")).toBeLessThan(value.indexOf("label: '换标单号'"))
|
||||
const columns = value.slice(value.indexOf('const columns:'), value.indexOf('const selectedContainerIds'))
|
||||
expect(columns.indexOf("label: '入库单号'")).toBeLessThan(columns.indexOf("label: '出库单号'"))
|
||||
expect(columns.indexOf("label: '出库单号'")).toBeLessThan(columns.indexOf("label: '派送单号'"))
|
||||
expect(columns.indexOf("label: '派送单号'")).toBeLessThan(columns.indexOf("label: '换标单号'"))
|
||||
expect(value).not.toMatch(/router\.push\([^)]*(outbound|dispatch)/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user