|
@ -166,7 +166,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
setV['itemName'] = '' |
|
|
setV['itemName'] = '' |
|
|
setV['standardCostPrice'] = '' |
|
|
setV['standardCostPrice'] = '' |
|
|
setV['lightQty'] = 0 |
|
|
setV['lightQty'] = 0 |
|
|
setV['claimAmount'] = 0 |
|
|
setV['claimAmount'] = '' |
|
|
setV['otherclaimAmount'] = 0 |
|
|
setV['otherclaimAmount'] = 0 |
|
|
setV['summaryAmount'] = 0 |
|
|
setV['summaryAmount'] = 0 |
|
|
setV['disbursementAmount'] = 0 |
|
|
setV['disbursementAmount'] = 0 |
|
@ -425,6 +425,13 @@ const handleFinish = async (id: number) => { |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
|
|
|
if(!row || !row.claimAmount){ |
|
|
|
|
|
nextTick(() => { |
|
|
|
|
|
basicFormRef.value.formRef.setValues({ |
|
|
|
|
|
claimAmount: '' |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
if (type == 'create') { |
|
|
if (type == 'create') { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
basicFormRef.value.formRef.setValues({ |
|
|
basicFormRef.value.formRef.setValues({ |
|
|