|
|
|
@ -139,24 +139,24 @@ const open = async (Fdata, vals, val, allSorts) => {
|
|
|
|
|
var tempString = ''
|
|
|
|
|
datavals.value.forEach((e) => {
|
|
|
|
|
tempString +=
|
|
|
|
|
'<p style="margin:-1px 0; margin-left:10px; ">' +
|
|
|
|
|
'<div style="margin:-1px 0; margin-left:10px;"><span style="display:block;">' +
|
|
|
|
|
e.projectSubName +
|
|
|
|
|
' , ' +
|
|
|
|
|
'</span> <span style="display:block;">' +
|
|
|
|
|
e.amount +
|
|
|
|
|
'</p>'
|
|
|
|
|
'</span></div>'
|
|
|
|
|
}),
|
|
|
|
|
(qrCodeElement.innerHTML +=
|
|
|
|
|
`<div class="page qr-page">
|
|
|
|
|
<div class="qr-code-container" style="padding:0mm;font-size:14px !important;font-weight:700;position: relative; height: 200mm">
|
|
|
|
|
<div class="qr-code-container" style="padding:0mm;font-size:15px !important;font-weight:700;position: relative; height: 200mm">
|
|
|
|
|
<div style="text-align:center;"> <img src="${qrCodeData}" width="80%" alt="QR Code"/></div>
|
|
|
|
|
<div style="margin:0 2mm;text-align:left;" >
|
|
|
|
|
<p style="line-height:16px;">订单名称(Order name):</p>
|
|
|
|
|
<p>${Fdata.code} </p>
|
|
|
|
|
<hr style="margin: -10px 0;"/>
|
|
|
|
|
<p style="line-height:16px;">序号(Serial number):</p>
|
|
|
|
|
<p>${specarr.value}- ${allSorts} </p>
|
|
|
|
|
<hr style="margin: -10px 0;"/>
|
|
|
|
|
<p style="line-height:16px">产品清单(Product list):</p>` +
|
|
|
|
|
<span style="display:block;">订单名称(Order name):</span>
|
|
|
|
|
<span style="display:block;">${Fdata.code} </span>
|
|
|
|
|
<hr/>
|
|
|
|
|
<span style="display:block;" >序号(Serial number):</span>
|
|
|
|
|
<span style="display:block;font-size:18px !important;">${specarr.value}- ${allSorts} </span>
|
|
|
|
|
<hr/>
|
|
|
|
|
<span style="display:block;" style="line-height:16px">产品清单(Product list):</span>` +
|
|
|
|
|
tempString +
|
|
|
|
|
` </div>
|
|
|
|
|
<span style="position:absolute;right:0;bottom:0; border:1px solid #999;width:25px;height:25px;line-height:25px; text-align: center;border-radius: 50%;font-weight:500 !important;font-size:12px !important;color:#999;"> ${item.index}</span>
|
|
|
|
@ -179,7 +179,6 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
A4的大小:21cm*29.7cm(width:794px;)。
|
|
|
|
|
单位换算:1 inch = 2.54 cm 1mm = 96 px 1 cm = 37.79528 px*/
|
|
|
|
|