orderCheckBackList.zml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. ${Scripts.src("/zinc/js/global_2019010801.js")}
  2. <script>
  3. //快捷联系人
  4. function quickContact()
  5. {
  6. var designId = Z.FM.getChecked("designId");
  7. if (Z.V.isEmpty(designId))
  8. {
  9. Z.alert("请选择一条订单");
  10. return;
  11. }
  12. var ajax = new Z.Ajax();
  13. ajax.setClassName("OrderPresenter");
  14. ajax.setMethodName("quickContact");
  15. ajax.addParam("designId", designId);
  16. ajax.setFailureAlert();
  17. ajax.setSuccess(function(){
  18. var obj = Z.J.toObject(this.responseText);
  19. console.log(obj);
  20. var resultHtml = obj.resultHtml;
  21. if (!Z("#quickContact_dialog")[0])
  22. {
  23. var dialog = new Z.Dialog();
  24. dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
  25. dialog.text = '<div id="quickContact_dialog"></div>';
  26. dialog.width = 1100;
  27. dialog.height = 520;
  28. dialog.shadow = false;
  29. dialog.execute();
  30. dialog.$background.remove();
  31. console.log(dialog)
  32. }
  33. Z("#quickContact_dialog").htmlc(resultHtml);
  34. Z("#quickContact_title").htmlc(Z("#title_content").html());
  35. });
  36. ajax.setLoading("quickContactBtn", '<i class="z-font z-add"></i>正在查询', {disabled:true});
  37. ajax.execute();
  38. }
  39. //快捷联系 发送短信
  40. function doContactMobile(mobile, defaultValue, orderId)
  41. {
  42. if (Z.V.isEmptyBlank(mobile))
  43. {
  44. Z.alert("无效手机号");
  45. return;
  46. }
  47. if (Z.V.isEmptyBlank(defaultValue))
  48. {
  49. defaultValue = '';
  50. }
  51. Z.prompt('发送短信至:'+mobile , defaultValue,function(value)
  52. {
  53. if (Z.V.isEmptyBlank(value))
  54. {
  55. Z.alert("短信内容不能为空", function()
  56. {
  57. doContactMobile(mobile, defaultValue);
  58. });
  59. }
  60. else
  61. {
  62. var ajax = new Z.Ajax();
  63. ajax.setClassName("OrderPresenter");
  64. ajax.setMethodName("doContactMobile");
  65. ajax.addParam("orderId", orderId);
  66. ajax.addParam("mobile", mobile);
  67. ajax.addParam("notes", value);
  68. ajax.setFailureAlert();
  69. ajax.setSuccess(function(){Z.tips("发送成功");});
  70. ajax.execute();
  71. }
  72. },{type:'textarea'});
  73. }
  74. //查看历史退回
  75. function doHistoryBack(){
  76. var designId = Z.FM.getChecked("designId");
  77. var dialog = new Z.Dialog();
  78. dialog.title = "订单历史退回详情";
  79. dialog.url = "/historyBackDetails.htm?designId=" + designId;
  80. dialog.width = 1350;
  81. dialog.height = 400;
  82. dialog.execute();
  83. }
  84. //审核详情查看
  85. function doCheckDetail()
  86. {
  87. var designId = Z.FM.getChecked("designId");
  88. var dialog = new Z.Dialog();
  89. dialog.title = "审核详情";
  90. dialog.url = "/checkBackDetail.htm?designId=" + designId;
  91. dialog.width = 800;
  92. dialog.height = 500;
  93. dialog.execute();
  94. }
  95. </script>
  96. ${zhiqim_manager_breadcrumb("退回列表")}
  97. ${zhiqim_manager_content()}
  98. <#-- 导航 -->
  99. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  100. <nav>
  101. <ul>
  102. <#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckWait.htm');">待审订单</li></#if>
  103. <#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckFinish.htm');">已审订单</li></#if>
  104. <li class="z-active">退回列表</li>
  105. </ul>
  106. </nav>
  107. </div>
  108. <#-- 左侧功能 -->
  109. <#-- 查询条件 -->
  110. ${zhiqim_manager_title("查询条件")}
  111. <form name="theForm" action="/orderCheckBackList.htm">
  112. <table class="z-table z-bordered z-pd6 z-bg-white">
  113. <tr class="z-h40">
  114. <td>订&nbsp;单&nbsp;号&nbsp;:<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
  115. <td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
  116. <td>设&nbsp;计&nbsp;师:
  117. <select name="designer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  118. <option value="">全部</option>
  119. <#for item : operatorList>
  120. <option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
  121. </#for>
  122. </select>
  123. </td>
  124. <td>
  125. 退回时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-
  126. <input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
  127. </td>
  128. <tr>
  129. <tr class="z-h40" align="center">
  130. <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>
  131. </tr>
  132. </table>
  133. </form>
  134. <#-- 操作功能 -->
  135. <div class="z-w100p z-mg-t10 z-mg-b3">
  136. <button class="z-button z-blue z-mg-r10" onclick="doHistoryBack();"><i class="z-font z-query"></i>查看历史退回</button>
  137. <button class="z-button z-blue z-mg-r10" onclick="doCheckDetail();"><i class="z-font z-query"></i>退回原因查看</button>
  138. <button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></i>快捷联系人</button>
  139. </div>
  140. <#-- 列表 -->
  141. <table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center" style="height:auto;">
  142. <tr bgcolor="${zmr_thead_bgcolor}">
  143. <td width="40">选择</td>
  144. <td width="100">订单号</td>
  145. <td width="80">订单金额</td>
  146. <td width="90">定稿时间</td>
  147. <td width="100">退回时间</td>
  148. <td width="100">退回人</td>
  149. <td width="110">订单状态</td>
  150. <td width="250">产品</td>
  151. <td width="150">退回原因</td>
  152. <td width="40">退回次数</td>
  153. <td width="100">设计师</td>
  154. </tr>
  155. ${zhiqim_manager_tr_no_record(pageResult, 12, "暂时没有审核退回单")}
  156. <#for item : pageResult.list()>
  157. <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
  158. <tr class="z-pointer ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  159. <td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
  160. <td>${item.getDesignId()}</td>
  161. <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
  162. <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
  163. <td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
  164. <td>${item.getChecker()}</td>
  165. <td>${StatusConstants.getStatus(item.getStatus())}</td>
  166. <td align="left">${item.getOrderText()} </td>
  167. <td align="left">${item.getCheckBackReason()}</td>
  168. <td>${backCountMap.get(item.getDesignId())}</td>
  169. <td>${item.getDesigner()}</td>
  170. </tr>
  171. </#for>
  172. ${zhiqim_manager_paging(pageResult, "/orderCheckBackList.htm")}
  173. </table>
  174. ${zhiqim_manager_content_end()}
  175. <#-- 联系旺旺&联系QQ弹窗框 -->
  176. <iframe id="openFrm" class="z-hide" src="about:blank"></iframe>