|
|
|
@ -159,6 +159,12 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
recvLine(row) { |
|
|
|
if (row.poStatus === 'Stopped' || row.poStatus === 'Closed' || row.poStatus === 'Cancelled' || row.poStatus === 'Planned') { |
|
|
|
return this.$message.warning("该采购订单状态为"+row.poStatus+",无法接收"); |
|
|
|
} |
|
|
|
if (row.status === 'Stopped' || row.status === 'Closed' || row.status === 'Cancelled') { |
|
|
|
return this.$message.warning("该采购订单行状态为"+row.status+",无法接收"); |
|
|
|
} |
|
|
|
this.recvItem = { |
|
|
|
...row, |
|
|
|
poNo: row.poNumber || this.scanCode, |
|
|
|
@ -217,12 +223,8 @@ export default { |
|
|
|
needPallet: item.needPallet || 'N', |
|
|
|
workshopFlag: item.workshopFlag || 'N', |
|
|
|
cuttingFlag: item.cuttingFlag || 'N', |
|
|
|
|
|
|
|
// 日期字段 |
|
|
|
manufactureDate: item.manufactureDate, |
|
|
|
// 注意:失效日期由服务端自动计算,不需要传递 |
|
|
|
// expiredDate: item.expiringDate, |
|
|
|
|
|
|
|
// 处理单元列表 |
|
|
|
handlingUnitList: item.needHandlingUnit === 'Y' ? this.handlingUnit.map(hu => ({ |
|
|
|
perQty: hu.qty, |
|
|
|
|