|
|
@ -197,7 +197,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
setV['standardCostPrice'] = '' |
|
|
|
setV['lightQty'] = 0 |
|
|
|
setV['claimAmount'] = '' |
|
|
|
setV['otherclaimAmount'] = 0 |
|
|
|
setV['otherClaimAmount'] = 0 |
|
|
|
setV['summaryAmount'] = 0 |
|
|
|
setV['disbursementAmount'] = 0 |
|
|
|
setV['remainingAmount'] = 0 |
|
|
@ -280,7 +280,7 @@ const onChange = (field, e) => { |
|
|
|
).toFixed(6) |
|
|
|
basicFormRef.value.formRef.formModel.summaryAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount) |
|
|
|
).toFixed(6) |
|
|
|
basicFormRef.value.formRef.formModel.remainingAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - |
|
|
@ -295,17 +295,17 @@ const onChange = (field, e) => { |
|
|
|
).toFixed(6) |
|
|
|
basicFormRef.value.formRef.formModel.summaryAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount) |
|
|
|
).toFixed(6) |
|
|
|
basicFormRef.value.formRef.formModel.remainingAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.disbursementAmount) |
|
|
|
).toFixed(6) |
|
|
|
} |
|
|
|
if (field == 'otherclaimAmount') { |
|
|
|
if (field == 'otherClaimAmount') { |
|
|
|
basicFormRef.value.formRef.formModel.summaryAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount) |
|
|
|
).toFixed(6) |
|
|
|
basicFormRef.value.formRef.formModel.remainingAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - |
|
|
@ -315,7 +315,7 @@ const onChange = (field, e) => { |
|
|
|
if (field == 'claimAmount') { |
|
|
|
basicFormRef.value.formRef.formModel.summaryAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.claimAmount) + |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherclaimAmount) |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.otherClaimAmount) |
|
|
|
).toFixed(6) |
|
|
|
basicFormRef.value.formRef.formModel.remainingAmount = ( |
|
|
|
parseFloat(basicFormRef.value.formRef.formModel.summaryAmount) - |
|
|
@ -521,6 +521,10 @@ const formsSuccess = async (formType, data) => { |
|
|
|
message.error('整灯数量不能为0') |
|
|
|
return |
|
|
|
} |
|
|
|
if (!data.standardCostPrice) { |
|
|
|
message.error('整灯数量不能为0或空数据') |
|
|
|
return |
|
|
|
} |
|
|
|
if (data.activeTime == 0) data.activeTime = null |
|
|
|
if (data.expireTime == 0) data.expireTime = null |
|
|
|
|
|
|
|