133 rivejä
5.3 KiB
Plaintext
133 rivejä
5.3 KiB
Plaintext
${zhiqim_manager_breadcrumb("设计组师管理")}
|
|
${zhiqim_manager_content()}
|
|
|
|
<#-- 导航 -->
|
|
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
|
<nav>
|
|
<ul>
|
|
<li onclick="Z.L.href('receiveMerManage.htm');">组织接单</li>
|
|
<li class="z-active">接单条件组</li>
|
|
<li onclick="Z.L.href('designerGroupDispatch.htm');">设计师接单</li>
|
|
<li onclick="Z.L.href('dispatchStat.htm');">派单统计</li>
|
|
</ul>
|
|
<div class="z-float-right z-mg-t10 z-mg-r5">
|
|
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('designerGroupAdd.htm');"><i class="z-font z-add"></i>增加接单条件组</button>
|
|
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('designerGroupModify.htm', 'designerGroupId');"><i class="z-font z-modify"></i>修改接单条件组</button>
|
|
<button class="z-button z-red" onclick="Z.Location.confirm('/designerGroupDelete.htm', '确认要删除该接单条件组与其信息?','designerGroupId');"><i class="z-font z-delete"></i>删除接单条件组</button>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
|
|
<#-- 列表 -->
|
|
<table class="z-table z-bordered z-h40-tr z-text-center z-bg-white">
|
|
<tr bgcolor="${zmr_thead_bgcolor}">
|
|
<td width="40">选择</td>
|
|
<td width="100">条件组名</td>
|
|
<td width="120">备注</td>
|
|
<td width="150">特殊标识</td>
|
|
<td width="150">接单金额</td>
|
|
<td width="550">稿件类型/产品</td>
|
|
<td width="50">最大接单量</td>
|
|
<td width="50">最大放弃次数</td>
|
|
<td width="10%">操作时间</td>
|
|
<td width="5%">操作人</td>
|
|
<td width="100">状态</td>
|
|
</tr>
|
|
${zhiqim_manager_tr_no_record(pageResult, 10, "无数据")}
|
|
<#for item : pageResult.list()>
|
|
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
|
<td><input name="designerGroupId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignerGroupId()}"></td>
|
|
<td>${item.getDesignerGroupName()}</td>
|
|
<td>${item.getRemark()}</td>
|
|
<td>
|
|
<#if item.isHighQualityOrder()><span style="font-size:16px;font-weight: bold"> 优 </span></#if>
|
|
<#if item.isLargeAmount()><span style="font-size:16px;font-weight: bold"> 大 </span></#if>
|
|
<#if item.isUrgent()><span style="font-size:16px;font-weight: bold"> 急 </span></#if>
|
|
<#if item.isDesign()><span style="font-size:16px;font-weight: bold"> 仅设计 </span></#if>
|
|
<#if item.isSpecial()><span style="font-size:16px;font-weight: bold"> 异 </span></#if>
|
|
</td>
|
|
<td>
|
|
${Amounts.toYuanMustRadix(item.getMinOrderAmount())}元 - ${Amounts.toYuanMustRadix(item.getMaxOrderAmount())}元
|
|
</td>
|
|
<td>
|
|
<#var designerGroupValue = ORM.get(ZTable.class).list(DesignerGroupValue.class, new Selector("designerGroupId", item.getDesignerGroupId()))/>
|
|
<table class="z-table z-bordered-line zi-bd-t-none z-pd3 z-lh150p">
|
|
<tr>
|
|
<td width="120" class="z-text-left zi-bd-b-none">标准自来稿:</td>
|
|
<td class="z-text-left zi-bd-b-none">
|
|
<#for value : designerGroupValue>
|
|
<#if value.getRelatedType()==0>${typeMap.get(value.getRelatedValue())},</#if>
|
|
</#for>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" class="z-text-left zi-bd-b-none">改稿自来稿:</td>
|
|
<td class="z-text-left zi-bd-b-none">
|
|
<#for value : designerGroupValue>
|
|
<#if value.getRelatedType()==4>${typeMap.get(value.getRelatedValue())},</#if>
|
|
</#for>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" class="z-text-left zi-bd-b-none">普通设计:</td>
|
|
<td class="z-text-left zi-bd-b-none">
|
|
<#for value : designerGroupValue>
|
|
<#if value.getRelatedType()==1>${typeMap.get(value.getRelatedValue())},</#if>
|
|
</#for>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" class="z-text-left zi-bd-b-none">资深设计:</td>
|
|
<td class="z-text-left zi-bd-b-none">
|
|
<#for value : designerGroupValue>
|
|
<#if value.getRelatedType()==2>${typeMap.get(value.getRelatedValue())},</#if>
|
|
</#for>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td>
|
|
${item.getMaxOrderNum()}
|
|
</td>
|
|
<td>
|
|
${item.getMaxWaiveNum()}
|
|
</td>
|
|
<td>${Sqls.toDateTimeString(item.getModifyTime())}</td>
|
|
<td>${item.getModifyOperatorCode()}</td>
|
|
<td>
|
|
<#if item.getStatus() == 1>
|
|
<button class="z-button z-green" onclick="doUpdateDesignerGroupStatus(${item.getDesignerGroupId()},${item.getStatus()})">
|
|
已启用
|
|
</button>
|
|
<#else>
|
|
<button class="z-button z-red" onclick="doUpdateDesignerGroupStatus(${item.getDesignerGroupId()},${item.getStatus()})">
|
|
已停用
|
|
</button>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</#for>
|
|
</table>
|
|
<script>
|
|
|
|
function doUpdateDesignerGroupStatus(designerGroupId,status){
|
|
Z.confirm("确认" + (status == 1 ? "停用" : "启用") + "该接单条件组?",function(){
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("DesignerGroupPresenter");
|
|
ajax.setMethodName("doUpdateDesignerGroupStatus");
|
|
ajax.addParam("designerGroupId",designerGroupId);
|
|
ajax.addParam("status",status == 1?0:1);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
Z.success('修改成功', function(){
|
|
location.reload();
|
|
});
|
|
});
|
|
ajax.setLoading(document);
|
|
ajax.execute();
|
|
});
|
|
}
|
|
|
|
</script>
|
|
${zhiqim_manager_paging(pageResult, "designerGroup.htm")}
|
|
${zhiqim_manager_content_end()} |