complaintView.zml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <style>
  2. body{ text-align:center}
  3. .div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
  4. </style>
  5. <script>
  6. function doPassCheck()
  7. {//审核通过
  8. var designIds = ${order.getDesignId()};
  9. if (Z.V.isEmpty(designIds))
  10. {
  11. Z.alert("请选择订单");
  12. return;
  13. }
  14. Z.confirm("确认审核通过吗?", function(){
  15. var ajax = new Z.Ajax();
  16. ajax.setClassName("ComplaintOrderPresenter");
  17. ajax.setMethodName("complaintPass");
  18. ajax.addParam("designIds", designIds);
  19. ajax.setFailureAlert();
  20. ajax.setSuccess(function(){
  21. parent.location.reload();
  22. parent.Z.Dialog.close();
  23. });
  24. ajax.execute();
  25. })
  26. }
  27. function showBackDialog()
  28. {//审核退回窗口
  29. var designId = ${order.getDesignId()};
  30. Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
  31. {
  32. if (Z.V.isEmpty(value))
  33. {
  34. Z.alert("请输入退回原因");
  35. return;
  36. }
  37. var ajax = new Z.Ajax();
  38. ajax.setClassName("ComplaintOrderPresenter");
  39. ajax.setMethodName("complaintBack");
  40. ajax.addParam("designId", designId);
  41. ajax.addParam("desc", value);
  42. ajax.setFailureAlert();
  43. ajax.setSuccess(function(){
  44. parent.location.reload();
  45. parent.Z.Dialog.close();
  46. });
  47. ajax.execute();
  48. }, {type: 'textarea'});
  49. }
  50. //图片放大
  51. function showLargeImg(thisImg)
  52. {
  53. var dialog = new parent.Z.Dialog();
  54. dialog.shadow = true;
  55. dialog.title = "图片";
  56. dialog.fixed = true;
  57. dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
  58. dialog.width = parent.Z.D.clientWidth()-200;
  59. dialog.height = parent.Z.D.clientHeight()-200;
  60. dialog.execute();
  61. dialog.$background.remove();
  62. }
  63. </script>
  64. ${zhiqim_manager_content()}
  65. <div class="z-mg5">
  66. <textarea id="complaintReason" name="complaintReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="200" >${order.getComplaintReason()}</textarea>
  67. </div>
  68. <#for item : attaList>
  69. <div class="z-pd5">
  70. <img alt="截图" src="/${item.getAttaId()}-${item_index}-img" onclick="showLargeImg(this)">
  71. </div>
  72. </#for>
  73. <br><br>
  74. <div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
  75. <div style="margin-top:10px">
  76. <button class="z-button z-blue z-w100" onclick="doPassCheck()">审核通过</button>
  77. <button class="z-button z-w100 ${zmr_color_class}" id="designOrderDraft" onclick="showBackDialog()">审核退回</button>&nbsp;&nbsp;&nbsp;
  78. </div>
  79. </div>
  80. ${zhiqim_manager_content_end()}