12.28功能提交

master
zhengyongxing 4 years ago
parent 82592dd457
commit 4f2f18ad91

@ -784,6 +784,7 @@ class MarketPercentageController extends ThinkController
$data[$key]['commission'] = number_format($data[$key]['performance_commission'] + $data[$key]['achievement_bonus'], 2, '.', ''); $data[$key]['commission'] = number_format($data[$key]['performance_commission'] + $data[$key]['achievement_bonus'], 2, '.', '');
$data[$key]['wait_commission'] = substr(number_format($value['wait_performance_commission'] + $value['wait_achievement_commission']*($this->coefficient[$value['pay_time']][$value['admin_id']]?$this->coefficient[$value['pay_time']][$value['admin_id']]:1), 4, '.', ''),0,-2); $data[$key]['wait_commission'] = substr(number_format($value['wait_performance_commission'] + $value['wait_achievement_commission']*($this->coefficient[$value['pay_time']][$value['admin_id']]?$this->coefficient[$value['pay_time']][$value['admin_id']]:1), 4, '.', ''),0,-2);
$data[$key]['extend_commission'] = $data[$key]['commission'] - $data[$key]['wait_commission']; $data[$key]['extend_commission'] = $data[$key]['commission'] - $data[$key]['wait_commission'];
// dump($data[$key]['commission']);
//两个起提流水都没达到时,不展示税后毛利 //两个起提流水都没达到时,不展示税后毛利
$sum_amount = $value['performance_revenue'] + $value['appraisal_bonuses']; $sum_amount = $value['performance_revenue'] + $value['appraisal_bonuses'];

@ -109,7 +109,7 @@
<volist name="list_data" id="data"> <volist name="list_data" id="data">
<tr> <tr>
<td >{$data['real_name']}</td> <td >{$data['real_name']}</td>
<td ><input style="width: auto;" name="{$data['nickname']}-{$data['uid']}-{$data['real_name']}" value="{$data['coefficient']/100}">%</td> <td ><input style="width: auto;" name="{$data['nickname']}-{$data['uid']}-{$data['real_name']}" value="{$data['coefficient']/100}"></td>
</tr> </tr>
</volist> </volist>
</tbody> </tbody>
@ -148,7 +148,10 @@
success:function(data){ success:function(data){
if (data.status == 1) { if (data.status == 1) {
layer.msg(data.msg); layer.msg(data.msg);
window.parent.reload(); setTimeout(function(){
window.parent.reload()
},2000)
} else { } else {
layer.msg(data.msg); layer.msg(data.msg);
} }

@ -94,9 +94,9 @@ class PaymentController extends BaseController
// dump($map);die(); // dump($map);die();
$sum = M("pay_statement_info","tab_") $sum = M("pay_statement_info","tab_")
->alias('s') ->alias('c')
->field("sum(if(s.pay_status=0,s.statement_money,0)) unpay_amount,sum(if(s.pay_status>0,s.statement_money,0)) pay_amount,sum(if(s.pay_status<0,s.statement_money,0)) faild_pay_amount") ->field("sum(if(c.pay_status=0,c.statement_money,0)) unpay_amount,sum(if(c.pay_status>0,c.statement_money,0)) pay_amount,sum(if(c.pay_status<0,c.statement_money,0)) faild_pay_amount")
->join("left join tab_company_statement_info c on s.statement_info_id = c.id") ->join("left join tab_company_statement_info s on c.statement_info_id = s.id")
->where($map) ->where($map)
->find(); ->find();

@ -316,7 +316,7 @@
</if> </if>
</volist> </volist>
</volist> </volist>
<tr><td style="line-height: 42px;">合计</td><td colspan="13" style="line-height: 42px;">待打款金额:&nbsp;{$money.statement_money|default='0.00'}&nbsp;&nbsp;打款成功:&nbsp;{$sum['pay_amount']|default='0.00'}&nbsp;打款失败:&nbsp;{$sum['faild_pay_amount']|default='0.00'}</td></tr> <tr><td style="line-height: 42px;">合计</td><td colspan="13" style="line-height: 42px;">待打款金额:&nbsp;{$sum['unpay_amount']|default='0.00'}&nbsp;&nbsp;打款成功:&nbsp;{$sum['pay_amount']|default='0.00'}&nbsp;打款失败:&nbsp;{$sum['faild_pay_amount']|default='0.00'}</td></tr>
</notemtpy> </notemtpy>
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save