Browse Source

全部合格,合格数量等于数量bug

master_hella_20240701
zhang_li 7 months ago
parent
commit
d9c71a1a7f
  1. 20
      src/views/qms/inspection/inspectionRecord/addForm.vue

20
src/views/qms/inspection/inspectionRecord/addForm.vue

@ -136,14 +136,20 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
tableSchemas.value.tableFormColumns.map(item=>{ tableSchemas.value.tableFormColumns.map(item=>{
item.tableForm.disabled = true item.tableForm.disabled = true
}) })
// 1使
if(row.estimateCode == 1){
data.value.useDecision = '1'
}else{
data.value.useDecision =''
}
// == // ==
if(row.useDecision == 1){ if(data.value.useDecision == 1){
data.value.packageList.forEach(item=>{ data.value.packageList.forEach(item=>{
item.qualifiedAmount = item.amount item.qualifiedAmount = item.amount
}) })
} }
// //
else if(row.useDecision == 2 || row.useDecision == 6){ else if(data.value.useDecision == 2 || data.value.useDecision == 6){
tableSchemas.value.tableFormColumns.map(item=>{ tableSchemas.value.tableFormColumns.map(item=>{
if(item.field == 'noQualifiedAmount'){ if(item.field == 'noQualifiedAmount'){
item.tableForm.disabled = false item.tableForm.disabled = false
@ -153,20 +159,17 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
}) })
} }
// //
else if(row.useDecision == 3){ else if(data.value.useDecision == 3){
data.value.packageList.forEach(item=>{ data.value.packageList.forEach(item=>{
item.noQualifiedAmount = item.amount item.noQualifiedAmount = item.amount
}) })
} }
else if(row.useDecision == 4){ else if(data.value.useDecision == 4){
data.value.packageList.forEach(item=>{ data.value.packageList.forEach(item=>{
item.frozenAmount = item.amount item.frozenAmount = item.amount
}) })
} }
// 1使
if(row.estimateCode == 1){
data.value.useDecision = '1'
}
nextTick(() => { nextTick(() => {
formMainRef.value.setValues( data.value) formMainRef.value.setValues( data.value)
}) })
@ -241,6 +244,7 @@ const tableFormBlur = (field, val,row)=>{
row.qualifiedAmount = 0 row.qualifiedAmount = 0
}else{ }else{
row.qualifiedAmount = row.amount - val row.qualifiedAmount = row.amount - val
row.qualifiedAmount = row.qualifiedAmount.toFixed(2)
} }
} }

Loading…
Cancel
Save