orderEndCheckWait.zml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <!-- 定稿待审列表 -->
  2. ${Styles.htmlOverflowHidden()}
  3. ${Scripts.src("/zinc/js/global_2019010801.js")}
  4. ${yangcai_calc_Left_width_height(400, 110)}
  5. <script>
  6. function designOrderPass()
  7. {//审核通过
  8. var designIds = Z.FM.getCheckBoxValue("designId");
  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("OrderPresenter");
  17. ajax.setMethodName("designOrderPass");
  18. ajax.addParam("designIds", designIds);
  19. ajax.addParam("type", "end");
  20. ajax.setFailureAlert();
  21. ajax.setSuccess(function(){
  22. Z.success("操作成功", function(){document.theFrom.submit()});
  23. });
  24. ajax.execute();
  25. })
  26. }
  27. function designOrderReback()
  28. {//审核退回窗口
  29. var designId = Z.FM.getChecked("designId");
  30. var dialog = new Z.Dialog();
  31. dialog.title = "审核退回原因(截图粘贴在输入框下方)";
  32. dialog.url = "/orderCheckBackInfo.htm?designId=" + designId+"&src=endCheck";
  33. dialog.width = 800;
  34. dialog.height = 500;
  35. dialog.execute();
  36. }
  37. //快捷联系人
  38. function quickContact()
  39. {
  40. var designId = Z.FM.getChecked("designId");
  41. if (Z.V.isEmpty(designId))
  42. {
  43. Z.alert("请选择一条订单");
  44. return;
  45. }
  46. var ajax = new Z.Ajax();
  47. ajax.setClassName("OrderPresenter");
  48. ajax.setMethodName("quickContact");
  49. ajax.addParam("designId", designId);
  50. ajax.setFailureAlert();
  51. ajax.setSuccess(function(){
  52. var obj = Z.J.toObject(this.responseText);
  53. console.log(obj);
  54. var resultHtml = obj.resultHtml;
  55. if (!Z("#quickContact_dialog")[0])
  56. {
  57. var dialog = new Z.Dialog();
  58. dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
  59. dialog.text = '<div id="quickContact_dialog"></div>';
  60. dialog.width = 750;
  61. dialog.height = 400;
  62. dialog.shadow = false;
  63. dialog.execute();
  64. dialog.$background.remove();
  65. console.log(dialog)
  66. }
  67. Z("#quickContact_dialog").htmlc(resultHtml);
  68. Z("#quickContact_title").htmlc(Z("#title_content").html());
  69. });
  70. ajax.setLoading("quickContactBtn", '<i class="z-font z-add"></i>正在查询', {disabled:true});
  71. ajax.execute();
  72. }
  73. function downloads()
  74. {
  75. var designIds = Z.FM.getCheckBoxValue("designId");
  76. if (Z.V.isEmpty(designIds))
  77. {
  78. Z.alert("请选择订单");
  79. return;
  80. }
  81. var ajax = new Z.Ajax();
  82. ajax.setClassName("OrderPresenter");
  83. ajax.setMethodName("downloads");
  84. ajax.addParam("designIds", designIds);
  85. ajax.addParam("type", "end");
  86. ajax.setFailureAlert();
  87. ajax.setSuccess(function(responseText){
  88. var idsArray = responseText.split(',');
  89. if(idsArray == ''){
  90. alert("所选文件为空")
  91. }
  92. var prefix = Z.l.protocol + "//" + Z.l.host ;
  93. window.location.href = prefix+"/downFile.htm?attaId="+responseText+"&zCallFrame=true";
  94. });
  95. ajax.execute();
  96. }
  97. </script>
  98. <#var data="data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
  99. <#var addRule="addRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
  100. <#var delRule="delRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
  101. ${zhiqim_manager_breadcrumb("待审订单")}
  102. ${zhiqim_manager_content()}
  103. <#-- 导航 -->
  104. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  105. <nav>
  106. <ul>
  107. <#if ZmrPathRule.check(request, "/orderDraftCheckWait.htm")><li onclick="Z.L.href('/orderDraftCheckWait.htm');">初稿待审列表</li></#if>
  108. <li class="z-active">定稿待审订单</li>
  109. </ul>
  110. </nav>
  111. </div>
  112. <#-- 左侧功能 -->
  113. <div id="left" class="z-overflow-auto z-overflow-x-hidden z-relative-left">
  114. <#-- 查询条件 -->
  115. ${zhiqim_manager_title("查询条件")}
  116. <form name="theFrom" id="theFrom" >
  117. <input type="hidden" name="page" value="${page}" >
  118. <table class="z-table z-bordered z-pd6 z-bg-white">
  119. <tr class="z-h40">
  120. <td width="30%">&nbsp;订 单 号:<input name="designId" class="${zmr_color_class} z-input z-w160" value="${designId}" maxlength="64" placeholder="订单号"></td>
  121. <td width="34%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  122. <option value="">全部</option>
  123. <#for item : typeList>
  124. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  125. </#for>
  126. </select>
  127. </td>
  128. <td width="*">
  129. 稿件类型:<select name="draftType" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
  130. <option value="">全部</option>
  131. <#for item : DraftConstants.getList()>
  132. <option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
  133. </#for>
  134. </select>
  135. </td>
  136. </tr>
  137. <tr class="z-h40">
  138. <td>&nbsp;旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
  139. <td>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
  140. <td>
  141. 是否后工:<select name="afterNames" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
  142. <option value="">全部</option>
  143. <option value="true" <#if afterNames == "true">selected</#if>>是</option>
  144. <option value="false" <#if afterNames == "false">selected</#if>>否</option>
  145. </select>
  146. </td>
  147. </tr>
  148. <tr class="z-h40" >
  149. <td>
  150. 商户名称:<select name="merchantId" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
  151. <option value="">全部</option>
  152. <#for item : Global.get(DesignMerchantCache.class).getList()>
  153. <option value="${item.getMerchantName()}" <#if merchantId == item.getMerchantId()>selected</#if>>${item.getMerchantName()}</option>
  154. </#for>
  155. </select>
  156. </td>
  157. <td>
  158. </td>
  159. <td align="left" ><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>
  160. </tr>
  161. </table>
  162. </form>
  163. <#-- 操作功能 -->
  164. <div class="z-w100p z-mg-t20 z-mg-b3">
  165. <#if ZmrPathRule.check(request, "/designOrderPass.htm")><button type="button" class="z-button z-green" onclick="designOrderPass();"><i class="z-font z-success"></i>审核通过</button></#if>
  166. <#if ZmrPathRule.check(request, "/designOrderReback.htm")><button type="button" class="z-button z-red" onclick="designOrderReback();"><i class="z-font z-return"></i>审核退回</button></#if>
  167. <button id="downloadsBtn" type="button" class="z-button z-purple" onclick="downloads();"><i ></i>多选下载</button>
  168. </div>
  169. <#-- 列表 -->
  170. <div class="z-overflow-y-auto z-bd-r">
  171. <table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:1470px">
  172. <tr bgcolor="${zmr_thead_bgcolor}">
  173. <td width="30"><input name="allDesignId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${pageResult.pageNo()}" onclick="Z.FM.doSelectCheckBox('designId', this.checked);"> 选择</td>
  174. <td width="100">订单号</td>
  175. <td width="70">商户<br/>设计等级</td>
  176. <td width="70">设计类型<br/>产品类型</td>
  177. <td width="60">订单金额</td>
  178. <td width="70">下单时间</td>
  179. <td width="70">设计师</td>
  180. <td width="60">状态</td>
  181. <td width="100">特殊工艺</td>
  182. <td width="240">产品描述</td>
  183. <td width="120">退回原因</td>
  184. </tr>
  185. ${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单信息")}
  186. <#for item : pageResult.list()>
  187. <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
  188. <tr class="z-pointer <#if Validates.isNotEmptyBlank(item.getPrepressBackReason())> z-text-red </#if>" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()} >
  189. <td><input name="designId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick="Z.L.href('attaFileList.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}', attaFileList);"></td>
  190. <td>
  191. ${item.getDesignId()}
  192. <#if item.getReDesignSrcId() gt 0><span style="color: red;font-size:16px;font-weight: bold"> 补 </span></#if>
  193. <#if item.isUrgent()><span style="color: red;font-size:16px;font-weight: bold"> 急 </span></#if>
  194. <#if item.isHighQualityOrder()><span style="color: red;font-size:16px;font-weight: bold"> 优 </span></#if>
  195. <#if item.getIsOldUser() gt 0><span style="color: #9D24D7;font-size:16px;font-weight: bold"> 老 </span></#if>
  196. <#if !(item.getAmount() lt 30000)><span style="color:#FF34B3;font-size:16px;font-weight: bold"> 大 </span></#if>
  197. <#if item.getShowRedMark() == 1><span><img src="/zinc/images/red_exclamation_mark.png" title="该订单已在淘宝退款"></span></#if>
  198. </td>
  199. <td>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
  200. <td><#if item.isOnlyDesign()>
  201. 仅设计
  202. <#else>印刷设计</#if>
  203. <br/>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}
  204. </td>
  205. <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
  206. <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
  207. <td>${item.getDesigner()}</td>
  208. <td>${StatusConstants.getStatus(item.getStatus())}</td>
  209. <td>${item.getPrintSpecial()}</td>
  210. <td align="left">${item.getOrderText()} </td>
  211. <td align="left">${item.getEndBackReason()}</td>
  212. </tr>
  213. </#for>
  214. </table>
  215. </div>
  216. ${zhiqim_manager_paging(pageResult, "orderEndCheckWait.htm")}
  217. </div>
  218. ${zhiqim_manager_content_end()}
  219. <#--右侧文件信息-->
  220. <div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
  221. <iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
  222. </div>
  223. <#-- 联系旺旺&联系QQ弹窗框 -->
  224. <iframe id="openFrm" class="z-hide" src="about:blank"></iframe>