|
@@ -276,7 +276,12 @@
|
|
|
...item,
|
|
...item,
|
|
|
itemCode: item.code || '',
|
|
itemCode: item.code || '',
|
|
|
itemName: item.name || '',
|
|
itemName: item.name || '',
|
|
|
|
|
+ modelType: item.modelType || '',
|
|
|
specification: item.specification || '',
|
|
specification: item.specification || '',
|
|
|
|
|
+ specificationModel: this.joinPrintValues([
|
|
|
|
|
+ item.specification,
|
|
|
|
|
+ item.modelType
|
|
|
|
|
+ ]),
|
|
|
batchNo: item.batchNo || '',
|
|
batchNo: item.batchNo || '',
|
|
|
productionDate: this.formatPrintDate(item.productionDate),
|
|
productionDate: this.formatPrintDate(item.productionDate),
|
|
|
expiryDate: this.formatPrintDate(item.expirationDate),
|
|
expiryDate: this.formatPrintDate(item.expirationDate),
|
|
@@ -291,13 +296,16 @@
|
|
|
batchNo: this.tableQuery.batchNo,
|
|
batchNo: this.tableQuery.batchNo,
|
|
|
productCode: this.tableQuery.productCode,
|
|
productCode: this.tableQuery.productCode,
|
|
|
productName: r.productName || firstItem.name || '',
|
|
productName: r.productName || firstItem.name || '',
|
|
|
- specification: r.specification || firstItem.specification || '',
|
|
|
|
|
|
|
+ specification: this.joinPrintValues([
|
|
|
|
|
+ firstItem.specification,
|
|
|
|
|
+ firstItem.modelType
|
|
|
|
|
+ ]),
|
|
|
code: r.bizNo || '',
|
|
code: r.bizNo || '',
|
|
|
date:
|
|
date:
|
|
|
this.formatPrintDate(r.storageTime || firstItem.createTime) ||
|
|
this.formatPrintDate(r.storageTime || firstItem.createTime) ||
|
|
|
today,
|
|
today,
|
|
|
warehouse: r.warehouseName || '',
|
|
warehouse: r.warehouseName || '',
|
|
|
- department: r.warehouseName || '',
|
|
|
|
|
|
|
+ department: firstItem.groupName || r.groupName || '',
|
|
|
processOrderCode: r.sourceBizNo || '',
|
|
processOrderCode: r.sourceBizNo || '',
|
|
|
processOrderNo: r.sourceBizNo || '',
|
|
processOrderNo: r.sourceBizNo || '',
|
|
|
moCode: r.sourceBizNo || '',
|
|
moCode: r.sourceBizNo || '',
|
|
@@ -305,7 +313,8 @@
|
|
|
receiver: r.createUserName || '',
|
|
receiver: r.createUserName || '',
|
|
|
reporter: r.createUserName || '',
|
|
reporter: r.createUserName || '',
|
|
|
creator: r.createUserName || '',
|
|
creator: r.createUserName || '',
|
|
|
- reviewer: r.reviewerName || '',
|
|
|
|
|
|
|
+ reviewer:
|
|
|
|
|
+ firstItem.verifyName || r.verifyName || r.reviewerName || '',
|
|
|
totalQuantity: this.getTotalQuantity(itemList),
|
|
totalQuantity: this.getTotalQuantity(itemList),
|
|
|
remark: r.remark || firstItem.remark || '',
|
|
remark: r.remark || firstItem.remark || '',
|
|
|
itemList
|
|
itemList
|
|
@@ -322,6 +331,13 @@
|
|
|
? this.$util.toDateString(value, 'yyyy-MM-dd')
|
|
? this.$util.toDateString(value, 'yyyy-MM-dd')
|
|
|
: '';
|
|
: '';
|
|
|
},
|
|
},
|
|
|
|
|
+ joinPrintValues(values) {
|
|
|
|
|
+ return values
|
|
|
|
|
+ .filter(
|
|
|
|
|
+ (value, index, list) => value && list.indexOf(value) === index
|
|
|
|
|
+ )
|
|
|
|
|
+ .join('/');
|
|
|
|
|
+ },
|
|
|
getTotalQuantity(list) {
|
|
getTotalQuantity(list) {
|
|
|
const total = list.reduce((sum, item) => {
|
|
const total = list.reduce((sum, item) => {
|
|
|
const quantity = Number(item.quantity);
|
|
const quantity = Number(item.quantity);
|