差旅费和业务费校验

dev_2.0.2
‘wangjiuyun 2024-12-31 10:50:36 +08:00
parent f335a780db
commit 2dbcc43a43
1 changed files with 2 additions and 2 deletions

View File

@ -366,11 +366,11 @@ $(function () {
}, 0)
var limitTotal = dataManage.details.reduce((total, now) => {
if (now.type == 2 && (now.name == '5' || now.name == '4'))
return +total
return now.total+total
else return total
}, 0)
var projectGrossProfitA = $('[name="projectGrossProfitA"]').val()
console.log(limitTotal, projectGrossProfitA.replace(/,/g, ''), totalTotal, limitTotal)
console.log(limitTotal, projectGrossProfitA.replace(/,/g, ''), totalTotal,7777777)
if (limitTotal > ((parseFloat(projectGrossProfitA.replace(/,/g, '')) - (totalTotal - limitTotal)) * 0.1)) {
$("#saveApprove").attr('disabled', false);