From b219e26349f61b70c52acb54d6e52d1a9e818807 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 26 Nov 2025 14:45:04 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-25=20=E8=BF=87=E7=AB=99=E9=87=87?= =?UTF-8?q?=E9=9B=86-=E3=80=8B=E5=88=9B=E5=BB=BA=E5=88=86=E5=8D=B7=20?= =?UTF-8?q?=E6=8F=92=E5=85=A5SFDC=5FDefectHist=E8=A1=A8=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E8=A6=81=E5=B0=86reRollNo=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=8F=92=E5=85=A5=E8=BF=9B=E5=8E=BB=EF=BC=8CreRollNo=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=98=AF=E5=88=9B=E5=BB=BA=E5=88=86=E5=8D=B7=E6=97=B6?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E9=82=A3=E4=B8=AA=E5=8D=B7=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/yieldReport/com_separate_roll.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/modules/yieldReport/com_separate_roll.vue b/src/views/modules/yieldReport/com_separate_roll.vue index 1389766..d84cbf4 100644 --- a/src/views/modules/yieldReport/com_separate_roll.vue +++ b/src/views/modules/yieldReport/com_separate_roll.vue @@ -694,7 +694,7 @@ export default { availableQty: row.availableQty || 0, site: this.scheduleData.site } - + // 调用打印功能 this.printCarrierLabel(printData) }, @@ -704,7 +704,7 @@ export default { try { // 生成二维码(使用 QRCode.js 或者使用在线二维码API) const qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=${encodeURIComponent(data.carrierNo)}` - + // 打印HTML模板 const printContent = `
@@ -712,12 +712,12 @@ export default {
QR Code
- +
固定载具标签
- + @@ -741,14 +741,14 @@ export default {
${data.availableQty}
- +
打印时间: ${this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')}
` - + // 创建打印窗口 const printWindow = window.open('', '_blank') printWindow.document.write(` @@ -770,13 +770,13 @@ export default { `) printWindow.document.close() - + // 延迟打印,确保二维码图片加载完成 setTimeout(() => { printWindow.print() printWindow.close() }, 500) - + this.$message.success('正在打印载具标签...') } catch (error) { this.$message.error('打印失败: ' + error.message)