From 529142ed1c018b36ad33558f6fae46fc0c2e55d1 Mon Sep 17 00:00:00 2001 From: syruan <15555146157@163.com> Date: Tue, 2 Dec 2025 17:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99=E5=8D=95=E3=80=81=E9=A2=86?= =?UTF-8?q?=E6=96=99=E5=8D=95=E7=AD=BE=E5=AD=97=E6=89=93=E5=8D=B0=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../child/back_material_details.js | 29 ++--- .../child/back_material_details.html | 103 ++++++++++++++++-- .../aq_demand_plan/child/send_out_detail.html | 8 +- 3 files changed, 107 insertions(+), 33 deletions(-) diff --git a/js/aq_back_material/child/back_material_details.js b/js/aq_back_material/child/back_material_details.js index b70cb4a..c00e313 100644 --- a/js/aq_back_material/child/back_material_details.js +++ b/js/aq_back_material/child/back_material_details.js @@ -43,6 +43,7 @@ function getDetailsById() { $('#phone').html(obj.phone); $('#backTime').html(obj.backTime); $('#remark').html(obj.remark); + $('#projectName').html(obj.projectName); setFileTable(obj.fileList); } } @@ -355,22 +356,14 @@ function downLoadFile(obj) { // 打印 function print() { - /* Print('#body', { - onStart: function () { - console.log('onStart', new Date()) - }, - onEnd: function () { - console.log('onEnd', new Date()) - } - }) */ - $("#main-box").print({ - globalStyles: true, - mediaPrint: false, - noPrintSelector: ".no-print", - iframe: true, - append: null, - prepend: null, - manuallyCopyFormValues: true, - deferred: $.Deferred() - }); + $("#main-box").print({ + globalStyles: true, + mediaPrint: false, + noPrintSelector: ".no-print", + iframe: true, + append: '', + prepend: null, + manuallyCopyFormValues: true, + deferred: $.Deferred() + }); } \ No newline at end of file diff --git a/page/aq_back_material/child/back_material_details.html b/page/aq_back_material/child/back_material_details.html index 3405def..7712ed4 100644 --- a/page/aq_back_material/child/back_material_details.html +++ b/page/aq_back_material/child/back_material_details.html @@ -29,15 +29,65 @@ width: 50px; height: 50px; } - @media print { - .layui-table-page { - visibility: hidden; - } + /* 签字区域样式 */ + #signature-box { + width: 100%; + margin-top: 30px; + flex-direction: column; + align-items: baseline; + justify-content: space-evenly; + } - .layui-table-cell{ - width: 145px; - } - } + .signature-table { + margin-top: 10px; + } + + .signature-table td { + vertical-align: top; + padding: 15px 10px; + } + + @media print { + .layui-table-page { + visibility: hidden; + } + + .layui-table-cell{ + width: 145px; + } + + /* 签字区域打印样式 */ + #signature-box { + page-break-inside: avoid; + break-inside: avoid; + margin-top: 20px; + } + + /* 确保各个区块不会强制分页 */ + #basic-box, + #file-box, + #fhjj-box, + #signature-box { + page-break-inside: avoid; + break-inside: avoid; + } + + .layuimini-container { + height: auto !important; + min-height: auto !important; + max-height: none !important; + } + + .layuimini-main { + height: auto !important; + min-height: auto !important; + max-height: none !important; + } + + .no-print { + display: none !important; + } + }
@@ -51,7 +101,7 @@签字确认
+|
+ 记账人
+
+ |
+
+ 退料人
+
+ |
+
+ 制单人
+
+ |
+
+ 审核人
+
+ |
+
|
+ 记账人
+
+ |
领料人
@@ -194,10 +198,6 @@
审核人
|
-
- 出库人
-
- |