fix: show dropship outbound measurements
This commit is contained in:
@@ -19,6 +19,7 @@ const fixtures = Array.from({ length: 7 }, (_, index) => ({
|
||||
inventoryPositionId: `position-${index}`, orderNo: `ORDER-${index}`, customerId: 'customer-a',
|
||||
customerName: '客户甲', overseasWarehouseId: 'warehouse-a', palletNo: `PALLET-${index}`,
|
||||
inboundCode: `IN-${index}`, skuCode: index < 6 ? 'MATCH' : 'OTHER', productName: '测试品名', availablePackages: index + 1,
|
||||
grossWeightKg: (index + 1) * 10, volumeWeightKg: (index + 1) * 20, volumeCbm: index + 1,
|
||||
}))
|
||||
let wrapper: VueWrapper
|
||||
async function clickButton(text: string) {
|
||||
@@ -60,6 +61,9 @@ describe('outbound candidate search and selection', () => {
|
||||
|
||||
it('selects and deselects the current page while preserving other pages, then submits all selected quantities', async () => {
|
||||
await openCreate()
|
||||
expect(wrapper.text()).toContain('可出毛重(kg)')
|
||||
expect(wrapper.text()).toContain('可出材积重(kg)')
|
||||
expect(wrapper.text()).toContain('可出体积(m³)')
|
||||
pageCheckbox().vm.$emit('change', true)
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('已选择 5 条')
|
||||
|
||||
@@ -247,6 +247,9 @@ onMounted(load)
|
||||
<el-table-column prop="skuCode" label="SKU" min-width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="productName" label="品名" min-width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="availablePackages" label="可出箱数" width="95" align="right" />
|
||||
<el-table-column prop="grossWeightKg" label="可出毛重(kg)" width="125" align="right" />
|
||||
<el-table-column prop="volumeWeightKg" label="可出材积重(kg)" width="135" align="right" />
|
||||
<el-table-column prop="volumeCbm" label="可出体积(m³)" width="125" align="right" />
|
||||
</el-table>
|
||||
<div v-if="!inventoryLoading && !filteredDropshipCandidates.length" class="form-hint">暂无可直接出库的已完成入库订单</div>
|
||||
<div class="candidate-pagination">
|
||||
|
||||
Reference in New Issue
Block a user