accountsManage.zml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <script>
  2. function remark(){
  3. var designer = Z.FM.getChecked("designer");
  4. Z.prompt("请输入标签内容", Z("#remark"+designer).val(), function(value){
  5. var ajax = new Z.Ajax();
  6. ajax.setContextPath("${context.getContextPath()}");
  7. ajax.setClassName("DesignerPresenter");
  8. ajax.setMethodName("doUpdateCourseRemark");
  9. ajax.addParam("designer",designer);
  10. ajax.addParam("remark",value);
  11. ajax.setFailureAlert();
  12. ajax.setSuccess(function(){
  13. Z.success("操作成功",function(){
  14. document.getElementById("designerManage").submit();
  15. });
  16. });
  17. ajax.execute();
  18. });
  19. }
  20. function queryDetail(){
  21. var designer = Z.FM.getChecked("designer");
  22. var dialog = new parent.Z.Dialog();
  23. dialog.title = "设计师详情";
  24. dialog.url = "/designerCourseDetail.htm?designer="+designer;
  25. dialog.width = 700;
  26. dialog.height = 520;
  27. dialog.execute();
  28. }
  29. function exportData(){
  30. var form = document.designerManage;
  31. form.action= "/designerManageExport.htm"
  32. form.submit();
  33. setTimeout(form.action= "/designerManage.htm",300);
  34. }
  35. function exportData(){
  36. var form = document.accountsManage;
  37. form.action= "/accountsManageExport.htm"
  38. form.submit();
  39. setTimeout(form.action= "/accountsManage.htm",300);
  40. }
  41. //指定组织
  42. function doAssignOrg()
  43. {
  44. var designer = Z.FM.getChecked("designer");
  45. if (Z.V.isEmpty(designer))
  46. {
  47. Z.alert("请选择设计师");
  48. return;
  49. }
  50. var dialog = new Z.Dialog();
  51. dialog.title = "指定组织";
  52. dialog.url = "/assignOrg.htm?designer=" + designer;
  53. dialog.width = 400;
  54. dialog.height = 250;
  55. dialog.execute();
  56. }
  57. </script>
  58. ${zhiqim_manager_breadcrumb("设计师管理")}
  59. ${zhiqim_manager_content()}
  60. <#-- 导航 -->
  61. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  62. <nav>
  63. <ul>
  64. <li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
  65. <li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
  66. <li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
  67. <li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
  68. <li onclick="Z.L.href('designerReg.htm');">注册审核</li>
  69. <li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
  70. <li class="z-active">结算管理</li>
  71. </ul>
  72. </nav>
  73. </div>
  74. <#-- 查询条件 -->
  75. ${zhiqim_manager_title("查询条件")}
  76. <form name="accountsManage" action="/accountsManage.htm" method="post" id="accountsManage">
  77. <table class="z-table z-bordered z-pd6 z-bg-white">
  78. <tr>
  79. <td width="30%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
  80. <td width="34%">产品类型:
  81. <select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  82. <option value="">全部</option>
  83. <#for item : DesignTypeDao.list()>
  84. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  85. </#for>
  86. </select>
  87. </td>
  88. <td > 审核完成时间:<input id="startDate" name="startDate" class="z-input z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${startTime}">&nbsp;-&nbsp;
  89. <input id="endDate" name="endDate" class="z-input z-mg-l3 z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${endTime}">
  90. </td>
  91. </tr>
  92. <tr class="z-h40">
  93. <td>旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
  94. <td>订单金额:<select name="amount" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  95. <option value="">全部</option>
  96. <option value="10000" <#if amount == 10000>selected</#if>>100以上</option>
  97. <option value="30000" <#if amount == 30000>selected</#if>>300以上</option>
  98. <option value="50000" <#if amount == 50000>selected</#if>>500以上</option>
  99. <option value="100000" <#if amount == 100000>selected</#if>>1000以上</option>
  100. </select>
  101. </td>
  102. <td>
  103. 商户名称:<select name="merchantId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  104. <option value="">全部</option>
  105. <#for item : Global.get(DesignMerchantCache.class).getList()>
  106. <option value="${item.getMerchantName()}" <#if merchantId == item.getMerchantId()>selected</#if>>${item.getMerchantName()}</option>
  107. </#for>
  108. </select>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td>设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
  113. </td>
  114. <td>
  115. 设计等级:<select name="draftType" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  116. <option value="">全部</option>
  117. <#for item : DraftConstants.getList()>
  118. <#if item.value() != 4 >
  119. <option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
  120. </#if>
  121. </#for>
  122. </select>
  123. </td>
  124. <td>
  125. 订单状态:<select name="orderStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  126. <option value="">全部</option>
  127. <#for statusStr : StatusConstants.getOrderStatusList()>
  128. <#if statusStr.value() != StatusConstants.ORDER_62.value() && statusStr.value() != StatusConstants.ORDER_20.value()>
  129. <option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
  130. </#if>
  131. </#for>
  132. <option value="110" <#if orderStatus == 110>selected</#if>>未完成</option>
  133. <option value="120" <#if orderStatus == 120>selected</#if>>审稿退回</option>
  134. </select>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td>erp单号:<input name="tids" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${tids}" placeholder="erp单号">
  139. </td>
  140. <td>
  141. </td>
  142. <td>
  143. </td>
  144. </tr>
  145. <tr class="z-h40">
  146. <td colspan="3" align="center"><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>
  147. </tr>
  148. </table>
  149. </form>
  150. <#-- 操作功能 -->
  151. <div class="z-w100p z-mg-t10 z-mg-b3">
  152. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="exportData();"><i class="z-font z-download"></i>数据导出</button>
  153. </div>
  154. <#-- 列表-->
  155. <div class="z-overflow-auto z-bd-r">
  156. <table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:100%">
  157. <tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
  158. <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>
  159. <td width="30">设计师</td>
  160. <td width="50">订单号</td>
  161. <td width="60">文件名</td>
  162. <td width="10">订单状态</td>
  163. <td width="30">提现账号</td>
  164. <td width="60">设计佣金<span data-role="z-tooltip" data-options="align:left;width:100px;" class="z-color-red" data-text="设计师完成订单后获取的费用">&nbsp;*</span></td>
  165. <td width="70">审核完成时间</td>
  166. </tr>
  167. ${zhiqim_manager_tr_no_record(pageResult, 27, "暂时没有数据")}
  168. <#for item : pageResult.list()>
  169. <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
  170. <input id="userQqs_${item.getDesignId()}" type="hidden" value="${item.getDesignCopies()}">
  171. <input id="status_${item.getDesignId()}" type="hidden" value="${item.getStatus()}">
  172. <input id="designPrice_${item.getDesignId()}" type="hidden" value="${Amounts.toYuan(item.getDesignPrice())}">
  173. <input id="urgentPrice_${item.getDesignId()}" type="hidden" value="${Amounts.toYuan(item.getUrgentPrice())}">
  174. <input id="orderText_${item.getDesignId()}" type="hidden" value="${item.getOrderText()}">
  175. <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()}>
  176. <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>
  177. <td>${item.getDesigner()}</td>
  178. <td>${item.getDesignId()}
  179. <#if Validates.isNotEmpty(item.getCheckBackReason()) && item.getStatus() lt 55 >
  180. <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>
  181. <#elseif Validates.isNotEmpty(item.getDraftBackReason()) && item.getStatus() lt 55 >
  182. <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>
  183. <#elseif Validates.isNotEmpty(item.getEndBackReason()) && item.getStatus() lt 55 >
  184. <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>
  185. </#if>
  186. <#if item.isChange()>
  187. <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>
  188. </#if>
  189. <#if item.isBack()>
  190. <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>
  191. </#if>
  192. <#if item.getIsOldUser() gt 0>
  193. <span style="color: #9D24D7;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="老用户订单"> 老 </span>
  194. </#if>
  195. </td>
  196. <td>${item.getOrderText()}</td>
  197. <td>${StatusConstants.getStatus(item.getStatus())}</td>
  198. <td>${item.getReceiveAccount()}</td>
  199. <td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
  200. <td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
  201. </tr>
  202. </#for>
  203. </table>
  204. ${zhiqim_manager_paging(pageResult, "/accountsManage.htm")}
  205. ${zhiqim_manager_content_end()}