personalRefundRateStat.zml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <#def designatedPath="/personalRefundRateStat.htm"/>
  2. <script>
  3. function doComplaint(designId)
  4. {
  5. var dialog = new Z.Dialog();
  6. dialog.title = "退款订单申诉";
  7. dialog.url = "/personalRefundComplaint.htm?designId=" + designId;
  8. dialog.width = 800;
  9. dialog.height = 500;
  10. dialog.execute();
  11. }
  12. </script>
  13. ${zhiqim_manager_breadcrumb("设计退款率统计")}
  14. ${zhiqim_manager_content()}
  15. <#-- 导航栏 -->
  16. <div class="z-tabnav-main z-blue z-mg-b20">
  17. <nav>
  18. <ul>
  19. <li class="z-active">个人退款率统计</li>
  20. <#if ZmrPathRule.check(request, "/designOrderRefundRateStat.htm")><li onclick="Z.L.href('designOrderRefundRateStat.htm')">设计退款率统计</li></#if>
  21. <#if ZmrPathRule.check(request, "/designOrderRefundStat.htm")><li onclick="Z.L.href('designOrderRefundStat.htm')">订单退款总统计</li></#if>
  22. <#if ZmrPathRule.check(request, "/designRefundOrgTotalStatistics.htm")><li onclick="Z.L.href('designRefundOrgTotalStatistics.htm')">组织退款统计</li></#if>
  23. <#if ZmrPathRule.check(request, "/designRefundPrdTypeStatistics.htm")><li onclick="Z.L.href('designRefundPrdTypeStatistics.htm')">产品退款统计</li></#if>
  24. </ul>
  25. </nav>
  26. </div>
  27. <table class="z-table z-bordered z-pd6">
  28. <tr>
  29. <td colspan="2">
  30. <form name="theForm" action="personalRefundRateStat.htm">
  31. <table class="z-table">
  32. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  33. <td class="z-bold z-px14 zi-pd-l5">&nbsp;统计查询条件:</td>
  34. </tr>
  35. </table>
  36. <table class="z-table z-bordered z-pd6">
  37. <tr class="z-h40 z-bg-white">
  38. <td>查询日期:
  39. <input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="<#if Validates.isNotEmpty(beginDate)>${beginDate}<#else>${DateTimes.getFirstMonthDay()}</#if>"> -
  40. <input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120"value="<#if Validates.isNotEmpty(endDate)>${endDate}<#else>${DateTimes.getDateString()}</#if>">
  41. <input type="hidden" name="query" id="query" value="1" >
  42. <button class="z-mg-l10 z-button ${zmr_color_class}">查询</button>
  43. </td>
  44. </table>
  45. </form>
  46. </td>
  47. </tr>
  48. <tr class="z-h40">
  49. <td width="400" valign="top">
  50. <table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
  51. <tr class="z-h40">
  52. <td>设计师</td>
  53. <td>设计单数</td>
  54. <td>退款单数</td>
  55. <td>退款率</td>
  56. <td>奖罚金</td>
  57. </tr>
  58. <#if refundList.size() == 0>
  59. ${zhiqim_manager_no_record(5, "暂时没有退款率统计信息")}
  60. <#else>
  61. <tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
  62. <td>${designer}</td>
  63. <td>${list.size()}</td>
  64. <td>${refundResult.total}</td>
  65. <td><#if list.size() gt 0>${Maths.division(refundResult.total()*100, list.size(), 1)}%<#else>0.0%</#if></td>
  66. <td>${Amounts.toYuan(amount)}</td>
  67. </tr>
  68. </#if>
  69. </table>
  70. </td>
  71. <td width="*" id="result" valign="top" id="result" >
  72. <table class="z-table z-bordered z-bg-white z-text-center">
  73. <tr class="z-h40">
  74. <td class="z-text-left z-bold z-px14 z-bg-white" colspan="10">&nbsp;<#if Validates.isNotEmpty(designer)><span class="z-text-red z-bold">[${designer}]</span></#if>退款订单</td>
  75. </tr>
  76. <tr class="z-h40 z-text-center z-bg-gray">
  77. <td width="90">订单号</td>
  78. <td width="100">店铺</td>
  79. <td width="100">旺旺号</td>
  80. <td width="100">设计师</td>
  81. <td width="*">产品</td>
  82. <td width="100">派单类型</td>
  83. <td width="90">领单时间</td>
  84. <td width="90">退款时间</td>
  85. <td width="90">申诉状态</td>
  86. <td width="150">申诉退回原因</td>
  87. <td width="120">操作</td>
  88. </tr>
  89. <#if refundResult.size() == 0>
  90. <tr valign="middle" class="z-h40 z-text-center z-bg-white">
  91. <td colspan="11">暂不存在退款订单</td>
  92. </tr>
  93. </#if>
  94. <#for item : refundResult.list()>
  95. <tr align="center" class="z-h40 z-pointer" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
  96. <td>${item.getDesignId()}</td>
  97. <td>${item.getShopNick()}</td>
  98. <td>${item.getBuyerNick()}</td>
  99. <td>${item.getDesigner()}</td>
  100. <td>${item.getOrderText()}</td>
  101. <td>
  102. <#if item.getReceiveType() == 0>手动领单</#if>
  103. <#if item.getReceiveType() == 1>自动派单</#if>
  104. <#if item.getReceiveType() == 2>指定派单</#if>
  105. </td>
  106. <td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
  107. <td>${item.getRefundTime()}</td>
  108. <td>
  109. <#if item.getComplaintFlag()==0>未申诉</#if>
  110. <#if item.getComplaintFlag()==1>申诉成功</#if>
  111. <#if item.getComplaintFlag()==2><span class="z-text-red">申诉失败</span></#if>
  112. <#if item.getComplaintFlag()==3><span class="z-text-blue z-bold">申诉中</span></#if>
  113. </td>
  114. <td><span style='width:150px; white-space:nowrap; text-overflow:ellipsis; display:block; overflow:hidden;' title="${item.getComplaintBackReason()}">${item.getComplaintBackReason()}</span></td>
  115. <td><#if item.getComplaintFlag() == 0 || item.getComplaintFlag() == 2><button class="z-button z-blue z-w80" onclick="doComplaint(${item.getDesignId()})">申诉</button></#if></td>
  116. </tr>
  117. </#for>
  118. </table>
  119. ${zhiqim_manager_paging(refundResult, "personalRefundRateStat.htm")}
  120. <table class="z-table z-bordered z-bg-white z-text-center z-mg-t20">
  121. <tr class="z-h40">
  122. <td class="z-text-left z-bold z-px14 z-bg-white" colspan="10">&nbsp;<#if Validates.isNotEmpty(designer)><span class="z-text-red z-bold">[${designer}]</span></#if>退款申诉通过订单</td>
  123. </tr>
  124. <tr class="z-h40 z-text-center z-bg-gray">
  125. <td width="90">订单号</td>
  126. <td width="100">店铺</td>
  127. <td width="100">旺旺号</td>
  128. <td width="100">设计师</td>
  129. <td width="*">产品</td>
  130. <td width="100">派单类型</td>
  131. <td width="90">领单时间</td>
  132. <td width="90">退款时间</td>
  133. <td width="90">申诉状态</td>
  134. </tr>
  135. <#if passResult.size() == 0>
  136. <tr valign="middle" class="z-h40 z-text-center z-bg-white">
  137. <td colspan="11">暂不存在退款申诉通过订单</td>
  138. </tr>
  139. </#if>
  140. <#for item : passResult.list()>
  141. <tr align="center" class="z-h40 z-pointer" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
  142. <td>${item.getDesignId()}</td>
  143. <td>${item.getShopNick()}</td>
  144. <td>${item.getBuyerNick()}</td>
  145. <td>${item.getDesigner()}</td>
  146. <td>${item.getOrderText()}</td>
  147. <td>
  148. <#if item.getReceiveType() == 0>手动领单</#if>
  149. <#if item.getReceiveType() == 1>自动派单</#if>
  150. <#if item.getReceiveType() == 2>指定派单</#if>
  151. </td>
  152. <td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
  153. <td>${item.getRefundTime()}</td>
  154. <td>
  155. <#if item.getComplaintFlag()==0>未申诉</#if>
  156. <#if item.getComplaintFlag()==1>申诉成功</#if>
  157. <#if item.getComplaintFlag()==2><span class="z-text-red">申诉失败</span></#if>
  158. <#if item.getComplaintFlag()==3><span class="z-text-blue z-bold">申诉中</span></#if>
  159. </td>
  160. </tr>
  161. </#for>
  162. </table>
  163. ${zhiqim_manager_paging(passResult)}
  164. </td>
  165. </tr>
  166. </table>
  167. ${zhiqim_manager_content_end()}