Browse Source

修改Q2通知单字段名

hella_online_20240823
parent
commit
2e09c9b04e
  1. 16
      src/views/qms/inspectionQ2/index.vue
  2. 2
      src/views/qms/inspectionQ2/inspectionQ2.data.ts

16
src/views/qms/inspectionQ2/index.vue

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

2
src/views/qms/inspectionQ2/inspectionQ2.data.ts

@ -390,7 +390,7 @@ export const Q2 = useCrudSchemas(
}, },
{ {
label: '其他索赔金额', label: '其他索赔金额',
field: 'otherclaimAmount', field: 'otherClaimAmount',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isTable: true, isTable: true,

Loading…
Cancel
Save