差旅费和业务费校验
parent
f335a780db
commit
2dbcc43a43
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue