|
@ -169,6 +169,7 @@ const setTableFormsValues = async (val, index1) => { |
|
|
const newRow = JSON.parse(JSON.stringify({ ...tableForm, ...val[index1] })) |
|
|
const newRow = JSON.parse(JSON.stringify({ ...tableForm, ...val[index1] })) |
|
|
newRow['itemCode'] = val[index1]['itemCode'] |
|
|
newRow['itemCode'] = val[index1]['itemCode'] |
|
|
newRow['uom'] = val[index1]['uom'] |
|
|
newRow['uom'] = val[index1]['uom'] |
|
|
|
|
|
newRow['qty'] = 0 |
|
|
newRow.defectLocation = val[index1]['productionLineCode'] |
|
|
newRow.defectLocation = val[index1]['productionLineCode'] |
|
|
await ProductionlineitemApi.selectItemCodeToProductionLineCode(val[index1].itemCode).then( |
|
|
await ProductionlineitemApi.selectItemCodeToProductionLineCode(val[index1].itemCode).then( |
|
|
(res) => { |
|
|
(res) => { |
|
@ -193,7 +194,6 @@ const setTableFormsValues = async (val, index1) => { |
|
|
newRow['amount']=(parseFloat(newRow['qty']) * parseFloat(priceObj.value.price)).toFixed(6) |
|
|
newRow['amount']=(parseFloat(newRow['qty']) * parseFloat(priceObj.value.price)).toFixed(6) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
newRow['qty'] = 0 |
|
|
|
|
|
tableData.value.push(newRow) |
|
|
tableData.value.push(newRow) |
|
|
console.log( tableData.value) |
|
|
console.log( tableData.value) |
|
|
index1++ |
|
|
index1++ |
|
|