From 9c0efd76a049d25ac21c0a84a5d108a708e60266 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 16 Aug 2024 13:49:02 +0800 Subject: [PATCH] =?UTF-8?q?q3=E7=BC=BA=E9=99=B7=E4=BD=8D=E7=BD=AE=E5=8F=AF?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=EF=BC=8C=E9=87=91=E9=A2=9D=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ3/index.vue | 2 +- src/views/qms/inspectionQ3/inspectionQ3.data.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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' }