<div id='customers'>
<div>
<span>日期</span>:<span>{item?.date}</span>
</div>
<div>
<span>制单</span>:<span>{item?.manufactureCode}</span>
</div>
<div>
<span>款号</span>:<span>{item?.style}</span>
</div>
<div>
<span>颜色</span>:<span>{item?.color}</span>
</div>
<div>
<span>尺码</span>:<span>{item?.size}</span>
</div>
<div>
<span>床号</span>:<span>{item?.bedCode}</span>
<span>扎号</span>:<span>{item?.lotCode}</span>
</div>
<div>
<span>缸号</span>:<span>{item?.batchCode}</span>
</div>
<div>
<span>PO</span>:<span>{item?.orderCode}</span>
</div>
<div>
<span>数量</span>:<span>{item?.count}</span>
<span>部位</span>:<span>{item?.part}</span>
</div>
<div>
<span>验片</span>:<span>{item?.result}</span>
</div>
<img className='imgData' src={`data:image/jpeg;base64,${item?.base64}`}></img>
</div>
页面样式
#print {
// width: 30mm;
// height: 40mm;
}
// #customers :nth-child(1) {
// margin-top: 0mm;
// }
#customers {
padding: 2.5mm 0;
width: 40mm;
height: 50mm;
text-align: center;
box-sizing: border-box;
}
#customers div {
height: 4mm;
}
/*id为customers 的标签里面的td标签和th标签的样式*/
#customers span {
font-size: 1px;
font-family: "微软雅黑";
font-weight: "bold";
}
// #customers th {
// font-size: 5pt;
// font-weight: bold;
// border: 1px solid gray;
// }
.imgData {
width: 100%;
height: 5mm;
}