diff --git a/src/views/qms/inspectionQ3/index.vue b/src/views/qms/inspectionQ3/index.vue index 8fbbc3a33..bf6ef8c48 100644 --- a/src/views/qms/inspectionQ3/index.vue +++ b/src/views/qms/inspectionQ3/index.vue @@ -169,6 +169,7 @@ const setTableFormsValues = async (val, index1) => { const newRow = JSON.parse(JSON.stringify({ ...tableForm, ...val[index1] })) newRow['itemCode'] = val[index1]['itemCode'] newRow['uom'] = val[index1]['uom'] + newRow['qty'] = 0 newRow.defectLocation = val[index1]['productionLineCode'] await ProductionlineitemApi.selectItemCodeToProductionLineCode(val[index1].itemCode).then( (res) => { @@ -193,7 +194,6 @@ const setTableFormsValues = async (val, index1) => { newRow['amount']=(parseFloat(newRow['qty']) * parseFloat(priceObj.value.price)).toFixed(6) } }) - newRow['qty'] = 0 tableData.value.push(newRow) console.log( tableData.value) index1++ diff --git a/src/views/qms/inspectionQ3/inspectionQ3.data.ts b/src/views/qms/inspectionQ3/inspectionQ3.data.ts index 7eccd5dbe..61112f995 100644 --- a/src/views/qms/inspectionQ3/inspectionQ3.data.ts +++ b/src/views/qms/inspectionQ3/inspectionQ3.data.ts @@ -436,16 +436,17 @@ export const InspectionQ3Detail = useCrudSchemas( form: { component: 'Select', componentProps: { + filterable: true, options: [], optionsAlias: { labelField: 'productionLineName', valueField: 'productionLineCode' - }, - filterable: true + } } }, tableForm: { type: 'Select', + filterable: true, valueField: 'productionLineName', labelField: 'productionLineCode' }