2 changed files with 180 additions and 0 deletions
-
95src/views/modules/boxManage/PalletLabelPrint.vue
-
85src/views/modules/boxManage/com_saleBoxManage_pallet.vue
@ -0,0 +1,95 @@ |
|||||
|
<template> |
||||
|
<div class="pallet-label-container"> |
||||
|
<!-- No. 区域 --> |
||||
|
<div class="info-row"> |
||||
|
<span class="info-text">No.: {{ palletData.orderNo || '' }}</span> |
||||
|
</div> |
||||
|
|
||||
|
<!-- 横线1 --> |
||||
|
<div class="divider-line"></div> |
||||
|
|
||||
|
<!-- Pallet No. 区域 --> |
||||
|
<div class="info-row"> |
||||
|
<span class="info-text">Pallet No.: {{ palletData.palletNo || '' }}</span> |
||||
|
</div> |
||||
|
|
||||
|
<!-- 横线2 --> |
||||
|
<div class="divider-line"></div> |
||||
|
|
||||
|
<!-- 二维码区域 --> |
||||
|
<div class="qrcode-row"> |
||||
|
<img :src="qrCodeDataUrl" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'PalletLabelPrint', |
||||
|
props: { |
||||
|
palletData: { |
||||
|
type: Object, |
||||
|
required: true, |
||||
|
default: () => ({ |
||||
|
orderNo: '', |
||||
|
palletNo: '' |
||||
|
}) |
||||
|
}, |
||||
|
qrCodeDataUrl: { |
||||
|
type: String, |
||||
|
required: true, |
||||
|
default: '' |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
.pallet-label-container { |
||||
|
width: 100mm; |
||||
|
height: 80mm; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
box-sizing: border-box; |
||||
|
border: 1px solid #333; |
||||
|
background: #fff; |
||||
|
font-family: "Microsoft YaHei", Arial, sans-serif; |
||||
|
} |
||||
|
|
||||
|
/* 信息行 */ |
||||
|
.info-row { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: flex-start; |
||||
|
padding-left: 5mm; |
||||
|
height: 18mm; |
||||
|
} |
||||
|
|
||||
|
.info-text { |
||||
|
font-size: 12pt; |
||||
|
font-family: "Microsoft YaHei", Arial, sans-serif; |
||||
|
color: #000; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
/* 横向分隔线 */ |
||||
|
.divider-line { |
||||
|
height: 1px; |
||||
|
background: #333; |
||||
|
} |
||||
|
|
||||
|
/* 二维码区域 */ |
||||
|
.qrcode-row { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
} |
||||
|
|
||||
|
.qrcode-row img { |
||||
|
width: 40mm; |
||||
|
height: 40mm; |
||||
|
display: block; |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue