dengjunjie
2025-01-04 296b4aec849d45a075b6068cb121dd0c117d3818
代码管理/WMS/WIDESEA_WMSClient/src/extension/basic/extend/printView.vue
@@ -16,6 +16,8 @@
        >
          <VueQrcode id="qrcode" :value="palletCode" :size="200"></VueQrcode>
        </div>
      </div>
      <div id="palletcode">
        <span
          style="display: flex; justify-content: center; align-items: center"
          >{{ palletCode }}</span
@@ -56,8 +58,10 @@
    },
    print() {
      let printContent = document.getElementById("printContent");
      let palletcode=document.getElementById("palletcode");
      var printWindow = window.open("", "");
      printWindow.document.write(printContent.innerHTML);
      printWindow.document.write(palletcode.innerHTML);
      printWindow.document.close();
      printWindow.focus();
      printWindow.print();