2 changed files with 190 additions and 0 deletions
-
109src/views/modules/boxManage/CartonLabelPrint.vue
-
81src/views/modules/boxManage/com_saleBoxManage_boxing.vue
@ -0,0 +1,109 @@ |
|||||
|
<template> |
||||
|
<div class="carton-label-container"> |
||||
|
<!-- 左侧文字信息 --> |
||||
|
<div class="info-section"> |
||||
|
<div class="info-item"> |
||||
|
<span class="info-text">NO.: {{ cartonData.orderNo || '' }}</span> |
||||
|
</div> |
||||
|
<div class="divider-horizontal"></div> |
||||
|
<div class="info-item"> |
||||
|
<span class="info-text">Carton No.: {{ cartonData.boxNo || '' }}</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- 中间竖线 --> |
||||
|
<div class="divider-vertical"></div> |
||||
|
|
||||
|
<!-- 右侧二维码 --> |
||||
|
<div class="qrcode-section"> |
||||
|
<img :src="qrCodeDataUrl" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'CartonLabelPrint', |
||||
|
props: { |
||||
|
cartonData: { |
||||
|
type: Object, |
||||
|
required: true, |
||||
|
default: () => ({ |
||||
|
orderNo: '', |
||||
|
boxNo: '' |
||||
|
}) |
||||
|
}, |
||||
|
qrCodeDataUrl: { |
||||
|
type: String, |
||||
|
required: true, |
||||
|
default: '' |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
.carton-label-container { |
||||
|
width: 70mm; |
||||
|
height: 30mm; |
||||
|
display: flex; |
||||
|
box-sizing: border-box; |
||||
|
border: 1px solid #333; |
||||
|
background: #fff; |
||||
|
font-family: "Microsoft YaHei", Arial, sans-serif; |
||||
|
position: relative; |
||||
|
} |
||||
|
|
||||
|
/* 左侧信息区域 */ |
||||
|
.info-section { |
||||
|
width: 44mm; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
position: relative; |
||||
|
} |
||||
|
|
||||
|
.info-item { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
padding-left: 3mm; |
||||
|
padding-right: 2mm; |
||||
|
} |
||||
|
|
||||
|
.info-text { |
||||
|
font-size: 9pt; |
||||
|
font-family: "Microsoft YaHei", Arial, sans-serif; |
||||
|
color: #000; |
||||
|
font-weight: bold; |
||||
|
word-break: break-word; |
||||
|
line-height: 1.2; |
||||
|
} |
||||
|
|
||||
|
/* 横向分隔线 */ |
||||
|
.divider-horizontal { |
||||
|
height: 1px; |
||||
|
background: #333; |
||||
|
} |
||||
|
|
||||
|
/* 竖向分隔线 */ |
||||
|
.divider-vertical { |
||||
|
width: 1px; |
||||
|
background: #333; |
||||
|
height: 100%; |
||||
|
} |
||||
|
|
||||
|
/* 右侧二维码区域 */ |
||||
|
.qrcode-section { |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
} |
||||
|
|
||||
|
.qrcode-section img { |
||||
|
width: 20mm; |
||||
|
height: 20mm; |
||||
|
display: block; |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue