|
@@ -26,13 +26,14 @@ function outBoundPrint(data, domId, isRetail = false) {
|
|
|
tableHeader = `<td style="width: 100px;">名称</td>
|
|
|
<td style="width: 100px;">规格</td>
|
|
|
<td style="width: 100px;">批号</td>
|
|
|
+ <td style="width: 100px;">等级</td>
|
|
|
<td style="width: 100px;">单位</td>
|
|
|
<td style="width: 100px;">数量</td>
|
|
|
<td style="width: 100px;">单价</td>
|
|
|
<td style="width: 100px;">金额</td>`
|
|
|
}
|
|
|
|
|
|
- let printContent = `<div style="width: 700px;position: relative;">
|
|
|
+ let printContent = `<div style="width: 800px;position: relative;">
|
|
|
|
|
|
<div
|
|
|
style="width: 100%;position: relative;text-align: center;display: flex;flex-direction: column;margin-bottom: 10px;">
|
|
@@ -52,7 +53,7 @@ function outBoundPrint(data, domId, isRetail = false) {
|
|
|
let totalPrice = 0, totalWeight = 0;
|
|
|
for (let i = 0; i < tableData.length; i++) {
|
|
|
let item = tableData[i];
|
|
|
- let { productName, productSpecifications, lotNumber, unit, productNumber, productUnitPrice, productAmounts } = item
|
|
|
+ let { productName, productSpecifications, lotNumber, unit, productNumber, productUnitPrice, productAmounts, productLevel } = item
|
|
|
if (Number(productAmounts)) {
|
|
|
totalPrice += Number(productAmounts);
|
|
|
}
|
|
@@ -63,6 +64,7 @@ function outBoundPrint(data, domId, isRetail = false) {
|
|
|
<td>${productName}</td>
|
|
|
<td>${productSpecifications}</td>
|
|
|
${isRetail ? '' : '<td>' + lotNumber + '</td>'}
|
|
|
+ ${isRetail ? '' : '<td>' + productLevel + '</td>'}
|
|
|
<td>${unit}</td>
|
|
|
<td>${productNumber}</td>
|
|
|
<td>${productUnitPrice}</td>
|
|
@@ -75,6 +77,7 @@ function outBoundPrint(data, domId, isRetail = false) {
|
|
|
<td style="width: 100px;">合计</td>
|
|
|
<td style="width: 100px;"></td>
|
|
|
${isRetail ? '' : '<td style="width: 100px;"></td>'}
|
|
|
+ ${isRetail ? '' : '<td style="width: 100px;"></td>'}
|
|
|
<td style="width: 100px;"></td>
|
|
|
<td style="width: 100px;">${totalWeight}</td>
|
|
|
<td style="width: 100px;"></td>
|