diff --git a/Application/Admin/View/CompanyStatement/editPcStatement.html b/Application/Admin/View/CompanyStatement/editPcStatement.html index 9d2f3547f..cc1fad06e 100644 --- a/Application/Admin/View/CompanyStatement/editPcStatement.html +++ b/Application/Admin/View/CompanyStatement/editPcStatement.html @@ -467,7 +467,7 @@ } //数据类 - var DATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE}; + var DATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE}; var YDATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE}; //事件类 var EVENT = { @@ -548,8 +548,15 @@ var td = DATAOBJ.statement_info[index]; var rname = $(this).attr("name"); + var ratio = 0; if( rname == "increment_ratio" || rname == "ratio"){ - var ratio = val; + ratio = val; + }else{ + if(DATAOBJ.withdraw_type==2){ + ratio = td['increment_ratio']; + }else{ + ratio = td['ratio']; + } } DATAOBJ.statement_money = PUBLIC.floatCut(DATAOBJ.statement_money,td['sum_money']); td['sum_money'] = Math.round(td['pay_amount']*ratio*(100-td['fax_ratio'])/100,2)/100; diff --git a/Application/Admin/View/CompanyStatement/editPuStatement.html b/Application/Admin/View/CompanyStatement/editPuStatement.html index 604ff0caa..9e99cba80 100644 --- a/Application/Admin/View/CompanyStatement/editPuStatement.html +++ b/Application/Admin/View/CompanyStatement/editPuStatement.html @@ -372,8 +372,11 @@ var td = DATAOBJ.statement_info[index]; var rname = $(this).attr("name"); + var ratio = 0; if( rname == "increment_ratio" || rname == "ratio"){ - var ratio = val; + ratio = val; + }else{ + ratio = td['ratio']; } DATAOBJ.statement_money = PUBLIC.floatCut(DATAOBJ.statement_money,td['sum_money']); td['sum_money'] = Math.round(td['pay_amount']*ratio)/100 - td['fine'] + (td['reward']-0);