oprefund_submit.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <form class="form-horizontal form-validate" action="{:U('order/oprefund_submit')}" method="post" enctype="multipart/form-data">
  2. <input type='hidden' name='id' value='{$id}' />
  3. <div class="modal-dialog">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button data-dismiss="modal" class="close" type="button">×</button>
  7. <h4 class="modal-title">维权处理</h4>
  8. </div>
  9. <div class="modal-body">
  10. <div class="form-group">
  11. <label class="col-xs-10 col-sm-3 col-md-3 control-label">处理方式</label>
  12. <div class="col-sm-9 col-xs-12">
  13. <p class="form-control-static">{$r_type[$order_refund['rtype']]}</p>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-xs-10 col-sm-3 col-md-3 control-label">处理结果</label>
  18. <div class="col-xs-12 col-sm-9 col-md-8 col-lg-8">
  19. <!--<label class='radio-inline'>-->
  20. <!--<input type='radio' value='0' name='refundstatus' <?php if( $refund['status']==0){ ?>checked<?php } ?>>暂不处理-->
  21. <!--</label>-->
  22. <label class='radio-inline'>
  23. <input type='radio' value='1' name='refundstatus'>驳回申请
  24. </label>
  25. <?php if( ($order_refund['rtype'] == 0 || $order_refund['rtype'] == 1)){ ?>
  26. <label class='radio-inline'>
  27. <input type='radio' value='3' name='refundstatus'>
  28. 同意退款(<?php if( $order_refund['rtype'] == 1){ ?>无需客户发货直接退款<?php }else{ ?>您已经收到客户寄出的快递<?php } ?>)
  29. </label>
  30. <?php } ?>
  31. </div>
  32. </div>
  33. <div class="form-group refund-group" style="display: none;">
  34. <label class="col-xs-10 col-sm-3 col-md-3 control-label">留言</label>
  35. <div class="col-xs-12 col-sm-9 col-md-8 col-lg-8">
  36. <textarea class="form-control" name="message" ></textarea>
  37. </div>
  38. </div>
  39. <div class="form-group refuse-group" style="display: none;">
  40. <label class="col-xs-10 col-sm-3 col-md-3 control-label">驳回原因</label>
  41. <div class="col-xs-12 col-sm-9 col-md-8 col-lg-8">
  42. <textarea class="form-control" name="refundcontent" ></textarea>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="modal-footer">
  47. <button class="btn btn-primary" type="submit">提交</button>
  48. <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
  49. </div>
  50. </div>
  51. </form>
  52. <script language='javascript'>
  53. $(function () {
  54. $(":radio[name=refundstatus]").change(function () {
  55. var refundstatus = $(this).val();
  56. if (refundstatus == 1) {
  57. $(".refuse-group").show();
  58. $(".refund-group").hide();
  59. $(".express-group").hide();
  60. $(".help-group").hide();
  61. } else if (refundstatus == 3) {
  62. $(".refuse-group").hide();
  63. $(".refund-group").show();
  64. $(".express-group").hide();
  65. $(".help-group").hide();
  66. } else if (refundstatus == 5) {
  67. $(".refuse-group").hide();
  68. $(".refund-group").hide();
  69. $(".express-group").show();
  70. $(".help-group").hide();
  71. } else {
  72. $(".refuse-group").hide();
  73. $(".refund-group").hide();
  74. $(".express-group").hide();
  75. $(".help-group").hide();
  76. }
  77. });
  78. $("select[name=rexpress]").val("{$refund['rexpress']}");
  79. $("#rexpress").change(function () {
  80. var obj = $(this);
  81. var sel = obj.find("option:selected").attr("data-name");
  82. $("#rexpresscom").val(sel);
  83. });
  84. })
  85. </script>