优化
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user