doEditDesignOrder.zml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. ${request.getValidateScript()}
  2. <script>
  3. window.onbeforeunload = onbeforeunload_handler;
  4. window.onunload = onload;
  5. function onbeforeunload_handler(){
  6. parent.location.reload();
  7. parent.Z.Dialog.close();
  8. }
  9. function onload(){
  10. parent.location.reload();
  11. parent.Z.Dialog.close();
  12. }
  13. function doDesignCopiesr(designId,designCopies)
  14. {//设计份数修改
  15. var dialog = new Z.Dialog();
  16. dialog.title = "订单["+designId+"]设计份数修改";
  17. dialog.url = "/designCopiesr.htm?designId="+designId+"&copies="+designCopies;
  18. dialog.width = 310;
  19. dialog.height = 150;
  20. dialog.execute();
  21. }
  22. //重置佣金
  23. function doDesignPriceCalculate(designId){
  24. var ajax = new Z.Ajax();
  25. ajax.setClassName("OrderPresenter");
  26. ajax.setMethodName("designPriceCalculate");
  27. ajax.addParam(designId);
  28. ajax.setFailureAlert();
  29. ajax.setSuccess(function(){
  30. Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
  31. });
  32. ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
  33. ajax.execute();
  34. }
  35. //修改单价
  36. function doEditDesignPrice(designId,designPrice,orderText) {
  37. var dialog = new Z.Dialog();
  38. dialog.title = "修改订单佣金";
  39. dialog.url = "/doEditDesignPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
  40. dialog.width = 600;
  41. dialog.height = 244;
  42. dialog.execute();
  43. }
  44. //修改加急费
  45. function doEditUrgentPrice(designId,urgentPrice,orderText) {
  46. var dialog = new Z.Dialog();
  47. dialog.title = "修改订单加急费";
  48. dialog.url = "/doEditUrgentPrice.htm?designId=" + designId +"&urgentPrice="+urgentPrice+"&orderText="+orderText;
  49. dialog.width = 600;
  50. dialog.height = 244;
  51. dialog.execute();
  52. }
  53. //修改稿件类型
  54. function doEditDraftType(designId,orderText,draftType,status){
  55. if(draftType ==0 ){
  56. Z.alert("标准自来稿件不支持修改");
  57. return;
  58. }
  59. if(status >= 55){
  60. Z.alert("已定稿订单不支持修改稿件类型");
  61. return;
  62. }
  63. var dialog = new Z.Dialog();
  64. dialog.title = "修改订单稿件类型";
  65. dialog.url = "/doEditDraftType.htm?designId=" + designId +"&draftType="+draftType+"&orderText="+orderText;
  66. dialog.width = 600;
  67. dialog.height = 244;
  68. dialog.execute();
  69. }
  70. </script>
  71. <style>
  72. </style>
  73. <#-- 操作 -->
  74. <div>
  75. <table class="z-table z-bordered z-pd6 z-bg-white" >
  76. <tr>
  77. <td style="padding:30px 20px 20px 40px">
  78. <button id="doDesignCopiesr" type="button" class="z-button z-blue" onclick="doDesignCopiesr('${order.getDesignId()}','${order.getDesignCopies()}');"><i class="z-font z-modify"></i>设计份数修改</button>
  79. </td>
  80. <td>
  81. <span>(修改指定订单设计份数)</span>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td style="padding:20px 20px 20px 40px">
  86. <button id="doDesignPriceCalculate" type="button" class="z-button z-yellow" onclick="doDesignPriceCalculate(${order.getDesignId()});"><i class="z-font z-refresh"></i>重置佣金</button>
  87. </td>
  88. <td>
  89. <span>(自动修改指定订单对应稿件类型所匹配的设计佣金)</span>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td style="padding:20px 20px 20px 40px">
  94. <button id="doEditDesignPrice" type="button" class="z-button z-yellow" onclick="doEditDesignPrice('${order.getDesignId()}','${order.getDesignPrice()}','${order.getOrderText()}');"><i class="z-font z-modify"></i>修改佣金</button>
  95. </td>
  96. <td>
  97. <span>(修改指定订单的设计佣金)</span>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td style="padding:20px 20px 20px 40px">
  102. <button id="doEditUrgentPrice" type="button" class="z-button z-yellow" onclick="doEditUrgentPrice('${order.getDesignId()}','${order.getUrgentPrice()}','${order.getOrderText()}');"><i class="z-font z-modify"></i>修改加急费</button>
  103. </td>
  104. <td>
  105. <span>(修改指定订单的加急费用,未分拣订单设置加急费有30分钟加急时效,时效内未领取自动取消加急)</span>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td style="padding:20px 20px 20px 40px">
  110. <button id="doEditDraftType" type="button" class="z-button z-yellow" onclick="doEditDraftType('${order.getDesignId()}','${order.getOrderText()}','${order.getDraftType()}','${order.getStatus()}');"><i class="z-font z-modify"></i>修改稿件类型</button>
  111. </td>
  112. <td>
  113. <span>(修改指定订单的稿件类型,会自动重新计算稿件类型所对应设计佣金,暂只支持普通设计和资深设计)</span>
  114. </td>
  115. </tr>
  116. </table>
  117. </div>