|
@@ -34,12 +34,12 @@
|
|
<div style="width: 250px" id="printMe">
|
|
<div style="width: 250px" id="printMe">
|
|
<div v-for="(item, index) in QRcodeList" :key="index">
|
|
<div v-for="(item, index) in QRcodeList" :key="index">
|
|
<div style="height: 442px; padding-top: 2px; overflow: hidden; position: relative">
|
|
<div style="height: 442px; padding-top: 2px; overflow: hidden; position: relative">
|
|
- <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-if="item.orderWlnCode">
|
|
|
|
|
|
+ <!-- <div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-if="item.orderWlnCode">
|
|
<barcode :value="item.orderWlnCode" :height="50" :width="1.6" />
|
|
<barcode :value="item.orderWlnCode" :height="50" :width="1.6" />
|
|
</div>
|
|
</div>
|
|
<div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-else>
|
|
<div style="border-bottom: 1px solid #000; display: flex; align-items: center; justify-content: center" v-else>
|
|
<barcode :value="item.orderCode" :height="50" :width="1.6" />
|
|
<barcode :value="item.orderCode" :height="50" :width="1.6" />
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<div style="display: flex; align-items: center; justify-content: center">
|
|
<div style="display: flex; align-items: center; justify-content: center">
|
|
<div style="width: 150px; height: 150px; margin-top: 8px" :id="'print' + index" :ref="'print' + index">
|
|
<div style="width: 150px; height: 150px; margin-top: 8px" :id="'print' + index" :ref="'print' + index">
|
|
<img src="" alt="" style="vertical-align: middle; height: 100%; width: 100%" />
|
|
<img src="" alt="" style="vertical-align: middle; height: 100%; width: 100%" />
|
|
@@ -338,7 +338,7 @@ const clickPrint = (list) => {
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
for (let i = 0; i < QRcodeList.value.length; i++) {
|
|
for (let i = 0; i < QRcodeList.value.length; i++) {
|
|
proxy.$refs["print" + i][0].innerHTML = ""; //清除二维码方法一
|
|
proxy.$refs["print" + i][0].innerHTML = ""; //清除二维码方法一
|
|
- let text = QRcodeList.value[i].skuSpecCode
|
|
|
|
|
|
+ let text = QRcodeList.value[i].skuSpecCode;
|
|
new QRCode(proxy.$refs["print" + i][0], {
|
|
new QRCode(proxy.$refs["print" + i][0], {
|
|
text: text, //页面地址 ,如果页面需要参数传递请注意哈希模式#
|
|
text: text, //页面地址 ,如果页面需要参数传递请注意哈希模式#
|
|
width: 150,
|
|
width: 150,
|