|
|
@ -511,11 +511,11 @@ const updateTableData = (tableList)=>{ |
|
|
|
//批次 |
|
|
|
newRow['batch'] = formatDate(newRow['produceDate'],'YYYYMMDD'); |
|
|
|
newRow['defaultToLocationCode'] =row['defaultLocation'] |
|
|
|
if(Number(row['orderQty'])>1){ |
|
|
|
newRow['qty'] = 1 |
|
|
|
}else{ |
|
|
|
// if(Number(row['orderQty'])>1){ |
|
|
|
// newRow['qty'] = 1 |
|
|
|
// }else{ |
|
|
|
newRow['qty'] = row['orderQty'] |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
if(!tableData.value.find((item:object)=>item.poNumber == newRow.poNumber&&item.itemCode == newRow.itemCode&&item.poLine == newRow.poLine&&item.batch == newRow.batch)){ |
|
|
|
tableData.value.push(newRow) |
|
|
|