fix: clarify whole-pallet box and SKU counts
This commit is contained in:
@@ -5,6 +5,12 @@ import { describe, expect, it } from 'vitest'
|
||||
const source = readFileSync(resolve(process.cwd(), 'src/modules/inbounds/core/DropshipPalletPrintPanel.vue'), 'utf8')
|
||||
|
||||
describe('DropshipPalletPrintPanel', () => {
|
||||
it('explains whole-pallet box totals and distinct SKU codes rather than item quantities', () => {
|
||||
expect(source).toContain('prop="cartonCount" label="整托箱数"')
|
||||
expect(source).toContain('prop="skuCount" label="SKU 种类数"')
|
||||
expect(source).toContain('包含合托的其他入仓码')
|
||||
expect(source).toContain('相同 SKU 编码只计一种,不代表商品件数')
|
||||
})
|
||||
it('provides desktop batch printing and single-pallet reprinting', () => {
|
||||
expect(source).toContain('一件代发托盘打印')
|
||||
expect(source).toContain('打印全部托盘')
|
||||
|
||||
@@ -90,6 +90,7 @@ onBeforeUnmount(() => { disposed = true; requestSerial += 1 })
|
||||
<div>
|
||||
<h3 id="dropship-print-title">一件代发托盘打印</h3>
|
||||
<p>测量审核生成托盘码后,在电脑端打印并贴到空托盘,再交由 PDA 扫码组托。</p>
|
||||
<p>箱数与 SKU 种类数按整托统计,包含合托的其他入仓码;相同 SKU 编码只计一种,不代表商品件数。</p>
|
||||
</div>
|
||||
<div class="print-actions">
|
||||
<el-button :disabled="loading || Boolean(printing)" @click="loadPallets"><RefreshCw :size="15" />刷新</el-button>
|
||||
@@ -108,8 +109,8 @@ onBeforeUnmount(() => { disposed = true; requestSerial += 1 })
|
||||
</el-table-column>
|
||||
<el-table-column prop="palletNo" label="托盘码" min-width="210" />
|
||||
<el-table-column label="状态" width="110"><template #default="{ row }"><el-tag size="small" :type="row.status === 'SEALED' ? 'success' : 'warning'" effect="plain">{{ statusLabel(row.status) }}</el-tag></template></el-table-column>
|
||||
<el-table-column prop="cartonCount" label="已归托箱数" width="120" align="right" />
|
||||
<el-table-column prop="skuCount" label="SKU 数" width="100" align="right" />
|
||||
<el-table-column prop="cartonCount" label="整托箱数" width="120" align="right" />
|
||||
<el-table-column prop="skuCount" label="SKU 种类数" width="120" align="right" />
|
||||
</el-table>
|
||||
<el-empty v-else-if="!loading" description="测量审核通过并生成托盘码后,可在这里打印" :image-size="64" />
|
||||
<div v-else class="loading-state"><el-skeleton :rows="4" animated /></div>
|
||||
|
||||
Reference in New Issue
Block a user