资金划拨审批单未填补0

master
linyongLynn 4 months ago
parent 8f38ae4680
commit 08059ff364

@ -799,7 +799,17 @@ export default {
console.log('textarea fieldName:' + fieldName + "--- " + input.value)
} else {
// value
input.setAttribute('value', input.value)
//
if (this.getForms && this.getForms.includes('资金划拨审批单')) {
const amountFields = ['contractAmount', 'auditAmount', 'previousPayment', 'currentPayment', 'currentDuePayment', 'totalPaid', 'totalPlanned']
if (amountFields.includes(fieldName) && (!input.value || input.value === '')) {
input.setAttribute('value', '0')
} else {
input.setAttribute('value', input.value)
}
} else {
input.setAttribute('value', input.value)
}
}
}
}

Loading…
Cancel
Save