designOrderAgreeRefund.zml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ${request.getValidateScript()}
  2. <script>
  3. function agreeRefundSub()
  4. {//同意退款
  5. var responsibility = Z("#responsibility").val();
  6. var designOrderId=${designId};
  7. if(responsibility==0){
  8. Z.confirm("您当前选择的责任人:设计师",function(){
  9. var ajax = new Z.Ajax();
  10. ajax.setClassName("DesignOrderPresenter");
  11. ajax.setMethodName("designOrderAgreeRefund");
  12. if(!responsibility){
  13. Z.alert("请选择责任部门")
  14. return;
  15. }
  16. ajax.addParam("responsibility", responsibility);
  17. ajax.addParam("designOrderId", designOrderId);
  18. ajax.setFailureAlert();
  19. ajax.setSuccess(function(){
  20. Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
  21. });
  22. ajax.execute();
  23. });
  24. }
  25. if(responsibility==1){
  26. Z.confirm("您当前选择的责任人:用户",function(){
  27. var ajax = new Z.Ajax();
  28. ajax.setClassName("DesignOrderPresenter");
  29. ajax.setMethodName("designOrderAgreeRefund");
  30. if(!responsibility){
  31. Z.alert("请选择责任部门")
  32. return;
  33. }
  34. ajax.addParam("responsibility", responsibility);
  35. ajax.addParam("designOrderId", designOrderId);
  36. ajax.setFailureAlert();
  37. ajax.setSuccess(function(){
  38. Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
  39. });
  40. ajax.execute();
  41. });
  42. }
  43. if(responsibility==2){
  44. Z.confirm("您当前选择的责任人:售前",function(){
  45. var ajax = new Z.Ajax();
  46. ajax.setClassName("DesignOrderPresenter");
  47. ajax.setMethodName("designOrderAgreeRefund");
  48. if(!responsibility){
  49. Z.alert("请选择责任部门")
  50. return;
  51. }
  52. ajax.addParam("responsibility", responsibility);
  53. ajax.addParam("designOrderId", designOrderId);
  54. ajax.setFailureAlert();
  55. ajax.setSuccess(function(){
  56. Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
  57. });
  58. ajax.execute();
  59. });
  60. }
  61. }
  62. </script>
  63. <style>
  64. .container{ min-height:300px;}
  65. </style>
  66. <div style="margin:55px 0 60px 50px;font-size:large">
  67. <label class="z-label">退款责任 :</label>
  68. <select id="responsibility" name="responsibility" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}" data-options="maxHeight:100">
  69. <option value="1">用户</option>
  70. <option value="0">设计师</option>
  71. <option value="2">售前</option>
  72. </select>
  73. </div>
  74. <span style="color:red;margin-left: 15px;width:495px;display:inline-block">若选择设计师,则退款责任在于设计师,将会统计到设计师退款率中<br/>若选择用户,则退款责任在于用户,将不会纳入到设计师退款率中</br>若选择售前,则退款责任在于售前,将不会统计到设计师退款率中</span>
  75. <#-- 操作 -->
  76. <div class="z-absolute z-w100p z-h60 z-text-center z-pd10" style="bottom:0;left:0;border-top:ridge">
  77. <button id="doAssignDer" class="z-button z-w90 ${zmr_color_class}" type="button" onclick="agreeRefundSub();">确认</button>&nbsp;
  78. <button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
  79. </div>