oprefund_do_integral.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <style>
  2. .line_p{line-height:26px;font-size:13px;margin-top:5px;}
  3. </style>
  4. <form class="form-horizontal form-validate" action="{:U('order/oprefund_do')}" method="post" enctype="multipart/form-data">
  5. <input type='hidden' name='id' value='{$id}' />
  6. <div class="modal-dialog">
  7. <div class="modal-content">
  8. <div class="modal-header">
  9. <button data-dismiss="modal" class="close" type="button">×</button>
  10. <h4 class="modal-title">退款金额</h4>
  11. </div>
  12. <div class="modal-body" style = "padding: 10px;" >
  13. <?php
  14. $total = $item['total']-$item['voucher_credit']-$item['fullreduction_money']-$has_refud_money;
  15. $score_for_money = $item['score_for_money'];
  16. $free_tongji = $total - $score_for_money;
  17. if($free_tongji < 0){
  18. $free_tongji = 0;
  19. }
  20. ?>
  21. <p style="line-height:26px;font-size:13px;">最多退积分:{$free_tongji}</p>
  22. <div style="height:8px;"></div>
  23. <input type="text" name="refund_money" id="refund_money" placeholder="退款金额" value="{:round($free_tongji ,2)}" class="form-control" />
  24. <div style="height:8px;"></div>
  25. <?php if($is_has_refund_deliveryfree == 1){ ?>
  26. <p class="line_p">
  27. <label>配送费:&nbsp;&nbsp;&nbsp;&nbsp;
  28. <?php if($shipping_fare <= 0){ ?>
  29. &nbsp;0
  30. <?php }else{ ?>
  31. <input type="checkbox" id="is_refund_shippingfare" name="is_refund_shippingfare" checked value ="1" />&nbsp;
  32. <?php if( $delivery == 'express' ){ ?>
  33. 退“快递配送费” ¥<?php echo round($shipping_fare,2); ?>
  34. <?php }else if( $delivery == 'tuanz_send' ){ ?>
  35. 退“团长配送费” ¥<?php echo round($shipping_fare,2); ?>
  36. <?php } ?>
  37. <?php } ?>
  38. </label>
  39. </p>
  40. <?php }else{ ?>
  41. <p class="line_p">
  42. <label>配送费:&nbsp;&nbsp;&nbsp;&nbsp;后台设置不退配送费</label>
  43. </p>
  44. <?php } ?>
  45. <p class="line_p">
  46. <label>其他操作:&nbsp;&nbsp;&nbsp;<input type="checkbox" id="is_back_sellcount" checked name="is_back_sellcount" value ="1" />&nbsp;退库存以及减销量{$total_quantity}个</label>
  47. <?php if( !empty( $score_for_money ) && $score_for_money > 0 ){ ?>
  48. <label>
  49. <input type="checkbox" id="is_back_buyscore" name="is_back_buyscore" value ="1" />&nbsp;
  50. 退{$buy_score_total}积分</label>
  51. <?php } ?>
  52. </p>
  53. <p style="line-height:26px;font-size:13px;">佣金:<span class="label label-success">{$commiss_state}</span></p>
  54. <p style="margin-top:10px;line-height:16px;font-size:12px;color:#9e9696;">
  55. 备注:1.佣金指社区团购团长提成,团长分销提成,会员分销提成。<br/>
  56. 2当佣金“已结算”,本页面操作不会影响已经结算的所有佣金。<br/>
  57. 3.当佣金“未结算”,本页面操作会重新计算佣金金额,计算公式:商品退款金额占商品可退总金额比重*原来应结佣金<br/>
  58. 4.所退配送费计算公式=均摊,退款金额/全部商品金额*运费<br/>
  59. </p>
  60. </div>
  61. <div class="modal-footer">
  62. <button class="btn btn-primary" type="submit">提交</button>
  63. <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
  64. </div>
  65. </div>
  66. </form>
  67. <script>
  68. var free_tongji = {$free_tongji};
  69. var shipping_fare = {$item['shipping_fare']};
  70. $(function(){
  71. $('#is_refund_shippingfare').click(function(){
  72. var refund_money_str = $('#refund_money').val();
  73. var refund_money = parseFloat(refund_money_str);
  74. if($(this).is(':checked')) {
  75. // do something
  76. }else{
  77. }
  78. })
  79. })
  80. </script>