complaintOrder.zml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. ${Scripts.src("/zinc/js/global_2019010801.js")}
  2. <script>
  3. function doPassCheck()
  4. {//审核通过
  5. var designIds = Z.FM.getCheckBoxValue("designId");
  6. if (Z.V.isEmpty(designIds))
  7. {
  8. Z.alert("请选择订单");
  9. return;
  10. }
  11. Z.confirm("确认审核通过吗?", function(){
  12. var ajax = new Z.Ajax();
  13. ajax.setClassName("ComplaintOrderPresenter");
  14. ajax.setMethodName("complaintPass");
  15. ajax.addParam("designIds", designIds);
  16. ajax.setFailureAlert();
  17. ajax.setSuccess(function(){document.theForm.submit(); location.reload(); Z.tips("操作成功"); });
  18. ajax.execute();
  19. })
  20. }
  21. function showBackDialog()
  22. {//审核退回窗口
  23. var designId = Z.FM.getChecked("designId");
  24. Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
  25. {
  26. if (Z.V.isEmpty(value))
  27. {
  28. Z.alert("请输入退回原因");
  29. return;
  30. }
  31. var ajax = new Z.Ajax();
  32. ajax.setClassName("ComplaintOrderPresenter");
  33. ajax.setMethodName("complaintBack");
  34. ajax.addParam("designId", designId);
  35. ajax.addParam("desc", value);
  36. ajax.setFailureAlert();
  37. ajax.setSuccess(function(){document.theForm.submit();Z.tips("操作成功");});
  38. ajax.execute();
  39. }, {type: 'textarea'});
  40. }
  41. function docomplaintView(designId)
  42. {
  43. var dialog = new Z.Dialog();
  44. dialog.title = "申诉详情";
  45. dialog.url = "/complaintView.htm?designId=" + designId;
  46. dialog.width = 1000;
  47. dialog.height = 700;
  48. dialog.execute();
  49. }
  50. </script>
  51. ${zhiqim_manager_breadcrumb("申诉列表")}
  52. ${zhiqim_manager_content()}
  53. <#-- 导航 -->
  54. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  55. <nav>
  56. <ul>
  57. <li class="z-active">申诉列表</li>
  58. </ul>
  59. </nav>
  60. </div>
  61. <#-- 左侧功能 -->
  62. <div>
  63. <#-- 查询条件 -->
  64. ${zhiqim_manager_title("查询条件")}
  65. <form name="theForm" id="theForm" >
  66. <table class="z-table z-bordered z-pd6 z-bg-white">
  67. <tr class="z-h40">
  68. <td width="25%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
  69. <td>设计师:
  70. <select name="designer" class="z-select z-w160" data-role="z-select-search" data-class="${zmr_color_class}">
  71. <option value="">全部</option>
  72. <#for item : operatorList>
  73. <option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
  74. </#for>
  75. </select>
  76. </td>
  77. <td width="25%">旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
  78. <td width="25%">退款时间:<input id="beginDate" name="beginDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginDate}">&nbsp;-&nbsp;
  79. <input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
  80. </td>
  81. </tr>
  82. <tr class="z-h40" align="center">
  83. <td colspan="4"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
  84. </tr>
  85. </table>
  86. </form>
  87. <#-- 操作功能 -->
  88. <div class="z-w100p z-mg-t20 z-mg-b3">
  89. <button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="doPassCheck();"><i class="z-font z-success"></i>审核通过</button>
  90. <button type="button" class="z-button z-red z-mg-r6" onclick="showBackDialog();"><i class="z-font z-return"></i>审核退回</button>
  91. <button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button>
  92. <button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openQQ();"><img src="/zinc/images/qq.png">QQ联系</button>
  93. </div>
  94. <#-- 列表 -->
  95. <div class=" z-bd-r">
  96. <table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center">
  97. <tr bgcolor="${zmr_thead_bgcolor}">
  98. <td width="60">选择</td>
  99. <td width="100">订单号</td>
  100. <td width="100">所属组织</td>
  101. <td width="90">商户</td>
  102. <td width="140">旺旺号</td>
  103. <td width="100">状态</td>
  104. <td width="*" style="min-width:220px">产品</td>
  105. <td width="80">订单金额</td>
  106. <td width="90">领单时间</td>
  107. <td width="90">退款时间</td>
  108. <td width="100">设计师</td>
  109. <td width="200">申诉详情</td>
  110. </tr>
  111. ${zhiqim_manager_tr_no_record(pageResult, 20, "暂时没有申诉订单")}
  112. <#for item : pageResult.list()>
  113. <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
  114. <input id="userQq_${item.getDesignId()}" type="hidden" value="${item.getUserQq()}">
  115. <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()} >
  116. <td><input name="designId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
  117. <td> ${item.getDesignId()} <#if item.isUrgent()><span style="color: red;font-size:16px;font-weight: bold"> 急 </span></#if></td>
  118. <td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
  119. <td>${item.getShopNick()}</td>
  120. <td>${item.getBuyerNick()}</td>
  121. <td>${StatusConstants.getStatus(item.getStatus())}</td>
  122. <td>${item.getOrderText()}</td>
  123. <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
  124. <td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
  125. <td>${item.getRefundTime()}</td>
  126. <td>${item.getDesigner()}</td>
  127. <td><button class="z-button z-blue z-w100" onclick="docomplaintView(${item.getDesignId()})">查看</button></td>
  128. </tr>
  129. </#for>
  130. </table>
  131. </div>
  132. ${zhiqim_manager_paging(pageResult, "complaintOrder.htm")}
  133. </div>
  134. ${zhiqim_manager_content_end()}
  135. <#-- 联系旺旺&联系QQ弹窗框 -->
  136. <iframe id="openFrm" class="z-hide" src="about:blank"></iframe>