From e5821a3f68ddc8f318395c5b138fd409c165f093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 16 Mar 2026 15:34:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(wms):=20=E6=8F=90=E9=AB=98html2canvas?= =?UTF-8?q?=E7=BC=A9=E6=94=BE=E6=AF=94=E4=BE=8B=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整wayBill和wayBill2组件的html2canvas缩放比例从3提高到6,以获得更清晰的打印效果 重构发货单页面布局,将表格和分页组件放入滚动容器,表单区域设为固定位置 --- .../views/wms/delivery/components/wayBill.vue | 2 +- .../wms/delivery/components/wayBill2.vue | 2 +- .../src/views/wms/delivery/waybill/index.vue | 122 +++++++++--------- 3 files changed, 64 insertions(+), 62 deletions(-) diff --git a/klp-ui/src/views/wms/delivery/components/wayBill.vue b/klp-ui/src/views/wms/delivery/components/wayBill.vue index a401b675..38791f42 100644 --- a/klp-ui/src/views/wms/delivery/components/wayBill.vue +++ b/klp-ui/src/views/wms/delivery/components/wayBill.vue @@ -440,7 +440,7 @@ export default { // 固定按纸张尺寸截图:右侧留白来自于 contentEl 的缩放(241 -> 211mm),而不是扩大截图宽度 const canvas = await html2canvas(node, { backgroundColor: '#ffffff', - scale: 3, + scale: 6, useCORS: true, willReadFrequently: true, width: pageWidthPx, diff --git a/klp-ui/src/views/wms/delivery/components/wayBill2.vue b/klp-ui/src/views/wms/delivery/components/wayBill2.vue index 003cbf81..cb29572e 100644 --- a/klp-ui/src/views/wms/delivery/components/wayBill2.vue +++ b/klp-ui/src/views/wms/delivery/components/wayBill2.vue @@ -440,7 +440,7 @@ export default { // 固定按纸张尺寸截图:右侧留白来自于 contentEl 的缩放(241 -> 211mm),而不是扩大截图宽度 const canvas = await html2canvas(node, { backgroundColor: '#ffffff', - scale: 3, + scale: 6, useCORS: true, willReadFrequently: true, width: pageWidthPx, diff --git a/klp-ui/src/views/wms/delivery/waybill/index.vue b/klp-ui/src/views/wms/delivery/waybill/index.vue index 30360a28..1a6afc5f 100644 --- a/klp-ui/src/views/wms/delivery/waybill/index.vue +++ b/klp-ui/src/views/wms/delivery/waybill/index.vue @@ -2,16 +2,16 @@
- + - + - + @@ -35,62 +35,64 @@ +
+ + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - + - + - + + +
- -
@@ -119,10 +121,10 @@ - + - - + + @@ -405,7 +407,7 @@ export default { }); }, handleCopy(row) { - this.form = { + this.form = { waybillNo: new Date().getTime(), waybillName: row.waybillName, planId: row.planId, @@ -485,7 +487,7 @@ export default { this.loading = false; }); }, - /** 打印发货单 */ + /** 打印发货单 */ handlePrintSimple(row) { this.loading = true; this.printType = 1; From 71e246757290a5f2ac4e413186eff6753a197976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 16 Mar 2026 15:38:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(wms):=20=E4=BC=98=E5=8C=96=E9=80=80?= =?UTF-8?q?=E7=81=AB=E7=82=89=E7=95=8C=E9=9D=A2=E5=92=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=92=A2=E5=8D=B7=E5=90=88=E5=8D=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构退火炉界面为卡片式布局,增加可视化状态展示 - 修复钢卷合卷API路径和方法,添加操作ID和类型参数 - 移除标签打印中冗余的itemName字段 - 修复退火计划物料卡片布局自适应问题 --- klp-ui/src/api/wms/coil.js | 4 +- klp-ui/src/views/wms/anneal/furnace/index.vue | 165 ++++++++++++++---- klp-ui/src/views/wms/anneal/plan/index.vue | 110 +++++++++--- klp-ui/src/views/wms/coil/do/correct.vue | 1 - klp-ui/src/views/wms/coil/merge.vue | 4 +- klp-ui/src/views/wms/coil/panels/base.vue | 2 +- klp-ui/src/views/wms/coil/panels/do.vue | 1 - 7 files changed, 218 insertions(+), 69 deletions(-) diff --git a/klp-ui/src/api/wms/coil.js b/klp-ui/src/api/wms/coil.js index a101893f..31472a82 100644 --- a/klp-ui/src/api/wms/coil.js +++ b/klp-ui/src/api/wms/coil.js @@ -116,8 +116,8 @@ export function splitMaterialCoil(data) { // 钢卷合卷 export function mergeMaterialCoil(data) { return request({ - url: '/wms/materialCoil', - method: 'put', + url: '/wms/materialCoil/merge', + method: 'post', data: data }) } diff --git a/klp-ui/src/views/wms/anneal/furnace/index.vue b/klp-ui/src/views/wms/anneal/furnace/index.vue index d6ca7938..7d093475 100644 --- a/klp-ui/src/views/wms/anneal/furnace/index.vue +++ b/klp-ui/src/views/wms/anneal/furnace/index.vue @@ -1,6 +1,6 @@