This commit is contained in:
2026-09-11 11:51:33 +08:00
parent 6b7536b95c
commit 385c5d9e9e
2 changed files with 3 additions and 2 deletions
@@ -16,6 +16,7 @@ describe('InboundHistoryPanel dropship pallet result', () => {
it('keeps the existing scoped pallet-label action available', () => { it('keeps the existing scoped pallet-label action available', () => {
expect(source).toContain('downloadDropshipPalletLabel(props.customerId, props.inboundId, pallet.palletId)') expect(source).toContain('downloadDropshipPalletLabel(props.customerId, props.inboundId, pallet.palletId)')
expect(source).toContain('打印托盘唛') expect(source).toContain("pallet.status === 'SEALED' && pallet.palletNo")
expect(source).toContain('打印托盘码')
}) })
}) })
@@ -55,7 +55,7 @@ async function printPallet(pallet: InboundDropshipPallet) {
<article v-for="pallet in dropshipPallets" :key="pallet.palletId" class="dropship-pallet-card"> <article v-for="pallet in dropshipPallets" :key="pallet.palletId" class="dropship-pallet-card">
<header> <header>
<div><strong>{{ value(pallet.palletNo) }}</strong><el-tag size="small" :type="pallet.status === 'SEALED' ? 'success' : 'warning'" effect="plain">{{ dropshipPalletStatus(pallet.status) }}</el-tag></div> <div><strong>{{ value(pallet.palletNo) }}</strong><el-tag size="small" :type="pallet.status === 'SEALED' ? 'success' : 'warning'" effect="plain">{{ dropshipPalletStatus(pallet.status) }}</el-tag></div>
<el-button v-if="pallet.palletNo" link type="primary" @click="printPallet(pallet)">打印托盘唛</el-button> <el-button v-if="pallet.status === 'SEALED' && pallet.palletNo" link type="primary" @click="printPallet(pallet)">打印托盘码</el-button>
</header> </header>
<dl class="dropship-pallet-summary"> <dl class="dropship-pallet-summary">
<div><dt>箱数</dt><dd>{{ pallet.cartonCount }}</dd></div> <div><dt>箱数</dt><dd>{{ pallet.cartonCount }}</dd></div>