From faf58c978667939827c9de48678e57a44c17d726 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 27 Dec 2024 13:36:46 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=A2=86=E6=96=99=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E4=B8=8E=E9=A2=86=E6=96=99=E5=87=BA=E5=BA=93bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/basic/unitType/index.vue | 2 +- .../lease/apply/component/homeApply.vue | 74 +++++++++++++++++-- src/views/material/lease/outBound/index.vue | 26 +++---- 3 files changed, 81 insertions(+), 21 deletions(-) diff --git a/src/views/material/basic/unitType/index.vue b/src/views/material/basic/unitType/index.vue index a94dfe33..a2648887 100644 --- a/src/views/material/basic/unitType/index.vue +++ b/src/views/material/basic/unitType/index.vue @@ -473,7 +473,7 @@ export default { /** 导出按钮操作 */ handleExport() { this.download( - "/material/base/dic/export", + "/material/bm_unit_type/export", { ...this.queryParams, dataCondition: this.ids, diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue index 17715126..f504069b 100644 --- a/src/views/material/lease/apply/component/homeApply.vue +++ b/src/views/material/lease/apply/component/homeApply.vue @@ -410,7 +410,7 @@ - +
--> - + @@ -560,6 +558,52 @@ 关 闭
+ + + +
+ +
+ 领料单编号明细 +
+ + + + + + +
+
+ +
+ +
@@ -646,6 +690,10 @@ export default { // 领料任务详情数据 leaseApplyData: {}, sendTemp: [], + // 编码管理查看弹窗 + showView: false, + titleView: "", + getListViewInfo: [], }; }, created() { @@ -770,6 +818,7 @@ export default { //打开领料单 async handleLld(row) { + this.title = "领料单"; this.open = true; var ids = row.id; const res = await getApplyInfo(ids); @@ -779,6 +828,17 @@ export default { console.log(this.leaseApplyData); }, + codeInfo(row) { + this.showView = true; + this.titleView = "查看"; + this.getListViewInfo = row.maCodeVoList; + }, + + //打印 + printView() { + this.$refs.remarksPrintRefView.print(); + }, + //打印 print() { this.$refs.remarksPrintRef.print(); diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index cd9ecbab..b822277f 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -557,12 +557,12 @@ justify-content: right; " > -
+
检验单位:
- +
@@ -579,7 +579,7 @@ - +
--> - +
@@ -1186,7 +1186,7 @@ export default { this.printTableData = res.data.leaseOutVoList; setTimeout(() => { - this.chapter('机具检验专用章', this.checkDataInfo.leaseUnit) + this.chapter('检验专用章', '机具设备分公司') }, 200); this.openPrint = true; this.title = "出库检验单"; @@ -1203,13 +1203,12 @@ export default { //打开领料单 async handleLld(row) { + this.title = "领料单"; this.open = true; var ids = row.id; const res = await getApplyInfo(ids); - console.log(res); this.leaseApplyDetails = res.data.leaseApplyDetailsList; this.leaseApplyData = res.data.leaseApplyInfo; - console.log(this.leaseApplyData); }, //出库检验单打印 @@ -1223,7 +1222,7 @@ export default { }, //领料单打印 - print() { + print() { this.$refs.remarksPrintRef.print(); }, @@ -1275,7 +1274,7 @@ export default { }, printView() { - // this.$refs.remarksPrintRef.print(); + this.$refs.remarksPrintRefView.print(); }, // 关闭弹窗并刷新页面 closeDialogAndRefresh() { @@ -1305,16 +1304,16 @@ export default { this.create5star(context, width, height, 20, "#f00", 0); // 绘制印章名称 - context.font = "14px 宋体"; + context.font = "18px 宋体"; context.textBaseline = "middle"; //设置文本的垂直对齐方式 context.textAlign = "center"; //设置文本的水平对对齐方式 context.lineWidth = 1; - context.strokeStyle = "#f00"; + context.strokeStyle = "#ff2f2f"; context.strokeText(text, width, height + 50); // 绘制印章单位 context.translate(width, height); // 平移到此位置, - context.font = "14px 宋体"; + context.font = "16px 宋体"; let count = companyName.length; // 字数 let angle = (4 * Math.PI) / (3 * (count - 1)); // 字间角度 let chars = companyName.split(""); @@ -1330,6 +1329,7 @@ export default { context.save(); context.translate(65, 0); // 平移到此位置,此时字和x轴垂直,公司名称和最外圈的距离 context.rotate(Math.PI / 2); // 旋转90度,让字平行于x轴 + context.strokeStyle = "#ff5050"; // 设置印章单位字体颜色为较浅的红色 context.strokeText(c, 0, 0); // 此点为字的中心点 context.restore(); } From 25061d4532e20943a1fe09e2e758724b02764ded Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 27 Dec 2024 14:45:15 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=9A=90=E8=97=8F=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repair/repairManage/component/edit.vue | 66 ++++++++++++++----- 1 file changed, 50 insertions(+), 16 deletions(-) diff --git a/src/views/material/repair/repairManage/component/edit.vue b/src/views/material/repair/repairManage/component/edit.vue index 77f0238c..8a4a4aed 100644 --- a/src/views/material/repair/repairManage/component/edit.vue +++ b/src/views/material/repair/repairManage/component/edit.vue @@ -218,6 +218,12 @@
+