diff --git a/src/views/qms/inspectionQ2/index.vue b/src/views/qms/inspectionQ2/index.vue index 550a26b14..cb0110b49 100644 --- a/src/views/qms/inspectionQ2/index.vue +++ b/src/views/qms/inspectionQ2/index.vue @@ -166,7 +166,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['itemName'] = '' setV['standardCostPrice'] = '' setV['lightQty'] = 0 - setV['claimAmount'] = 0 + setV['claimAmount'] = '' setV['otherclaimAmount'] = 0 setV['summaryAmount'] = 0 setV['disbursementAmount'] = 0 @@ -425,6 +425,13 @@ const handleFinish = async (id: number) => { const basicFormRef = ref() const openForm = (type: string, row?: any) => { basicFormRef.value.open(type, row) + if(!row || !row.claimAmount){ + nextTick(() => { + basicFormRef.value.formRef.setValues({ + claimAmount: '' + }) + }) + } if (type == 'create') { nextTick(() => { basicFormRef.value.formRef.setValues({