designerGroup.zml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ${zhiqim_manager_breadcrumb("设计组师管理")}
  2. ${zhiqim_manager_content()}
  3. <#-- 导航 -->
  4. <div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  5. <nav>
  6. <ul>
  7. <li onclick="Z.L.href('receiveMerManage.htm');">组织接单</li>
  8. <li class="z-active">接单条件组</li>
  9. <li onclick="Z.L.href('designerGroupDispatch.htm');">设计师接单</li>
  10. <li onclick="Z.L.href('dispatchStat.htm');">派单统计</li>
  11. </ul>
  12. <div class="z-float-right z-mg-t10 z-mg-r5">
  13. <button class="z-button ${zmr_color_class}" onclick="Z.L.href('designerGroupAdd.htm');"><i class="z-font z-add"></i>增加接单条件组</button>
  14. <button class="z-button ${zmr_color_class}" onclick="Z.L.check('designerGroupModify.htm', 'designerGroupId');"><i class="z-font z-modify"></i>修改接单条件组</button>
  15. <button class="z-button z-red" onclick="Z.Location.confirm('/designerGroupDelete.htm', '确认要删除该接单条件组与其信息?','designerGroupId');"><i class="z-font z-delete"></i>删除接单条件组</button>
  16. </div>
  17. </nav>
  18. </div>
  19. <#-- 列表 -->
  20. <table class="z-table z-bordered z-h40-tr z-text-center z-bg-white">
  21. <tr bgcolor="${zmr_thead_bgcolor}">
  22. <td width="40">选择</td>
  23. <td width="100">条件组名</td>
  24. <td width="120">备注</td>
  25. <td width="150">特殊标识</td>
  26. <td width="150">接单金额</td>
  27. <td width="550">稿件类型/产品</td>
  28. <td width="50">最大接单量</td>
  29. <td width="50">最大放弃次数</td>
  30. <td width="10%">操作时间</td>
  31. <td width="5%">操作人</td>
  32. <td width="100">状态</td>
  33. </tr>
  34. ${zhiqim_manager_tr_no_record(pageResult, 10, "无数据")}
  35. <#for item : pageResult.list()>
  36. <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  37. <td><input name="designerGroupId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignerGroupId()}"></td>
  38. <td>${item.getDesignerGroupName()}</td>
  39. <td>${item.getRemark()}</td>
  40. <td>
  41. <#if item.isHighQualityOrder()><span style="font-size:16px;font-weight: bold"> 优 </span></#if>
  42. <#if item.isLargeAmount()><span style="font-size:16px;font-weight: bold"> 大 </span></#if>
  43. <#if item.isUrgent()><span style="font-size:16px;font-weight: bold"> 急 </span></#if>
  44. <#if item.isDesign()><span style="font-size:16px;font-weight: bold"> 仅设计 </span></#if>
  45. <#if item.isSpecial()><span style="font-size:16px;font-weight: bold"> 异 </span></#if>
  46. </td>
  47. <td>
  48. ${Amounts.toYuanMustRadix(item.getMinOrderAmount())}元 - ${Amounts.toYuanMustRadix(item.getMaxOrderAmount())}元
  49. </td>
  50. <td>
  51. <#var designerGroupValue = ORM.get(ZTable.class).list(DesignerGroupValue.class, new Selector("designerGroupId", item.getDesignerGroupId()))/>
  52. <table class="z-table z-bordered-line zi-bd-t-none z-pd3 z-lh150p">
  53. <tr>
  54. <td width="120" class="z-text-left zi-bd-b-none">标准自来稿:</td>
  55. <td class="z-text-left zi-bd-b-none">
  56. <#for value : designerGroupValue>
  57. <#if value.getRelatedType()==0>${typeMap.get(value.getRelatedValue())},</#if>
  58. </#for>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td width="120" class="z-text-left zi-bd-b-none">改稿自来稿:</td>
  63. <td class="z-text-left zi-bd-b-none">
  64. <#for value : designerGroupValue>
  65. <#if value.getRelatedType()==4>${typeMap.get(value.getRelatedValue())},</#if>
  66. </#for>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td width="120" class="z-text-left zi-bd-b-none">普通设计:</td>
  71. <td class="z-text-left zi-bd-b-none">
  72. <#for value : designerGroupValue>
  73. <#if value.getRelatedType()==1>${typeMap.get(value.getRelatedValue())},</#if>
  74. </#for>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td width="120" class="z-text-left zi-bd-b-none">资深设计:</td>
  79. <td class="z-text-left zi-bd-b-none">
  80. <#for value : designerGroupValue>
  81. <#if value.getRelatedType()==2>${typeMap.get(value.getRelatedValue())},</#if>
  82. </#for>
  83. </td>
  84. </tr>
  85. </table>
  86. </td>
  87. <td>
  88. ${item.getMaxOrderNum()}
  89. </td>
  90. <td>
  91. ${item.getMaxWaiveNum()}
  92. </td>
  93. <td>${Sqls.toDateTimeString(item.getModifyTime())}</td>
  94. <td>${item.getModifyOperatorCode()}</td>
  95. <td>
  96. <#if item.getStatus() == 1>
  97. <button class="z-button z-green" onclick="doUpdateDesignerGroupStatus(${item.getDesignerGroupId()},${item.getStatus()})">
  98. 已启用
  99. </button>
  100. <#else>
  101. <button class="z-button z-red" onclick="doUpdateDesignerGroupStatus(${item.getDesignerGroupId()},${item.getStatus()})">
  102. 已停用
  103. </button>
  104. </#if>
  105. </td>
  106. </tr>
  107. </#for>
  108. </table>
  109. <script>
  110. function doUpdateDesignerGroupStatus(designerGroupId,status){
  111. Z.confirm("确认" + (status == 1 ? "停用" : "启用") + "该接单条件组?",function(){
  112. var ajax = new Z.Ajax();
  113. ajax.setClassName("DesignerGroupPresenter");
  114. ajax.setMethodName("doUpdateDesignerGroupStatus");
  115. ajax.addParam("designerGroupId",designerGroupId);
  116. ajax.addParam("status",status == 1?0:1);
  117. ajax.setFailureAlert();
  118. ajax.setSuccess(function(){
  119. Z.success('修改成功', function(){
  120. location.reload();
  121. });
  122. });
  123. ajax.setLoading(document);
  124. ajax.execute();
  125. });
  126. }
  127. </script>
  128. ${zhiqim_manager_paging(pageResult, "designerGroup.htm")}
  129. ${zhiqim_manager_content_end()}