|
@@ -1,4 +1,5 @@
|
|
|
function receiptDocuments(data, domId) {
|
|
|
+ console.log('打印数据', data);
|
|
|
let yy = new Date().getFullYear();
|
|
|
let mm = new Date().getMonth() + 1;
|
|
|
if (mm < 10) {
|
|
@@ -8,7 +9,7 @@ function receiptDocuments(data, domId) {
|
|
|
if (dd < 10) {
|
|
|
dd = "0" + dd;
|
|
|
}
|
|
|
- let { customerName, saleProductInfoList, noticeNumber, printUser, drawer } = data;
|
|
|
+ let { customerName, productCodeListVOList, noticeNumber, printUser, drawer } = data;
|
|
|
|
|
|
let printContent = `<div class="table">
|
|
|
<div class="tableName" style="text-align: center;font-size: 30px;font-weight: bold;">诸暨市新丝维纤维有限公司发货单</div>
|
|
@@ -35,8 +36,8 @@ function receiptDocuments(data, domId) {
|
|
|
<td width="120px">净重</td>
|
|
|
</tr>`;
|
|
|
let totalBoxNum = 0, totalWeight = 0;
|
|
|
- for (let i = 0; i < saleProductInfoList.length; i++) {
|
|
|
- let item = saleProductInfoList[i];
|
|
|
+ for (let i = 0; i < productCodeListVOList.length; i++) {
|
|
|
+ let item = productCodeListVOList[i];
|
|
|
if (item.boxNum) {
|
|
|
totalBoxNum += Number(item.boxNum);
|
|
|
}
|