orderCheckWait.zml 12 KB

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