diff --git a/css/aq_demand_plan/send_out_detail.css b/css/aq_demand_plan/send_out_detail.css index ef4bac3..9206b56 100644 --- a/css/aq_demand_plan/send_out_detail.css +++ b/css/aq_demand_plan/send_out_detail.css @@ -143,4 +143,81 @@ body { .page-content { width: 100%; +} + +/* 签字区域样式 */ +#signature-box { + width: 100%; + margin-top: 30px; + flex-direction: column; + align-items: baseline; + justify-content: space-evenly; +} + +.signature-table { + margin-top: 10px; +} + +.signature-table td { + vertical-align: top; + padding: 15px 10px; +} + +@media print { + @page { + margin: 0; + size: auto; + } + + body { + margin: 0; + padding: 10px; + } + + .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; + } + + .layui-table-page { + display: none !important; + } + + .no-print { + display: none !important; + } + + /* 避免分页断裂 */ + table { + page-break-inside: avoid; + } + + /* 确保各个区块不会强制分页 */ + #basic-box, + #supplier-box, + #file-box, + #fhjj-box, + #signature-box { + page-break-inside: avoid; + break-inside: avoid; + } + + /* 调整打印时的高度 */ + #plan-basic-box { + height: auto !important; + } + + /* 签字区域打印样式 */ + #signature-box { + page-break-inside: avoid; + break-inside: avoid; + margin-top: 20px; + } } \ No newline at end of file diff --git a/js/aq_demand_plan/child/send_out_detail.js b/js/aq_demand_plan/child/send_out_detail.js index f5d3a68..9c896a1 100644 --- a/js/aq_demand_plan/child/send_out_detail.js +++ b/js/aq_demand_plan/child/send_out_detail.js @@ -218,17 +218,7 @@ function exportExcel() { exportExcelUtil(url, '采购发货明细', JSON.stringify(params)); } -// 打印 -function print() { - Print('#table-box', { - onStart: function () { - console.log('onStart', new Date()) - }, - onEnd: function () { - console.log('onEnd', new Date()) - } - }) -} + // 预览文件 function viewFile(obj) { @@ -265,10 +255,10 @@ function print() { $("#main-box").print({ globalStyles: true, mediaPrint: false, - stylesheet: '../../../css/aq_demand_plan/apply_plan_detail.css', + stylesheet: '../../../css/aq_demand_plan/send_out_detail.css', noPrintSelector: ".no-print", iframe: true, - append: null, + append: '', prepend: null, manuallyCopyFormValues: true, deferred: $.Deferred() diff --git a/page/aq_demand_plan/child/send_out_detail.html b/page/aq_demand_plan/child/send_out_detail.html index 55e83de..f79ed95 100644 --- a/page/aq_demand_plan/child/send_out_detail.html +++ b/page/aq_demand_plan/child/send_out_detail.html @@ -27,7 +27,7 @@ #detail-box img { width: 50px; - height: 50pz; + height: 50px; } @@ -173,6 +173,35 @@ + +
签字确认
+|
+ 领料人
+
+ |
+
+ 制单人
+
+ |
+
+ 审核人
+
+ |
+
+ 出库人
+
+ |
+