退料单、领料单签字打印区域调整

This commit is contained in:
syruan 2025-12-26 15:59:34 +08:00
parent 529142ed1c
commit def92bda89
4 changed files with 10 additions and 9 deletions

View File

@ -5,13 +5,14 @@ let pageNum = 1;
function setParams(params) {
objParam = JSON.parse(params);
console.log('🚀 ~ setParams ~ objParam:', objParam)
$('#code').html(objParam.code);
$('#titleName').html(objParam.backTime + '退料清点记录');
layui.use(["form", "table", 'upload', 'layer'], function () {
layui.use(["form", "table", 'upload', 'layer', 'jquery'], function () {
var $ = layui.$;
form = layui.form;
table = layui.table;
upload = layui.upload;
layer = layui.layer;
$('#code').html(objParam.code);
$('#titleName').html(objParam.backTime + '退料清点记录');
getDetailsById();
initTable();
});
@ -362,7 +363,7 @@ function print() {
noPrintSelector: ".no-print",
iframe: true,
append: '<style>@page { margin: 0; size: auto; } @media print { @page { margin: 0; size: auto; } html { margin: 0; height: auto; } body { margin: 0; height: auto; } .layuimini-container { height: auto !important; } }</style>',
prepend: null,
prepend: '<div style="text-align: center; font-size: 34px; font-weight: bold; margin-bottom: 5px;">【退料单】</div>',
manuallyCopyFormValues: true,
deferred: $.Deferred()
});

View File

@ -269,7 +269,7 @@ function print() {
noPrintSelector: ".no-print",
iframe: true,
append: '<style>@page { margin: 0; size: auto; } @media print { @page { margin: 0; size: auto; } html { margin: 0; height: auto; } body { margin: 0; height: auto; } .layuimini-container { height: auto !important; } }</style>',
prepend: null,
prepend: '<div style="text-align: center; font-size: 34px; font-weight: bold; margin-bottom: 5px;">【领料发货单】</div>',
manuallyCopyFormValues: true,
deferred: $.Deferred()
});

View File

@ -101,7 +101,7 @@
</div>
</div>
<div>
<button type="button" class="layui-btn layui-bg-blue no-print" onclick="print()">打印2</button>
<button type="button" class="layui-btn layui-bg-blue no-print" onclick="print()">打印退料单</button>
</div>
</div>
<div id="basic-box">
@ -127,11 +127,11 @@
</tr>
<tr>
<th colspan="3">备注</th>
<th colspan="2">工程名称</th>
<th colspan="2" style="font-weight: bolder">工程名称</th>
</tr>
<tr>
<td colspan="3" id="remark"></td>
<td colspan="2" id="projectName"></td>
<td colspan="2" id="projectName" style="font-weight: bolder"></td>
</tr>
</table>
</div>

View File

@ -42,7 +42,7 @@
</div>
</div>
<div>
<button type="button" class="layui-btn layui-bg-blue no-print" onclick="print()">打印</button>
<button type="button" class="layui-btn layui-bg-blue no-print" onclick="print()">打印出库单</button>
</div>
</div>
<div id="basic-box">