fix: show only scanned dropship pallet
This commit is contained in:
@@ -56,11 +56,11 @@
|
||||
<view class="section-card">
|
||||
<view class="section-heading"><view><text class="section-title">2. 托盘操作</text><text class="section-desc">直接扫描托盘码,只显示当前操作的托盘</text></view><button class="text-button" :disabled="loading" @tap="loadTask">刷新</button></view>
|
||||
<view class="batch-print-row"><text>已生成 {{ task.generatedPalletCount || 0 }} 个托盘码</text><button class="text-button batch-print" :disabled="printing || !task.generatedPalletCount" @tap="printAllPallets">打开全部 A4 托盘单</button></view>
|
||||
<view v-if="currentPalletDetails" class="pallet-card">
|
||||
<view class="pallet-head"><text class="pallet-code">{{ currentPalletDetails.palletNo }}</text><text class="pallet-status" :class="currentPalletDetails.status === 'SEALED' ? 'sealed' : ''">{{ currentPalletDetails.status === 'SEALED' ? '已封托' : '待封托' }}</text></view>
|
||||
<text class="pallet-meta">{{ currentPalletDetails.cartonCount || 0 }} 箱 · {{ currentPalletDetails.skuCount || 0 }} SKU · {{ currentPalletDetails.weightKg || 0 }} kg · {{ currentPalletDetails.volumeCbm || 0 }} m³</text>
|
||||
<button class="secondary-button" :disabled="printing" @tap="printPallet(currentPalletDetails)">{{ printing ? '正在生成 A4 文件…' : '打开当前托盘 A4 单' }}</button>
|
||||
<button v-if="currentPalletDetails.status === 'OPEN'" class="primary-button" :disabled="!currentPalletDetails.cartonCount || submitting" @tap="sealPallet(currentPalletDetails)">封托</button>
|
||||
<view v-if="currentPallet" class="pallet-card">
|
||||
<view class="pallet-head"><text class="pallet-code">{{ currentPallet.palletNo }}</text><text class="pallet-status" :class="currentPallet.status === 'SEALED' ? 'sealed' : ''">{{ currentPallet.status === 'SEALED' ? '已封托' : '当前托盘' }}</text></view>
|
||||
<text class="pallet-meta">{{ currentPallet.cartonCount || 0 }} 箱 · {{ currentPallet.skuCount || 0 }} SKU · {{ currentPallet.weightKg || 0 }} kg · {{ currentPallet.volumeCbm || 0 }} m³</text>
|
||||
<button v-if="currentPallet.palletId" class="secondary-button" :disabled="printing" @tap="printPallet(currentPallet)">{{ printing ? '正在生成 A4 文件…' : '打开当前托盘 A4 单' }}</button>
|
||||
<button v-if="currentPallet.palletId && currentPallet.status === 'OPEN'" class="primary-button" :disabled="!currentPallet.cartonCount || submitting" @tap="sealPallet(currentPallet)">封托</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user