first commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
${zhiqim_manager_breadcrumb("接单时长")}
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
|
||||
<li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
|
||||
<li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
|
||||
<li class="z-active">接单时长</li>
|
||||
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
|
||||
<li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
|
||||
<li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/desOnlineTimeLog.htm">
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w100 zi-bd-r-none" name="dayCode" onfocus="Z.date(this);" value="${dayCode}" placeholder="日期"/>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w100" name="operatorCode" value="${operatorCode}" placeholder="设计师"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="4"> 接单时长列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="30%">日期</td>
|
||||
<td width="30%">设计师</td>
|
||||
<td width="*">接单时长</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="4">暂不存在日志信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
|
||||
<td>${item.getDayCode()}</td>
|
||||
<td>${item.getDesigner()}</td>
|
||||
<td><#if item.getOnlineTime()/60 gt 0>${item.getOnlineTime()/60}小时</#if>${item.getOnlineTime()%60}分钟</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/desOnlineTimeLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,133 @@
|
||||
${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()}
|
||||
@@ -0,0 +1,228 @@
|
||||
${zhiqim_manager_history("designerGroup.htm")}
|
||||
${request.getValidateScript()}
|
||||
${Scripts.src("/zinc/layui/layui.js")}
|
||||
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
|
||||
<style>
|
||||
|
||||
xm-select div:not(span) {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
layui.config({
|
||||
base: '../zinc/module/'
|
||||
}).extend({
|
||||
xmSelect: 'xmSelect/xm-select',
|
||||
}).use(['jquery','xmSelect'], function () {
|
||||
var $ = layui.$;
|
||||
var xmSelect = layui.xmSelect;
|
||||
var typeList = ${typeList};
|
||||
var industryList = ${industryList};
|
||||
var relatedType0 = xmSelect.render({
|
||||
el: '#relatedType0',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType4 = xmSelect.render({
|
||||
el: '#relatedType4',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType1 = xmSelect.render({
|
||||
el: '#relatedType1',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType2 = xmSelect.render({
|
||||
el: '#relatedType2',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType3 = xmSelect.render({
|
||||
el: '#relatedType3',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'industryName',
|
||||
value: 'industryId',
|
||||
},
|
||||
data: industryList
|
||||
});
|
||||
|
||||
$("#designerGroupInsertForm").submit(function(){
|
||||
doSubmit(this);
|
||||
});
|
||||
|
||||
function doSubmit(form){
|
||||
var type0 = relatedType0.getValue("value");
|
||||
$("#type0").val(JSON.stringify(type0));
|
||||
var type1 = relatedType1.getValue("value");
|
||||
$("#type1").val(JSON.stringify(type1));
|
||||
var type2 = relatedType2.getValue("value");
|
||||
$("#type2").val(JSON.stringify(type2));
|
||||
var type3 = relatedType3.getValue("value");
|
||||
$("#type3").val(JSON.stringify(type3));
|
||||
var type4 = relatedType4.getValue("value");
|
||||
$("#type4").val(JSON.stringify(type4));
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designerGroup.htm" "接单条件组管理" "增加接单条件组")}
|
||||
${zhiqim_manager_content()}
|
||||
<form id="designerGroupInsertForm" name="theForm" method="post" action="designerGroupInsert.htm" data-role="z-call-frame">
|
||||
<input id="type0" name="type0" type="hidden" />
|
||||
<input id="type1" name="type1" type="hidden" />
|
||||
<input id="type2" name="type2" type="hidden" />
|
||||
<input id="type3" name="type3" type="hidden" />
|
||||
<input id="type4" name="type4" type="hidden" />
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加接单条件组</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">接单条件组名:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<input name="designerGroupName" class="z-input z-w300 ${zmr_color_class}" maxlength="16"><span class="z-color-red z-mg-r40"> *</span>
|
||||
备注:
|
||||
<input name="remark" class="z-input z-w300 ${zmr_color_class}" maxlength="16">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>关联渠道:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllChannel" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('merchantIds', this.checked ? 1 : 2);" data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : merchantList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="merchantIds" onclick="" class="z-checkbox" value="${item.getMerchantId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getMerchantName()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>特殊标识:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质订单">
|
||||
<input type="checkbox" name="isHighQualityOrder" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="大金额订单">
|
||||
<input type="checkbox" name="isLargeAmount" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">大金额订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||||
<input type="checkbox" name="isUrgent" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="仅设计不印刷">
|
||||
<input type="checkbox" name="isDesign" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">仅设计不印刷</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="异形订单">
|
||||
<input type="checkbox" name="isSpecial" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">异形订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="异形订单">
|
||||
订单金额范围:
|
||||
<input id="merMinOrderAmount" name="minOrderAmount" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最小金额">
|
||||
-
|
||||
<input id="merMaxOrderAmount" name="maxOrderAmount" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最大金额">
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师表里未完成订单数量>=该值,系统派单/人工指单将会失败">
|
||||
最大接单数量:
|
||||
<input id="maxOrderNum" name="maxOrderNum" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" /><span class="z-color-red z-mg-r40"> *</span>
|
||||
</div>
|
||||
<div>
|
||||
最大可放弃次数:
|
||||
<input id="maxWaiveNum" name="maxWaiveNum" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" /><span class="z-color-red z-mg-r40"> *</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>关联产品:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>标准自来稿:</label>
|
||||
<div id="relatedType0" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>改稿自来稿:</label>
|
||||
<div id="relatedType4" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>普通设计:</label>
|
||||
<div id="relatedType1" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>资深设计:</label>
|
||||
<div id="relatedType2" style="width: 250px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none;">
|
||||
<td>关联行业:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div id="relatedType3" style="width: 600px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持后加工:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllAfter" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('afterNames', this.checked ? 1 : 2);" <#if Lists.toStringList(orgMer.getAfterNames()).size()==afterList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : afterList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="afterNames" onclick="" class="z-checkbox" value="${item}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,293 @@
|
||||
${zhiqim_manager_breadcrumb("接单条件组接单管理")}
|
||||
${zhiqim_manager_content()}
|
||||
<style>
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.slider {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #ccc;
|
||||
transition: .4s;
|
||||
border-radius:20%;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
left: 2px;
|
||||
bottom: 2px;
|
||||
border-radius:50%;
|
||||
background-color: white;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.labelOn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 10px;
|
||||
font-size: 14px;
|
||||
color: white;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
.labelOff {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 30px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .slider {
|
||||
background-color: #2196F3;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .slider:before {
|
||||
transform: translateX(50px);
|
||||
}
|
||||
|
||||
</style>
|
||||
<#-- 导航 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('receiveMerManage.htm');">组织接单</li>
|
||||
<li onclick="Z.L.href('designerGroup.htm');">接单条件组</li>
|
||||
<li class="z-active">设计师接单</li>
|
||||
<li onclick="Z.L.href('dispatchStat.htm');">派单统计</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm">
|
||||
<select name="designerGroupId" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">选择条件组</option>
|
||||
<#for item : designerGroupList>
|
||||
<option value="${item.getDesignerGroupId()}" <#if item.getDesignerGroupId() == designerGroupId>selected</#if>>${item.getDesignerGroupName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<select name="orgId" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">选择组织</option>
|
||||
<#for item : orgList>
|
||||
<option value="${item.getOrgId()}" <#if orgId == item.getOrgId()>selected</#if>>${item.getOrgName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w150 zi-bd-r-none" name="operatorCode" value="${operatorCode}" placeholder="操作员"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-float-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('designerGroupDispatchAdd.htm');"><i class="z-font z-add"></i>增加设计师配置</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('designerGroupDispatchModify.htm', 'operatorCode');"><i class="z-font z-modify"></i>修改设计师配置</button>
|
||||
<button class="z-button z-red" onclick="Z.Location.confirm('/designerGroupDispatchDelete.htm', '确认要删除该配置信息?','operatorCode');"><i class="z-font z-delete"></i>删除设计师配置</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table id="tableDispatch" class="z-table z-bordered z-h40-tr z-text-center z-bg-white">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="50">选择</td>
|
||||
<td width="120">设计师</td>
|
||||
<td width="150">接单条件组</td>
|
||||
<td width="150">独立特殊标识</td>
|
||||
<td width="150">独立接单金额</td>
|
||||
<td width="450">独立稿件类型</td>
|
||||
<td width="50">独立最大接单量</td>
|
||||
<td width="80">是否显示佣金</td>
|
||||
<td width="80">是否显示抢单大厅</td>
|
||||
<td width="10%">操作时间</td>
|
||||
<td width="5%">操作人</td>
|
||||
<td width="80">状态</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="operatorCode" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOperatorCode()}"></td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${designerGroupMap.get(item.getDesignerGroupId())}</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>
|
||||
<#if item.getMinOrderAmount() gt 0 || item.getMaxOrderAmount() gt 0>
|
||||
${Amounts.toYuanMustRadix(item.getMinOrderAmount())}元 - ${Amounts.toYuanMustRadix(item.getMaxOrderAmount())}元
|
||||
</#if>
|
||||
</td>
|
||||
<td>
|
||||
<#var designerGroupDispatchValue = ORM.get(ZTable.class).list(DesignerGroupDispatchValue.class, new Selector("operatorCode", item.getOperatorCode()))/>
|
||||
<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 : designerGroupDispatchValue>
|
||||
<#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 : designerGroupDispatchValue>
|
||||
<#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 : designerGroupDispatchValue>
|
||||
<#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 : designerGroupDispatchValue>
|
||||
<#if value.getRelatedType()==2>${typeMap.get(value.getRelatedValue())},</#if>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<#if item.getMaxOrderNum() gt 0>
|
||||
${item.getMaxOrderNum()}
|
||||
</#if>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<label class="switch">
|
||||
<input <#if item.getIsShowCost() == 1>checked</#if> type="checkbox" id="toggleSwitch" onclick="doUpdateDesignerGroupDispatchIsShowCost('${item.getOperatorCode()}',${item.getIsShowCost()})">
|
||||
<span class="slider"></span>
|
||||
<#if item.getIsShowCost() == 1>
|
||||
<span class="labelOn">显示</span>
|
||||
<#else>
|
||||
<span class="labelOff">不显示</span>
|
||||
</#if>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="switch">
|
||||
<input <#if item.getIsShowQddt() == 1>checked</#if> type="checkbox" id="toggleSwitchQddt" onclick="doUpdateDesignerGroupDispatchIsShowQddt('${item.getOperatorCode()}',${item.getIsShowQddt()})">
|
||||
<span class="slider"></span>
|
||||
<#if item.getIsShowQddt() == 1>
|
||||
<span class="labelOn">显示</span>
|
||||
<#else>
|
||||
<span class="labelOff">不显示</span>
|
||||
</#if>
|
||||
</label>
|
||||
</td>
|
||||
<td>${Sqls.toDateTimeString(item.getModifyTime())}</td>
|
||||
<td>${item.getModifyOperatorCode()}</td>
|
||||
<td>
|
||||
<#if item.getStatus() == 1>
|
||||
<button class="z-button z-green" onclick="doUpdateDesignerGroupDispatchStatus('${item.getOperatorCode()}',${item.getStatus()})">
|
||||
已启用
|
||||
</button>
|
||||
<#else>
|
||||
<button class="z-button z-red" onclick="doUpdateDesignerGroupDispatchStatus('${item.getOperatorCode()}',${item.getStatus()})">
|
||||
已停用
|
||||
</button>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
<script>
|
||||
|
||||
function doUpdateDesignerGroupDispatchStatus(operatorCode,status){
|
||||
Z.confirm("确认" + (status == 1 ? "停用" : "启用") + "该设计师的接单配置?",function(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doUpdateDesignerGroupDispatchStatus");
|
||||
ajax.addParam("operatorCode",operatorCode);
|
||||
ajax.addParam("status",status == 1?0:1);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success('修改成功', function(){
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();/*
|
||||
* }); }
|
||||
*
|
||||
* /*const toggleSwitch = document.getElementById("toggleSwitch");
|
||||
* const onText = document.getElementById("onText"); const offText =
|
||||
* document.getElementById("offText");
|
||||
* // 监听开关状态改变事件,并更新汉字的显示 toggleSwitch.addEventListener("change",
|
||||
* function() { if (this.checked) { onText.style.display = "block";
|
||||
* offText.style.display = "none"; } else { onText.style.display =
|
||||
* "none"; offText.style.displa
|
||||
y = "block";*/
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function doUpdateDesignerGroupDispatchIsShowCost(operatorCode,isShowCost){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doUpdateDesignerGroupDispatchIsShowCost");
|
||||
ajax.addParam("operatorCode",operatorCode);
|
||||
ajax.addParam("isShowCost",isShowCost == 0?1:0);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success('修改成功', function(){
|
||||
location.reload();
|
||||
//$("#tableDispatch").reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doUpdateDesignerGroupDispatchIsShowQddt(operatorCode,isShowQddt){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doUpdateDesignerGroupDispatchIsShowQddt");
|
||||
ajax.addParam("operatorCode",operatorCode);
|
||||
ajax.addParam("isShowQddt",isShowQddt == 0?1:0);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success('修改成功', function(){
|
||||
location.reload();
|
||||
//$("#tableDispatch").reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
var toggleSwitches = document.querySelectorAll('input[type="checkbox"]');
|
||||
for (var i = 0; i < toggleSwitches.length; i++) {
|
||||
toggleSwitches[i].addEventListener("click", function(event) {
|
||||
event.preventDefault(); // 阻止事件的默认行为
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
${zhiqim_manager_paging(pageResult, "designerGroupDispatch.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,253 @@
|
||||
${zhiqim_manager_breadcrumb("接单条件组接单管理")}
|
||||
${zhiqim_manager_content()}
|
||||
<style>
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.slider {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #ccc;
|
||||
transition: .4s;
|
||||
border-radius:20%;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
left: 2px;
|
||||
bottom: 2px;
|
||||
border-radius:50%;
|
||||
background-color: white;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.labelOn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 10px;
|
||||
font-size: 14px;
|
||||
color: white;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
.labelOff {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 30px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
z-index:999;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .slider {
|
||||
background-color: #2196F3;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .slider:before {
|
||||
transform: translateX(50px);
|
||||
}
|
||||
|
||||
</style>
|
||||
<#-- 导航 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">设计师接单</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm">
|
||||
<select name="designerGroupId" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">选择条件组</option>
|
||||
<#for item : designerGroupList>
|
||||
<option value="${item.getDesignerGroupId()}" <#if item.getDesignerGroupId() == designerGroupId>selected</#if>>${item.getDesignerGroupName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<select name="orgId" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">选择组织</option>
|
||||
<#for item : orgList>
|
||||
<option value="${item.getOrgId()}" <#if orgId == item.getOrgId()>selected</#if>>${item.getOrgName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w150 zi-bd-r-none" name="operatorCode" value="${operatorCode}" placeholder="操作员"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-float-right z-mg-t10 z-mg-r5">
|
||||
<#-- <button class="z-button ${zmr_color_class}" onclick="Z.L.href('designerGroupDispatchAdd.htm');"><i class="z-font z-add"></i>增加设计师配置</button>
|
||||
-->
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('designerGroupDispatchModify2.htm', 'operatorCode');"><i class="z-font z-modify"></i>修改设计师配置</button>
|
||||
<#-- <button class="z-button z-red" onclick="Z.Location.confirm('/designerGroupDispatchDelete.htm', '确认要删除该配置信息?','operatorCode');"><i class="z-font z-delete"></i>删除设计师配置</button>
|
||||
-->
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table id="tableDispatch" class="z-table z-bordered z-h40-tr z-text-center z-bg-white">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="50">选择</td>
|
||||
<td width="120">设计师</td>
|
||||
<td width="150">接单条件组</td>
|
||||
<td width="150">独立特殊标识</td>
|
||||
<td width="150">独立接单金额</td>
|
||||
<td width="450">独立稿件类型</td>
|
||||
<td width="50">独立最大接单量</td>
|
||||
<td width="80">是否显示佣金</td>
|
||||
<td width="10%">操作时间</td>
|
||||
<td width="5%">操作人</td>
|
||||
<td width="80">状态</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="operatorCode" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOperatorCode()}"></td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${designerGroupMap.get(item.getDesignerGroupId())}</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>
|
||||
<#if item.getMinOrderAmount() gt 0 || item.getMaxOrderAmount() gt 0>
|
||||
${Amounts.toYuanMustRadix(item.getMinOrderAmount())}元 - ${Amounts.toYuanMustRadix(item.getMaxOrderAmount())}元
|
||||
</#if>
|
||||
</td>
|
||||
<td>
|
||||
<#var designerGroupDispatchValue = ORM.get(ZTable.class).list(DesignerGroupDispatchValue.class, new Selector("operatorCode", item.getOperatorCode()))/>
|
||||
<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 : designerGroupDispatchValue>
|
||||
<#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 : designerGroupDispatchValue>
|
||||
<#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 : designerGroupDispatchValue>
|
||||
<#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 : designerGroupDispatchValue>
|
||||
<#if value.getRelatedType()==2>${typeMap.get(value.getRelatedValue())},</#if>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<#if item.getMaxOrderNum() gt 0>
|
||||
${item.getMaxOrderNum()}
|
||||
</#if>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<label class="switch">
|
||||
<input <#if item.getIsShowCost() == 1>checked</#if> type="checkbox" id="toggleSwitch" onclick="doUpdateDesignerGroupDispatchIsShowCost('${item.getOperatorCode()}',${item.getIsShowCost()})">
|
||||
<span class="slider"></span>
|
||||
<#if item.getIsShowCost() == 1>
|
||||
<span class="labelOn">显示</span>
|
||||
<#else>
|
||||
<span class="labelOff">不显示</span>
|
||||
</#if>
|
||||
</label>
|
||||
</td>
|
||||
<td>${Sqls.toDateTimeString(item.getModifyTime())}</td>
|
||||
<td>${item.getModifyOperatorCode()}</td>
|
||||
<td>
|
||||
<#if item.getStatus() == 1>
|
||||
<button class="z-button z-green" onclick="doUpdateDesignerGroupDispatchStatus('${item.getOperatorCode()}',${item.getStatus()})">
|
||||
已启用
|
||||
</button>
|
||||
<#else>
|
||||
<button class="z-button z-red" onclick="doUpdateDesignerGroupDispatchStatus('${item.getOperatorCode()}',${item.getStatus()})">
|
||||
已停用
|
||||
</button>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
<script>
|
||||
|
||||
function doUpdateDesignerGroupDispatchStatus(operatorCode,status){
|
||||
Z.confirm("确认" + (status == 1 ? "停用" : "启用") + "该设计师的接单配置?",function(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doUpdateDesignerGroupDispatchStatus");
|
||||
ajax.addParam("operatorCode",operatorCode);
|
||||
ajax.addParam("status",status == 1?0:1);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success('修改成功', function(){
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function doUpdateDesignerGroupDispatchIsShowCost(operatorCode,isShowCost){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doUpdateDesignerGroupDispatchIsShowCost");
|
||||
ajax.addParam("operatorCode",operatorCode);
|
||||
ajax.addParam("isShowCost",isShowCost == 0?1:0);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success('修改成功', function(){
|
||||
location.reload();
|
||||
//$("#tableDispatch").reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
var toggleSwitches = document.querySelectorAll('input[type="checkbox"]');
|
||||
for (var i = 0; i < toggleSwitches.length; i++) {
|
||||
toggleSwitches[i].addEventListener("click", function(event) {
|
||||
event.preventDefault(); // 阻止事件的默认行为
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
${zhiqim_manager_paging(pageResult, "designerGroupDispatch.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,288 @@
|
||||
${zhiqim_manager_history("designerGroupDispatch.htm")}
|
||||
${request.getValidateScript()}
|
||||
${Scripts.src("/zinc/layui/layui.js")}
|
||||
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
|
||||
<style>
|
||||
|
||||
xm-select div:not(span) {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.layui-form-select dl dd.layui-this {
|
||||
background-color: #1E9FFF;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
layui.config({
|
||||
base: '../zinc/module/'
|
||||
}).extend({
|
||||
xmSelect: 'xmSelect/xm-select',
|
||||
}).use(['jquery','xmSelect','form'], function () {
|
||||
var $ = layui.$;
|
||||
var xmSelect = layui.xmSelect;
|
||||
var typeList = ${typeList};
|
||||
var industryList = ${industryList};
|
||||
var relatedType0 = xmSelect.render({
|
||||
el: '#relatedType0',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType4 = xmSelect.render({
|
||||
el: '#relatedType4',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType1 = xmSelect.render({
|
||||
el: '#relatedType1',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType2 = xmSelect.render({
|
||||
el: '#relatedType2',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
data: typeList
|
||||
});
|
||||
var relatedType3 = xmSelect.render({
|
||||
el: '#relatedType3',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'industryName',
|
||||
value: 'industryId',
|
||||
},
|
||||
data: industryList
|
||||
});
|
||||
|
||||
$("#designerGroupDispatchInsertForm").submit(function(){
|
||||
doSubmit(this);
|
||||
});
|
||||
|
||||
function doSubmit(form){
|
||||
var type0 = relatedType0.getValue("value");
|
||||
$("#type0").val(JSON.stringify(type0));
|
||||
var type1 = relatedType1.getValue("value");
|
||||
$("#type1").val(JSON.stringify(type1));
|
||||
var type2 = relatedType2.getValue("value");
|
||||
$("#type2").val(JSON.stringify(type2));
|
||||
var type3 = relatedType3.getValue("value");
|
||||
$("#type3").val(JSON.stringify(type3));
|
||||
var type4 = relatedType4.getValue("value");
|
||||
$("#type4").val(JSON.stringify(type4));
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designerGroupDispatch.htm" "接单配置" "增加设计师配置")}
|
||||
${zhiqim_manager_content()}
|
||||
<form id="designerGroupDispatchInsertForm" name="theForm" method="post" action="designerGroupDispatchInsert.htm" data-role="z-call-frame">
|
||||
<input id="type0" name="type0" type="hidden" />
|
||||
<input id="type1" name="type1" type="hidden" />
|
||||
<input id="type2" name="type2" type="hidden" />
|
||||
<input id="type3" name="type3" type="hidden" />
|
||||
<input id="type4" name="type4" type="hidden" />
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加设计师配置</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">接单条件组:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="designerGroupId" name="designerGroupId" lay-filter="designerGroupId">
|
||||
<option value="">请选择</option>
|
||||
<#for item : designerGroupList>
|
||||
<option value="${item.getDesignerGroupId()}">${item.getDesignerGroupName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</div>
|
||||
<span class="z-color-red z-mg-r40"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">设计师:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select name="operatorCode" lay-search lay-filter="aihao">
|
||||
<option value="">请选择</option>
|
||||
<#for item : operatorList>
|
||||
<option value="${item.getOperatorCode()}">${item.getOperatorCode()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</div>
|
||||
<span class="z-color-red z-mg-r40"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">是否显示佣金:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="isShowCost" name="isShowCost">
|
||||
<option value="">请选择</option>
|
||||
<option selected value="1">是</option>
|
||||
<option value="0">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">是否显示抢单大厅:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="isShowQddt" name="isShowQddt">
|
||||
<option value="">请选择</option>
|
||||
<option selected value="1">是</option>
|
||||
<option value="0">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立关联渠道:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllChannel" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('merchantIds', this.checked ? 1 : 2);" data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : merchantList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="merchantIds" onclick="" class="z-checkbox" value="${item.getMerchantId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getMerchantName()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立特殊标识:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质订单">
|
||||
<input type="checkbox" name="isHighQualityOrder" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="大金额订单">
|
||||
<input type="checkbox" name="isLargeAmount" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">大金额订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||||
<input type="checkbox" name="isUrgent" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="仅设计不印刷">
|
||||
<input type="checkbox" name="isDesign" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">仅设计不印刷</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="异形订单">
|
||||
<input type="checkbox" name="isSpecial" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">异形订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="异形订单">
|
||||
订单金额范围:
|
||||
<input id="merMinOrderAmount" name="minOrderAmount" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最小金额">
|
||||
-
|
||||
<input id="merMaxOrderAmount" name="maxOrderAmount" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最大金额">
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师表里未完成订单数量>=该值,系统派单/人工指单将会失败">
|
||||
最大接单数量:
|
||||
<input id="maxOrderNum" name="maxOrderNum" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立关联产品:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>标准自来稿:</label>
|
||||
<div id="relatedType0" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>改稿自来稿:</label>
|
||||
<div id="relatedType4" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>普通设计:</label>
|
||||
<div id="relatedType1" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>资深设计:</label>
|
||||
<div id="relatedType2" style="width: 250px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none;">
|
||||
<td>独立关联行业:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div id="relatedType3" style="width: 600px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立支持后加工:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllAfter" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('afterNames', this.checked ? 1 : 2);" data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : afterList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="afterNames" onclick="" class="z-checkbox" value="${item}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>初/定稿免检产品:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllFreeCheckType" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('freeCheckTypes', this.checked ? 1 : 2);" data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : designTypeList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item.getTypeName()}">
|
||||
<input type="checkbox" name="freeCheckTypes" onclick="" class="z-checkbox" value="${item.getTypeId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getTypeName()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,85 @@
|
||||
${zhiqim_manager_breadcrumb("商户分拣日志")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function doViewAnalysis(designId, desTime)
|
||||
{//
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doViewDesignerGroupDispatchLogAnalysis");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.addParam("desTime", desTime);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
if (obj.analysisText)
|
||||
console.log(Z.J.toObject(obj.analysisText));//打印分析结果
|
||||
else
|
||||
console.log(obj.analysisResult);//打印分析结果
|
||||
|
||||
var analysis_html = obj.resultHtml;
|
||||
var content = "";
|
||||
content += "<div id='Z_Dialog_Analysis_Detail'>";
|
||||
content += analysis_html;
|
||||
content += "</div>"
|
||||
|
||||
Z.dialog({id:"Analysis_Detail", title: "<span id='Z_Dialog_Analysis_Title'>["+designId+"]分拣分析详情</span>", text: content, width: 900, height: 480,shadow: true });
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/waitDisOrder.htm")><li onclick="Z.L.href('waitDisOrder.htm');">待派订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchLog.htm")><li onclick="Z.L.href('dispatchLog.htm');">派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisMerOrder.htm")><li onclick="Z.L.href('waitDisMerOrder.htm');">待分拣订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/merDispatchLog.htm")><li onclick="Z.L.href('merDispatchLog.htm');">商户分拣日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisDesignerGroupOrder.htm")><li onclick="Z.L.href('waitDisDesignerGroupOrder.htm');">新待派订单</li></#if>
|
||||
<li class="z-active">新派单日志</li>
|
||||
<#if ZmrPathRule.check(request, "/dispatchStat.htm")><li onclick="Z.L.href('dispatchStat.htm');">分拣统计</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchWaitStat.htm")><li onclick="Z.L.href('dispatchWaitStat.htm');">待派统计</li></#if>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/designerGroupDispatchLog.htm">
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w150 zi-bd-r-none" name="designId" value="${designId}" placeholder="订单号"/>
|
||||
<input class="z-float-left z-input z-input ${zmr_color_class} z-w100" name="destime" onfocus="Z.date(this);" value="${destime}" placeholder="分拣日期"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-text-center z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="8"> 商户分拣日志列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="20%">订单号</td>
|
||||
<td width="20%">分拣时间</td>
|
||||
<td width="*">分拣描述</td>
|
||||
<td width="120">操作</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="3">暂不存在商户分拣日志信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${item.getDesignId()}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesTime())}</td>
|
||||
<td>${item.getDisDesc()}</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmptyBlank(item.getAnalysisText())>
|
||||
<button type="button" class="z-button z-cyan" onclick="doViewAnalysis('${item.getDesignId()}', '${Sqls.toDateTimeString(item.getDesTime())}')")><i class="z-font z-query"></i>查看分析</button>
|
||||
</#if>
|
||||
<span class="z-hide">${item.getAnalysisText()}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/merDispatchLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,303 @@
|
||||
${zhiqim_manager_history("designerGroupDispatch.htm")}
|
||||
${request.getValidateScript()}
|
||||
${Scripts.src("/zinc/layui/layui.js")}
|
||||
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
|
||||
<style>
|
||||
|
||||
xm-select div:not(span) {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.layui-form-select dl dd.layui-this {
|
||||
background-color: #1E9FFF;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
layui.config({
|
||||
base: '../zinc/module/'
|
||||
}).extend({
|
||||
xmSelect: 'xmSelect/xm-select',
|
||||
}).use(['jquery','xmSelect','form'], function () {
|
||||
var $ = layui.$;
|
||||
var xmSelect = layui.xmSelect;
|
||||
var typeList = ${typeList};
|
||||
var industryList = ${industryList};
|
||||
var groupDispatchValues = ${groupDispatchValues};
|
||||
var relatedTypeValues = {
|
||||
0:new Array(),
|
||||
1:new Array(),
|
||||
2:new Array(),
|
||||
3:new Array(),
|
||||
4:new Array(),
|
||||
5:new Array(),
|
||||
};
|
||||
|
||||
$.each(groupDispatchValues,function(index,item){
|
||||
relatedTypeValues[item.relatedType].push(item.relatedValue);
|
||||
});
|
||||
|
||||
var relatedType0 = xmSelect.render({
|
||||
el: '#relatedType0',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[0],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType4 = xmSelect.render({
|
||||
el: '#relatedType4',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[4],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType1 = xmSelect.render({
|
||||
el: '#relatedType1',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[1],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType2 = xmSelect.render({
|
||||
el: '#relatedType2',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[2],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType3 = xmSelect.render({
|
||||
el: '#relatedType3',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'industryName',
|
||||
value: 'industryId',
|
||||
},
|
||||
initValue: relatedTypeValues[3],
|
||||
data: industryList
|
||||
});
|
||||
|
||||
$("#designerGroupDispatchUpdateForm").submit(function(){
|
||||
doSubmit(this);
|
||||
});
|
||||
|
||||
function doSubmit(form){
|
||||
var type0 = relatedType0.getValue("value");
|
||||
$("#type0").val(JSON.stringify(type0));
|
||||
var type1 = relatedType1.getValue("value");
|
||||
$("#type1").val(JSON.stringify(type1));
|
||||
var type2 = relatedType2.getValue("value");
|
||||
$("#type2").val(JSON.stringify(type2));
|
||||
var type3 = relatedType3.getValue("value");
|
||||
$("#type3").val(JSON.stringify(type3));
|
||||
var type4 = relatedType4.getValue("value");
|
||||
$("#type4").val(JSON.stringify(type4));
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designerGroupDispatch.htm" "接单配置" "修改设计师配置")}
|
||||
${zhiqim_manager_content()}
|
||||
<form id="designerGroupDispatchUpdateForm" name="theForm" method="post" action="designerGroupDispatchUpdate.htm" data-role="z-call-frame">
|
||||
<input id="type0" name="type0" type="hidden" />
|
||||
<input id="type1" name="type1" type="hidden" />
|
||||
<input id="type2" name="type2" type="hidden" />
|
||||
<input id="type3" name="type3" type="hidden" />
|
||||
<input id="type4" name="type4" type="hidden" />
|
||||
<input name="status" type="hidden" value="${designerGroupDispatch.getStatus()}" />
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改设计师配置</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">接单条件组:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="designerGroupId" name="designerGroupId" lay-filter="designerGroupId">
|
||||
<option value="">请选择</option>
|
||||
<#for item : designerGroupList>
|
||||
<option <#if item.getDesignerGroupId()==designerGroupDispatch.getDesignerGroupId()>selected</#if> value="${item.getDesignerGroupId()}">${item.getDesignerGroupName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</div>
|
||||
<span class="z-color-red z-mg-r40"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">是否显示佣金:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="isShowCost" name="isShowCost">
|
||||
<option value="">请选择</option>
|
||||
<option <#if designerGroupDispatch.getIsShowCost()==1>selected</#if> value="1">是</option>
|
||||
<option <#if designerGroupDispatch.getIsShowCost()==0>selected</#if> value="0">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<td width="15%">是否显示抢单大厅:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="isShowQddt" name="isShowQddt">
|
||||
<option value="">请选择</option>
|
||||
<option <#if designerGroupDispatch.getIsShowQddt()==1>selected</#if> value="1">是</option>
|
||||
<option <#if designerGroupDispatch.getIsShowQddt()==0>selected</#if> value="0">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">设计师:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<input name="operatorCode" type="hidden" value="${designerGroupDispatch.getOperatorCode()}" />
|
||||
${designerGroupDispatch.getOperatorCode()}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立关联渠道:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllChannel" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('merchantIds', this.checked ? 1 : 2);" <#if Lists.toStringList(designerGroupDispatch.getMerchantIds()).size()==merchantList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : merchantList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="merchantIds" <#if merchantIds.contains(item.getMerchantId())>checked</#if> class="z-checkbox" value="${item.getMerchantId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getMerchantName()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立特殊标识:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质订单">
|
||||
<input type="checkbox" name="isHighQualityOrder" onclick="" <#if designerGroupDispatch.isHighQualityOrder()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="大金额订单">
|
||||
<input type="checkbox" name="isLargeAmount" onclick="" <#if designerGroupDispatch.isLargeAmount()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">大金额订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||||
<input type="checkbox" name="isUrgent" onclick="" <#if designerGroupDispatch.isUrgent()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="仅设计不印刷">
|
||||
<input type="checkbox" name="isDesign" onclick="" <#if designerGroupDispatch.isDesign()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">仅设计不印刷</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="异形订单">
|
||||
<input type="checkbox" name="isSpecial" onclick="" <#if designerGroupDispatch.isSpecial()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">异形订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="异形订单">
|
||||
订单金额范围:
|
||||
<input id="merMinOrderAmount" name="minOrderAmount" value="${Amounts.toYuanMustRadix(designerGroupDispatch.getMinOrderAmount())}" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最小金额">
|
||||
-
|
||||
<input id="merMaxOrderAmount" name="maxOrderAmount" value="${Amounts.toYuanMustRadix(designerGroupDispatch.getMaxOrderAmount())}" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最大金额">
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师表里未完成订单数量>=该值,系统派单/人工指单将会失败">
|
||||
最大接单数量:
|
||||
<input id="maxOrderNum" name="maxOrderNum" value="${designerGroupDispatch.getMaxOrderNum()}" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" />
|
||||
</div>
|
||||
<div type="hidden" class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师每月可放弃的订单次数">
|
||||
<input type="hidden" id="WaiveNum" name="WaiveNum" value="${designerGroupDispatch.getWaiveNum()}" class="z-input z-w90 z-ime-disabled" maxlength="1" /><span class="z-color-red z-mg-r40"></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立关联产品:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>标准自来稿:</label>
|
||||
<div id="relatedType0" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>改稿自来稿:</label>
|
||||
<div id="relatedType4" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>普通设计:</label>
|
||||
<div id="relatedType1" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>资深设计:</label>
|
||||
<div id="relatedType2" style="width: 250px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="">
|
||||
<td>独立关联行业:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div id="relatedType3" style="width: 600px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立支持后加工:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllAfter" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('afterNames', this.checked ? 1 : 2);" <#if Lists.toStringList(designerGroupDispatch.getAfterNames()).size()==afterList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : afterList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="afterNames" <#if afterNames.contains(item)>checked</#if> class="z-checkbox" value="${item}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>初/定稿免检产品:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllFreeCheckType" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('freeCheckTypes', this.checked ? 1 : 2);" <#if freeCheckTypes.size()==designTypeList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : designTypeList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item.getTypeName()}">
|
||||
<input type="checkbox" name="freeCheckTypes" <#if Lists.contains(freeCheckTypes, null, item.getTypeId())>checked</#if> class="z-checkbox" value="${item.getTypeId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getTypeName()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,109 @@
|
||||
${zhiqim_manager_history("designerGroupDispatch2.htm")}
|
||||
${request.getValidateScript()}
|
||||
${Scripts.src("/zinc/layui/layui.js")}
|
||||
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
|
||||
<style>
|
||||
|
||||
xm-select div:not(span) {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.layui-form-select dl dd.layui-this {
|
||||
background-color: #1E9FFF;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
layui.config({
|
||||
base: '../zinc/module/'
|
||||
}).extend({
|
||||
xmSelect: 'xmSelect/xm-select',
|
||||
}).use(['jquery','xmSelect','form'], function () {
|
||||
var $ = layui.$;
|
||||
var xmSelect = layui.xmSelect;
|
||||
var typeList = ${typeList};
|
||||
var industryList = ${industryList};
|
||||
var groupDispatchValues = ${groupDispatchValues};
|
||||
var relatedTypeValues = {
|
||||
0:new Array(),
|
||||
1:new Array(),
|
||||
2:new Array(),
|
||||
3:new Array(),
|
||||
4:new Array(),
|
||||
5:new Array(),
|
||||
};
|
||||
|
||||
$.each(groupDispatchValues,function(index,item){
|
||||
relatedTypeValues[item.relatedType].push(item.relatedValue);
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("#designerGroupDispatchUpdateForm").submit(function(){
|
||||
doSubmit(this);
|
||||
});
|
||||
|
||||
function doSubmit(form){
|
||||
var type0 = relatedType0.getValue("value");
|
||||
$("#type0").val(JSON.stringify(type0));
|
||||
var type1 = relatedType1.getValue("value");
|
||||
$("#type1").val(JSON.stringify(type1));
|
||||
var type2 = relatedType2.getValue("value");
|
||||
$("#type2").val(JSON.stringify(type2));
|
||||
var type3 = relatedType3.getValue("value");
|
||||
$("#type3").val(JSON.stringify(type3));
|
||||
var type4 = relatedType4.getValue("value");
|
||||
$("#type4").val(JSON.stringify(type4));
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designerGroupDispatch2.htm" "接单配置" "修改设计师配置")}
|
||||
${zhiqim_manager_content()}
|
||||
<form id="designerGroupDispatchUpdateForm" name="theForm" method="post" action="designerGroupDispatchUpdate2.htm" data-role="z-call-frame">
|
||||
|
||||
<input name="status" type="hidden" value="${designerGroupDispatch.getStatus()}" />
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改设计师配置</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">是否显示佣金:<span class="z-color-999"></span></td>
|
||||
<td class="layui-form">
|
||||
<div style="width: 200px;display: inline-block;">
|
||||
<select id="isShowCost" name="isShowCost">
|
||||
<option value="">请选择</option>
|
||||
<option <#if designerGroupDispatch.getIsShowCost()==1>selected</#if> value="1">是</option>
|
||||
<option <#if designerGroupDispatch.getIsShowCost()==0>selected</#if> value="0">否</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">设计师:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<input name="operatorCode" type="hidden" value="${designerGroupDispatch.getOperatorCode()}" />
|
||||
${designerGroupDispatch.getOperatorCode()}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>独立特殊标识:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师表里未完成订单数量>=该值,系统派单/人工指单将会失败">
|
||||
最大接单数量:
|
||||
<input id="maxOrderNum" name="maxOrderNum" value="${designerGroupDispatch.getMaxOrderNum()}" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" />
|
||||
</div>
|
||||
<div type="hidden" class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师每月可放弃的订单次数">
|
||||
<input type="hidden" id="WaiveNum" name="WaiveNum" value="${designerGroupDispatch.getWaiveNum()}" class="z-input z-w90 z-ime-disabled" maxlength="1" /><span class="z-color-red z-mg-r40"></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,247 @@
|
||||
${zhiqim_manager_history("designerGroup.htm")}
|
||||
${request.getValidateScript()}
|
||||
${Scripts.src("/zinc/layui/layui.js")}
|
||||
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
|
||||
<style>
|
||||
|
||||
xm-select div:not(span) {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
layui.config({
|
||||
base: '../zinc/module/'
|
||||
}).extend({
|
||||
xmSelect: 'xmSelect/xm-select',
|
||||
}).use(['jquery','xmSelect'], function () {
|
||||
var $ = layui.$;
|
||||
var xmSelect = layui.xmSelect;
|
||||
var typeList = ${typeList};
|
||||
var industryList = ${industryList};
|
||||
var groupValues = ${groupValues};
|
||||
var relatedTypeValues = {
|
||||
0:new Array(),
|
||||
1:new Array(),
|
||||
2:new Array(),
|
||||
3:new Array(),
|
||||
4:new Array(),
|
||||
};
|
||||
$.each(groupValues,function(index,item){
|
||||
relatedTypeValues[item.relatedType].push(item.relatedValue);
|
||||
});
|
||||
console.log(relatedTypeValues);
|
||||
var relatedType0 = xmSelect.render({
|
||||
el: '#relatedType0',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[0],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType4 = xmSelect.render({
|
||||
el: '#relatedType4',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[4],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType1 = xmSelect.render({
|
||||
el: '#relatedType1',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[1],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType2 = xmSelect.render({
|
||||
el: '#relatedType2',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'typeName',
|
||||
value: 'typeId',
|
||||
},
|
||||
initValue: relatedTypeValues[2],
|
||||
data: typeList
|
||||
});
|
||||
var relatedType3 = xmSelect.render({
|
||||
el: '#relatedType3',
|
||||
toolbar: {show: true},
|
||||
theme: {color: '#28a3ef'},
|
||||
filterable: true,
|
||||
autoRow: true,
|
||||
prop: {
|
||||
name: 'industryName',
|
||||
value: 'industryId',
|
||||
},
|
||||
initValue: relatedTypeValues[3],
|
||||
data: industryList
|
||||
});
|
||||
|
||||
$("#designerGroupUpdateForm").submit(function(){
|
||||
doSubmit(this);
|
||||
});
|
||||
|
||||
function doSubmit(form){
|
||||
var type0 = relatedType0.getValue("value");
|
||||
$("#type0").val(JSON.stringify(type0));
|
||||
var type1 = relatedType1.getValue("value");
|
||||
$("#type1").val(JSON.stringify(type1));
|
||||
var type2 = relatedType2.getValue("value");
|
||||
$("#type2").val(JSON.stringify(type2));
|
||||
var type3 = relatedType3.getValue("value");
|
||||
$("#type3").val(JSON.stringify(type3));
|
||||
var type4 = relatedType4.getValue("value");
|
||||
$("#type4").val(JSON.stringify(type4));
|
||||
return;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designerGroup.htm" "接单条件组管理" "修改接单条件组")}
|
||||
${zhiqim_manager_content()}
|
||||
<form id="designerGroupUpdateForm" name="theForm" method="post" action="designerGroupUpdate.htm" data-role="z-call-frame">
|
||||
<input name="designerGroupId" value="${designerGroup.getDesignerGroupId()}" type="hidden" />
|
||||
<input id="type0" name="type0" type="hidden" />
|
||||
<input id="type1" name="type1" type="hidden" />
|
||||
<input id="type2" name="type2" type="hidden" />
|
||||
<input id="type3" name="type3" type="hidden" />
|
||||
<input id="type4" name="type4" type="hidden" />
|
||||
<input name="status" type="hidden" value="${designerGroup.getStatus()}" />
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改接单条件组</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%">接单条件组名:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<input name="designerGroupName" class="z-input z-w300 ${zmr_color_class}" value="${designerGroup.getDesignerGroupName()}" maxlength="16"><span class="z-color-red z-mg-r40"> *</span>
|
||||
备注:
|
||||
<input name="remark" class="z-input z-w300 ${zmr_color_class}" value="${designerGroup.getRemark()}" maxlength="16">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>关联渠道:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllChannel" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('merchantIds', this.checked ? 1 : 2);" <#if Lists.toStringList(designerGroup.getMerchantIds()).size()==merchantList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : merchantList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="merchantIds" <#if merchantIds.contains(item.getMerchantId())>checked</#if> class="z-checkbox" value="${item.getMerchantId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getMerchantName()}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>特殊标识:<span class="z-color-999"></span></td>
|
||||
<td>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质订单">
|
||||
<input type="checkbox" name="isHighQualityOrder" onclick="" <#if designerGroup.isHighQualityOrder()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="大金额订单">
|
||||
<input type="checkbox" name="isLargeAmount" onclick="" <#if designerGroup.isLargeAmount()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">大金额订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||||
<input type="checkbox" name="isUrgent" onclick="" <#if designerGroup.isUrgent()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="仅设计不印刷">
|
||||
<input type="checkbox" name="isDesign" onclick="" <#if designerGroup.isDesign()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">仅设计不印刷</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="异形订单">
|
||||
<input type="checkbox" name="isSpecial" onclick="" <#if designerGroup.isSpecial()>checked</#if> class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">异形订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="金额范围">
|
||||
订单金额范围:
|
||||
<input id="merMinOrderAmount" name="minOrderAmount" value="${Amounts.toYuanMustRadix(designerGroup.getMinOrderAmount())}" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最小金额">
|
||||
-
|
||||
<input id="merMaxOrderAmount" name="maxOrderAmount" value="${Amounts.toYuanMustRadix(designerGroup.getMaxOrderAmount())}" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最大金额">
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师表里未完成订单数量>=该值,系统派单/人工指单将会失败">
|
||||
最大接单数量:
|
||||
<input id="maxOrderNum" name="maxOrderNum" value="${designerGroup.getMaxOrderNum()}" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" /><span class="z-color-red z-mg-r40"> *</span>
|
||||
</div>
|
||||
<div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师每月可放弃的订单次数">
|
||||
最大可放弃订单次数:
|
||||
<input id="maxWaiveNum" name="maxWaiveNum" value="${designerGroup.getMaxWaiveNum()}" class="z-input z-w90 z-ime-disabled" maxlength="1" /><span class="z-color-red z-mg-r40"> *</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>关联产品:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>标准自来稿:</label>
|
||||
<div id="relatedType0" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>改稿自来稿:</label>
|
||||
<div id="relatedType4" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>普通设计:</label>
|
||||
<div id="relatedType1" style="width: 250px;"></div>
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<label>资深设计:</label>
|
||||
<div id="relatedType2" style="width: 250px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none;">
|
||||
<td>关联行业:<span class="z-color-999"></span></td>
|
||||
<td style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div id="relatedType3" style="width: 600px;"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持后加工:</td>
|
||||
<td>
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllAfter" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('afterNames', this.checked ? 1 : 2);" <#if Lists.toStringList(designerGroup.getAfterNames()).size()==afterList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#for item : afterList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="afterNames" <#if afterNames.contains(item)>checked</#if> class="z-checkbox" value="${item}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,94 @@
|
||||
${zhiqim_manager_breadcrumb("派单日志")}
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/waitDisOrder.htm")><li onclick="Z.L.href('waitDisOrder.htm');">待派订单</li></#if>
|
||||
<li class="z-active">派单日志</li>
|
||||
<#if ZmrPathRule.check(request, "/waitDisMerOrder.htm")><li onclick="Z.L.href('waitDisMerOrder.htm');">待分拣订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/merDispatchLog.htm")><li onclick="Z.L.href('merDispatchLog.htm');">商户分拣日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisDesignerGroupOrder.htm")><li onclick="Z.L.href('waitDisDesignerGroupOrder.htm');">新待派单订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designerGroupDispatchLog.htm")><li onclick="Z.L.href('designerGroupDispatchLog.htm');">新派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchStat.htm")><li onclick="Z.L.href('dispatchStat.htm');">分拣统计</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchWaitStat.htm")><li onclick="Z.L.href('dispatchWaitStat.htm');">待派统计</li></#if>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/dispatchLog.htm">
|
||||
<select name="disOrderStatus" class="z-float-left z-select ${zmr_color_class} z-w80 zi-bd-r-none">
|
||||
<option value="-1">全部</option>
|
||||
<option value="0" <#if disOrderStatus == 0>selected</#if>>已完成</option>
|
||||
<option value="1" <#if disOrderStatus == 1>selected</#if>>未完成</option>
|
||||
<option value="2" <#if disOrderStatus == 2>selected</#if>>已转让</option>
|
||||
<option value="3" <#if disOrderStatus == 3>selected</#if>>已退款</option>
|
||||
<option value="4" <#if disOrderStatus == 4>selected</#if>>已暂停</option>
|
||||
</select>
|
||||
<select name="industryId" class="z-float-left z-select ${zmr_color_class} z-w90 zi-bd-r-none">
|
||||
<option value="">选择行业</option>
|
||||
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
|
||||
<option value="${item.getIndustryId()}" <#if Validates.isEqual(item.getIndustryId(), industryId)>selected</#if>>${item.getIndustryName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w140 zi-bd-r-none" name="designId" value="${designId}" placeholder="订单号"/>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w80 zi-bd-r-none" name="operatorCode" value="${operatorCode}" placeholder="设计师"/>
|
||||
<input class="z-float-left z-input z-input ${zmr_color_class} z-w90" name="destime" onfocus="Z.date(this);" value="${destime}" placeholder="派单日期"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l6" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="8"> 派单日志列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">订单号</td>
|
||||
<td width="8%">设计师</td>
|
||||
<td width="12%">派单时间</td>
|
||||
<td width="8%">派单状态</td>
|
||||
<td width="8%">派单类型</td>
|
||||
<td width="8%">行业</td>
|
||||
<td width="25%">产品描述</td>
|
||||
<td width="*">操作描述</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="8">暂不存在派单日志信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#var industryList = Global.get(DesignIndustryCache.class).getIndustryListAll()/>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${item.getDesignId()}</td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesTime())}</td>
|
||||
<td>
|
||||
<#if item.getDisOrderStatus() ==0>订单完成</#if>
|
||||
<#if item.getDisOrderStatus() ==1><font color="red">订单未完成</font></#if>
|
||||
<#if item.getDisOrderStatus() ==2><font color="blue">订单转让</font></#if>
|
||||
<#if item.getDisOrderStatus() ==3><font color="gray">订单退款</font></#if>
|
||||
<#if item.getDisOrderStatus() ==4><font color="green">订单已暂停</font></#if>
|
||||
</td>
|
||||
<td>
|
||||
<#if item.getDisType()== 0>自动派单</#if>
|
||||
<#if item.getDisType()== 1>手工指单</#if>
|
||||
<#if item.getDisType()== 2>手动领单</#if>
|
||||
</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(industryList)>
|
||||
<#for industry : industryList>
|
||||
<#if item.getIndustryId()==industry.getIndustryId()>
|
||||
${industry.getIndustryName()}
|
||||
</#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
<td>${item.getOrderText()}</td>
|
||||
<td>${item.getDisDesc()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/dispatchLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,92 @@
|
||||
${zhiqim_manager_breadcrumb("派单属性")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">派单属性</li>
|
||||
<#if ZmrPathRule.check(request, "/designerGroup.htm")><li onclick="Z.L.href('designerGroup.htm');">接单条件组</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designerGroupDispatch.htm")><li onclick="Z.L.href('designerGroupDispatch.htm');">设计师接单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/onlineLog.htm")><li onclick="Z.L.href('onlineLog.htm');">在线设计师</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/workSearchLog.htm")><li onclick="Z.L.href('workSearchLog.htm');">工作日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/desOnlineTimeLog.htm")><li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li></#if>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/dispatchProperty.htm">
|
||||
<select name="operatorStatus" class="z-float-left z-select z-w100" data-role="z-select" data-class="zi-bd-r-none ${zmr_color_class}" onchange="this.form.submit();">
|
||||
<option value="">全部状态</option>
|
||||
<option value="0" <#if operatorStatus == 0>selected</#if>>正常</option>
|
||||
<option value="1" <#if operatorStatus == 1>selected</#if>>停用</option>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w100" name="operatorCode" value="${operatorCode}" placeholder="设计师"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="z-float-right z-mg-t10 z-mg-r5 z-mg-b6">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('/dispatchPropertyAdd.htm');"><i class="z-font z-add"></i>增加派单属性</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('/dispatchPropertyModify.htm', 'operatorCode');"><i class="z-font z-modify"></i>修改派单属性</button>
|
||||
<button class="z-button z-red" onclick="Z.Location.confirm('/dispatchPropertyDelete.htm', '确认要删除该设计师与行业关系信息?','operatorCode');"><i class="z-font z-delete"></i>删除派单属性</button>
|
||||
</div>
|
||||
<table class="z-table z-bordered z-bg-white z-pd5">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="12"> 派单属性列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="3%">选择</td>
|
||||
<td width="6%">设计师</td>
|
||||
<td width="8%">所属组织</td>
|
||||
<td width="6%">主类型</td>
|
||||
<td width="8%">副类型</td>
|
||||
<td width="8%">主行业</td>
|
||||
<td width="*">副行业</td>
|
||||
<td width="5%">级别</td>
|
||||
<td width="8%">关联店铺</td>
|
||||
<td width="90">创建时间</td>
|
||||
<td width="90">更新时间</td>
|
||||
</tr>
|
||||
<#if pageResult.total() == 0>
|
||||
${zhiqim_manager_no_record(13, "暂时没有设计师派单属性信息")}
|
||||
</#if>
|
||||
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input name="operatorCode" id="operatorCode" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getOperatorCode()}"></td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
<td><#if typeMap.containsKey(item.getMajorType())>${typeMap.get(item.getMajorType()).getTypeName()}</#if></td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(item.getSecondaryTypes())>
|
||||
<#var typeList = Lists.toLongList(item.getSecondaryTypes())/>
|
||||
<#for typeId : typeList>
|
||||
<#if typeMap.containsKey(typeId)>${typeMap.get(typeId).getTypeName()}</#if>
|
||||
<#if typeList.size() - 1 != typeId_index>-</#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
<td><#if industryMap.containsKey(item.getMajorIndustry())>${industryMap.get(item.getMajorIndustry()).getIndustryName()}</#if></td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(item.getSecondaryIndustrys())>
|
||||
<#var industryList = Lists.toLongList(item.getSecondaryIndustrys())/>
|
||||
<#for industry :industryList>
|
||||
<#if industryMap.containsKey(industry)>${industryMap.get(industry).getIndustryName()}</#if>
|
||||
<#if industryList.size() - 1 != industry_index>,</#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
<td>
|
||||
<#if item.getDesignerLevel()==0>普通</#if>
|
||||
<#if item.getDesignerLevel()==1>高级</#if>
|
||||
</td>
|
||||
<td>${item.getShopNick()}</td>
|
||||
<td>${item.getCreateTime()}</td>
|
||||
<td>${item.getUpdateTime()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/dispatchProperty.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,198 @@
|
||||
<script>
|
||||
var tempOrgId = null;
|
||||
Z.onload(function(){
|
||||
Z("#firstTypesetAuditorSpan").hide();
|
||||
tempOrgId = "${orgList.get(0).getOrgId()}";
|
||||
})
|
||||
|
||||
function doQueryOperator(orgId)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OperatorDao");
|
||||
ajax.setMethodName("getOrgOperatorAllList");
|
||||
ajax.addParam(orgId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var operatorList = Z.J.toObject(this.responseText);
|
||||
var select = Z.D.id("operatorCode");
|
||||
select.options.length = 0;
|
||||
Z.each(operatorList, function (operator, i){
|
||||
select.options[i] = new Option(operator.operatorCode, operator.operatorCode);
|
||||
})
|
||||
Z("#operatorList").htmlc(select.outerHTML);
|
||||
|
||||
tempOrgId = orgId;
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doQueryOperatorForFirstTyptSetter()
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OperatorDao");
|
||||
ajax.setMethodName("getOrgOperatorAllList");
|
||||
ajax.addParam(tempOrgId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var operatorList = Z.J.toObject(this.responseText);
|
||||
|
||||
var select2 = Z.D.id("firstTypesetAuditor");
|
||||
select2.options.length = 0;
|
||||
Z.each(operatorList, function (operator, i){
|
||||
select2.options[i] = new Option(operator.operatorCode, operator.operatorCode);
|
||||
})
|
||||
Z("#firstTypesetAuditorAddSpan2").htmlc(select2.outerHTML);
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
function doSelectTypesetter(box)
|
||||
{
|
||||
if (box.checked)
|
||||
{
|
||||
Z.FM.doSelectCheckBox('typesetAuditor', false);
|
||||
Z("#firstTypesetAuditorSpan").show();
|
||||
doQueryOperatorForFirstTyptSetter();
|
||||
}
|
||||
else
|
||||
{
|
||||
Z("#firstTypesetAuditorSpan").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function doSelectTypesetAuditor(box)
|
||||
{
|
||||
if (box.checked)
|
||||
{
|
||||
Z.FM.doSelectCheckBox('typesetter', false);
|
||||
Z("#firstTypesetAuditorSpan").hide();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("/dispatchProperty.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("/dispatchProperty.htm", "派单属性", "增加设计师派单属性")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
${zhiqim_manager_title("新增设计师派单属性")}
|
||||
<form name="theForm" action="/dispatchPropertyInsert.htm" method="post" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr>
|
||||
<td width="35%">选择商户</td>
|
||||
<td width="*">
|
||||
<select name="orgId" id="orgId" class="z-select z-w200" onchange="doQueryOperator(this.value)" data-role="z-select-search" data-class="${zmr_color_class}">
|
||||
<#for item : orgList>
|
||||
<option value="${item.getOrgId()}">${item.getOrgName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<font color=red> *</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计师</td>
|
||||
<td>
|
||||
<span id="operatorList">
|
||||
<select name="operatorCode" id="operatorCode" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
|
||||
<#for item : operatorList>
|
||||
<option value="${item.getOperatorCode()}">${item.getOperatorCode()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<span><font color=red> *</font>
|
||||
</td>
|
||||
</tr>
|
||||
<#var typeList = DesignTypeDao.list()/>
|
||||
<tr>
|
||||
<td>主产品类型:</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(typeList)>
|
||||
<#for item : typeList>
|
||||
<input name="majorType" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getTypeId()}"> ${item.getTypeName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>副产品类型(请选择):</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(typeList)>
|
||||
<#for item : typeList>
|
||||
<input name="secondaryTypes" data-role="z-checkbox" data-class="${zmr_color_class}" type="checkbox" value="${item.getTypeId()}"> ${item.getTypeName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<#var industryList = Global.get(DesignIndustryCache.class).getIndustryList()/>
|
||||
<tr>
|
||||
<td>主行业:(请选择)</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(industryList)>
|
||||
<#for item : industryList>
|
||||
<input name="majorIndustry" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getIndustryId()}"> ${item.getIndustryName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>副行业:(请选择)</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(industryList)>
|
||||
<#for item : industryList>
|
||||
<input name="secondaryIndustry" data-role="z-checkbox" data-class="${zmr_color_class}" type="checkbox" value="${item.getIndustryId()}"> ${item.getIndustryName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计师级别:(请选择)</td>
|
||||
<td>
|
||||
<select name="designerLevel" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0">普通设计师</option>
|
||||
<option value="1">资深设计师</option>
|
||||
</select> <font color=red> *</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持店铺:(请选择)</td>
|
||||
<td>
|
||||
<#for shop : shopList>
|
||||
<div class="z-float-left z-pd6">
|
||||
<input type="checkbox" name="shopNick" class="z-checkbox" value="${shop}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${shop}</span></div>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持产品类型:</td>
|
||||
<td>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="设计稿">
|
||||
<input type="checkbox" name="isDesignOrder" onclick="" class="z-checkbox" checked="checked" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">设计稿</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="标准自来稿">
|
||||
<input type="checkbox" name="isNormDraftOrder" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">标准自来稿</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="改稿自来稿">
|
||||
<input type="checkbox" name="isDraftOrder" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">改稿自来稿</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质客户订单">
|
||||
<input type="checkbox" name="isHighQualityOrder" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质客户订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||||
<input type="checkbox" name="isUrgent" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,107 @@
|
||||
${zhiqim_manager_history("/dispatchProperty.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("/dispatchProperty.htm", "设计师派单属性", "修改设计师派单属性")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
${zhiqim_manager_title("修改设计师与行业关系")}
|
||||
<form name="theForm" action="/dispatchPropertyUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="operatorCode" id="operatorCode" value="${dispatchProperty.getOperatorCode()}" type="hidden">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40">
|
||||
<td width="35%">设计师</td>
|
||||
<td width="*">${dispatchProperty.getOperatorCode()}</td>
|
||||
</tr>
|
||||
|
||||
<#var typeList = DesignTypeDao.list()/>
|
||||
<tr>
|
||||
<td>主产品类型:</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(typeList)>
|
||||
<#for item : typeList>
|
||||
<input name="majorType" data-role="z-radio" data-class="${zmr_color_class}" <#if dispatchProperty.getMajorType()== item.getTypeId()>checked="checked"</#if> type="radio" value="${item.getTypeId()}"> ${item.getTypeName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>副产品类型(请选择):</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(typeList)>
|
||||
<#for item : typeList>
|
||||
<input name="secondaryTypes" data-role="z-checkbox" data-class="${zmr_color_class}" <#if Lists.toStringList(dispatchProperty.getSecondaryTypes()).contains(""+item.getTypeId())>checked="checked"</#if> type="checkbox" value="${item.getTypeId()}"> ${item.getTypeName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<#var industryList = Global.get(DesignIndustryCache.class).getIndustryList()/>
|
||||
<tr>
|
||||
<td>主行业:(请选择)</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(industryList)>
|
||||
<#for item : industryList>
|
||||
<input name="majorIndustry" data-role="z-radio" data-class="${zmr_color_class}" <#if dispatchProperty.getMajorIndustry()== item.getIndustryId()>checked="checked"</#if> type="radio" value="${item.getIndustryId()}"> ${item.getIndustryName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>副行业:(请选择)</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmpty(industryList)>
|
||||
<#for item : industryList>
|
||||
<input name="secondaryIndustry" data-role="z-checkbox" data-class="${zmr_color_class}" id="${item.getIndustryId()}" <#if Lists.toStringList(dispatchProperty.getSecondaryIndustrys()).contains(""+item.getIndustryId())>checked="checked"</#if> type="checkbox" value="${item.getIndustryId()}"> ${item.getIndustryName()}
|
||||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计师级别:(请选择)</td>
|
||||
<td>
|
||||
<select name="designerLevel" id="designerLevel" class="z-select ${zmr_color_class} z-w200">
|
||||
<option value="0" <#if dispatchProperty.getDesignerLevel() == 0>selected</#if> >普通设计师</option>
|
||||
<option value="1" <#if dispatchProperty.getDesignerLevel() == 1>selected</#if>>资深设计师</option>
|
||||
</select> <font color=red> *</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持店铺:(请选择)</td>
|
||||
<td>
|
||||
<#for shop : shopList>
|
||||
<div class="z-float-left z-pd6">
|
||||
<input type="checkbox" name="shopNick" class="z-checkbox" <#if dispatchProperty.getShopNick().contains(shop)>checked</#if> value="${shop}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${shop}</span></div>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持产品类型:</td>
|
||||
<td>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="设计稿">
|
||||
<input type="checkbox" name="isDesignOrder" onclick="" class="z-checkbox" <#if dispatchProperty.isDesignOrder()>checked</#if> value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">设计稿</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="标准自来稿">
|
||||
<input type="checkbox" name="isNormDraftOrder" onclick="" class="z-checkbox" <#if dispatchProperty.isNormDraftOrder()>checked</#if> value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">标准自来稿</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="改稿自来稿">
|
||||
<input type="checkbox" name="isDraftOrder" onclick="" class="z-checkbox" <#if dispatchProperty.isDraftOrder()>checked</#if> value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">改稿自来稿</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质客户订单">
|
||||
<input type="checkbox" name="isHighQualityOrder" onclick="" class="z-checkbox" <#if dispatchProperty.isHighQualityOrder()>checked</#if> value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质客户订单</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||||
<input type="checkbox" name="isUrgent" onclick="" class="z-checkbox" <#if dispatchProperty.isUrgent()>checked</#if> value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,122 @@
|
||||
${Scripts.src("/zinc/chart/highcharts.js")}
|
||||
${Scripts.src("/zinc/chart/exporting.js")}
|
||||
${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{
|
||||
var sumCount = '${sumCount}';
|
||||
var chart = Highcharts.chart('container',
|
||||
{
|
||||
title: {text: '组织分拣统计分析(总单量:'+sumCount+')'},
|
||||
tooltip: {headerFormat: '{series.name}<br>',pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'},
|
||||
plotOptions:
|
||||
{
|
||||
pie:
|
||||
{
|
||||
allowPointSelect: true, // 可以被选择
|
||||
cursor: 'pointer', // 鼠标样式
|
||||
dataLabels:
|
||||
{
|
||||
enabled: true,
|
||||
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
|
||||
style: {color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}
|
||||
}
|
||||
}
|
||||
},
|
||||
series:
|
||||
[{
|
||||
type: 'pie',
|
||||
name: '组织派单占比',
|
||||
data:
|
||||
[
|
||||
<#for item : map.values()>
|
||||
['${item.getOrgName()}', ${item.getOrderNum()}],
|
||||
</#for>
|
||||
]
|
||||
}]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
${zhiqim_manager_breadcrumb("分拣统计")}
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('receiveMerManage.htm');">组织接单</li>
|
||||
<li onclick="Z.L.href('designerGroup.htm');">接单条件组</li>
|
||||
<li onclick="Z.L.href('designerGroupDispatch.htm');">设计师接单</li>
|
||||
<li class="z-active">派单统计</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="thrForm" action="/dispatchStat.htm" method="post">
|
||||
日期:
|
||||
<input name="beginDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginDate}">
|
||||
<button class="z-button z-w80 z-blue z-mg-l10"><i class="z-font z-query"></i>查询</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 分页列表-->
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr>
|
||||
<td width="60%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
|
||||
<td width="*">
|
||||
<table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left">
|
||||
<tr class="z-bg-gray">
|
||||
<td width="150">派发类型</td>
|
||||
<td width="100">单量</td>
|
||||
<td width="*">百分比</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>用户抢单</td>
|
||||
<td>${contendOrder}</td>
|
||||
<td>${Maths.division(contendOrder*100, sumCount, 1)}%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>自动派单</td>
|
||||
<td>${dispatchCount}</td>
|
||||
<td>${Maths.division(dispatchCount*100, sumCount, 1)}%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>手工指定</td>
|
||||
<td>${assignCount}</td>
|
||||
<td>${Maths.division(assignCount*100, sumCount, 1)}%</td>
|
||||
</tr>
|
||||
<tr class="z-bold">
|
||||
<td>总单量</td>
|
||||
<td colspan="2">${sumCount}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left z-mg-t30 ">
|
||||
<tr class="z-bg-gray">
|
||||
<td width="150">组织名称</td>
|
||||
<td width="80">单量</td>
|
||||
<td width="90">百分比</td>
|
||||
<td width="70">名片类</td>
|
||||
<td width="65">名片</td>
|
||||
<td width="70">彩页类</td>
|
||||
<td width="65">彩页</td>
|
||||
<td width="*">其他</td>
|
||||
</tr>
|
||||
<#for item : map.values()>
|
||||
<tr>
|
||||
<td>${item.getOrgName()}</td>
|
||||
<td>${item.getOrderNum()}</td>
|
||||
<td>${Maths.division(item.getOrderNum()*100, sumCount, 1)}%</td>
|
||||
<td>${item.getCardNum()}</td>
|
||||
<td>${item.getOnlyCardNum()}</td>
|
||||
<td>${item.getColorPageNum()}</td>
|
||||
<td>${item.getOnlyColorPageNum()}</td>
|
||||
<td>${item.getOtherNum()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,94 @@
|
||||
${Scripts.src("/zinc/chart/highcharts.js")}
|
||||
${Scripts.src("/zinc/chart/exporting.js")}
|
||||
${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{
|
||||
var sumCount = '${sumCount}';
|
||||
var chart = Highcharts.chart('container',
|
||||
{
|
||||
title: {text: '组织待派订单统计分析(总单量:'+sumCount+')'},
|
||||
tooltip: {headerFormat: '{series.name}<br>',pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'},
|
||||
plotOptions:
|
||||
{
|
||||
pie:
|
||||
{
|
||||
allowPointSelect: true, // 可以被选择
|
||||
cursor: 'pointer', // 鼠标样式
|
||||
dataLabels:
|
||||
{
|
||||
enabled: true,
|
||||
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
|
||||
style: {color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'}
|
||||
}
|
||||
}
|
||||
},
|
||||
series:
|
||||
[{
|
||||
type: 'pie',
|
||||
name: '组织占比',
|
||||
data:
|
||||
[
|
||||
<#for item : map.values()>
|
||||
['${item.getOrgName()}', ${item.getOrderNum()}],
|
||||
</#for>
|
||||
]
|
||||
}]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
${zhiqim_manager_breadcrumb("待派统计")}
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/waitDisOrder.htm")><li onclick="Z.L.href('waitDisOrder.htm');">待派订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchLog.htm")><li onclick="Z.L.href('dispatchLog.htm');">派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisMerOrder.htm")><li onclick="Z.L.href('waitDisMerOrder.htm');">待分拣订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/merDispatchLog.htm")><li onclick="Z.L.href('merDispatchLog.htm');">商户分拣日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisDesignerGroupOrder.htm")><li onclick="Z.L.href('waitDisDesignerGroupOrder.htm');">新待派单订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designerGroupDispatchLog.htm")><li onclick="Z.L.href('designerGroupDispatchLog.htm');">新派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchStat.htm")><li onclick="Z.L.href('dispatchStat.htm');">分拣统计</li></#if>
|
||||
<li class="z-active">待派统计</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 分页列表-->
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr>
|
||||
<td width="60%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
|
||||
<td width="*">
|
||||
<table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left z-mg-t30 ">
|
||||
<tr class="z-bg-gray">
|
||||
<td width="150">组织名称</td>
|
||||
<td width="80">单量</td>
|
||||
<td width="90">百分比</td>
|
||||
<td width="70">名片类</td>
|
||||
<td width="65">名片</td>
|
||||
<td width="70">彩页类</td>
|
||||
<td width="65">彩页</td>
|
||||
<td width="*">其他</td>
|
||||
</tr>
|
||||
<#for item : map.values()>
|
||||
<tr>
|
||||
<td>${item.getOrgName()}</td>
|
||||
<td>${item.getOrderNum()}</td>
|
||||
<td>${Maths.division(item.getOrderNum()*100, sumCount, 1)}%</td>
|
||||
<td>${item.getCardNum()}</td>
|
||||
<td>${item.getOnlyCardNum()}</td>
|
||||
<td>${item.getColorPageNum()}</td>
|
||||
<td>${item.getOnlyColorPageNum()}</td>
|
||||
<td>${item.getOtherNum()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
<tr class="z-bold">
|
||||
<td>总待派订单</td>
|
||||
<td colspan="5">${sumCount}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,85 @@
|
||||
${zhiqim_manager_breadcrumb("商户分拣日志")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function doViewAnalysis(designId, desTime)
|
||||
{//
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DisaptchPresenter");
|
||||
ajax.setMethodName("doViewMerDispatchLogAnalysis");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.addParam("desTime", desTime);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
if (obj.analysisText)
|
||||
console.log(Z.J.toObject(obj.analysisText));//打印分析结果
|
||||
else
|
||||
console.log(obj.analysisResult);//打印分析结果
|
||||
|
||||
var analysis_html = obj.resultHtml;
|
||||
var content = "";
|
||||
content += "<div id='Z_Dialog_Analysis_Detail'>";
|
||||
content += analysis_html;
|
||||
content += "</div>"
|
||||
|
||||
Z.dialog({id:"Analysis_Detail", title: "<span id='Z_Dialog_Analysis_Title'>["+designId+"]分拣分析详情</span>", text: content, width: 900, height: 480,shadow: true });
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/waitDisOrder.htm")><li onclick="Z.L.href('waitDisOrder.htm');">待派订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchLog.htm")><li onclick="Z.L.href('dispatchLog.htm');">派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisMerOrder.htm")><li onclick="Z.L.href('waitDisMerOrder.htm');">待分拣订单</li></#if>
|
||||
<li class="z-active">商户分拣日志</li>
|
||||
<#if ZmrPathRule.check(request, "/waitDisDesignerGroupOrder.htm")><li onclick="Z.L.href('waitDisDesignerGroupOrder.htm');">新待派单订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designerGroupDispatchLog.htm")><li onclick="Z.L.href('designerGroupDispatchLog.htm');">新派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchStat.htm")><li onclick="Z.L.href('dispatchStat.htm');">分拣统计</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchWaitStat.htm")><li onclick="Z.L.href('dispatchWaitStat.htm');">待派统计</li></#if>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/merDispatchLog.htm">
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w150 zi-bd-r-none" name="designId" value="${designId}" placeholder="订单号"/>
|
||||
<input class="z-float-left z-input z-input ${zmr_color_class} z-w100" name="destime" onfocus="Z.date(this);" value="${destime}" placeholder="分拣日期"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-text-center z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="8"> 商户分拣日志列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="20%">订单号</td>
|
||||
<td width="20%">分拣时间</td>
|
||||
<td width="*">分拣描述</td>
|
||||
<td width="120">操作</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="3">暂不存在商户分拣日志信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${item.getDesignId()}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesTime())}</td>
|
||||
<td>${item.getDisDesc()}</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmptyBlank(item.getAnalysisText())>
|
||||
<button type="button" class="z-button z-cyan" onclick="doViewAnalysis('${item.getDesignId()}', '${Sqls.toDateTimeString(item.getDesTime())}')")><i class="z-font z-query"></i>查看分析</button>
|
||||
</#if>
|
||||
<span class="z-hide">${item.getAnalysisText()}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/merDispatchLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,61 @@
|
||||
${zhiqim_manager_breadcrumb("在线设计师")}
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
|
||||
<li class="z-active">在线设计师</li>
|
||||
<li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
|
||||
<li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
|
||||
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
|
||||
<li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
|
||||
<li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/onlineLog.htm">
|
||||
<select name="onlineStatus" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="z-blue">
|
||||
<option value="-1">全部</option>
|
||||
<option value="0" <#if onlineStatus == 0>selected</#if>>停止接单</option>
|
||||
<option value="1" <#if onlineStatus == 1>selected</#if>>正在接单</option>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w100" name="operatorCode" value="${operatorCode}" placeholder="设计师"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">组织</td>
|
||||
<td width="10%">设计师</td>
|
||||
<td width="10%">接单状态</td>
|
||||
<td width="10%">未完成订单数</td>
|
||||
<td width="10%">最近开启接单时间</td>
|
||||
<td width="10%">最近初稿类型</td>
|
||||
<td width="15%">最近初稿提交时间</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="8">无数据</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>
|
||||
<#if item.getOnlineStatus()== 0>停止接单</#if>
|
||||
<#if item.getOnlineStatus()== 1>正在接单</#if>
|
||||
</td>
|
||||
<td>${item.getOrderNum()}</td>
|
||||
<td>${item.getSessionTime()}</td>
|
||||
<td>${typeMap.get(item.getLastDraftType()).getTypeName()}</td>
|
||||
<td>${item.getLastDraftTime()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/onlineLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,71 @@
|
||||
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
|
||||
<div id="resultHtml">
|
||||
<#if analysisResult.isOldUser()>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">${analysisResult.getDispatchMsg()}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<#else>
|
||||
<#for merResult : analysisResult.getMerAnalysisList()>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-w160">【${merResult.getOrgName()}】</div>
|
||||
<div class="z-bold z-float-left z-px14 z-w120">分拣优先级:${merResult.getAnalysisMer().getMerLevel()}</div>
|
||||
<div class="z-bold z-float-left z-bold z-px14 ">分析时间:${merResult.getAnalysisTime()}</div>
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">结果描述:<span style="color:<#if merResult.isSuccess()>rgb(93, 200, 95)<#else>red</#if>"><#if Validates.isNotEmptyBlank(merResult.getMerMsg())>${merResult.getMerMsg()}<#else>分拣失败</#if></span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">条件匹配</td>
|
||||
<td width="*%">条件匹配描述</td>
|
||||
</tr>
|
||||
<#var resultList = merResult.getResultList()/>
|
||||
<#if resultList != null>
|
||||
<#for result : resultList>
|
||||
<tr class="z-text-center z-h40 <#if result.isSuccess()>result-true<#else>result-false</#if>" style="color:<#if result.isSuccess()>rgb(93, 200, 95)<#else>red</#if>">
|
||||
<td width="100"><#if result.isSuccess()>成功<#else>失败</#if></td>
|
||||
<td width="*%">${result.getConditionMsg()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</#if>
|
||||
</table>
|
||||
<#if Validates.isNotEmpty(merResult.getDesignerScoreList())>
|
||||
<#for designer : merResult.getDesignerScoreList()>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#d9ebfb">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14">【${merResult.getOrgName()}】【${designer.getOperatorCode()}】</div>
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">分析结果:<#if designer.isSuccess() && designer.getOperatorCode().equals(analysisResult.getDesigner())><span style="color:rgb(93, 200, 95)">派单成功<#else><span style="color:red">派单失败</#if></span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="#eff8ff">
|
||||
<td width="100">条件匹配</td>
|
||||
<td width="*%">条件匹配描述</td>
|
||||
</tr>
|
||||
<#var resultList = designer.getResultList()/>
|
||||
<#if resultList != null>
|
||||
<#for result : resultList>
|
||||
<tr bgcolor="#eff8ff" class="z-text-center z-h40 <#if result.isSuccess()>result-true<#else>result-false</#if>" style="color:<#if result.isSuccess()>rgb(93, 200, 95)<#else>red</#if>">
|
||||
<td width="100"><#if result.isSuccess()>成功<#else>失败</#if></td>
|
||||
<td width="*%">${result.getConditionMsg()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</#if>
|
||||
</table>
|
||||
</#for>
|
||||
<#else>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">设计师分析:<span style="color:red;">商户${merResult.getOrgName()}暂无在线设计师</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
|
||||
<div id="resultHtml">
|
||||
<#if Validates.isNotEmptyBlank(oldUser)>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-w160">【${orgName}】</div>
|
||||
<div class="z-bold z-float-left z-bold z-px14 ">分析时间:${nowData}</div>
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">分析结果:<span style="color:red;">已通过老用户订单分析派送给设计师${oldUser}</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<#elseif Validates.isNotEmpty(designerList)>
|
||||
<#for designer : designerList>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-w160">【${designer.getOperatorCode()}】</div>
|
||||
<div class="z-bold z-float-left z-bold z-px14 ">分析时间:${nowData}</div>
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">分析结果:<#if designer.isSuccess() && designer_index == 0><span style="color:rgb(93, 200, 95)">派单成功<#else><span style="color:red">派单失败</#if></span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">条件匹配</td>
|
||||
<td width="*%">条件匹配描述</td>
|
||||
</tr>
|
||||
<#var resultList = designer.getResultList()/>
|
||||
<#if resultList != null>
|
||||
<#for result : resultList>
|
||||
<tr class="z-text-center z-h40 <#if result.isSuccess()>result-true<#else>result-false</#if>" style="color:<#if result.isSuccess()>rgb(93, 200, 95)<#else>red</#if>">
|
||||
<td width="100"><#if result.isSuccess()>成功<#else>失败</#if></td>
|
||||
<td width="*%">${result.getConditionMsg()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</#if>
|
||||
</table>
|
||||
</#for>
|
||||
<#else>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-w160">【${orgName}】</div>
|
||||
<div class="z-bold z-float-left z-bold z-px14 ">分析时间:${nowData}</div>
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">分析结果:<span style="color:red;">商户${orgName}暂无在线设计师</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</#if>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
|
||||
<div id="resultHtml">
|
||||
<#for merResult : merAnalysisList>
|
||||
<table class="z-table z-bordered z-bg-white z-pd6 zi-bd-t-none zi-bd-l-none">
|
||||
<tr bgcolor="#f3fdfc">
|
||||
<td class="z-h40 z-text-left zi-bd-r-none z-w150" colspan="9">
|
||||
<div class="z-bold z-float-left z-px14 z-w160">【${merResult.getOrgName()}】</div>
|
||||
<div class="z-bold z-float-left z-px14 z-w120">分拣优先级:${merResult.getAnalysisMer().getMerLevel()}</div>
|
||||
<div class="z-bold z-float-left z-bold z-px14 ">分析时间:${merResult.getAnalysisTime()}</div>
|
||||
<div class="z-bold z-float-left z-px14 z-mg-l6">结果描述:<span style="color:<#if merResult.isSuccess()>rgb(93, 200, 95)<#else>red</#if>"><#if Validates.isNotEmptyBlank(merResult.getMerMsg())>${merResult.getMerMsg()}<#else>分拣失败</#if></span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">条件匹配</td>
|
||||
<td width="*%">条件匹配描述</td>
|
||||
</tr>
|
||||
<#var resultList = merResult.getResultList()/>
|
||||
<#if resultList != null>
|
||||
<#for result : resultList>
|
||||
<tr class="z-text-center z-h40 <#if result.isSuccess()>result-true<#else>result-false</#if>" style="color:<#if result.isSuccess()>rgb(93, 200, 95)<#else>red</#if>">
|
||||
<td width="100"><#if result.isSuccess()>成功<#else>失败</#if></td>
|
||||
<td width="*%">${result.getConditionMsg()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</#if>
|
||||
</table>
|
||||
</#for>
|
||||
</div>
|
||||
@@ -0,0 +1,114 @@
|
||||
${zhiqim_manager_breadcrumb("待派订单")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function doViewOrderMerDispatchAnalysis()
|
||||
{//查看订单 分拣分析
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
if (Z.V.isEmpty(designId))
|
||||
{
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerGroupPresenter");
|
||||
ajax.setMethodName("doQueryDesignerGroupOrderDispatchAnalysis");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
console.log(obj.analysisResult);//打印分析结果
|
||||
var analysis_html = obj.resultHtml;
|
||||
var content = "";
|
||||
content += "<div id='Z_Dialog_Analysis_Detail'>";
|
||||
content += analysis_html;
|
||||
content += "</div>"
|
||||
|
||||
Z.dialog({id:"Analysis_Detail", title: "<span id='Z_Dialog_Analysis_Title'>["+designId+"]分拣分析详情</span>", text: content, width: 900, height: 480,shadow: true });
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function showLargeImg()
|
||||
{
|
||||
var dialog = new parent.Z.Dialog();
|
||||
dialog.shadow = true;
|
||||
dialog.title = "派单流程";
|
||||
//dialog.hasTitle = false;
|
||||
dialog.fixed = true;
|
||||
dialog.text = '<img style="width:100%;max-height: none;" src="../zinc/images/orderDispatch.jpg">';
|
||||
dialog.width = 1000;
|
||||
dialog.height = 801;
|
||||
dialog.execute();
|
||||
dialog.$background.remove();
|
||||
}
|
||||
|
||||
</script>
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">待派订单</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm">
|
||||
<select name="draftType" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">稿件类型</option>
|
||||
<#for item : DraftConstants.getList()>
|
||||
<#if item.value() != 4 >
|
||||
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
|
||||
</#if>
|
||||
</#for>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w150 zi-bd-r-none" name="designId" value="${designId}" placeholder="订单号"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 操作功能 -->
|
||||
<div class="z-w100p z-mg-t10 z-mg-b3">
|
||||
<button id="viewOrderMerDispatchAnalysis" type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="doViewOrderMerDispatchAnalysis();"><i class="z-font z-add"></i>查看分拣分析</button>
|
||||
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="showLargeImg();">派单流程</button>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="9"> 待分拣订单列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="230">订单号</td>
|
||||
<td width="200">稿件类型</td>
|
||||
<td width="*">产品名称</td>
|
||||
<td width="10%">状态</td>
|
||||
<td width="15%">录单时间</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="9">暂不存在待派订单信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="designId" name="designId" class="z-radio" data-role="z-radio" data-class=" ${zmr_color_class}" value="${item.getDesignId()}" type="radio"></td>
|
||||
<td>${item.getDesignId()}
|
||||
<#if item.getReDesignSrcId() gt 0><span style="color: red;font-size:16px;font-weight: bold"> 补 </span></#if>
|
||||
<#if item.isUrgent()><span style="color: red;font-size:16px;font-weight: bold"> 急 </span></#if>
|
||||
<#if item.isHighQualityOrder()><span style="color: red;font-size:16px;font-weight: bold"> 优 </span></#if>
|
||||
<#if item.getIsOldUser() gt 0><span style="color: #9D24D7;font-size:16px;font-weight: bold"> 老 </span></#if>
|
||||
<#if !(item.getAmount() lt 30000)><span style="color:#FF34B3;font-size:16px;font-weight: bold"> 大 </span></#if>
|
||||
<#if item.getShowRedMark() == 1><span><img src="/zinc/images/red_exclamation_mark.png" title="该订单已在淘宝退款"></span></#if>
|
||||
</td>
|
||||
<td>${DraftConstants.get(item.getDraftType())}</td>
|
||||
<td>${item.getOrderText()}</td>
|
||||
<td>${StatusConstants.getStatus(item.getStatus())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/waitDisDesignerGroupOrder.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,99 @@
|
||||
${zhiqim_manager_breadcrumb("待派订单")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function doViewOrderMerDispatchAnalysis()
|
||||
{//查看订单 分拣分析
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
if (Z.V.isEmpty(designId))
|
||||
{
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DisaptchPresenter");
|
||||
ajax.setMethodName("doQueryOrderMerDispatchAnalysis");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
console.log(obj.analysisResult);//打印分析结果
|
||||
var analysis_html = obj.resultHtml;
|
||||
var content = "";
|
||||
content += "<div id='Z_Dialog_Analysis_Detail'>";
|
||||
content += analysis_html;
|
||||
content += "</div>"
|
||||
|
||||
Z.dialog({id:"Analysis_Detail", title: "<span id='Z_Dialog_Analysis_Title'>["+designId+"]分拣分析详情</span>", text: content, width: 900, height: 480,shadow: true });
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/waitDisOrder.htm")><li onclick="Z.L.href('waitDisOrder.htm');">待派订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchLog.htm")><li onclick="Z.L.href('dispatchLog.htm');">派单日志</li></#if>
|
||||
<li class="z-active">待分拣订单</li>
|
||||
<#if ZmrPathRule.check(request, "/merDispatchLog.htm")><li onclick="Z.L.href('merDispatchLog.htm');">商户分拣日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/waitDisDesignerGroupOrder.htm")><li onclick="Z.L.href('waitDisDesignerGroupOrder.htm');">新待派单订单</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designerGroupDispatchLog.htm")><li onclick="Z.L.href('designerGroupDispatchLog.htm');">新派单日志</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchStat.htm")><li onclick="Z.L.href('dispatchStat.htm');">分拣统计</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/dispatchWaitStat.htm")><li onclick="Z.L.href('dispatchWaitStat.htm');">待派统计</li></#if>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm">
|
||||
<select name="industryId" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">选择行业</option>
|
||||
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
|
||||
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected</#if>>${item.getIndustryName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w150 zi-bd-r-none" name="designId" value="${designId}" placeholder="订单号"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 操作功能 -->
|
||||
<div class="z-w100p z-mg-t10 z-mg-b3">
|
||||
<button id="viewOrderMerDispatchAnalysis" type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="doViewOrderMerDispatchAnalysis();"><i class="z-font z-add"></i>查看分拣分析</button>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="9"> 待分拣订单列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="230">订单号</td>
|
||||
<td width="200">稿件类型</td>
|
||||
<td width="*">产品名称</td>
|
||||
<td width="10%">状态</td>
|
||||
<td width="15%">录单时间</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="9">暂不存在待派订单信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="designId" name="designId" class="z-radio" data-role="z-radio" data-class=" ${zmr_color_class}" value="${item.getDesignId()}" type="radio"></td>
|
||||
<td>${item.getDesignId()}</td>
|
||||
<td>${DraftConstants.get(item.getDraftType())}</td>
|
||||
<td>${item.getOrderText()}</td>
|
||||
<td>${StatusConstants.getStatus(item.getStatus())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/waitDisMerOrder.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,48 @@
|
||||
${zhiqim_manager_breadcrumb("派单日志")}
|
||||
${zhiqim_manager_content()}
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
|
||||
<li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
|
||||
<li class="z-active">工作日志</li>
|
||||
<li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
|
||||
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
|
||||
<li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
|
||||
<li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10 z-lh30">
|
||||
<form name="theForm" action="/workSearchLog.htm">
|
||||
<input class="z-float-left z-input ${zmr_color_class} z-w100" name="operatorCode" value="${operatorCode}" placeholder="设计师"/>
|
||||
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-float-left z-button z-mg-l10" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="4"> 工作日志列表</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="30%">操作时间</td>
|
||||
<td width="30%">设计师</td>
|
||||
<td width="*">操作描述</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
<tr valign="middle" class="z-text-center z-bg-white z-h40">
|
||||
<td colspan="4">暂不存在日志信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
|
||||
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${item.getOprDesc()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/workSearchLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,124 @@
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
var lastHangups = Z("input[name^=lastHangup_]")
|
||||
Z.each(lastHangups, function(item, i)
|
||||
{
|
||||
var designer = item.name.split("_")[1];
|
||||
var lastHangup = item.value;
|
||||
var dayHangup = Z("input[name=dayHangup_"+designer+"]")[0].value;
|
||||
|
||||
Z("#lastHangup_desc_"+designer).text(getHangUpDuration(lastHangup));
|
||||
Z("#dayHangup_desc_"+designer).text(getHangUpDuration(dayHangup));
|
||||
});
|
||||
});
|
||||
|
||||
function getHangUpDuration(hangUpSecond)
|
||||
{
|
||||
if(hangUpSecond == "" || hangUpSecond == null)
|
||||
return "";
|
||||
|
||||
hangUpSecond = hangUpSecond*1;
|
||||
var day = 0;
|
||||
var hour = 0;
|
||||
var minut = 0;
|
||||
var second = 0;
|
||||
|
||||
if(hangUpSecond >= 86400)
|
||||
{
|
||||
day = parseInt(hangUpSecond/86400);
|
||||
hangUpSecond -= 86400*day;
|
||||
}
|
||||
|
||||
if(hangUpSecond >= 3600)
|
||||
{
|
||||
hour = parseInt(hangUpSecond/3600);
|
||||
hangUpSecond -= 3600*hour;
|
||||
}
|
||||
|
||||
if(hangUpSecond >= 60)
|
||||
{
|
||||
minut = parseInt(hangUpSecond/60);
|
||||
hangUpSecond -= 60*minut;
|
||||
}
|
||||
|
||||
second = hangUpSecond;
|
||||
var s = ""+(day == 0 ? "" : day + "天")+(hour == 0 ? "" : hour + "小时")+(minut == 0 ? "" : minut + "分钟")+(second == 0 ? "" : second + "秒");
|
||||
return s;
|
||||
}
|
||||
</script>
|
||||
${zhiqim_manager_breadcrumb("设计师工作状态")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="/workingStatus.htm">
|
||||
<!--<input name="search" value="0001" type="hidden">-->
|
||||
<table class="z-table z-bordered z-pd6 zi-bd-b-none">
|
||||
<tr class="z-h40" bgcolor="${trColor}">
|
||||
<td class="z-text-left z-bold z-px14 "> 查询条件:</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td width="25%">设计师: <input class="z-input ${zmr_color_class} z-w160" name="operatorCode" value="${operatorCode}"/></td>
|
||||
<td width="25%">上班时间:
|
||||
<input id="onDutyStartDate" name="onDutyStartDate" class="z-input z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${onDutyStartDate}"> -
|
||||
<input id="onDutyEndDate" name="onDutyEndDate" class="z-input z-mg-l3 z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${onDutyEndDate}">
|
||||
</td>
|
||||
<td width="25%">挂起时间:
|
||||
<input id="hangUpStartDate" name="hangUpStartDate" class="z-input z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${hangUpStartDate}"> -
|
||||
<input id="hangUpEndDate" name="hangUpEndDate" class="z-input z-mg-l3 z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${hangUpEndDate}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor="#ffffff">
|
||||
<td colspan="4" align="center"><button class="z-button z-large z-w100 ${zmr_color_class}">查询</button> <button class="z-button z-large" type="button" onclick="Z.Forms.clearForm(this.form);">清空</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
<table class="z-table z-bordered z-bg-white z-pd6">
|
||||
<tr>
|
||||
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="8"> 上班中的设计师信息</td>
|
||||
</tr>
|
||||
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">设计师</td>
|
||||
<td width="10%">状态</td>
|
||||
<td width="10%">上班时间</td>
|
||||
<td width="10%">当前订单数量</td>
|
||||
<td width="10%">最近完成初稿类型</td>
|
||||
<td width="10%">上次初稿提交时间</td>
|
||||
<td width="10%">上次挂起时间</td>
|
||||
<td width="10%">上次挂起时长</td>
|
||||
<td width="*">当天挂起时长</td>
|
||||
</tr>
|
||||
<#if pageResult.total() == 0>
|
||||
${zhiqim_manager_no_record(10, "暂时没有上班的设计师信息")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>
|
||||
<#if item.getStatus()== 0>下班</#if>
|
||||
<#if item.getStatus()== 1>上班中</#if>
|
||||
<#if item.getStatus()== 2>挂起</#if>
|
||||
</td>
|
||||
<td>${Sqls.toDateTimeString(item.getOnDutyTime())}</td>
|
||||
<td>${item.getOrderNumber()}</td>
|
||||
<td>
|
||||
<#if item.getLastDraftType().equals("card")>名片</#if>
|
||||
<#if item.getLastDraftType().equals("colorPage")>彩页</#if>
|
||||
</td>
|
||||
<td><#if item.getLastDraftTime() != null>${Sqls.toDateTimeString(item.getLastDraftTime())}</#if></td>
|
||||
<#var lastHangUpLog=designerPreHangUpMap.get(item.getOperatorCode())/>
|
||||
<td><#if lastHangUpLog != null>${Sqls.toDateTimeString(lastHangUpLog.getHangUpTime())}</#if></td>
|
||||
<td>
|
||||
<input name="lastHangup_${item.getOperatorCode()}" type="hidden" value="<#if lastHangUpLog != null>${lastHangUpLog.getHangUpSeconds()}</#if>">
|
||||
<span id="lastHangup_desc_${item.getOperatorCode()}"></span>
|
||||
</td>
|
||||
<td>
|
||||
<input name="dayHangup_${item.getOperatorCode()}" type="hidden" value="${designerPreHangUpSecondMap.get(item.getOperatorCode())}">
|
||||
<span id="dayHangup_desc_${item.getOperatorCode()}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/workingStatus.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
Reference in New Issue
Block a user