orderDraftCheckWait.zml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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", "draft");
  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=draftCheck";
  33. dialog.width = 800;
  34. dialog.height = 500;
  35. dialog.execute();
  36. }
  37. </script>
  38. <#var data="data=copy,userText,userNotice,CustomFile,DesginFile,FristThumFile,TbzFile"/>
  39. <#var addRule="addRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
  40. <#var delRule="delRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
  41. ${zhiqim_manager_breadcrumb("初稿待审订单")}
  42. ${zhiqim_manager_content()}
  43. <#-- 导航 -->
  44. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  45. <nav>
  46. <ul>
  47. <li class="z-active">初稿待审订单</li>
  48. <#if ZmrPathRule.check(request, "/orderDraftCheckWait.htm")><li onclick="Z.L.href('/orderEndCheckWait.htm');">定稿待审订单</li></#if>
  49. </ul>
  50. </nav>
  51. </div>
  52. <#-- 左侧功能 -->
  53. <div id="left" class="z-overflow-auto z-overflow-x-hidden z-relative-left">
  54. <#-- 查询条件 -->
  55. ${zhiqim_manager_title("查询条件")}
  56. <form name="theFrom" id="theFrom" >
  57. <input type="hidden" name="page" value="${page}" >
  58. <table class="z-table z-bordered z-pd6 z-bg-white">
  59. <tr class="z-h40">
  60. <td width="30%">&nbsp;订 单 号:<input name="designId" class="${zmr_color_class} z-input z-w160" value="${designId}" maxlength="64" placeholder="订单号"></td>
  61. <td width="34%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  62. <option value="">全部</option>
  63. <#for item : typeList>
  64. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  65. </#for>
  66. </select>
  67. </td>
  68. <td width="*">
  69. 稿件类型:<select name="draftType" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
  70. <option value="">全部</option>
  71. <#for item : DraftConstants.getList()>
  72. <option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
  73. </#for>
  74. </select>
  75. </td>
  76. </tr>
  77. <tr class="z-h40">
  78. <td>&nbsp;旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
  79. <td>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
  80. <td>
  81. 是否后工:<select name="afterNames" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
  82. <option value="">全部</option>
  83. <option value="true" <#if afterNames == "true">selected</#if>>是</option>
  84. <option value="false" <#if afterNames == "false">selected</#if>>否</option>
  85. </select>
  86. </td>
  87. </tr>
  88. <tr class="z-h40" >
  89. <td>
  90. 商户名称:<select name="merchantId" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
  91. <option value="">全部</option>
  92. <#for item : Global.get(DesignMerchantCache.class).getList()>
  93. <option value="${item.getMerchantName()}" <#if merchantId == item.getMerchantId()>selected</#if>>${item.getMerchantName()}</option>
  94. </#for>
  95. </select>
  96. </td>
  97. <td>
  98. </td>
  99. <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>
  100. </tr>
  101. </table>
  102. </form>
  103. <#-- 操作功能 -->
  104. <div class="z-w100p z-mg-t20 z-mg-b3">
  105. <#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>
  106. <#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>
  107. </div>
  108. <#-- 列表 -->
  109. <div class="z-overflow-y-auto z-bd-r">
  110. <table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:1470px">
  111. <tr bgcolor="${zmr_thead_bgcolor}">
  112. <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>
  113. <td width="100">订单号</td>
  114. <td width="70">商户<br/>设计等级</td>
  115. <td width="70">设计类型<br/>产品类型</td>
  116. <td width="60">订单金额</td>
  117. <td width="70">下单时间</td>
  118. <td width="70">初稿时间</td>
  119. <td width="70">设计师</td>
  120. <td width="60">状态</td>
  121. <td width="100">特殊工艺</td>
  122. <td width="240">产品描述</td>
  123. <td width="120">退回原因</td>
  124. </tr>
  125. ${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单信息")}
  126. <#for item : pageResult.list()>
  127. <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
  128. <tr class="z-pointer <#if Validates.isNotEmptyBlank(item.getPrepressBackReason())> z-text-red </#if>" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()} >
  129. <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>
  130. <td>
  131. ${item.getDesignId()}
  132. <#if item.getReDesignSrcId() gt 0><span style="color: red;font-size:16px;font-weight: bold"> 补 </span></#if>
  133. <#if item.isUrgent()><span style="color: red;font-size:16px;font-weight: bold"> 急 </span></#if>
  134. <#if item.isHighQualityOrder()><span style="color: red;font-size:16px;font-weight: bold"> 优 </span></#if>
  135. <#if item.getIsOldUser() gt 0><span style="color: #9D24D7;font-size:16px;font-weight: bold"> 老 </span></#if>
  136. <#if !(item.getAmount() lt 30000)><span style="color:#FF34B3;font-size:16px;font-weight: bold"> 大 </span></#if>
  137. </td>
  138. <td>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
  139. <td><#if item.isOnlyDesign()>
  140. 仅设计
  141. <#else>印刷设计</#if>
  142. <br/>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}
  143. </td>
  144. <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
  145. <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
  146. <td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
  147. <td>${item.getDesigner()}</td>
  148. <td>${StatusConstants.getStatus(item.getStatus())}</td>
  149. <td>${item.getPrintSpecial()}</td>
  150. <td align="left">${item.getOrderText()} </td>
  151. <td align="left">${item.getDraftBackReason()}</td>
  152. </tr>
  153. </#for>
  154. </table>
  155. </div>
  156. ${zhiqim_manager_paging(pageResult, "orderDraftCheckWait.htm")}
  157. </div>
  158. ${zhiqim_manager_content_end()}
  159. <#--右侧文件信息-->
  160. <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;">
  161. <iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
  162. </div>