designOrderFinish.zml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <script>
  2. function doCardModify()
  3. {//电子名片去设计
  4. var designId = Z.FM.getChecked("designId");
  5. if(Z("#typeId"+designId).val() == 2023207561256){
  6. var ajax = new Z.Ajax();
  7. ajax.setClassName("DesignOrderPresenter");
  8. ajax.setMethodName("doDesignerOrderTemplate");
  9. ajax.addParam("designId", designId);
  10. ajax.addParam("validateUrl", "/templateCardPreview.htm?designId="+designId+"&src=finish");
  11. ajax.setFailureAlert();
  12. ajax.setSuccessLocationResponse();
  13. ajax.execute();
  14. }else{
  15. Z.alert("仅支持秒绘智能名片产品操作");
  16. }
  17. }
  18. function doOrderReturn()
  19. {//订单退回
  20. var designId = Z.FM.getChecked("designId");
  21. if(Z("#designer"+designId).val() != '${request.getSessionName()}'){
  22. Z.alert("非订单设计师 不支持操作");
  23. return;
  24. }
  25. Z.confirm('你确定退回订单吗?', function(){
  26. var ajax = new Z.Ajax();
  27. ajax.setClassName("OrderCheckPresenter");
  28. ajax.setMethodName("doDesignerOrderReturn");
  29. ajax.addParam("designId", designId);
  30. ajax.setFailureAlert();
  31. ajax.setSuccess(function(){
  32. Z.success("操作成功",function(){
  33. location.reload();
  34. });
  35. });
  36. ajax.execute();
  37. });
  38. }
  39. </script>
  40. <style>
  41. .z-tabnav-main{ border:none;}
  42. .z-tabnav-main>nav li{ border-right:none; font-size:15px; height:50px; line-height:50px;}
  43. .z-tabnav-main.z-blue>nav li.z-active { color:#28a3ef; background: #fff; position: relative; font-weight: bold; }
  44. .z-tabnav-main.z-blue>nav li.z-active:hover{ background: #fff;}
  45. .z-tabnav-main.z-blue>nav li.z-active::before{content:''; bottom:0; left:50%; margin:0 0 0 -18px; position: absolute; width:36px; height:2px; background:#28a3ef;}
  46. .screen{ background: #e4e5ea; min-height:70px; padding:20px 0 10px 24px; box-sizing: border-box;}
  47. .search-box{ border:1px solid #d3d3d3; margin:0 10px 0 0; width:210px; float:left; border-radius:20px; padding:0 14px; background:#fff;}
  48. .search-box span{ float:left; line-height:32px; color:#282c2f;}
  49. .search-box input{ border:none; box-shadow:none; width:130px; height:32px; padding:0 0 0 10px; line-height:32px;}
  50. .search-box select{ float:right; width:100px;}
  51. .btn-search{ border-radius:32px; height:32px; float:left; margin:0 10px 0 0;}
  52. .z-table.z-bordered>thead>tr>th,.z-table.z-bordered>thead>tr>td,.z-table.z-bordered>tbody>tr>th,.z-table.z-bordered>tbody>tr>td{
  53. border:none; border-bottom: 1px solid #e4e4e4; font-size:13px; color:#999; height:52px;
  54. }
  55. .z-table.z-bordered{ border:none;}
  56. .z-bd-r{ border:none;}
  57. .design-order{ background: #fff;}
  58. .clear:after{content:'';display:block;clear:both;height:0;overflow:hidden;visibility:hidden;}
  59. .clear{zoom:1;}
  60. .z-readonly{ border:none!important; background: #edeeef!important;}
  61. .z-text-left td {
  62. color: #363940!important;
  63. font-weight: bold;
  64. }
  65. .z-text-red{color:#1681f5;}
  66. .z-red:hover{ background: #1681f5!important;}
  67. .z-button.z-red { background: #1681f5; border: 1px solid #1681f5;}
  68. .goDetail{cursor: pointer; height:30px; background:#1182fc; color:#fff!important; font-size:12px; width:70px; border-radius:4px; line-height:30px; display:block; text-align: center;}
  69. </style>
  70. <#def designatedPath="/designOrder.htm"/>
  71. <#var data="data=copy,userText,CustomFile,DesginFile,EndFile,WorkFile,AftersaleFile,ThumFile,userNotice,TbzFile"/>
  72. <#var addRule="addRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
  73. <#var delRule="delRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
  74. ${Styles.htmlOverflowHidden()}
  75. ${yangcai_calc_Left_width_height(400, 70)}
  76. ${zhiqim_manager_breadcrumb("已完成订单")}
  77. ${zhiqim_manager_content()}
  78. <div class="design-order clear">
  79. <#-- 导航栏 -->
  80. <div class="z-tabnav-main z-blue">
  81. <nav>
  82. <ul>
  83. <li onclick="Z.Location.href('designOrder.htm');">未完成订单</li>
  84. <li class="z-active">已完结订单</li>
  85. <li onclick="Z.Location.href('waitHandleAfterOrder.htm');">售后订单</li>
  86. <li onclick="Z.Location.href('complainWantDealList.htm');">投诉订单</li>
  87. </ul>
  88. </nav>
  89. </div>
  90. <div class="z-overflow-y-auto z-overflow-x-hidden z-relative-left" style="width:100%;">
  91. <form name="theForm" action="/designOrderFinish.htm" method="post">
  92. <div class="screen clear">
  93. <div class="search-box">
  94. <span>订单号</span>
  95. <input name="designId" class="z-input ${zmr_color_class} z-w150" value="${designId}" placeholder="订单号">
  96. </div>
  97. <div class="search-box">
  98. <span>旺旺号</span>
  99. <input name="buyerNick" class="z-input ${zmr_color_class} z-w150" value="${buyerNick}" placeholder="旺旺号">
  100. </div>
  101. <div class="search-box" style="width:310px;">
  102. <span>定稿日期</span>
  103. <input name="beginDate" style="width:100px;" onfocus="zhiqim.date(this);" readonly class="z-input" value="${beginDate}"> -
  104. <input name="endDate" style="width:100px;" onfocus="zhiqim.date(this);" readonly class="z-input" value="${endDate}">
  105. </div>
  106. <button class="z-button z-blue btn-search"><i class="z-font z-query"></i>查询</button>
  107. <!--<button type="button" class="z-button btn-search" style="background: #ea4a36; color:#fff; border: 1px solid #ea4a36; box-shadow:none;" onclick="doOrderReturn();"><i class="z-font z-return"></i>订单退回</button>-->
  108. <button type="button" class="z-button z-cyan btn-search" onclick="doCardModify();"><i class="z-font z-modify"></i>修改订单</button>
  109. </div>
  110. </form>
  111. <#-- 分页列表-->
  112. <div class="z-overflow-auto z-bd-r" style="padding:0 24px;">
  113. <table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" style="width:100%;">
  114. <tr align="center" class="z-text-left z-h40" data-layoutCode="designOrderFinish">
  115. <td width="40">选择</td>
  116. <td width="80">订单号</td>
  117. <td width="60">设计等级</td>
  118. <td width="80">旺旺号</td>
  119. <td width="60">订单状态</td>
  120. <td width="60">产品类型</td>
  121. <td width="90">下单时间</td>
  122. <td width="90">领单时间</td>
  123. <td width="90">初稿时间</td>
  124. <td width="90">定稿时间</td>
  125. <td width="60" align="center">操作</td>
  126. </tr>
  127. <#if pageResult.total() == 0>
  128. ${zhiqim_manager_no_record(23, "暂时没有数据")}
  129. </#if>
  130. <#for item : pageResult.list()>
  131. <input type="hidden" id="typeId${item.getDesignId()}" value="${item.getTypeId()}">
  132. <input type="hidden" id="designer${item.getDesignId()}" value="${item.getDesigner()}">
  133. <tr align="left" class="z-h50" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}" id="tr_${item.getDesignId()}">
  134. <td><input type="radio" name="designId" data-role="z-radio" data-class="${zmr_color_class} z-large" value="${item.getDesignId()}"
  135. ></td>
  136. <td>${item.getDesignId()}
  137. <#if item.isUrgent()>
  138. <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="加急订单"> 急 </span>
  139. </#if>
  140. <#if item.isChange()>
  141. <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="改稿订单"> 改 </span>
  142. </#if>
  143. <#if item.isBack()>
  144. <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="打回订单"> 回 </span>
  145. </#if></td>
  146. <td>${DraftConstants.get(item.getDraftType())}</td>
  147. <td><a href="/wangwangOrder.htm?buyerNick=${item.getBuyerNick()}">${item.getBuyerNick()}</a></td>
  148. <td>${StatusConstants.getStatus(item.getStatus())}</td>
  149. <td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
  150. <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
  151. <td>${Sqls.toDateTimeString(item.getDesignBeginTime())}</td>
  152. <td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
  153. <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
  154. <td align="center"><span class="goDetail" onclick="Z.L.href('allOrderDetail.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}');">详情</span></td>
  155. </tr>
  156. </#for>
  157. </table>
  158. </div>
  159. ${zhiqim_manager_paging(pageResult, "designOrderFinish.htm")}
  160. </div>
  161. </div>
  162. ${zhiqim_manager_content_end()}