This commit is contained in:
2025-02-20 14:59:35 +08:00
والد d7be84fac6
کامیت d4a3bb8ffc
2541فایلهای تغییر یافته به همراه336536 افزوده شده و 0 حذف شده
@@ -0,0 +1,71 @@
<script>
function abnormalAudit(){
var type = Z("#type").val();
var modifyMoney = Z("#modifyMoney").val();
if(Z.V.isEmpty(type)){
Z.alert("请选择操作的金额类型");
return;
}
var remark = Z("#remark").val();
var designOrderId = Z("#modifyDesignOrder").val();
if (Z.V.isEmpty(modifyMoney))
{
Z.alert("操作金额不能为空");
return;
}
editAbnormalAudit('${operatorCode}',modifyMoney,designOrderId,remark,type);
}
function editAbnormalAudit(operatorCode,modifyMoney,designOrderId,remark,type){
var ajax = new Z.Ajax();
ajax.setClassName("VirtualAccountAction");
ajax.setMethodName("abnormalAudit");
ajax.addParam(operatorCode);
ajax.addParam(modifyMoney);
ajax.addParam(designOrderId);
ajax.addParam(remark);
ajax.addParam(type);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.setLoading("abnormalAudit", '正在提交', {disabled:true});
ajax.execute();
}
//修改操作金额类型
function editOperatorDate(type){
Z("#type").val(type);
}
</script>
<style>
.container{ min-height:467px; background:#fff;}
.order-no td{ padding:0 0 0 30px;}
.order-title{ color:#0089e1;font-weight:bold; font-size:26px; padding:10px 0 0 30px; line-height:60px;}
.order-p{ font-size:16px; padding:0 0 0 30px; line-height:60px; border-bottom:1px solid #f2f2f2;}
.order-info{ background:#0089e1;border-radius:8px;width:520px;height:130px; margin:10px 0 0 30px;text-align:center; color:#fff; font-size:22px; padding:16px 66px; line-height:36px;}
.order-info span{ color:#fffc00; font-weight:bold;}
</style>
<div class='order-box'>
<div class="order-title">异常稽核</div>
<div class='order-p'>设计师账户: ${operatorCode}</div>
<div class='order-p'>当前可用金额: ${usableMoney}&nbsp;元</div>
<div class='order-p' style="line-height:30px">修改订单号:<input id="modifyDesignOrder" placeholder="可为空" name="modifyDesignOrder" value=""></div></br>
<div id='type' class='order-p' style="line-height:30px"><span>操作金额:&nbsp;&nbsp;&nbsp;</span><input id="modifyMoney" placeholder="正数为增加,负数为减少" name="modifyFreezeMoney" value="">&nbsp;元
</div>
<div id='typeId' class='order-p' style="line-height:30px"><span>操作类型:&nbsp;&nbsp;</span>
<!-- <button type="button" data-options="group:typeFreeze" class="z-button z-large z-bordered z-blue-bd z-mg-t3 z-hover <#if item_index == 0>z-active</#if>" onclick="{Z(this).toggleClass('z-active');editOperatorDate('freeze')};">冻结</button>-->
<button type="button" data-options="group:typeFreeze" class="z-button z-large z-bordered z-blue-bd z-mg-t3 z-hover <#if item_index == 0>z-active</#if>" onclick="{Z(this).toggleClass('z-active');editOperatorDate('usable')};">可用</button>
</div>
<div class='order-p' style="line-height:30px; display: flex; margin: 10px 0 0 0;">操作备注:&nbsp;&nbsp;&nbsp;<textarea id="remark" name="remark" value="" cols="50"></textarea></div>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="abnormalAudit" style="border-radius:8px; background:#0089e1;" class="z-button ${zmr_color_class} z-large z-w100" onclick="abnormalAudit();">确认</button>
<button type="button" style="border-radius:8px; background:#949393; color:#fff; border:none;" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
</div>
@@ -0,0 +1,39 @@
<script>
function freezeSalary(){
var modifyMoney = Z("#modifyMoney").val();
var remark = Z("#remark").val();
var ajax = new Z.Ajax();
ajax.setClassName("VirtualAccountAction");
ajax.setMethodName("freezeSalary");
ajax.addParam("operatorCode",'${operatorCode}');
ajax.addParam("modifyMoney",modifyMoney);
ajax.addParam("remark",remark);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("freezeSalary", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<style>
.container{ min-height:395px; background:#fff;}
.order-no td{ padding:0 0 0 30px;}
.order-title{ color:#0089e1;font-weight:bold; font-size:26px; padding:10px 0 0 30px; line-height:60px;}
.order-p{ font-size:16px; padding:0 0 0 30px; line-height:60px; border-bottom:1px solid #f2f2f2;}
.order-info{ background:#0089e1;border-radius:8px;width:520px;height:130px; margin:10px 0 0 30px;text-align:center; color:#fff; font-size:22px; padding:16px 66px; line-height:36px;}
.order-info span{ color:#fffc00; font-weight:bold;}
</style>
<div class='order-box'>
<div class="order-title">冻结资金</div>
<div class='order-p'>设计师账户:${operatorCode}</div>
<div class='order-p'>当前可用金额: ${usableMoney}&nbsp;元</div>
<div class='order-p' style="line-height:30px">冻结金额:<input id="modifyMoney" data-options="type:Integer;paste:true;" name="modifyMoney" value="${modifyMoney}">&nbsp;元</div>
<div class='order-p' style="line-height:30px; display: flex; margin: 10px 0 0 0;">操作备注:<textarea id="remark" name="remark" value="${remark}" cols="50"></textarea></div>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="sendSalary" style="border-radius:8px; background:#0089e1;" class="z-button ${zmr_color_class} z-large z-w100" onclick="freezeSalary();">确认</button>
<button type="button" style="border-radius:8px; background:#949393; color:#fff; border:none;" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
</div>
@@ -0,0 +1,42 @@
<script>
function sendSalary(){
var modifyMoney = Z("#modifyMoney").val();
var remark = Z("#remark").val();
var ajax = new Z.Ajax();
ajax.setClassName("VirtualAccountAction");
ajax.setMethodName("sendSalary");
ajax.addParam("operatorCode",'${operatorCode}');
ajax.addParam("modifyMoney",modifyMoney);
ajax.addParam("remark",remark);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.setLoading("sendSalary", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<style>
.container{ min-height:395px; background:#fff;}
.order-no td{ padding:0 0 0 30px;}
.order-title{ color:#0089e1;font-weight:bold; font-size:26px; padding:10px 0 0 30px; line-height:60px;}
.order-p{ font-size:16px; padding:0 0 0 30px; line-height:60px; border-bottom:1px solid #f2f2f2;}
.order-info{ background:#0089e1;border-radius:8px;width:520px;height:130px; margin:10px 0 0 30px;text-align:center; color:#fff; font-size:22px; padding:16px 66px; line-height:36px;}
.order-info span{ color:#fffc00; font-weight:bold;}
</style>
<div class='order-box'>
<div class="order-title">发放工资</div>
<div class='order-p'>设计师账户: ${operatorCode}</div>
<div class='order-p'>当前可用金额: ${usableMoney}&nbsp;元</div>
<div class='order-p' style="line-height:30px">发放金额:<input id="modifyMoney" min="1" step="0.1" type="number" name="modifyMoney" value="${modifyMoney}">&nbsp;元</div>
<div class='order-p' style="line-height:30px; display: flex; margin: 10px 0 0 0;">操作备注:<textarea id="remark" name="remark" value="${remark}" cols="50"></textarea></div>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="sendSalary" style="border-radius:8px; background:#0089e1;" class="z-button ${zmr_color_class} z-large z-w100" onclick="sendSalary();">确认</button>
<button type="button" style="border-radius:8px; background:#949393; color:#fff; border:none;" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
</div>
@@ -0,0 +1,270 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 70)}
${zhiqim_manager_content()}
<script>
//发工资
function doSendSalary(operatorCode,operatorStatus,usableMoney){
if (operatorStatus == 1){
var dialog = new Z.Dialog();
dialog.url = "/sendSalary.htm?operatorCode="+operatorCode+"&operatorStatus="+operatorStatus+"&usableMoney="+usableMoney;
dialog.width = 600;
dialog.height = 400;
dialog.execute();
} else {
Z.alert("该账户目前是停用状态!",
function(){
window.location.reload();
window.Z.Dialog.close();
});
};
}
//异常稽核
function doAbnormalAudit(operatorCode,operatorStatus,usableMoney){
if (operatorStatus == 1){
var dialog = new Z.Dialog();
dialog.url = "/abnormalAudit.htm?operatorCode="+operatorCode+"&operatorStatus="+operatorStatus+"&usableMoney="+usableMoney;
dialog.width = 600;
dialog.height = 470;
dialog.execute();
} else {
Z.alert("该账户目前是停用状态!",
function(){
window.location.reload();
window.Z.Dialog.close();
});
};
}
function doFreezeSalary(operatorCode,operatorStatus,usableMoney){
if (operatorStatus == 1){
var dialog = new Z.Dialog();
dialog.url = "/freezeSalary.htm?operatorCode="+operatorCode+"&operatorStatus="+operatorStatus+"&usableMoney="+usableMoney;
dialog.width = 600;
dialog.height = 400;
dialog.execute();
} else {
Z.alert("该账户目前是停用状态!",
function(){
window.location.reload();
window.Z.Dialog.close();
});
};
}
//核算定稿
function doFinalizeCheck(operatorCode,operatorStatus){
if (operatorStatus == 1){
Z.confirm('您确定要核算设计师:'+operatorCode+' 的资金账户吗?',
function(){
finalizeCheck(operatorCode,operatorStatus);
}
);} else {
Z.alert("该账户目前是停用状态!",
function(){
Z.L.href('virtualAccount.htm');
});
};
}
//核算定稿
function finalizeCheck(operatorCode,operatorStatus){
var ajax = new Z.Ajax();
ajax.setClassName("VirtualAccountAction");
ajax.setMethodName("finalizeCheck");
ajax.addParam(operatorCode);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
window.location.reload();
window.Z.Dialog.close();
});
});
ajax.setLoading("finalizeCheck", '正在提交', {disabled:true});
ajax.execute();
}
//解冻金额
function doUnfreezeMoney(operatorCode,operatorStatus){
if (operatorStatus == 1){
Z.confirm('您确定要解冻设计师:'+operatorCode+' 的资金账户吗?',
function(){
unfreezeMoney(operatorCode,operatorStatus);
}
);} else {
Z.alert("该账户目前是停用状态!",
function(){
Z.L.href('virtualAccount.htm');
});
};
}
//解冻金额
function unfreezeMoney(operatorCode,operatorStatus){
var ajax = new Z.Ajax();
ajax.setClassName("VirtualAccountAction");
ajax.setMethodName("unfreezeMoney");
ajax.addParam(operatorCode);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
window.location.reload();
window.Z.Dialog.close();
});
});
ajax.setLoading("unfreezeMoney", '正在提交', {disabled:true});
ajax.execute();
}
function goSwitch(obj,operatorCode){
var span=Z(obj).parent().find('span')
var ajax = new Z.Ajax();
ajax.setClassName("VirtualAccountAction");
ajax.setMethodName("updateStatus");
var num=obj.checked?1:0;
if(obj.checked){
span.htmlc('正常').attr('class','normal')
}else{
span.htmlc('禁用').attr('class','forbidden')
}
ajax.addParam(num);
ajax.addParam(operatorCode);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("修改成功",function(){
window.location.reload();
window.Z.Dialog.close();
});
});
ajax.setLoading("goSwitch", '正在修改', {disabled:true});
ajax.execute();
}
function exportDatas(){
var form = document.virtualAccount;
form.action= "/exportWageSchedule.htm"
form.submit();
setTimeout(form.action= "/virtualAccount.htm",300);
}
</script>
<style>
.switch-box{ position: relative; width: 80px;}
.switch-box span{ transition: left 0.5s;}
.normal{position: absolute; top:6px; left:16px; color:#fff;}
.forbidden{ position: absolute; top:6px; left:38px;}
.switch{
-webkit-appearance: none;
width: 80px;
height:32px!important;
border:1px solid #dfdfdf!important;
border-radius: 30px;
position: relative;
outline: none;
transition: linear 0.2s;
}
/*伪类*/
.switch:before{
content: '';
width: 28px;
height: 28px;
border-radius: 50%;
background: #d7d7d7;
position: absolute;
top: 1px;
left: 1px;
transition: linear 0.2s;
}
.switch:checked{
box-shadow: 0 0 16px 16px #00a9f2 inset; background: #00a9f2;
transition: linear 0.2s;
}
.switch:checked:before{
left: 48px;
background: #fff;
transition: linear 0.2s;
}
.switch-label {
display: block;
overflow: hidden;
cursor: pointer;
border: 1px solid #white;
}
</style>
<#-- 导航 -->
<div data-role="z-tabnav" 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 onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
<li class="z-active">资金账户</li>
<li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="virtualAccount" action="virtualAccount.htm" method="post" id="virtualAccount">
<table class="z-table z-bordered z-pd6 z-bg-white" >
<tr class="z-h40">
<td>&nbsp;设计师:
<input type="operatorCode" name="operatorCode" class="z-input z-w180 ${zmr_color_class}" value="${operatorCode}">
</td>
<td width="1000px">
<button class="z-button z-blue z-large"><i class="z-font z-query"></i>查询</button>&nbsp;
<button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>&nbsp;
</td>
</tr>
</table>
</form>
<button id="exportDatas" name="exportDatas" style="margin-left: 848px;position: fixed;margin-top: -45px;" type="button" class="z-button z-large z-blue" onclick="exportDatas();"><i class="z-font z-download"></i>导出</button>
<div class="z-table z-bordered z-h70-tr z-pd5 z-bg-white z-text-center" style="width:100%" >
<#-- 分页列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" >
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}" data-layoutCode="virtualAccountDetailsAction.zml">
<td width="8%">设计师账户</td>
<td width="16%">账户状态</td>
<td width="18%">总金额(元)</td>
<td width="18%">冻结金额(元)</td>
<td width="18%">可用金额(元)</td>
<td width="20%">操作</td>
</tr>
<#if pageResult.size() == 0>
${zhiqim_manager_no_record(26,"暂不存在资金账户列表")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40 ">
<td>${item.getOperatorCode()}</td>
<td><div class='switch-box'>
<input style="cursor: pointer;" id="${item.getOperatorCode()}" type="checkbox" <#if item.getOperatorStatus() == 1>checked</#if> onclick='goSwitch(this,"${item.getOperatorCode()}");' class="switch" />
<label class="switch-label" for="${item.getOperatorCode()}"><#if item.getOperatorStatus() == 1><span class="normal">正常</span><#else><span class="forbidden">禁用</span></#if></label>
</div></td>
<td><a style="color:#1299ec" href="/virtualAccountTransactionDetails.htm?status=0&operatorCode=${item.getOperatorCode()}">${Amounts.toYuan(item.getSumMoney())}</a></td>
<td><a style="color:#1299ec" href="/virtualAccountTransactionDetails.htm?status=4&operatorCode=${item.getOperatorCode()}">${Amounts.toYuan(item.getFreezeMoney())}</a></td>
<td><a style="color:#1299ec" href="/virtualAccountTransactionDetails.htm?status=999&operatorCode=${item.getOperatorCode()}">${Amounts.toYuan(item.getUsableMoney())}</a></td>
<td>
<#if ZmrPathRule.check(request, "/sendSalary.htm")>
<button class="z-button z-large z-blue" onclick="doSendSalary('${item.getOperatorCode()}','${item.getOperatorStatus()}','${Amounts.toYuan(item.getUsableMoney())}');">发工资</button>&nbsp;&nbsp;&nbsp;&nbsp;
<button class="z-button z-large z-blue" onclick="doAbnormalAudit('${item.getOperatorCode()}','${item.getOperatorStatus()}','${Amounts.toYuan(item.getUsableMoney())}');">异常稽核</button>&nbsp;&nbsp;&nbsp;&nbsp;
<!-- <button class="z-button z-large z-red" onclick="doFreezeSalary('${item.getOperatorCode()}','${item.getOperatorStatus()}','${Amounts.toYuan(item.getUsableMoney())}');">冻结资金</button>-->
<!-- <button class="z-button z-large z-red" onclick="doFinalizeCheck('${item.getOperatorCode()}','${item.getOperatorStatus()}');">核算定稿</button> -->
<#else>
<span>暂无操作权限</span>
</#if>
</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/virtualAccount.htm")}
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,95 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 70)}
${zhiqim_manager_content()}
<script>
function re(){
parent.location.reload()="/manager/main.htm";
}
</script>
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('virtualAccountTransactionDetails.htm?status=${status}&operatorCode=${operatorCode}');">交易明细</li>
<li class="z-active">账户明细</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="virtualAccountDetails.htm?status=${status}&operatorCode=${operatorCode}" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white" >
<tr class="z-h40">
<td>&nbsp;账户流水:
<input name="accountBlotter" id="accountBlotter" class="z-input z-w180 ${zmr_color_class}" value="">
</td>
<td>&nbsp;交易流水:
<input name="transactionBlotter" id="transactionBlotter" class="z-input z-w180 ${zmr_color_class}" value="">
</td>
<td >&nbsp;交易类型:
<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : statusType>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td>&nbsp;交易时间:
<input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${beginDate}"> -
<input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${endDate}">
</td>
<td width="460px">
<button class="z-button z-blue z-large"><i class="z-font z-query"></i>查询</button>&nbsp;
<button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
</td>
</tr>
</table>
</form>
<div class="z-table z-bordered z-h70-tr z-pd5 z-bg-white z-text-center" style="width:100%" >
<#-- 分页列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" >
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}" data-layoutCode="virtualAccountDetailsAction.zml">
<td width="9%">账户流水</td>
<td width="5%">账户名称</td>
<td width="9%">交易流水</td>
<td width="6%">交易类型</td>
<td width="7%">可提现增加(元)</td>
<td width="7%">可提现减少(元)</td>
<td width="7%">待结算增加(元)</td>
<td width="7%">待结算减少(元)</td>
<td width="8%">变动后可提现(元)</td>
<td width="8%">变动后待结算(元)</td>
<td width="8%">变动后总收入(元)</td>
<td width="5.5%">交易时间</td>
<td width="8%">备注</td>
</tr>
<#if pageResult.size() == 0>
${zhiqim_manager_no_record(26,"暂不存在账户明细")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40 ">
<td>${item.getAccountBlotter()}</td>
<td>${item.getOperatorCode()}</td>
<td>${item.getTransactionBlotter()}</td>
<td>${VirtualAccountConstants.getTransactionStatusListDesc(item.getTransactionStatus()+"")}</td>
<td><#if Amounts.toYuan(item.getUsableMoneyAdd())=0>0<#else>${Amounts.toYuan(item.getUsableMoneyAdd())}</#if></td>
<td><#if Amounts.toYuan(item.getUsableMoneyDown())=0>0<#else>${Amounts.toYuan(item.getUsableMoneyDown())}</#if></td>
<td><#if Amounts.toYuan(item.getFreezeMoneyAdd())=0>0<#else>${Amounts.toYuan(item.getFreezeMoneyAdd())}</#if></td>
<td><#if Amounts.toYuan(item.getFreezeMoneyDown())=0>0<#else>${Amounts.toYuan(item.getFreezeMoneyDown())}</#if></td>
<td><#if Amounts.toYuan(item.getUsableMoney())=0>0<#else>${Amounts.toYuan(item.getUsableMoney())}</#if></td>
<td><#if Amounts.toYuan(item.getFreezeMoney())=0>0<#else>${Amounts.toYuan(item.getFreezeMoney())}</#if></td>
<td><#if Amounts.toYuan(item.getSumMoney())=0>0<#else>${Amounts.toYuan(item.getSumMoney())}</#if></td>
<td>${Sqls.toDateTimeString(item.getOperatorTime())}</td>
<td>${item.getOperatorRemark()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/virtualAccountDetails.htm")}
</div>
<button style="color: #333;background-color: #f2f2f2;border: 1px solid #c3c3c3;height:30px" onclick="re();">返回上一页</button>
${zhiqim_manager_content_end()}
@@ -0,0 +1,82 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 70)}
${zhiqim_manager_content()}
<script>
function re(){
parent.location.reload()="/manager/main.htm";
}
</script>
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li class="z-active">交易明细</li>
<li onclick="Z.Location.href('virtualAccountDetails.htm?status=${status}&operatorCode=${operatorCode}');">账户明细</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="virtualAccountTransactionDetails.htm?status=${status}&operatorCode=${operatorCode}" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white" >
<tr class="z-h40">
<td>&nbsp;交易流水:
<input name="transactionBlotter" id="transactionBlotter" class="z-input z-w180 ${zmr_color_class}" value="">
</td>
<td>&nbsp;订单号:
<input name="designId" id="designId" class="z-input z-w180 ${zmr_color_class}" value="${designId}">
</td>
<td >&nbsp;交易类型:
<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : statusType>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td>&nbsp;交易时间:
<input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${beginDate}"> -
<input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${endDate}">
</td>
<td width="460px">
<button class="z-button z-blue z-large"><i class="z-font z-query"></i>查询</button>&nbsp;
<button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
</td>
</tr>
</table>
</form>
<div class="z-table z-bordered z-h70-tr z-pd5 z-bg-white z-text-center" style="width:100%" >
<#-- 分页列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" >
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}" data-layoutCode="virtualAccountTransactionDetails.zml">
<td width="10%">交易流水</td>
<td width="10%" >订单号</td>
<td width="30%" >产品类型</td>
<td width="10%">交易时间</td>
<td width="10%">交易类型</td>
<td width="7%">订单金额(元)</td>
</tr>
<#if pageResult.size() == 0>
${zhiqim_manager_no_record(26,"暂不存在交易明细")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40 ">
<td>${item.getTransactionBlotter()}</td>
<td><#if item.getDesignId()=0>/<#else>${item.getDesignId()}</#if></td>
<td><#if item.getOrderText()=null>/<#else>${item.getOrderText()}</#if></td>
<td>${Sqls.toDateTimeString(item.getTransactionTime())}</td>
<td>${VirtualAccountConstants.getTransactionStatusListDesc(item.getTransactionStatus()+"")}</td>
<td>
<#if status=999 && item.getTransactionStatus()==101>${Amounts.toYuan(-item.getOrderMoney())}<#else>${Amounts.toYuan(item.getOrderMoney())}</#if>
</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/virtualAccountTransactionDetails.htm")}
</div>
<button style="color: #333;background-color: #f2f2f2;border: 1px solid #c3c3c3;height:30px" onclick="re();">返回上一页</button>
${zhiqim_manager_content_end()}
@@ -0,0 +1,228 @@
<script>
function remark(){
var designer = Z.FM.getChecked("designer");
Z.prompt("请输入标签内容", Z("#remark"+designer).val(), function(value){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerPresenter");
ajax.setMethodName("doUpdateCourseRemark");
ajax.addParam("designer",designer);
ajax.addParam("remark",value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
document.getElementById("designerManage").submit();
});
});
ajax.execute();
});
}
function queryDetail(){
var designer = Z.FM.getChecked("designer");
var dialog = new parent.Z.Dialog();
dialog.title = "设计师详情";
dialog.url = "/designerCourseDetail.htm?designer="+designer;
dialog.width = 700;
dialog.height = 520;
dialog.execute();
}
function exportData(){
var form = document.designerManage;
form.action= "/designerManageExport.htm"
form.submit();
setTimeout(form.action= "/designerManage.htm",300);
}
function exportData(){
var form = document.accountsManage;
form.action= "/accountsManageExport.htm"
form.submit();
setTimeout(form.action= "/accountsManage.htm",300);
}
//指定组织
function doAssignOrg()
{
var designer = Z.FM.getChecked("designer");
if (Z.V.isEmpty(designer))
{
Z.alert("请选择设计师");
return;
}
var dialog = new Z.Dialog();
dialog.title = "指定组织";
dialog.url = "/assignOrg.htm?designer=" + designer;
dialog.width = 400;
dialog.height = 250;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("设计师管理")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" 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 onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
<li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
<li class="z-active">结算管理</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="accountsManage" action="/accountsManage.htm" method="post" id="accountsManage">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="30%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td width="34%">产品类型:
<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DesignTypeDao.list()>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td > 审核完成时间:<input id="startDate" name="startDate" class="z-input z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${startTime}">&nbsp;-&nbsp;
<input id="endDate" name="endDate" class="z-input z-mg-l3 z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${endTime}">
</td>
</tr>
<tr class="z-h40">
<td>旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td>订单金额:<select name="amount" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="10000" <#if amount == 10000>selected</#if>>100以上</option>
<option value="30000" <#if amount == 30000>selected</#if>>300以上</option>
<option value="50000" <#if amount == 50000>selected</#if>>500以上</option>
<option value="100000" <#if amount == 100000>selected</#if>>1000以上</option>
</select>
</td>
<td>
商户名称:<select name="merchantId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : Global.get(DesignMerchantCache.class).getList()>
<option value="${item.getMerchantName()}" <#if merchantId == item.getMerchantId()>selected</#if>>${item.getMerchantName()}</option>
</#for>
</select>
</td>
</tr>
<tr>
<td>设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
</td>
<td>
设计等级:<select name="draftType" class="z-select z-w180" 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>
</td>
<td>
订单状态:<select name="orderStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for statusStr : StatusConstants.getOrderStatusList()>
<#if statusStr.value() != StatusConstants.ORDER_62.value() && statusStr.value() != StatusConstants.ORDER_20.value()>
<option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
</#if>
</#for>
<option value="110" <#if orderStatus == 110>selected</#if>>未完成</option>
<option value="120" <#if orderStatus == 120>selected</#if>>审稿退回</option>
</select>
</td>
</tr>
<tr>
<td>erp单号:<input name="tids" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${tids}" placeholder="erp单号">
</td>
<td>
</td>
<td>
</td>
</tr>
<tr class="z-h40">
<td colspan="3" align="center"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="exportData();"><i class="z-font z-download"></i>数据导出</button>
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:100%">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="30"><input name="allDesignId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${pageResult.pageNo()}" onclick="Z.FM.doSelectCheckBox('designId', this.checked);"> 选择</td>
<td width="30">设计师</td>
<td width="50">订单号</td>
<td width="60">文件名</td>
<td width="10">订单状态</td>
<td width="30">提现账号</td>
<td width="60">设计佣金<span data-role="z-tooltip" data-options="align:left;width:100px;" class="z-color-red" data-text="设计师完成订单后获取的费用">&nbsp;*</span></td>
<td width="70">审核完成时间</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 27, "暂时没有数据")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<input id="userQqs_${item.getDesignId()}" type="hidden" value="${item.getDesignCopies()}">
<input id="status_${item.getDesignId()}" type="hidden" value="${item.getStatus()}">
<input id="designPrice_${item.getDesignId()}" type="hidden" value="${Amounts.toYuan(item.getDesignPrice())}">
<input id="urgentPrice_${item.getDesignId()}" type="hidden" value="${Amounts.toYuan(item.getUrgentPrice())}">
<input id="orderText_${item.getDesignId()}" type="hidden" value="${item.getOrderText()}">
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()}>
<td><input name="designId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick="Z.L.href('attaFileList.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}', attaFileList);"></td>
<td>${item.getDesigner()}</td>
<td>${item.getDesignId()}
<#if Validates.isNotEmpty(item.getCheckBackReason()) && item.getStatus() lt 55 >
<span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="订单已被审稿驳回"> 驳 </span>
<#elseif Validates.isNotEmpty(item.getDraftBackReason()) && item.getStatus() lt 55 >
<span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="订单已被审稿驳回"> 驳 </span>
<#elseif Validates.isNotEmpty(item.getEndBackReason()) && item.getStatus() lt 55 >
<span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="订单已被审稿驳回"> 驳 </span>
</#if>
<#if item.isChange()>
<span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="改稿订单"> 改 </span>
</#if>
<#if item.isBack()>
<span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="打回订单"> 回 </span>
</#if>
<#if item.getIsOldUser() gt 0>
<span style="color: #9D24D7;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="老用户订单"> 老 </span>
</#if>
</td>
<td>${item.getOrderText()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getReceiveAccount()}</td>
<td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
<td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/accountsManage.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,641 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(340, 110)}
<script>
//查询操作员
var attaTypeMap = new Z.HashMap();
var blameOrgMap = new Z.HashMap();
var orgUserListMap = new Z.HashMap();
Z.onload(function(){
//初始化 文件类型
<#for item : FileTypeConstants.getFileTypeList()>
attaTypeMap.put('${item.value()}', '${item.desc()}')
</#for>
//初始化 责任组织 & 初始化组织操作员
<#for org : ZmrOrgDao.list(request)>
blameOrgMap.put('${org.getOrgId()}', getObject('${org}'));
var users${org.getOrgId()} = [];
<#for opr : ZmrOperatorDao.getOperator(request, org.getOrgId())>
users${org.getOrgId()}.push(getObject('${opr}'));
</#for>
orgUserListMap.put('${org.getOrgId()}', users${org.getOrgId()});
</#for>
});
function getObject(json)
{
json = json.replace(/\r/g, '');
json = json.replace(/\n/g, '<br/>');
json = json.replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;');
var reg = /(\u0000)|(\u0001)|(\u0002)|(\u0003)|(\u0004)|(\u0005)|(\u0006)|(\u0007)|(\u000b)|(\u000e)|(\u000f)|(\u0010)|(\u0011)|(\u0012)|(\u0013)|(\u0014)|(\u0015)|(\u0016)|(\u0017)|(\u0018)|(\u0019)|(\u001a)|(\u001b)|(\u001c)|(\u001d)|(\u001e)|(\u001f)/g;
//var reg = //g;
return Z.J.toObject(json.replace(reg, ""));
}
function doShowAfterOrderInfo(obj, designAfsId)
{
if (!designAfsId)
{
Z.alert("请选择一项");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAfterOrderDataInfo");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
//初始化数据内容
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var problemType = obj.problemType;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
var afterRightContent = '';
afterRightContent +='\r\n <table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td>产品信息:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="orderText" class="z-lh150p">'+afterOrder.orderText+'</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">问题描述:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(afterOrder.problemDesc ? afterOrder.problemDesc : '');
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
if (problemType && problemType.problemName)
{
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">售后原因:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(problemType.problemName);
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
if(afterOrder.afterBlameReturnNote != "" && afterOrder.afterBlameReturnNote != null){
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">申诉原因:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="afterBlameReturnNote" class="z-lh150p">';
afterRightContent +='\r\n <div id="afterBlameReturnNote" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(afterOrder.afterBlameReturnNote ? afterOrder.afterBlameReturnNote : '');
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
for (var i=0; i<attamap._keys.length; i++)
{
var attaList = attamap.get(attamap._keys[i]);
if (!attaList || attaList.length == 0)
continue;
if (!attaTypeMap.get(attamap._keys[i]))
continue;//不支持的附件类型
afterRightContent +='\r\n <tr class="z-h40" bgcolor="#efefef">';
afterRightContent +='\r\n <td style="position: relative;">';
afterRightContent +='\r\n <input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox(\'atta_'+attamap._keys[i]+'\', this.checked);" >';
afterRightContent +='\r\n <b class="z-pd4">'+attaTypeMap.get(attamap._keys[i])+'</b>';
afterRightContent +='\r\n <button id="download_'+attamap._keys[i]+'" onclick="doDownload(\''+attamap._keys[i]+'\')" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr class="z-h40">';
afterRightContent +='\r\n <td class="z-pd-l10">';
for (var j=0; j<attaList.length; j++)
{
var atta = attaList[j];
afterRightContent +='\r\n <div class="z-overflow-y-auto z-w100p" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n <div id="div_checkbox_'+atta.attaId+'" class="z-text-ellipsis z-w300 z-pointer" onclick="" title="'+atta.fileName+'">';
afterRightContent +='\r\n <input id="atta_'+atta.attaId+'" name="atta_'+atta.attaModul+'" type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" data-attaid="'+atta.attaId+'" data-downloadUrl="'+(atta.ossUrl ? atta.ossUrl : '')+'" value="'+atta.attaId+'"><span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+atta.fileName+'</span><br>';
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </div>';
}
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
afterRightContent +='\r\n </table>';
Z("#afterRightContent").htmlc(afterRightContent);
});
ajax.execute();
}
function doDownload(attaType)
{
var attaIds = Z.FM.getCheckBoxValue("atta_" + attaType, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要下载的文件");
return false;
}
/*
var arr = Z.AR.toArray(attaIds, ",");
if (arr.length == 1)
{//1个文件情况下
var input = Z("#atta_"+attaIds);
//if (input )
var url = input.attr("data-downloadUrl");
url = Z.V.isEmptyBlank(url) ? "/downFile.htm?attaId=" + attaIds : url;
Z.L.href(url, zCallFrame);
return;
}
*/
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("attaId", attaIds);
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
Z.L.href("/downFile.htm?attaId=" + attaIds, zCallFrame);
});
ajax.setLoading('download_'+attaType, '下载', {disabled:true});
ajax.execute();
}
<#if ZmrPathRule.check(request, "/afterBlameReturnCheck.htm")>
var picProblemMap = new Z.HashMap();
function doPreAppointAfterBlame()
{//指定责任
//清空缓存数据
picProblemMap = new Z.HashMap();
var designAfsId = Z.FM.getChecked("designAfsId");
if (Z.V.isEmpty(designAfsId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAppointBlameData");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
for (var i = 0; i < obj.problemList.length; i++)
{
var p = obj.problemList[i];
var list = picProblemMap.get(''+p.picType);
if (!list)
list = [];
list.push(p);
picProblemMap.put(''+p.picType, list);
}
var dialogContent ='<form name="appointAfterBlameForm">';
dialogContent +='<input type="hidden" name="designAfsId" value="'+afterOrder.designAfsId+'">';
dialogContent +='<input type="hidden" name="outAfsId" value="'+afterOrder.outAfsId+'">';
dialogContent +='<input type="hidden" id="isReAppointBlame" name="isReAppointBlame" value="false">';
dialogContent +='<table class="z-table z-bordered-line z-pd6 z-bg-white z-text-left">';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">设计订单:</td>';
dialogContent +=' <td >'+afterOrder.designId+'</td>';
dialogContent +=' <td align="right">订单组织:</td>';
dialogContent +=' <td >'+(blameOrgMap.get(''+afterOrder.orgId) ? blameOrgMap.get(''+afterOrder.orgId) : '')+'</td>';
dialogContent +=' <td align="right">订单设计师:</td>';
dialogContent +=' <td >'+afterOrder.designer+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">旺旺号:</td>';
dialogContent +=' <td >'+afterOrder.buyerNick+'</td>';
dialogContent +=' <td align="right">产品名:</td>';
dialogContent +=' <td colspan="3" >'+afterOrder.orderText+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40">';
dialogContent +=' <td align="right" valign="top">问题描述:</td>';
dialogContent +=' <td colspan="5" valign="top">';
dialogContent +=' <div class="z-overflow-y-auto " style="min-height:26px; max-height:60px">';
dialogContent += afterOrder.problemDesc;
dialogContent +=' </div>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td width="100" align="right">责任组织:</td>';
dialogContent +=' <td width="160">';
dialogContent +=' <select id="picOrgId" name="picOrgId" onchange="showOrgOperator(this.value, \'\')" class="z-w140 z-select" data-role="z-select">';
dialogContent +=' <option value="">请选择</option>';
for (var i = 0; i < blameOrgMap._keys.length; i++)
{
var org = blameOrgMap.get(blameOrgMap._keys[i]);
var selcted = (afterOrder.picOrgId == org.orgId) ? "selected" : "";
dialogContent +=' <option value="'+org.orgId+'" '+selcted+'>'+org.orgName+'</option>';
}
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' <td width="100" align="right">责任归属:</td>';
dialogContent +=' <td>';
dialogContent +=' <div id="">';
dialogContent +=' <select id="picType" name="picType" onchange="showProblemType(this.value, \'\')" class="z-w140 z-select" data-role="z-select" data-class="z-blue" >';
dialogContent +=' <option value="">请选择</option>';
for (var i = 0; i < obj.picList.length; i++)
{
var picType = obj.picList[i];
var selcted = (afterOrder.picType == picType.picType) ? "selected" : "";
if (Z.V.isEmptyBlank(selcted) && picType.picStatus == 1)
continue;
dialogContent +=' <option value="'+picType.picType+'" '+selcted+'>'+picType.picTypeName+'</option>';
}
dialogContent +=' </select>';
dialogContent +=' </div>';
dialogContent +=' </td>';
dialogContent +=' <td align="right">售后原因:</td>';
dialogContent +=' <td id="picProblemTypeDiv">';
dialogContent +=' <select data-class="z-blue" data-role="z-select-search" id="problemType" name="problemType" class="z-w200 z-select">';
dialogContent +=' <option value="">请选择</option>';
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">售后责任人:</td>';
dialogContent +=' <td id="afterBlamerDiv">';
dialogContent +=' <select name="afterBlamer" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w140 z-select">';
dialogContent +=' <option value="">请选择</option>';
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' <td align="right">处理人:</td>';
var afterHandler = afterOrder.afterHandler;
dialogContent +=' <td>'+afterHandler+'</td>';
dialogContent +=' <td align="right">申诉时间:</td>';
dialogContent +=' <td>'+afterOrder.afterBlameReturnTime+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right" valign="top">申诉描述:</td>';
dialogContent +=' <td colspan="5">';
dialogContent +=' <div class="z-overflow-y-auto " style="min-height:26px; max-height:80px">';
dialogContent += (afterOrder.afterBlameReturnNote ? afterOrder.afterBlameReturnNote : "" ) ;
dialogContent +=' </div>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right" valign="top">审核备注:</td>';
dialogContent +=' <td colspan="5">';
dialogContent +=' <textarea name="checkNote" class="z-w100p z-h100">'+ (afterOrder.afterComplainCheckNote ? afterOrder.afterComplainCheckNote : "" )+'</textarea>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right" valign="top">退回原因:</td>';
dialogContent +=' <td colspan="5">';
dialogContent +=' <div class="z-overflow-y-auto z-text-gray " style="min-height:26px; max-height:80px">';
dialogContent += (afterOrder.afterReturnNote ? afterOrder.afterReturnNote : "" );
dialogContent +=' </div>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +='</table>';
dialogContent +='<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
if (afterOrder.afterStatus == ${AfterConstants.CS_100.value()} || afterOrder.afterStatus == ${AfterConstants.CS_200.value()} || afterOrder.afterStatus == ${AfterConstants.CS_300.value()})
{
dialogContent +=' <button type="button" id="appointReBlameBtn" class="z-button z-large z-cyan" onclick="doAfterComplainAccessReappoint(this.form)"><i class="z-font z-close"></i>重新审批</button>';
dialogContent +=' <button type="button" id="checkAccessCancel" class="z-button z-large z-blue" onclick="doAfterComplainAccess(this.form)"><i class="z-font z-close"></i>审核通过并取消</button>';
dialogContent +=' <button type="button" id="checkRejectBtn" class="z-button z-large z-cyan" onclick="doAfterComplainReject(this.form)"><i class="z-font z-return"></i>审核拒绝</button>';
}
dialogContent +=' <button type="button" class="z-button z-large z-mg-l10" onclick="Z.Dialog.close();">关闭</button>';
dialogContent +='</div>';
dialogContent +='</form>';
var appointBlameDialog = new Z.Dialog();
appointBlameDialog.id = "appointBlame";
appointBlameDialog.title = "售后订单:["+afterOrder.designAfsId+"]申诉审核";
appointBlameDialog.text = "<div id='appointBlame_dialogContent'>";
appointBlameDialog.width = 1024;
appointBlameDialog.height = 600;
appointBlameDialog.execute();
Z("#appointBlame_dialogContent").htmlc(dialogContent);
showOrgOperator(afterOrder.picOrgId, afterOrder.afterBlamer);//选中 操作员
showProblemType(afterOrder.picType, afterOrder.problemType)
});
ajax.setLoading("appointAfterBlameBtn", "正在处理", {disabled:true})
ajax.execute();
}
function showOrgOperator(orgId, userName)
{
var org = blameOrgMap.get(''+orgId);
var html ='<select name="afterBlamer" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w140 z-select">';
html +='\r\n <option value="">请选择</option>';
var userList = orgUserListMap.get(""+orgId);
if (org && userList && userList.length && userList.length > 0)
{
for (var i = 0; i < userList.length; i++)
{
var user = userList[i];
var selected = (''+user.operatorCode == ''+userName) ? "selected" : "";
html +='\r\n<option value="'+user.operatorCode+'" '+selected+'>'+user.operatorCode+'</option>';
}
}
html +='\r\n</select>';
Z("#afterBlamerDiv").htmlc(html);
}
function showProblemType(picTyle, problemType)
{
var html ='<select name="problemType" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w200 z-select">';
html +='\r\n <option value="">请选择</option>';
var problemList = picProblemMap.get(""+picTyle);
if (picTyle && problemList && problemList.length && problemList.length > 0)
{
for (var i = 0; i < problemList.length; i++)
{
var p = problemList[i];
var selcted = (''+problemType == ''+p.problemType) ? "selected" : "";
if (Z.V.isEmptyBlank(selcted) && p.problemStatus == 1)
continue;
html +='\r\n <option value="'+p.problemType+'" '+selcted+'>'+p.problemName+'</option>';
}
}
html +='\r\n</select>';
Z("#picProblemTypeDiv").htmlc(html);
}
function doAfterComplainReject(blameForm)
{//拒绝
Z(blameForm).find("#isReAppointBlame").val(false);
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doAfterComplainReject");
ajax.setParamForm(blameForm);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.Dialog.close();
document.theForm.submit();
});
ajax.setLoading("appointBlameBtn", "正在处理", {disabled:true});
ajax.execute();
}
function doAfterComplainAccess(blameForm)
{//审核通过 退回erp
Z(blameForm).find("#isReAppointBlame").val(false);
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doAfterComplainAccess");
ajax.setParamForm(blameForm);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.Dialog.close();
document.theForm.submit();
});
ajax.setLoading("checkAccessCancel", "正在处理", {disabled:true});
ajax.execute();
}
function doAfterComplainAccessReappoint(blameForm)
{//重新指派
Z(blameForm).find("#isReAppointBlame").val(true);
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doAppointAfterBlame");
ajax.setParamForm(blameForm);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.Dialog.close();
document.theForm.submit();
});
ajax.setLoading("appointReBlameBtn", "正在处理", {disabled:true});
ajax.execute();
}
</#if>
</script>
${zhiqim_manager_breadcrumb("售后申诉单列表")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/designAfterOrder.htm")><li onclick="Z.L.href('designAfterOrder.htm')">售后单列表</li></#if>
<li class="z-active">售后申诉列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="30%">售后单号:<input name="designAfsId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designAfsId}" maxlength="64" placeholder="订单号"></td>
<td width="34%">订&nbsp;单&nbsp;号 <input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>
创建时间:
<input id="startCreateDate" name="startCreateDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startCreateDate}">&nbsp;-&nbsp;
<input id="endCreateDate" name="endCreateDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endCreateDate}">
</td>
</tr>
<tr class="z-h40">
<td>责&nbsp;任&nbsp;人
<select name="afterBlamer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designerList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == afterBlamer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td>处理状态:
<select name="afterStatus" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="100" <#if afterStatus == "100">selected</#if>>异议申诉</option>
<option value="200" <#if afterStatus == "200">selected</#if>>售后待审</option>
<option value="500" <#if afterStatus == "500">selected</#if>>申诉拒绝</option>
<option value="-100" <#if afterStatus == "-100">selected</#if>>申诉成功</option>
</select>
</td>
<td>
</td>
</tr>
<tr class="z-h40">
<td colspan="3" class="z-text-center"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<#if ZmrPathRule.check(request, "openWangWang")><button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang('ww'+Z.FM.getChecked('designAfsId'), 'data-ww');"><img src="/zinc/images/wangwang.png">旺旺联系</button></#if>
<#if ZmrPathRule.check(request, "/afterBlameReturnCheck.htm")><button type="button" id="appointAfterBlameBtn" class="z-button z-mg-t3 z-mg-r6 z-orange" onclick="doPreAppointAfterBlame()"><i class="z-font z-modify"></i>申诉审核</button></#if>
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2380px">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="60">选择</td>
<td width="120">售后单号</td>
<td width="120">责任组织</td>
<td width="125">设计单号</td>
<td width="100">商户</td>
<td width="100">处理状态</td>
<td width="250">售后原因</td>
<td width="150">产品</td>
<td width="140">店铺</td>
<td width="140">旺旺号</td>
<td width="150">特殊工艺</td>
<td width="80">订单金额</td>
<td width="90">创建时间</td>
<td width="100">设计师</td>
<td width="120">联系人</td>
<td width="120">对稿手机</td>
<td width="120">对稿微信</td>
<td width="100">新补单号</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 23, "暂时没有订单信息")}
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designAfsId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" onclick="doShowAfterOrderInfo(this, this.value)" value="${item.getDesignAfsId()}" data-qq="${item.getUserQq()}" data-wx="${item.getUserWx()}" data-buyerNick="${item.getBuyerNick()}"></td>
<td>${item.getDesignAfsId()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getPicOrgId())}</td>
<td>${item.getDesignId()}</td>
<td>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}</td>
<td>${AfterConstants.statusHtml(item.getAfterStatus())}</td>
<td>${item.getProblemDesc()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getShopNick()}</td>
<td id="ww${item.getDesignAfsId()}" data-ww="${item.getBuyerNick()}">${item.getBuyerNick()}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getAfterCreateTime())}</td>
<td>${item.getDesigner()}</td>
<td>${item.getUserContact()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getUserWx()}</td>
<td><#if item.getNewDesignId() gt 0>${item.getNewDesignId()}</#if></td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "afterBlameReturn.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div id="afterRight" class="z-fixed z-pd6 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:340px;z-index:50;">
<div id="afterRightContent" class="zi-mg-t15">
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">
<tr bgcolor="#f5f5f5">
<td>产品信息:</td>
</tr>
<tr>
<td id="orderText" class="z-lh150p">请选择订单</td>
</tr>
<tr bgcolor="#f5f5f5">
<td><span class="z-bold">问题描述:</span></td>
</tr>
<tr>
<td class="z-lh150p">
<div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_AftersaleFile', this.checked);" data-id="Z_Checkbox_ZaKqqLra8T" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_ZaKqqLra8T" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">售后文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_AftersaleFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_DesginFile', this.checked);" data-id="Z_Checkbox_TsMUgMR9ME" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_TsMUgMR9ME" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">设计文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_DesginFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_EndFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg9" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg9" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">印刷文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
</table>
</div>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,561 @@
${Styles.htmlOverflowHidden()}
${yangcai_calc_Left_width_height(340, 110)}
<script>
//查询操作员
var attaTypeMap = new Z.HashMap();
var blameOrgMap = new Z.HashMap();
var orgUserListMap = new Z.HashMap();
Z.onload(function(){
//初始化 文件类型
<#for item : FileTypeConstants.getFileTypeList()>
attaTypeMap.put('${item.value()}', '${item.desc()}')
</#for>
});
function getObject(json)
{
json = json.replace(/\r/g, '');
json = json.replace(/\n/g, '<br/>');
json = json.replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;');
var reg = /(\u0000)|(\u0001)|(\u0002)|(\u0003)|(\u0004)|(\u0005)|(\u0006)|(\u0007)|(\u000b)|(\u000e)|(\u000f)|(\u0010)|(\u0011)|(\u0012)|(\u0013)|(\u0014)|(\u0015)|(\u0016)|(\u0017)|(\u0018)|(\u0019)|(\u001a)|(\u001b)|(\u001c)|(\u001d)|(\u001e)|(\u001f)/g;
//var reg = //g;
return Z.J.toObject(json.replace(reg, ""));
}
function doShowAfterOrderInfo(obj, designAfsId)
{
if (!designAfsId)
{
Z.alert("请选择一项");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAfterOrderDataInfo");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
//初始化数据内容
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var problemType = obj.problemType;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
var afterRightContent = '';
afterRightContent +='\r\n <table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td>产品信息:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="orderText" class="z-lh150p">'+afterOrder.orderText+'</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">问题描述:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(afterOrder.problemDesc ? afterOrder.problemDesc : '');
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
if (problemType && problemType.problemName)
{
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">售后原因:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(problemType.problemName);
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
for (var i=0; i<attamap._keys.length; i++)
{
var attaList = attamap.get(attamap._keys[i]);
if (!attaList || attaList.length == 0)
continue;
if (!attaTypeMap.get(attamap._keys[i]))
continue;//不支持的附件类型
afterRightContent +='\r\n <tr class="z-h40" bgcolor="#efefef">';
afterRightContent +='\r\n <td style="position: relative;">';
afterRightContent +='\r\n <input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox(\'atta_'+attamap._keys[i]+'\', this.checked);" >';
afterRightContent +='\r\n <b class="z-pd4">'+attaTypeMap.get(attamap._keys[i])+'</b>';
afterRightContent +='\r\n <button id="download_'+attamap._keys[i]+'" onclick="doDownload(\''+attamap._keys[i]+'\')" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr class="z-h40">';
afterRightContent +='\r\n <td class="z-pd-l10">';
for (var j=0; j<attaList.length; j++)
{
var atta = attaList[j];
afterRightContent +='\r\n <div class="z-overflow-y-auto z-w100p" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n <div id="div_checkbox_'+atta.attaId+'" class="z-text-ellipsis z-w300 z-pointer" onclick="" title="'+atta.fileName+'">';
afterRightContent +='\r\n <input id="atta_'+atta.attaId+'" name="atta_'+atta.attaModul+'" type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" data-attaid="'+atta.attaId+'" data-downloadUrl="'+(atta.ossUrl ? atta.ossUrl : '')+'" value="'+atta.attaId+'"><span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+atta.fileName+'</span><br>';
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </div>';
}
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
afterRightContent +='\r\n </table>';
Z("#afterRightContent").htmlc(afterRightContent);
});
ajax.execute();
}
function doDownload(attaType)
{
var attaIds = Z.FM.getCheckBoxValue("atta_" + attaType, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要下载的文件");
return false;
}
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("attaId", attaIds);
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
Z.L.href("/downFile.htm?attaId=" + attaIds, zCallFrame);
});
ajax.setLoading('download_'+attaType, '下载', {disabled:true});
ajax.execute();
}
<#if ZmrPathRule.check(request, "/appointAfterBlame.htm")>
var picProblemMap = new Z.HashMap();
function doPreAppointAfterBlame()
{//指定责任
//清空缓存数据
picProblemMap = new Z.HashMap();
var designAfsId = Z.FM.getChecked("designAfsId");
if (Z.V.isEmpty(designAfsId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAppointBlameData");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
for (var i = 0; i < obj.problemList.length; i++)
{
var p = obj.problemList[i];
var list = picProblemMap.get(''+p.picType);
if (!list)
list = [];
list.push(p);
picProblemMap.put(''+p.picType, list);
}
var dialogContent ='<form name="appointAfterBlameForm">';
dialogContent +='<input type="hidden" name="designAfsId" value="'+afterOrder.designAfsId+'">';
dialogContent +='<input type="hidden" name="outAfsId" value="'+afterOrder.outAfsId+'">';
dialogContent +='<table class="z-table z-bordered-line z-pd6 z-bg-white z-text-left">';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">设计订单:</td>';
dialogContent +=' <td >'+afterOrder.designId+'</td>';
dialogContent +=' <td align="right">订单组织:</td>';
dialogContent +=' <td >'+(blameOrgMap.get(''+afterOrder.orgId) ? blameOrgMap.get(''+afterOrder.orgId).orgName : '')+'</td>';
dialogContent +=' <td align="right">订单设计师:</td>';
dialogContent +=' <td >'+afterOrder.designer+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">旺旺号:</td>';
dialogContent +=' <td >'+afterOrder.buyerNick+'</td>';
dialogContent +=' <td align="right">产品名:</td>';
dialogContent +=' <td colspan="3" >'+afterOrder.orderText+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40">';
dialogContent +=' <td align="right" valign="top">问题描述:</td>';
dialogContent +=' <td colspan="5" valign="top"><div class="z-overflow-y-auto " style="min-height:26px; max-height:160px">'+afterOrder.problemDesc+'</div></td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td width="100" align="right">责任组织:</td>';
dialogContent +=' <td width="160">';
dialogContent +=' <select id="picOrgId" name="picOrgId" onchange="showOrgOperator(this.value, \'\')" class="z-w140 z-select" data-role="z-select">';
dialogContent +=' <option value="">请选择</option>';
for (var i = 0; i < blameOrgMap._keys.length; i++)
{
var org = blameOrgMap.get(blameOrgMap._keys[i]);
var selcted = (afterOrder.picOrgId == org.orgId) ? "selected" : "";
dialogContent +=' <option value="'+org.orgId+'" '+selcted+'>'+org.orgName+'</option>';
}
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' <td width="100" align="right">责任归属:</td>';
dialogContent +=' <td>';
dialogContent +=' <div id="">';
dialogContent +=' <select id="picType" name="picType" onchange="showProblemType(this.value, \'\')" class="z-w140 z-select" data-role="z-select" data-class="z-blue" >';
dialogContent +=' <option value="">请选择</option>';
for (var i = 0; i < obj.picList.length; i++)
{
var picType = obj.picList[i];
var selcted = (afterOrder.picType == picType.picType) ? "selected" : "";
if (Z.V.isEmptyBlank(selcted) && picType.picStatus == 1)
continue;
dialogContent +=' <option value="'+picType.picType+'" '+selcted+'>'+picType.picTypeName+'</option>';
}
dialogContent +=' </select>';
dialogContent +=' </div>';
dialogContent +=' </td>';
dialogContent +=' <td align="right">售后原因:</td>';
dialogContent +=' <td id="picProblemTypeDiv">';
dialogContent +=' <select data-class="z-blue" data-role="z-select-search" id="problemType" name="problemType" class="z-w200 z-select">';
dialogContent +=' <option value="">请选择</option>';
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">售后责任人:</td>';
dialogContent +=' <td id="afterBlamerDiv">';
dialogContent +=' <select name="afterBlamer" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w140 z-select">';
dialogContent +=' <option value="">请选择</option>';
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' <td align="right">处理人:</td>';
var afterHandler = '${request.getSessionName()}';
dialogContent +=' <td>'+afterHandler+'</td>';
dialogContent +=' <td align="right">损失金额:</td>';
dialogContent +=' <td><input name="lossAmount" class="z-input z-w200" value="'+afterOrder.lossAmount.toFixed(2)+'" data-options="type:Amount2R;paste:true"></td>';
dialogContent +=' </tr>';
dialogContent +='</table>';
dialogContent +='<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
if (afterOrder.afterStatus == ${AfterConstants.CS_0.value()})
dialogContent +=' <button type="button" id="appointBlameBtn" class="z-button z-large z-w120 z-cyan" onclick="doAppointAfterBlame(this.form)">提交</button>';
dialogContent +=' <button type="button" class="z-button z-large z-mg-l10" onclick="Z.Dialog.close();">关闭</button>';
dialogContent +='</div>';
dialogContent +='</form>';
var appointBlameDialog = new Z.Dialog();
appointBlameDialog.id = "appointBlame";
appointBlameDialog.title = "售后订单:["+afterOrder.outAfsId+"]责任分配";
appointBlameDialog.text = "<div id='appointBlame_dialogContent'></div>";
appointBlameDialog.width = 1024;
appointBlameDialog.height = 500;
appointBlameDialog.execute();
Z("#appointBlame_dialogContent").htmlc(dialogContent);
showOrgOperator(afterOrder.picOrgId, afterOrder.afterBlamer);//选中 操作员
showProblemType(afterOrder.picType, afterOrder.problemType)
});
ajax.setLoading("appointAfterBlameBtn", "正在处理", {disabled:true})
ajax.execute();
}
function showOrgOperator(orgId, userName)
{
var org = blameOrgMap.get(''+orgId);
var html ='<select name="afterBlamer" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w140 z-select">';
html +='\r\n <option value="">请选择</option>';
var userList = orgUserListMap.get(""+orgId);
if (org && userList && userList.length && userList.length > 0)
{
for (var i = 0; i < userList.length; i++)
{
var user = userList[i];
var selected = (''+user.operatorCode == ''+userName) ? "selected" : "";
html +='\r\n<option value="'+user.operatorCode+'" '+selected+'>'+user.operatorCode+'</option>';
}
}
html +='\r\n</select>';
Z("#afterBlamerDiv").htmlc(html);
}
function showProblemType(picTyle, problemType)
{
var html ='<select name="problemType" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w200 z-select">';
html +='\r\n <option value="">请选择</option>';
var problemList = picProblemMap.get(""+picTyle);
if (picTyle && problemList && problemList.length && problemList.length > 0)
{
for (var i = 0; i < problemList.length; i++)
{
var p = problemList[i];
var selcted = (''+problemType == ''+p.problemType) ? "selected" : "";
if (Z.V.isEmptyBlank(selcted) && p.problemStatus == 1)
continue;
html +='\r\n <option value="'+p.problemType+'" '+selcted+'>'+p.problemName+'</option>';
}
}
html +='\r\n</select>';
Z("#picProblemTypeDiv").htmlc(html);
}
function doAppointAfterBlame(blameForm)
{//提交责任分配
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doAppointAfterBlame");
ajax.setParamForm(blameForm);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.Dialog.close();
document.theForm.submit();
});
ajax.setLoading("appointBlameBtn", "正在提交", {disabled:true});
ajax.execute();
}
</#if>
//赔付比修改
function doEditDesignAfsId(){
var designAfsId = Z.FM.getChecked("designAfsId");
var lossAmount = Z("#lossAmount_"+designAfsId).val();
var compensateAmount = Z("#compensateAmount_"+designAfsId).val();
var designId = Z("#designId_"+designAfsId).val();
var afterStatus = Z("#afterStatus_"+designAfsId).val();
if (Z.V.isEmpty(designAfsId)){
Z.alert("请选择一条售后单");
return;
};
if (afterStatus < 0 || afterStatus > 300){
Z.alert("该售后单状态不允许修改赔付比");
return;
};
var dialog = new Z.Dialog();
dialog.title = "修改售后赔付比";
dialog.url = "/doEditDesignAfsId.htm?designId=" + designId +"&designAfsId="+designAfsId+"&lossAmount="+lossAmount+"&compensateAmount="+compensateAmount;
dialog.width = 600;
dialog.height = 354;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("售后单列表")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li class="z-active">售后单列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="30%">售后单号:<input name="designAfsId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designAfsId}" maxlength="64" placeholder="订单号"></td>
<td width="34%">订&nbsp;单&nbsp;号 <input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>
创建时间:
<input id="startCreateDate" name="startCreateDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startCreateDate}">&nbsp;-&nbsp;
<input id="endCreateDate" name="endCreateDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endCreateDate}">
</td>
</tr>
<tr class="z-h40">
<td>设&nbsp;计&nbsp;师
<input name="designer" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
</td>
<td>处理状态:
<select name="afterStatus" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : AfterConstants.getStatusList()>
<option value="${item.value()}" <#if item.value() == afterStatus>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<td>
</td>
</tr>
<tr class="z-h40">
<td colspan="3" class="z-text-center"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<#if ZmrPathRule.check(request, "/designCopiesr.htm")>
<button id="doEditDesignAfsId" type="button" class="z-button z-blue" onclick="doEditDesignAfsId();"><i class="z-font z-modify"></i>赔付比修改</button>
</#if>
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2500px">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="30">选择</td>
<td width="120">售后单号</td>
<td width="100">订单号</td>
<td width="80">设计师</td>
<td width="60">创建时间</td>
<td width="100">处理状态</td>
<td width="60">损失金额</td>
<td width="60">赔付金额<span data-role="z-tooltip" data-options="align:left;width:200px;" class="z-color-red" data-text="2021年10月1日起,设计师售后赔偿金额由损失金额改为赔付金额">&nbsp;*</span></td>
<td width="250">售后原因</td>
<td width="150">产品</td>
<td width="80">店铺</td>
<td width="80">旺旺号</td>
<td width="100">特殊工艺</td>
<td width="60">订单金额</td>
<td width="100">新补单号</td>
<td width="150">申诉拒绝原因</td>
<td width="60">申诉拒绝时间</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 21, "暂时没有订单信息")}
<#for item : pageResult.list()>
<input id="lossAmount_${item.getDesignAfsId()}" type="hidden" value="${item.getLossAmount()}">
<input id="compensateAmount_${item.getDesignAfsId()}" type="hidden" value="${item.getCompensateAmount()}">
<input id="designId_${item.getDesignAfsId()}" type="hidden" value="${item.getDesignId()}">
<input id="afterStatus_${item.getDesignAfsId()}" type="hidden" value="${item.getAfterStatus()}">
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input id="designAfsId" name="designAfsId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" onclick="doShowAfterOrderInfo(this, this.value)" value="${item.getDesignAfsId()}" data-qq="${item.getUserQq()}" data-wx="${item.getUserWx()}" data-buyerNick="${item.getBuyerNick()}"></td>
<td>${item.getDesignAfsId()}</td>
<td>${item.getDesignId()}</td>
<td>${item.getDesigner()}</td>
<td>${Sqls.toDateTimeString(item.getAfterCreateTime())}</td>
<td>${AfterConstants.statusHtml(item.getAfterStatus())}</td>
<td>${item.getLossAmount()}</td>
<#if item.getAfterCreateTime().getTime() gte lNowTime>
<td>${(item.getCompensateAmount())}</td>
<#else>
<td>${item.getLossAmount()}</td>
</#if>
<td>${item.getProblemDesc()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getShopNick()}</td>
<td id="ww${item.getDesignAfsId()}" data-ww="${item.getBuyerNick()}">${item.getBuyerNick()}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td><#if item.getNewDesignId() gt 0>${item.getNewDesignId()}</#if></td>
<td>${item.getAfterReturnNote()}</td>
<td>${Sqls.toDateTimeString(item.getAfterBlameReturnTime())}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "designAfterOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div id="afterRight" class="z-fixed z-pd6 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:340px;z-index:50;">
<div id="afterRightContent" class="zi-mg-t15">
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">
<tr bgcolor="#f5f5f5">
<td>产品信息:</td>
</tr>
<tr>
<td id="orderText" class="z-lh150p">请选择订单</td>
</tr>
<tr bgcolor="#f5f5f5">
<td><span class="z-bold">问题描述:</span></td>
</tr>
<tr>
<td class="z-lh150p">
<div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_AftersaleFile', this.checked);" data-id="Z_Checkbox_ZaKqqLra8T" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_ZaKqqLra8T" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">售后文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_AftersaleFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_DesginFile', this.checked);" data-id="Z_Checkbox_TsMUgMR9ME" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_TsMUgMR9ME" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">设计文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_DesginFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_EndFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg9" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg9" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">印刷文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
</table>
</div>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,60 @@
${request.getValidateScript()}
<script>
function editDesignAfsId()
{
var designId = ${designId};
var designAfsId = ${designAfsId};
var lossAmount = ${lossAmount};
var compensateAmount = ${compensateAmount};
var compensateRatio = document.getElementById("compensateRatio").value;
compensateAmount = lossAmount*compensateRatio/100;
Z.confirm('原赔付金额为【'+${compensateAmount}+'】修改后赔付金额为【'+compensateAmount+'】,是否同意修改?',
function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignAfterOrderAction");
ajax.setMethodName("doEditDesignAfsId");
ajax.addParam(designAfsId);
ajax.addParam(compensateAmount);
ajax.addParam(designId);
ajax.addParam(compensateRatio);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("editDesignAfsId", '正在提交', {disabled:true});
ajax.execute();
});
}
</script>
<table class="z-table z-bordered z-pd6">
<tr class="z-h50" bgcolor="${oddColor}">
<td width="25%">售后单号:</td>
<td width="*">${designAfsId}</td>
</tr>
<tr class="z-h50" bgcolor="${oddColor}">
<td width="25%">订单号:</td>
<td width="*">${designId}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>损失金额:</td>
<td>${lossAmount}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>赔付金额:</td>
<td>${compensateAmount}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td><span data-role="z-tooltip" data-options="align:left;width:200px;" class="z-color-red" data-text="默认赔付百分比为70%">&nbsp;*</span>赔付比:</td>
<td>
<input id="compensateRatio" name="compensateRatio" placeholder="请输入纯数字百分比" value="" step="1" oninput="if(value>100)value=100;if(value<0)value=0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,1})?/) ? this.value.match(/\d+(\.\d{0,1})?/)[0] : ''">
%</br>
说明:填写1-100的数字,比如65就代表赔付损失金额的65%
</td>
</tr>
</table>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="editDesignAfsId" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editDesignAfsId();">提交</button>&nbsp;
<button type="button" class="z-button z-large z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
@@ -0,0 +1,533 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(340, 110)}
<script>
//查询操作员
var attaTypeMap = new Z.HashMap();
var blameOrgMap = new Z.HashMap();
var orgUserListMap = new Z.HashMap();
Z.onload(function(){
//初始化 文件类型
<#for item : FileTypeConstants.getFileTypeList()>
attaTypeMap.put('${item.value()}', '${item.desc()}')
</#for>
//初始化 责任组织 & 初始化组织操作员
<#for org : ZmrOrgDao.list(request)>
blameOrgMap.put('${org.getOrgId()}', getObject('${org}'));
var users${org.getOrgId()} = [];
<#for opr : ZmrOperatorDao.getOperator(request, org.getOrgId())>
users${org.getOrgId()}.push(getObject('${opr}'));
</#for>
orgUserListMap.put('${org.getOrgId()}', users${org.getOrgId()});
</#for>
});
function getObject(json)
{
json = json.replace(/\r/g, '');
json = json.replace(/\n/g, '<br/>');
json = json.replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;');
var reg = /(\u0000)|(\u0001)|(\u0002)|(\u0003)|(\u0004)|(\u0005)|(\u0006)|(\u0007)|(\u000b)|(\u000e)|(\u000f)|(\u0010)|(\u0011)|(\u0012)|(\u0013)|(\u0014)|(\u0015)|(\u0016)|(\u0017)|(\u0018)|(\u0019)|(\u001a)|(\u001b)|(\u001c)|(\u001d)|(\u001e)|(\u001f)/g;
//var reg = //g;
return Z.J.toObject(json.replace(reg, ""));
}
function doShowAfterOrderInfo(obj, designAfsId)
{
if (!designAfsId)
{
Z.alert("请选择一项");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAfterOrderDataInfo");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
//初始化数据内容
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var problemType = obj.problemType;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
var afterRightContent = '';
afterRightContent +='\r\n <table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td>产品信息:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="orderText" class="z-lh150p">'+afterOrder.orderText+'</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">问题描述:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(afterOrder.problemDesc ? afterOrder.problemDesc : '');
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
if (problemType && problemType.problemName)
{
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">售后原因:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(problemType.problemName);
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
for (var i=0; i<attamap._keys.length; i++)
{
var attaList = attamap.get(attamap._keys[i]);
if (!attaList || attaList.length == 0)
continue;
if (!attaTypeMap.get(attamap._keys[i]))
continue;//不支持的附件类型
afterRightContent +='\r\n <tr class="z-h40" bgcolor="#efefef">';
afterRightContent +='\r\n <td style="position: relative;">';
afterRightContent +='\r\n <input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox(\'atta_'+attamap._keys[i]+'\', this.checked);" >';
afterRightContent +='\r\n <b class="z-pd4">'+attaTypeMap.get(attamap._keys[i])+'</b>';
afterRightContent +='\r\n <button id="download_'+attamap._keys[i]+'" onclick="doDownload(\''+attamap._keys[i]+'\')" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr class="z-h40">';
afterRightContent +='\r\n <td class="z-pd-l10">';
for (var j=0; j<attaList.length; j++)
{
var atta = attaList[j];
afterRightContent +='\r\n <div class="z-overflow-y-auto z-w100p" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n <div id="div_checkbox_'+atta.attaId+'" class="z-text-ellipsis z-w300 z-pointer" onclick="" title="'+atta.fileName+'">';
afterRightContent +='\r\n <input id="atta_'+atta.attaId+'" name="atta_'+atta.attaModul+'" type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" data-attaid="'+atta.attaId+'" data-downloadUrl="'+(atta.ossUrl ? atta.ossUrl : '')+'" value="'+atta.attaId+'"><span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+atta.fileName+'</span><br>';
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </div>';
}
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
afterRightContent +='\r\n </table>';
Z("#afterRightContent").htmlc(afterRightContent);
});
ajax.execute();
}
function doDownload(attaType)
{
var attaIds = Z.FM.getCheckBoxValue("atta_" + attaType, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要下载的文件");
return false;
}
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("attaId", attaIds);
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
Z.L.href("/downFile.htm?attaId=" + attaIds, zCallFrame);
});
ajax.setLoading('download_'+attaType, '下载', {disabled:true});
ajax.execute();
}
<#if ZmrPathRule.check(request, "/appointAfterBlame.htm")>
var picProblemMap = new Z.HashMap();
function doPreAppointAfterBlame()
{//指定责任
//清空缓存数据
picProblemMap = new Z.HashMap();
var designAfsId = Z.FM.getChecked("designAfsId");
if (Z.V.isEmpty(designAfsId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAppointBlameData");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
for (var i = 0; i < obj.problemList.length; i++)
{
var p = obj.problemList[i];
var list = picProblemMap.get(''+p.picType);
if (!list)
list = [];
list.push(p);
picProblemMap.put(''+p.picType, list);
}
var dialogContent ='<form name="appointAfterBlameForm">';
dialogContent +='<input type="hidden" name="designAfsId" value="'+afterOrder.designAfsId+'">';
dialogContent +='<input type="hidden" name="outAfsId" value="'+afterOrder.outAfsId+'">';
dialogContent +='<table class="z-table z-bordered-line z-pd6 z-bg-white z-text-left">';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">设计订单:</td>';
dialogContent +=' <td >'+afterOrder.designId+'</td>';
dialogContent +=' <td align="right">订单组织:</td>';
dialogContent +=' <td >'+(blameOrgMap.get(''+afterOrder.orgId) ? blameOrgMap.get(''+afterOrder.orgId).orgName : '')+'</td>';
dialogContent +=' <td align="right">订单设计师:</td>';
dialogContent +=' <td >'+afterOrder.designer+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">旺旺号:</td>';
dialogContent +=' <td >'+afterOrder.buyerNick+'</td>';
dialogContent +=' <td align="right">产品名:</td>';
dialogContent +=' <td colspan="3" >'+afterOrder.orderText+'</td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40">';
dialogContent +=' <td align="right" valign="top">问题描述:</td>';
dialogContent +=' <td colspan="5" valign="top"><div class="z-overflow-y-auto " style="min-height:26px; max-height:160px">'+afterOrder.problemDesc+'</div></td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td width="100" align="right">责任组织:</td>';
dialogContent +=' <td width="160">';
dialogContent +=' <select id="picOrgId" name="picOrgId" onchange="showOrgOperator(this.value, \'\')" class="z-w140 z-select" data-role="z-select">';
dialogContent +=' <option value="">请选择</option>';
for (var i = 0; i < blameOrgMap._keys.length; i++)
{
var org = blameOrgMap.get(blameOrgMap._keys[i]);
var selcted = (afterOrder.picOrgId == org.orgId) ? "selected" : "";
dialogContent +=' <option value="'+org.orgId+'" '+selcted+'>'+org.orgName+'</option>';
}
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' <td width="100" align="right">责任归属:</td>';
dialogContent +=' <td>';
dialogContent +=' <div id="">';
dialogContent +=' <select id="picType" name="picType" onchange="showProblemType(this.value, \'\')" class="z-w140 z-select" data-role="z-select" data-class="z-blue" >';
dialogContent +=' <option value="">请选择</option>';
for (var i = 0; i < obj.picList.length; i++)
{
var picType = obj.picList[i];
var selcted = (afterOrder.picType == picType.picType) ? "selected" : "";
if (Z.V.isEmptyBlank(selcted) && picType.picStatus == 1)
continue;
dialogContent +=' <option value="'+picType.picType+'" '+selcted+'>'+picType.picTypeName+'</option>';
}
dialogContent +=' </select>';
dialogContent +=' </div>';
dialogContent +=' </td>';
dialogContent +=' <td align="right">售后原因:</td>';
dialogContent +=' <td id="picProblemTypeDiv">';
dialogContent +=' <select data-class="z-blue" data-role="z-select-search" id="problemType" name="problemType" class="z-w200 z-select">';
dialogContent +=' <option value="">请选择</option>';
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h40" bgcolor="">';
dialogContent +=' <td align="right">售后责任人:</td>';
dialogContent +=' <td id="afterBlamerDiv">';
dialogContent +=' <select name="afterBlamer" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w140 z-select">';
dialogContent +=' <option value="">请选择</option>';
dialogContent +=' </select>';
dialogContent +=' </td>';
dialogContent +=' <td align="right">处理人:</td>';
var afterHandler = '${request.getSessionName()}';
dialogContent +=' <td colspan="5">'+afterHandler+'</td>';
dialogContent +=' </tr>';
dialogContent +='</table>';
dialogContent +='<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
if (afterOrder.afterStatus == ${AfterConstants.CS_0.value()})
dialogContent +=' <button type="button" id="appointBlameBtn" class="z-button z-large z-w120 z-cyan" onclick="doAppointAfterBlame(this.form)">提交</button>';
dialogContent +=' <button type="button" class="z-button z-large z-mg-l10" onclick="Z.Dialog.close();">关闭</button>';
dialogContent +='</div>';
dialogContent +='</form>';
var appointBlameDialog = new Z.Dialog();
appointBlameDialog.id = "appointBlame";
appointBlameDialog.title = "售后订单:["+afterOrder.outAfsId+"]责任分配";
appointBlameDialog.text = "<div id='appointBlame_dialogContent'></div>";
appointBlameDialog.width = 1024;
appointBlameDialog.height = 500;
appointBlameDialog.execute();
Z("#appointBlame_dialogContent").htmlc(dialogContent);
showOrgOperator(afterOrder.picOrgId, afterOrder.afterBlamer);//选中 操作员
showProblemType(afterOrder.picType, afterOrder.problemType)
});
ajax.setLoading("appointAfterBlameBtn", "正在处理", {disabled:true})
ajax.execute();
}
function showOrgOperator(orgId, userName)
{
var org = blameOrgMap.get(''+orgId);
var html ='<select name="afterBlamer" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w140 z-select">';
html +='\r\n <option value="">请选择</option>';
var userList = orgUserListMap.get(""+orgId);
if (org && userList && userList.length && userList.length > 0)
{
for (var i = 0; i < userList.length; i++)
{
var user = userList[i];
var selected = (''+user.operatorCode == ''+userName) ? "selected" : "";
html +='\r\n<option value="'+user.operatorCode+'" '+selected+'>'+user.operatorCode+'</option>';
}
}
html +='\r\n</select>';
Z("#afterBlamerDiv").htmlc(html);
}
function showProblemType(picTyle, problemType)
{
var html ='<select name="problemType" data-class="z-blue" data-role="z-select-search" data-options="maxHeight:180px" id="afsHandler"class="z-w200 z-select">';
html +='\r\n <option value="">请选择</option>';
var problemList = picProblemMap.get(""+picTyle);
if (picTyle && problemList && problemList.length && problemList.length > 0)
{
for (var i = 0; i < problemList.length; i++)
{
var p = problemList[i];
var selcted = (''+problemType == ''+p.problemType) ? "selected" : "";
if (Z.V.isEmptyBlank(selcted) && p.problemStatus == 1)
continue;
html +='\r\n <option value="'+p.problemType+'" '+selcted+'>'+p.problemName+'</option>';
}
}
html +='\r\n</select>';
Z("#picProblemTypeDiv").htmlc(html);
}
function doAppointAfterBlame(blameForm)
{//提交责任分配
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doAppointAfterBlame");
ajax.setParamForm(blameForm);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.Dialog.close();
document.theForm.submit();
});
ajax.setLoading("appointBlameBtn", "正在提交", {disabled:true});
ajax.execute();
}
</#if>
</script>
${zhiqim_manager_breadcrumb("我导致的售后单")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/waitHandleAfterOrder.htm")><li onclick="Z.L.href('waitHandleAfterOrder.htm')">我的售后</li></#if>
<li class="z-active">我导致的售后单</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="30%">售后单号:<input name="designAfsId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designAfsId}" maxlength="64" placeholder="订单号"></td>
<td width="34%">订&nbsp;单&nbsp;号 <input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>
创建时间:
<input id="startCreateDate" name="startCreateDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startCreateDate}">&nbsp;-&nbsp;
<input id="endCreateDate" name="endCreateDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endCreateDate}">
</td>
</tr>
<tr class="z-h40">
<td>责&nbsp;任&nbsp;人
<select name="afterBlamer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designerList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == afterBlamer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td align="left" colspan="2"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<#if ZmrPathRule.check(request, "openWangWang")><button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang('ww'+Z.FM.getChecked('designAfsId'), 'data-ww');"><img src="/zinc/images/wangwang.png">旺旺联系</button></#if>
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2370px">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="60">选择</td>
<td width="120">售后单号</td>
<td width="120">责任组织</td>
<td width="120">设计单号</td>
<td width="100">处理状态</td>
<td width="80">损失金额</td>
<td width="250">售后原因</td>
<td width="150">产品</td>
<td width="140">店铺</td>
<td width="140">旺旺号</td>
<td width="200">特殊工艺</td>
<td width="80">订单金额</td>
<td width="90">创建时间</td>
<td width="100">设计师</td>
<td width="120">联系人</td>
<td width="120">对稿手机</td>
<td width="120">对稿微信</td>
<td width="100">新补单号</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 19, "暂时没有订单信息")}
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input id="designAfsId" name="designAfsId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" onclick="doShowAfterOrderInfo(this, this.value)" value="${item.getDesignAfsId()}" data-qq="${item.getUserQq()}" data-wx="${item.getUserWx()}" data-buyerNick="${item.getBuyerNick()}"></td>
<td>${item.getDesignAfsId()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getPicOrgId())}</td>
<td>${item.getDesignId()}</td>
<td>${AfterConstants.statusHtml(item.getAfterStatus())}</td>
<td>${item.getLossAmount()}</td>
<td>${item.getProblemDesc()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getShopNick()}</td>
<td id="ww${item.getDesignAfsId()}" data-ww="${item.getBuyerNick()}">${item.getBuyerNick()}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getAfterCreateTime())}</td>
<td>${item.getDesigner()}</td>
<td>${item.getUserContact()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getUserWx()}</td>
<td><#if item.getNewDesignId() gt 0>${item.getNewDesignId()}</#if></td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "designAfterOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div id="afterRight" class="z-fixed z-pd6 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:340px;z-index:50;">
<div id="afterRightContent" class="zi-mg-t15">
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">
<tr bgcolor="#f5f5f5">
<td>产品信息:</td>
</tr>
<tr>
<td id="orderText" class="z-lh150p">请选择订单</td>
</tr>
<tr bgcolor="#f5f5f5">
<td><span class="z-bold">问题描述:</span></td>
</tr>
<tr>
<td class="z-lh150p">
<div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_AftersaleFile', this.checked);" data-id="Z_Checkbox_ZaKqqLra8T" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_ZaKqqLra8T" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">售后文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_AftersaleFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_DesginFile', this.checked);" data-id="Z_Checkbox_TsMUgMR9ME" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_TsMUgMR9ME" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">设计文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_DesginFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_EndFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg9" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg9" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">印刷文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
</table>
</div>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,337 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(340, 110)}
<script>
//查询操作员
var attaTypeMap = new Z.HashMap();
var blameOrgMap = new Z.HashMap();
var orgUserListMap = new Z.HashMap();
Z.onload(function(){
//初始化 文件类型
<#for item : FileTypeConstants.getFileTypeList()>
attaTypeMap.put('${item.value()}', '${item.desc()}')
</#for>
//初始化 责任组织 & 初始化组织操作员
<#for org : ZmrOrgDao.list(request)>
blameOrgMap.put('${org.getOrgId()}', getObject('${org}'));
var users${org.getOrgId()} = [];
<#for opr : ZmrOperatorDao.getOperator(request, org.getOrgId())>
users${org.getOrgId()}.push(getObject('${opr}'));
</#for>
orgUserListMap.put('${org.getOrgId()}', users${org.getOrgId()});
</#for>
});
function getObject(json)
{
json = json.replace(/\r/g, '');
json = json.replace(/\n/g, '<br/>');
json = json.replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;');
var reg = /(\u0000)|(\u0001)|(\u0002)|(\u0003)|(\u0004)|(\u0005)|(\u0006)|(\u0007)|(\u000b)|(\u000e)|(\u000f)|(\u0010)|(\u0011)|(\u0012)|(\u0013)|(\u0014)|(\u0015)|(\u0016)|(\u0017)|(\u0018)|(\u0019)|(\u001a)|(\u001b)|(\u001c)|(\u001d)|(\u001e)|(\u001f)/g;
//var reg = //g;
return Z.J.toObject(json.replace(reg, ""));
}
function doShowAfterOrderInfo(obj, designAfsId)
{
if (!designAfsId)
{
Z.alert("请选择一项");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAfterOrderDataInfo");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
//初始化数据内容
var attamap = new Z.HashMap();
var obj = getObject(this.responseText);
var afterOrder = obj.afterOrder;
var problemType = obj.problemType;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
var afterRightContent = '';
afterRightContent +='\r\n <table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td>产品信息:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="orderText" class="z-lh150p">'+afterOrder.orderText+'</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">问题描述:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(afterOrder.problemDesc ? afterOrder.problemDesc : '');
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
if (problemType && problemType.problemName)
{
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">售后原因:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(problemType.problemName);
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
for (var i=0; i<attamap._keys.length; i++)
{
var attaList = attamap.get(attamap._keys[i]);
if (!attaList || attaList.length == 0)
continue;
if (!attaTypeMap.get(attamap._keys[i]))
continue;//不支持的附件类型
afterRightContent +='\r\n <tr class="z-h40" bgcolor="#efefef">';
afterRightContent +='\r\n <td style="position: relative;">';
afterRightContent +='\r\n <input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox(\'atta_'+attamap._keys[i]+'\', this.checked);" >';
afterRightContent +='\r\n <b class="z-pd4">'+attaTypeMap.get(attamap._keys[i])+'</b>';
afterRightContent +='\r\n <button id="download_'+attamap._keys[i]+'" onclick="doDownload(\''+attamap._keys[i]+'\')" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr class="z-h40">';
afterRightContent +='\r\n <td class="z-pd-l10">';
for (var j=0; j<attaList.length; j++)
{
var atta = attaList[j];
afterRightContent +='\r\n <div class="z-overflow-y-auto z-w100p" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n <div id="div_checkbox_'+atta.attaId+'" class="z-text-ellipsis z-w300 z-pointer" onclick="" title="'+atta.fileName+'">';
afterRightContent +='\r\n <input id="atta_'+atta.attaId+'" name="atta_'+atta.attaModul+'" type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" data-attaid="'+atta.attaId+'" data-downloadUrl="'+(atta.ossUrl ? atta.ossUrl : '')+'" value="'+atta.attaId+'"><span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+atta.fileName+'</span><br>';
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </div>';
}
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
afterRightContent +='\r\n </table>';
Z("#afterRightContent").htmlc(afterRightContent);
});
ajax.execute();
}
function doDownload(attaType)
{
var attaIds = Z.FM.getCheckBoxValue("atta_" + attaType, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要下载的文件");
return false;
}
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("attaId", attaIds);
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
Z.L.href("/downFile.htm?attaId=" + attaIds, zCallFrame);
});
ajax.setLoading('download_'+attaType, '下载', {disabled:true});
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("售后单列表")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li onclick="Z.L.href('waitHandleAfterOrder.htm')">待处理的售后</li>
<li class="z-active">个人售后单列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="30%">售后单号:<input name="designAfsId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designAfsId}" maxlength="64" placeholder="订单号"></td>
<td width="34%">订&nbsp;单&nbsp;号 <input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>
创建时间:
<input id="startCreateDate" name="startCreateDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startCreateDate}">&nbsp;-&nbsp;
<input id="endCreateDate" name="endCreateDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endCreateDate}">
</td>
</tr>
<tr class="z-h40">
<td>责&nbsp;任&nbsp;人
<select name="afterBlamer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designerList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == afterBlamer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td>处理状态:
<select name="afterStatus" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : AfterConstants.getStatusList()>
<option value="${item.value()}" <#if item.value() == afterStatus>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<td>
</td>
</tr>
<tr class="z-h40">
<td colspan="3" class="z-text-center"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2200px">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="60">选择</td>
<td width="100">售后单号</td>
<td width="120">责任组织</td>
<td width="100">设计单号</td>
<td width="100">处理状态</td>
<td width="250">售后原因</td>
<td width="150">产品</td>
<td width="140">旺旺号</td>
<td width="200">特殊工艺</td>
<td width="80">订单金额</td>
<td width="90">创建时间</td>
<td width="100">责任人</td>
<td width="120">联系人</td>
<td width="120">对稿手机</td>
<td width="120">对稿微信</td>
<td width="100">新补单号</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 23, "暂时没有订单信息")}
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designAfsId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" onclick="doShowAfterOrderInfo(this, this.value)" value="${item.getDesignAfsId()}" data-qq="${item.getUserQq()}" data-wx="${item.getUserWx()}" data-buyerNick="${item.getBuyerNick()}"></td>
<td>${item.getDesignAfsId()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getPicOrgId())}</td>
<td>${item.getDesignId()}</td>
<td>${AfterConstants.statusHtml(item.getAfterStatus())}</td>
<td>${item.getProblemDesc()}</td>
<td>${item.getOrderText()}</td>
<td data-shopNick="${item.getShopNick()}">${item.getBuyerNick()}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getAfterCreateTime())}</td>
<td>${item.getAfterBlamer()}</td>
<td>${item.getUserContact()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getUserWx()}</td>
<td><#if item.getNewDesignId() gt 0>${item.getNewDesignId()}</#if></td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "personalAfterOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div id="afterRight" class="z-fixed z-pd6 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:340px;z-index:50;">
<div id="afterRightContent" class="zi-mg-t15">
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">
<tr bgcolor="#f5f5f5">
<td>产品信息:</td>
</tr>
<tr>
<td id="orderText" class="z-lh150p">请选择订单</td>
</tr>
<tr bgcolor="#f5f5f5">
<td><span class="z-bold">问题描述:</span></td>
</tr>
<tr>
<td class="z-lh150p">
<div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_AftersaleFile', this.checked);" data-id="Z_Checkbox_ZaKqqLra8T" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_ZaKqqLra8T" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">售后文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_AftersaleFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_DesginFile', this.checked);" data-id="Z_Checkbox_TsMUgMR9ME" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_TsMUgMR9ME" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">设计文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_DesginFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_EndFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg9" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg9" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">印刷文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
</table>
</div>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,628 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${Scripts.src(zhiqim_uploadlarge.js)}
${yangcai_calc_Left_width_height(340, 110)}
<script>
//查询操作员
var dateDir = '${DateTimes.getDateTime8String()}/${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
var attaTypeMap = new Z.HashMap();
var blameOrgMap = new Z.HashMap();
var orgUserListMap = new Z.HashMap();
Z.onload(function(){
//初始化 文件类型
<#for item : FileTypeConstants.getFileTypeList()>
attaTypeMap.put('${item.value()}', '${item.desc()}')
</#for>
//初始化 责任组织 & 初始化组织操作员
<#for org : ZmrOrgDao.list(request)>
blameOrgMap.put('${org.getOrgId()}', getObject('${org}'));
var users${org.getOrgId()} = [];
<#for opr : ZmrOperatorDao.getOperator(request, org.getOrgId())>
users${org.getOrgId()}.push(getObject('${opr}'));
</#for>
orgUserListMap.put('${org.getOrgId()}', users${org.getOrgId()});
</#for>
});
function getObject(json)
{
json = json.replace(/\r/g, '');
json = json.replace(/\n/g, '<br/>');
json = json.replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;');
var reg = /(\u0000)|(\u0001)|(\u0002)|(\u0003)|(\u0004)|(\u0005)|(\u0006)|(\u0007)|(\u000b)|(\u000e)|(\u000f)|(\u0010)|(\u0011)|(\u0012)|(\u0013)|(\u0014)|(\u0015)|(\u0016)|(\u0017)|(\u0018)|(\u0019)|(\u001a)|(\u001b)|(\u001c)|(\u001d)|(\u001e)|(\u001f)/g;
//var reg = //g;
return Z.J.toObject(json.replace(reg, ""));
}
function doQueryAfterOrderDataInfo(designAfsId, callback)
{
if (!designAfsId)
return null;
var ajax = new Z.Ajax();
ajax.setContextPath('${context.getContextPath()}');
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doQueryAfterOrderDataInfo");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
callback(getObject(this.responseText))
});
ajax.execute();
}
function doShowAfterOrderInfo(obj, designAfsId)
{
if (!designAfsId)
{
Z.alert("请选择一项");
return;
}
//初始化数据内容
function showInfo(obj)
{
var attamap = new Z.HashMap();
var afterOrder = obj.afterOrder;
var problemType = obj.problemType;
var attaList = obj.afterAttaList;
for (var i=0; i< attaList.length; i++)
{
var atta = attaList[i];
var list = attamap.get(atta.attaModul);
if (!list)
list=[];
list.push(atta);
attamap.put(atta.attaModul, list);
}
var afterRightContent = '';
afterRightContent +='\r\n <table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td>产品信息:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="orderText" class="z-lh150p">'+afterOrder.orderText+'</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">问题描述:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(afterOrder.problemDesc ? afterOrder.problemDesc : '');
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
if (problemType && problemType.problemName)
{
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
afterRightContent +='\r\n <td><span class="z-bold">售后原因:</td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr>';
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n '+(problemType.problemName);
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
for (var i=0; i<attamap._keys.length; i++)
{
var attaList = attamap.get(attamap._keys[i]);
if (!attaList || attaList.length == 0)
continue;
if (!attaTypeMap.get(attamap._keys[i]))
continue;//不支持的附件类型
afterRightContent +='\r\n <tr class="z-h40" bgcolor="#efefef">';
afterRightContent +='\r\n <td style="position: relative;">';
afterRightContent +='\r\n <input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox(\'atta_'+attamap._keys[i]+'\', this.checked);" >';
afterRightContent +='\r\n <b class="z-pd4">'+attaTypeMap.get(attamap._keys[i])+'</b>';
afterRightContent +='\r\n <button id="download_'+attamap._keys[i]+'" onclick="doDownload(\''+attamap._keys[i]+'\')" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>';
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
afterRightContent +='\r\n <tr class="z-h40">';
afterRightContent +='\r\n <td class="z-pd-l10">';
for (var j=0; j<attaList.length; j++)
{
var atta = attaList[j];
afterRightContent +='\r\n <div class="z-overflow-y-auto z-w100p" style="min-height:24px; max-height:100px;">';
afterRightContent +='\r\n <div id="div_checkbox_'+atta.attaId+'" class="z-text-ellipsis z-w300 z-pointer" onclick="" title="'+atta.fileName+'">';
afterRightContent +='\r\n <input id="atta_'+atta.attaId+'" name="atta_'+atta.attaModul+'" type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" data-attaid="'+atta.attaId+'" data-downloadUrl="'+(atta.ossUrl ? atta.ossUrl : '')+'" value="'+atta.attaId+'"><span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+atta.fileName+'</span><br>';
afterRightContent +='\r\n </div>';
afterRightContent +='\r\n </div>';
}
afterRightContent +='\r\n </td>';
afterRightContent +='\r\n </tr>';
}
afterRightContent +='\r\n </table>';
Z("#afterRightContent").htmlc(afterRightContent);
}
doQueryAfterOrderDataInfo(designAfsId, showInfo);
}
function doDownload(attaType)
{
var attaIds = Z.FM.getCheckBoxValue("atta_" + attaType, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要下载的文件");
return false;
}
/*
var arr = Z.AR.toArray(attaIds, ",");
if (arr.length == 1)
{//1个文件情况下
var input = Z("#atta_"+attaIds);
//if (input )
var url = input.attr("data-downloadUrl");
url = Z.V.isEmptyBlank(url) ? "/downFile.htm?attaId=" + attaIds : url;
Z.L.href(url, zCallFrame);
return;
}
*/
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("attaId", attaIds);
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
Z.L.href("/downFile.htm?attaId=" + attaIds, zCallFrame);
});
ajax.setLoading('download_'+attaType, '下载', {disabled:true});
ajax.execute();
}
function doFinishAfterOrder()
{//售后处理完成
var designAfsId = Z.FM.getChecked("designAfsId");
if (Z.V.isEmpty(designAfsId))
{
Z.alert("请选择一条订单");
return;
}
Z.confirm("确认处理完成吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doFinishAfterOrder");
ajax.addParam("designAfsId", designAfsId);
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
document.theForm.submit();
});
ajax.setLoading();
ajax.execute();
})
ajax.execute();
}
function showReturnBlame()
{//弹窗 申诉
var designAfsId = Z.FM.getChecked("designAfsId");
if (Z.V.isEmpty(designAfsId))
{
Z.alert("请选择一条订单");
return;
}
var afsAppend ="afs"+designAfsId;
var inputAfsStatus =Z("#"+afsAppend).val();
if(inputAfsStatus != "300")
{
Z.alert("不属于售后处理中状态的售后单不允许申诉");
return;
}
function showDialog(obj)
{
var afterOrder = obj.afterOrder;
var fileType = '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
var attaList = obj.afterAttaList;
var comlainFiles = [];
for (var i = 0; i < attaList.length; i++)
{
var atta = attaList[i];
if (fileType == atta.attaModul)
comlainFiles.push(atta);
}
var dialogContent = '<form name="returnBlameForm">';
dialogContent +='<input type="hidden" id="complainEvidenceFileMethod" name="complainEvidenceFileMethod" value="0">';
dialogContent +='<input type="hidden" id="imgData" name="imgData">';
dialogContent +='<input type="hidden" id="designAfsId" name="designAfsId" value="'+afterOrder.designAfsId+'">';
dialogContent +='<table class="z-table z-bordered z-pd6 z-bg-white">';
dialogContent +=' <tr>';
dialogContent +=' <td width="120" class="z-text-right" valign="top"> 申诉原因 </td>';
var afterBlameReturnNote = '';
if (afterOrder.afterBlameReturnNote)
afterBlameReturnNote = afterOrder.afterBlameReturnNote;
dialogContent +=' <td><textarea name="afterBlameReturnNote" class="z-h100 z-w100p">'+afterBlameReturnNote+'</textarea></td>';
dialogContent +=' </tr>';
dialogContent +=' <tr class="z-h50">';
dialogContent +=' <td width="120" class="z-text-right"> 申诉凭证方式 </td>';
dialogContent +=' <td id="complainEvidenceMethod_td">';
dialogContent +=' <input type="radio" name="complainEvidenceMethod" value="0" onclick="activetablenav(this)" class="z-radio" data-role="z-radio" checked="checked" data-class="z-blue"><span class="z-mg-l6">申诉文件</span>';
dialogContent +=' <input type="radio" name="complainEvidenceMethod" value="1" onclick="activetablenav(this)" class="z-radio" data-role="z-radio" data-class="z-blue"><span class="z-mg-l6">申诉截图</span>';
dialogContent +=' <button type="button" id="upload_'+"${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}"+'" class="z-button z-float-right z-cyan z-absolute" style="top: 10px; right: 5px;"><i class="z-font z-add"></i>添加文件</button>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +=' <tr>';
dialogContent +=' <td colspan="2" id="complainEvidenceFileresult">';
dialogContent +=' <section>';
dialogContent +=' <div id="complainFileWarp" class="z-overflow-y-auto result" style="height:270px">';
dialogContent +=' </div>';
dialogContent +=' <div class="z-overflow-y-auto result z-hide" style="height:270px">';
dialogContent +=' <div style="display:none" id="imgData"></div>';
dialogContent +=' <div id="imgSrc"></div>';
dialogContent +=' </div>';
dialogContent +=' </section>';
dialogContent +=' </td>';
dialogContent +=' </tr>';
dialogContent +='</table>';
dialogContent +='<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
dialogContent +=' <button type="button" id="complainBtn" class="z-button z-large z-w120 z-cyan" onclick="doSubmitAfterComplain(this.form)">提交</button>';
dialogContent +=' <button type="button" class="z-button z-large z-mg-l10" onclick="Z.Dialog.close();">关闭</button>';
dialogContent +='</div>';
dialogContent +='</form>';
var returnBlameDialog = new Z.Dialog();
returnBlameDialog.id = "returnBlameDialog";
returnBlameDialog.title = "异议申诉";
returnBlameDialog.text = "<div id='retunrBlame_dialogContent'></div>";
returnBlameDialog.width = 1024;
returnBlameDialog.height = 500;
returnBlameDialog.execute();
Z("#retunrBlame_dialogContent").htmlc(dialogContent);
doShowComplainFiles(comlainFiles, "complainFileWarp", afterOrder.designAfsId);
//初始化上传
var designId = obj.afterOrder.designId;
if (Z.Validates.isEmpty(designId))
return;
var upload = new Z.UploadLarge();
upload.elem = "upload_" + '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
upload.showResult = false;
upload.fileMd5Target = 1;
upload.fileCopy = true;
upload.maxSizeMiB = 500;
upload.contextPath = "${context.getContextPath()}";
upload.setFileDir(dateDir);
upload.onSelected = function(fileName, fileLength)
{
this.setFileName(fileName);
};
upload.onCompleted = function(fileId){
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doUplaodFile");
ajax.addParam(designId);
ajax.addParam(fileId);
ajax.addParam('${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}');
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var dataMap = getObject(this.responseText);
var fileType = '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
var attaList = dataMap.attaList;
var comlainFiles = [];
for (var i = 0; i < attaList.length; i++)
{
var atta = attaList[i];
if (fileType == atta.attaModul)
comlainFiles.push(atta);
}
doShowComplainFiles(comlainFiles, "complainFileWarp", afterOrder.designAfsId);
});
ajax.setLoading(document);
ajax.execute();
};
upload.execute();
}
doQueryAfterOrderDataInfo(designAfsId, showDialog);
}
function doShowComplainFiles(attaList, warpId, designAfsId)
{
var warpContent ="";
warpContent +=' <table class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-pd6 z-bg-white">';
for (var i = 0; i < attaList.length; i++)
{
var atta = attaList[i];
warpContent +=' <tr><td>'+atta.fileName+'<button type="button" onclick="doDeleteFile(\''+designAfsId+'\', \''+atta.attaId+'\')" class="z-button z-small z-red z-float-right">删除</button></td></tr>';
}
warpContent +=' </table>';
Z("#"+warpId).html(warpContent);
}
function doDeleteFile(designAfsId, attaId)
{//删除文件
Z.confirm("确认删除此文件吗?", function()
{
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDeleteFile");
ajax.addParam(attaId);
ajax.setFailure(function(){Z.alert(this.responseText,null, {width:320});});
ajax.setSuccess(function(){
function refrensh(obj)
{
var fileType = '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
var attaList = obj.afterAttaList;
var comlainFiles = [];
for (var i = 0; i < attaList.length; i++)
{
var atta = attaList[i];
if (fileType == atta.attaModul)
comlainFiles.push(atta);
}
doShowComplainFiles(comlainFiles, "complainFileWarp", designAfsId);
}
doQueryAfterOrderDataInfo(designAfsId, refrensh);
});
ajax.execute();
}, {width:320});
}
function activetablenav(item)
{//切换申诉 凭证方式
var $$input = Z("#complainEvidenceMethod_td").find("input.z-radio");
var $$div = Z("#complainEvidenceFileresult>section>div.result");
var index = [].indexOf.call($$input, item);
Z($$div[index]).removeClass("z-hide").siblings("div").addClass('z-hide');
Z("#complainEvidenceFileMethod").val(item.value)
var addFile = Z("#upload_" + '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}');
if (item.value == 1)
addFile.addClass("zi-hide");
else
addFile.removeClass("zi-hide");
}
//图片粘贴
(function(){
var imgReader = function( item ){
var blob = item.getAsFile(),
reader = new FileReader();
// 读取文件后将其显示在网页中
reader.onload = function(e){
var img = new Image();
img.onload = function(){
var imgData = "";
if(img.width > 0 && img.height > 0)
imgData = result;
Z("#imgData").val(imgData);
}
var result = e.target.result;
img.src = result;
img.id = "divImg";
Z("#imgSrc").html("");
Z("#imgSrc").append(img);
};
// 读取文件
reader.readAsDataURL(blob);
};
window.addEventListener( 'paste', function(e)
{
// 添加到事件对象中的访问系统剪贴板的接口
var clipboardData = e.clipboardData, items, item, types;
if(clipboardData)
{
items = clipboardData.items;
if( !items )
{
return;
}
item = items[0];
// 保存在剪贴板中的数据类型
types = clipboardData.types || [];
for(var i=0 ; i < types.length; i++ )
{
if( types[i] === 'Files' )
{
item = items[i];
break;
}
}
// 判断是否为图片数据
if( item && item.kind === 'file' && item.type.match(/^image\//i))
{
imgReader(item);
}
}
});
})();
function doSubmitAfterComplain(form)
{//complainBtn
var ajax = new Z.Ajax();
ajax.setClassName("DesignAfterOrderPresenter");
ajax.setMethodName("doSubmitAfterComplain");
ajax.setParamForm(form);
ajax.setFailure(function(){Z.alert(this.responseText,null, {width:320});});
ajax.setSuccess(function(){
document.theForm.submit();
});
ajax.setLoading("complainBtn", "正在提交", {disabled:true})
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("我的售后")}
${zhiqim_manager_content()}
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="34%">订&nbsp;单&nbsp;号 <input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td width="30%"> 旺 旺 号: <input name="buyerNick" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td>
创建时间:
<input id="startCreateDate" name="startCreateDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startCreateDate}">&nbsp;-&nbsp;
<input id="endCreateDate" name="endCreateDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endCreateDate}">
</td>
</tr>
<tr class="z-h40">
<td> 处理状态:
<select data-class="${zmr_color_class}" data-role="z-select" id="afterStatus" name="afterStatus" class="z-w180 z-select">
<option value="">全部</option>
<#for item : AfterConstants.getStatusList()>
<option value="${item.value()}" <#if item.value() == afterStatus>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<td colspan="2"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button type="button" class="z-button z-mg-t3 z-mg-r6 z-red" onclick="showReturnBlame()"><i class="z-font z-upload"></i>异议申诉</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 z-cyan" onclick="doFinishAfterOrder()"><i class="z-font z-success"></i>售后完成</button>
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r" style="overflow:scroll;">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2000px">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="40">选择</td>
<td width="130">订单号</td>
<td width="130">旺旺号</td>
<td width="100">处理状态</td>
<td width="80">损失金额</td>
<td width="80">赔付金额<span data-role="z-tooltip" data-options="align:left;width:200px;" class="z-color-red" data-text="2021年10月1日起,设计师售后赔偿金额由损失金额改为赔付金额">&nbsp;*</span></td>
<td width="250">售后原因</td>
<td width="230">产品</td>
<td width="180">特殊工艺</td>
<td width="90">创建时间</td>
<td width="130">新补单号</td>
<td width="170">申诉拒绝原因</td>
<td width="100">申诉拒绝时间</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 18, "暂时没有订单信息")}
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designAfsId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" onclick="doShowAfterOrderInfo(this, this.value)" value="${item.getDesignAfsId()}" ></td>
<td>${item.getDesignId()}</td>
<td id="ww${item.getDesignAfsId()}" data-ww="${item.getBuyerNick()}">${item.getBuyerNick()}</td>
<input type="hidden" value="${item.getAfterStatus()}" id="afs${item.getDesignAfsId()}">
<td>${AfterConstants.statusHtml(item.getAfterStatus())}</td>
<td>${item.getLossAmount()}</td>
<#if item.getAfterCreateTime().getTime() gte lNowTime>
<td>${(item.getLossAmount()*Long.parseLong(ParamDao.getString("yangcai.web","AfterPayProportion")))/100}</td>
<#else>
<td>${item.getLossAmount()}</td>
</#if>
<td>${item.getProblemDesc()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Sqls.toDateTimeString(item.getAfterCreateTime())}</td>
<td><#if item.getNewDesignId() gt 0>${item.getNewDesignId()}</#if></td>
<td>${item.getAfterBlameReturnNote()}</td>
<td>${Sqls.toDateTimeString(item.getAfterModifyTime())}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "waitHandleAfterOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div id="afterRight" class="z-fixed z-pd6 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:340px;z-index:50;">
<div id="afterRightContent" class="zi-mg-t15">
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">
<tr bgcolor="#f5f5f5">
<td>产品信息:</td>
</tr>
<tr>
<td id="orderText" class="z-lh150p">请选择订单</td>
</tr>
<tr bgcolor="#f5f5f5">
<td><span class="z-bold">问题描述:</span></td>
</tr>
<tr>
<td class="z-lh150p">
<div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_AftersaleFile', this.checked);" data-id="Z_Checkbox_ZaKqqLra8T" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_ZaKqqLra8T" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">售后文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_AftersaleFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_DesginFile', this.checked);" data-id="Z_Checkbox_TsMUgMR9ME" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_TsMUgMR9ME" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">设计文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_DesginFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
<tr class="z-h40" bgcolor="#efefef">
<td style="position: relative;">
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_EndFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg9" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg9" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
<b class="z-pd4">印刷文件</b>
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
</td>
</tr>
<tr class="z-h40">
<td class="z-pd-l10">
<div class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
</div>
</td>
</tr>
</table>
</div>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,44 @@
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li onclick="Z.L.href('category.htm');">知识库分类</li>
<li class="z-active">知识库内容</li>
</ul>
<div class="z-float-left z-mg10">
<form name="theForm" method="post">
<input name="articleKey" class="z-float-left z-input z-w300 zi-bd-r-none" value="${articleKey}" maxlength="64" placeholder="文章标题">
<button class="z-float-left z-button z-w80 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i>查询</button>
</form>
</div>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('articleAdd.htm');"><i class="z-font z-add"></i>增加文章</button>
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('articleModify.htm', 'articleId');"><i class="z-font z-modify"></i>修改文章</button>
<button class="z-button z-red" onclick="Z.L.confirm('articleDelete.htm', '确认要删除该文章?', 'articleId');"><i class="z-font z-delete"></i>删除文章</button>
</div>
</nav>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="50">选择</td>
<td width="10%">文章状态</td>
<td width="10%">文章所属分类</td>
<td width="*">文章标题</td>
<td width="15%">发表时间</td>
</tr>
${zhiqim_manager_tr_no_record(articlePage, 5, "暂时没有文章信息")}
<#for item : articlePage.list()>
<tr class="z-h40 z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="articleId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getArticleId()}"></td>
<td><#if item.getArticleStatus()==0>正常<#else><span class="z-color-red">停用</span></#if></td>
<td>${item.getCategoryName()}</td>
<td>${item.getArticleTitle()}</td>
<td>${Sqls.toDateTimeString(item.getArticleTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(articlePage, "article.htm")}
@@ -0,0 +1,65 @@
<#def designatedPath="/category.htm"/>
${request.getValidateScript()}
${zhiqim_manager_history ("article.htm")}
${zhiqim_manager_breadcrumb_parent ("article.htm", "知识库内容", "增加文章")}
${zhiqim_manager_content()}
<form name="theForm" action="articleInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
<tr class="zi-h40 z-bg-gray z-bold">
<td colspan="2">增加文章</td>
</tr>
<tr>
<td width="40%">所属分类:<span class="z-color-999">(请选择)</span></td>
<td width="*">
<select name="categoryId" class="z-select z-w300 ${zmr_color_class}" data-role="z-select" data-class="${zmr_color_class}">
<#for item : categoryList>
<option value="${item.getCategoryId()}">${item.getCategoryName()}</option>
</#for>
</select><span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>分类状态:<span class="z-color-999">(请选择)</span></td>
<td>
<select name="articleStatus" class="z-select z-w300 ${zmr_color_class}" data-role="z-select" data-class="${zmr_color_class}">
<option value="0">正常</option>
<option value="1">停用</option>
</select><span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>文章标题:<span class="z-color-999">32位不定长字符)</span></td>
<td><input name="articleTitle" class="z-input z-w300 ${zmr_color_class}" maxlength="32"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td colspan="2">
<div class="z-mg-t20">文章内容:<span class="z-color-999">(不能超过25000个字符)</span><span class="z-color-red">&nbsp;*</span></div>
<div class="z-pd-t20 z-pd-b20" style="margin-top:20px">
<textarea id="articleContent" name="articleContent" class="z-textarea ckeditor z-w100p ${zmr_color_class}" rows="15" size="30" maxlength="25000"></textarea>
</div>
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
<!--
<script charset="utz-8" src="/inc/ckeditor/ckeditor.js"></script>
-->
<link rel="stylesheet" type="text/css" href="/zres/zteditor/zteditor.css">
<script type="text/javascript" src="/zres/zteditor/zteditor.js"></script>
<script>
//CKEDITOR.replace("articleContent");
Z.onload(function()
{
var editor = new Z.ZhiqimEditor();
editor.setId("articleContent");
editor.execute();
});
function validateForm2(form)
{
Z("#articleContent").val(CKEDITOR.instances.articleContent.getData());
return validateForm(form);
}
</script>
@@ -0,0 +1,61 @@
<#def designatedPath="/category.htm"/>
${request.getValidateScript()}
${zhiqim_manager_history ("article.htm")}
${zhiqim_manager_breadcrumb_parent ("article.htm", "知识库内容", "修改文章")}
${zhiqim_manager_content()}
<form name="theForm" action="articleUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="articleId" type="hidden" value="${article.articleId}">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
<tr class="zi-h40 z-bg-gray z-bold">
<td colspan="2">修改文章</td>
</tr>
<tr>
<td width="40%">所属分类:<span class="z-color-999">(请选择)</span></td>
<td width="*">
<select name="categoryId" class="z-select z-w300 ${zmr_color_class}" data-role="z-select" data-class="${zmr_color_class}">
<#for item : categoryList>
<option value="${item.getCategoryId()}" <#if item.getCategoryId() == article.getCategoryId()>selected</#if>>${item.getCategoryName()}</option>
</#for>
</select><span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>分类状态:<span class="z-color-999">(请选择)</span></td>
<td>
<select name="articleStatus" class="z-select z-w300 ${zmr_color_class}" data-role="z-select" data-class="${zmr_color_class}">
<option <#if article.getArticleStatus() == 0>selected</#if> value="0">正常</option>
<option <#if article.getArticleStatus() == 1>selected</#if> value="1">停用</option>
</select><span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>文章标题:<span class="z-color-999">32位不定长字符)</span></td>
<td><input name="articleTitle" class="z-input z-w300 ${zmr_color_class}" value="${article.getArticleTitle()}" maxlength="32"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td colspan="2">
<div class="z-mg-t20">文章内容:<span class="z-color-999">(不能超过25000个字符)</span><span class="z-color-red">&nbsp;*</span></div>
<div class="z-pd-t20 z-pd-t20">
<textarea id="articleContent" name="articleContent" class="z-textarea z-w100p ${zmr_color_class}" rows="15" size="30" maxlength="25000">${article.getArticleContent()}</textarea>
</div>
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
<!--
<script charset="utz-8" src="/inc/ckeditor/ckeditor.js"></script>
-->
<link rel="stylesheet" type="text/css" href="/zres/zteditor/zteditor.css">
<script type="text/javascript" src="/zres/zteditor/zteditor.js"></script>
<script>
//CKEDITOR.replace("articleContent");
Z.onload(function()
{
var editor = new Z.ZhiqimEditor();
editor.setId("articleContent");
editor.execute();
});
</script>
@@ -0,0 +1,78 @@
${zhiqim_manager_content()}
<#-- 显示子分类,并递归显示下级子分类 -->
<#function showChildCategory(self, parent)>
<tr class="z-h30" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="categoryId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${self.self().getCategoryId()}"></td>
<td>${self.self().getCategoryId()}</td>
<td align="left" class="zi-pd-l6">
<#var level = self.self().getCategoryLevel()/>
<#if level == 0>
<i class="z-ico z-tree z-30 z-normal z-root z-mg-r3"></i>
<#else>
<#for i : 1..(level-1)>
<#if self.isLastNode(level-i)>
<i class="z-ico z-tree z-30 z-normal z-blank"></i>
<#else>
<i class="z-ico z-tree z-30 z-normal z-vertline"></i>
</#if>
</#for>
<#if self.isLastNode()>
<i class="z-ico z-tree z-30 z-normal z-lastnode"></i>
<#else>
<i class="z-ico z-tree z-30 z-normal z-node"></i>
</#if>
<i class="z-ico z-tree z-item z-mg-r3"></i>
</#if>
#{self.self().getCategoryName()}
</td>
<td><#if self.self().getCategoryStatus() == 0>正常<#else><span class="z-color-red">停用</span></#if></td>
<td>${self.self().getCategoryLevel()}</td>
</tr>
<#for child : self.children()>
${showChildCategory(child, self)}
</#for>
</#function>
${zhiqim_manager_breadcrumb ("知识库分类")}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li class="z-active">知识库分类</li>
<li onclick="Z.L.href('article.htm');">知识库内容</li>
</ul>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('/categoryAdd.htm', 'categoryId');"><i class="z-font z-add"></i>增加下级分类</button>
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('/categoryModify.htm', 'categoryId');"><i class="z-font z-modify"></i>修改分类</button>
<button class="z-button z-red" onclick="Z.L.confirm('/categoryDelete.htm', '确认要删除该分类及分类下文章?', 'categoryId', zCallFrame);"><i class="z-font z-delete"></i>删除分类</button>
</div>
</nav>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center" >
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="50">选择</td>
<td width="200">分类编号</td>
<td width="*">分类名称</td>
<td width="20%">分类状态</td>
<td width="15%">分类级别</td>
</tr>
<#if size == 0>
${zhiqim_manager_no_record(5, "暂时没有分类信息")}
<#else>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="categoryId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${tree.self().getCategoryId()}" ></td>
<td>${tree.self().getCategoryId()}</td>
<td align="left" class="zi-pd-l6"><i class="z-ico z-tree z-normal z-30 z-root z-mg-r3"></i>#{tree.self().getCategoryName()}</td>
<td><#if tree.self().getCategoryStatus() == 0>正常<#else><span class="z-color-red">停用</span></#if></td>
<td>${tree.self().getCategoryLevel()}</td>
</tr>
<#for child : tree.children()>
${showChildCategory(child, tree)}
</#for>
</#if>
</table>
${zhiqim_manager_list(size)}
${zhiqim_manager_content_end()}
@@ -0,0 +1,37 @@
<#def designatedPath="/category.htm"/>
${request.getValidateScript()}
${zhiqim_manager_history ("category.htm")}
${zhiqim_manager_breadcrumb_parent ("category.htm", "知识库分类", "增加分类")}
${zhiqim_manager_content()}
<form name="theForm" action="categoryInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="parentLevel" type="hidden" value="${category.getCategoryLevel()}">
<input name="parentId" type="hidden" value="${category.getCategoryId()}">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
<tr class="zi-h40 z-bg-gray z-bold">
<td colspan="2">增加分类</td>
</tr>
<tr>
<td width="40%">上级分类:<span class="z-color-999">32位不定长字符)</span></td>
<td width="*">${category.getCategoryName()}</td>
</tr>
<tr>
<td>分类名称:<span class="z-color-999">32位不定长字符)</span></td>
<td><input name="categoryName" class="z-input z-w300 ${zmr_color_class}" maxlength="32"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td>分类状态:<span class="z-color-999">(请选择)</span></td>
<td>
<select name="categoryStatus" class="z-select z-w300 ${zmr_color_class}" data-role="z-select" data-class="${zmr_color_class}">
<option value="0">正常</option><option value="1">停用</option>
</select><span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>分类排序数:<span class="z-color-999">(填整型)</span></td>
<td><input name="categorySeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Integer;" value="100" maxlength="8"><span class="z-color-red">&nbsp;*</span></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
@@ -0,0 +1,41 @@
<#def designatedPath="/category.htm"/>
${request.getValidateScript()}
${zhiqim_manager_history ("category.htm")}
${zhiqim_manager_breadcrumb_parent ("category.htm", "知识库分类", "修改分类")}
${zhiqim_manager_content()}
<form name="theForm" action="categoryUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="categoryId" type="hidden" value="${category.getCategoryId()}">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
<tr class="zi-h40 z-bg-gray z-bold">
<td colspan="2">修改分类</td>
</tr>
<tr>
<td width="40%">分类编号:<span class="z-color-999">(自定义)</span></td>
<td width="*">${category.getCategoryId()}</td>
</tr>
<tr>
<td>上级分类:<span class="z-color-999">32位不定长字符)</span></td>
<td>${parent.getCategoryName()}</td>
</tr>
<tr>
<td>分类名称:<span class="z-color-999">32位不定长字符)</span></td>
<td><input name="categoryName" class="z-input z-w300 ${zmr_color_class}" value="${category.getCategoryName()}" maxlength="32"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td>分类状态:<span class="z-color-999">(请选择)</span></td>
<td>
<select name="categoryStatus" class="z-select z-w300 ${zmr_color_class}" data-role="z-select" data-class="${zmr_color_class}">
<option <#if category.getCategoryStatus() == 0>selected</#if> value="0">正常</option><option <#if category.getCategoryStatus() == 1>selected</#if> value="1">停用</option>
</select><span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>分类排序数:<span class="z-color-999">(填整型)</span></td>
<td><input name="categorySeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Integer;" value="${category.getCategorySeq()}" maxlength="8"><span class="z-color-red">&nbsp;*</span></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
@@ -0,0 +1,125 @@
<#def title = "扬彩帮助中心"/>
<#def keywords = "帮助中心"/>
<#def desc = "扬彩帮助中心"/>
<#--头部起始-->
<!DOCTYPE html>
<html>
<head>
<title>扬彩知识库</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="Keywords" content="知识库" />
<meta name="Description" content="扬彩知识库" />
<link rel="shortcut icon" type="image/ico" href="/favicon.ico">
${Styles.src(zhiqim.css)}
${Scripts.src(zhiqim.js)}
${Styles.src(context.getRootPath("/zinc/css/yangcai_question_main_v1.4.0R2018031701.css"))}
${Scripts.src(context.getRootPath("/zinc/css/zhiqim_search_auto_list_v1.4.0R2018031701.js"))}
</head>
</div>
<!--固定的111margin-->
<div style="margin-top:10px"></div>
<script>
Z.onload(function()
{
//左侧分类列表点击事件
Z(".sidebar p").click(function()
{
var $thisUl = Z(this).next("ul");
var hasChild = ($thisUl.find("li").length > 0)?(1):(0);
if (hasChild)
{
var $ulDisplay = $thisUl.css("display");
var $thisIcon = Z(this).find(".z-font");
$thisUl.slideToggle().siblings("ul").slideUp();
if ($ulDisplay == "block")
return Z(".sidebar p>.z-font").removeClass("z-arrowhead-up").addClass("z-arrowhead-down");
Z(".sidebar p>.z-font").removeClass("z-arrowhead-up").addClass("z-arrowhead-down");
$thisIcon.removeClass("z-arrowhead-down").addClass("z-arrowhead-up");
}
else
selectCategory(Z(this).attr("data-id"));
});
//定义搜索框
var search = new Z.SearchAutoList();
search.elem = "searchinput";
search.className = "SearchPresenter";
search.methodName = "search";
search.callback = function(){doSearchAjax(this.value);};
search.execute();
})
//分类选择
function selectCategory(id){
window.location.href = "/question.htm?categoryId=" + id;
}
//文章显示
function getArticle(categoryId,articleId)
{
window.location.href = "/question.htm?categoryId=" + categoryId + "&articleId=" + articleId;
}
//执行搜索
function doSearchAjax(str)
{
window.location.href = "/search.htm?keyword=" + str;
}
</script>
<#--容器开始-->
<!-- 左边导航 -->
<div class="sidebar" style="position: fixed;left: 0;top:0;bottom: 0;width:15%;margin-top:10px">
<p data-id="0" class="<#if categoryId == 0>z-selected</#if>">热门问题</p>
<#for category : categoryList>
<#if category.getCategoryLevel() == 2>
<p data-id="${category.getCategoryId()}" class="<#if category.getCategoryId()==categoryId>z-selected</#if>">
<#if parentList.get(categoryList.indexOf(category))><i class="z-font <#if selectedList.get(categoryList.indexOf(category))>z-arrowhead-up<#else>z-arrowhead-down</#if> z-float-left z-mg-r10"></i></#if>${category.getCategoryName()}
</p>
<ul style="display:<#if selectedList.get(categoryList.indexOf(category))>block<#else>none</#if>;">
<#for child : childrenList>
<#if child.getParentId() == category.getCategoryId()>
<li <#if categoryId == child.getCategoryId()>class="z-selected"</#if> onclick="selectCategory(${child.getCategoryId()})">${child.getCategoryName()}</li>
</#if>
</#for>
</ul>
</#if>
</#for>
</div>
<!-- 右边主体 -->
<div class="mainbody" style="width:84%;" >
<!-- 搜索框 -->
<div class="mainsearch">
<span class="z-show-ib" id="search_wrap">
<input id="searchinput" placeholder="输入问题关键词" type="text" class="z-input z-xlarge"><button onclick="doSearchAjax(searchinput.value)" class="z-button">&#xf004;</button>
</span>
</div>
<div class="questionbody" id="questionbody">
<!-- 显示文章 -->
<#if articleStr != null>
<div class="article">
${articleStr}</br>
</div>
<div class="article" >
${content}
</div>
<!-- 显示列表 -->
<#elseif !articleList.isEmpty()>
<dl class="article-list">
<#for article : articleList>
<dd><a href="javascript:{getArticle(${article.getCategoryId()},${article.getArticleId()})}">${article.getArticleTitle()}</a><span style="float:right">${article.getArticleTime().toString().substring(0, article.getArticleTime().toString().length() - 2)}</span></dd>
</#for>
</dl>
<#else>
<h2 style="font-weight:normal;">没有找到相关项目</h2>
</#if>
</div>
</div>
</body>
</html>
@@ -0,0 +1,120 @@
<#def title = "扬彩知识库"/>
<#def keywords = "知识库"/>
<#def desc = "扬彩知识库"/>
<#--头部起始-->
<!DOCTYPE html>
<html>
<head>
<title>扬彩知识库</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="Keywords" content="知识库" />
<meta name="Description" content="扬彩知识库" />
<link rel="shortcut icon" type="image/ico" href="/favicon.ico">
${Styles.src(zhiqim.css)}
${Scripts.src(zhiqim.js)}
${Styles.src(context.getRootPath("/zinc/css/yangcai_question_main_v1.4.0R2018031701.css"))}
${Scripts.src(context.getRootPath("/zinc/css/zhiqim_search_auto_list_v1.4.0R2018031701.js"))}
</head>
<script>
Z.onload(function()
{
//左侧分类列表点击事件
Z(".sidebar p").click(function()
{
var $thisUl = Z(this).next("ul");
var hasChild = ($thisUl.find("li").length > 0)?(1):(0);
if (hasChild)
{
var $ulDisplay = $thisUl.css("display");
var $thisIcon = Z(this).find(".z-font");
$thisUl.slideToggle().siblings("ul").slideUp();
if ($ulDisplay == "block")
return Z(".sidebar p>.z-font").removeClass("z-arrowhead-up").addClass("z-arrowhead-down");
Z(".sidebar p>.z-font").removeClass("z-arrowhead-up").addClass("z-arrowhead-down");
$thisIcon.removeClass("z-arrowhead-down").addClass("z-arrowhead-up");
}
else
selectCategory(Z(this).attr("data-id"));
});
//定义搜索框
var search = new Z.SearchAutoList();
search.elem = "searchinput";
search.className = "SearchPresenter";
search.methodName = "search";
search.callback = function(){doSearchAjax(this.value);};
search.execute();
})
//分类选择
function selectCategory(id)
{
window.location.href = "/question.htm?categoryId=" + id;
}
//文章显示
function getArticle(categoryId,articleId)
{
window.location.href = "/question.htm?categoryId=" + categoryId + "&articleId=" + articleId;
}
//执行搜索
function doSearchAjax(str)
{
window.location.href = "/search.htm?keyword=" + str;
}
</script>
<#--容器开始-->
<div id="container" class="container">
<!-- 左边导航 -->
<div class="sidebar">
<main<#if menu=="index"> class="selected"</#if> onclick="location.href='${context.getRootPath("/question.htm")}'"><img width="150" height="40" src="${context.getRootPath("/inc/images/logo.png")}" alt="扬彩印刷" title="扬彩印刷"></a></main>
<p data-id="0">热门问题</p>
<#for category : categoryList>
<#if category.getCategoryLevel() == 2>
<p data-id="${category.getCategoryId()}" class="<#if category.getCategoryId()==categoryId>z-selected</#if>">
<#if isParent.get(categoryList.indexOf(category))><i class="z-font z-arrowhead-down z-float-left z-mg-r10"></i></#if>${category.getCategoryName()}
</p>
<ul style="display:none;">
<#for child : childrenList>
<#if child.getParentId() == category.getCategoryId()>
<li <#if categoryId == child.getCategoryId()>class="z-selected"</#if> onclick="selectCategory(${child.getCategoryId()})">${child.getCategoryName()}</li>
</#if>
</#for>
</ul>
</#if>
</#for>
</div>
<!-- 右边主体 -->
<div class="mainbody">
<!-- 搜索框 -->
<div class="mainsearch">
<span class="z-show-ib" id="search_wrap">
<input id="searchinput" placeholder="输入问题关键词" value="${keyword}" type="text" class="z-input z-xlarge"><button onclick="doSearchAjax(searchinput.value)" class="z-button">&#xf004;</button>
</span>
</div>
<div class="questionbody" id="questionbody">
<div class="search-resultBar z-lh30">搜索结果:
<span>${keyword}</span>&nbsp;&nbsp;共找到&nbsp;
<span>${articleList.size()}</span>&nbsp;个结果
</div>
<dl class="search-resultList">
<#for article : articleList>
<dt><a href="javascript:{getArticle(${article.getCategoryId()},${article.getArticleId()})}">${article.getArticleTitle()}</a></dt>
<dd>${contentList.get(articleList.indexOf(article))}</dd>
</#for>
<#if articleList.size()==0>
<h2 style="font-weight:normal;">没有找到相关项目</h2>
</#if>
</dl>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,405 @@
${Styles.htmlOverflowYAuto()}
${Scripts.src(zhiqim_uploadlarge.js)}
<script>
<!--
var attaList = ${attaList};
Z.onload(function()
{
for(var i=0; i<attaList.length; i++)
{
var obj = attaList[i];
if ("file" == obj.type && obj.isAdd)
{
initUploader(obj.id, obj.savePath);
}
if ("file" == obj.type)
{
Z("#fileType_Text_"+obj.id).click();//默认选中
}
}
});
function initUploader(fileType, path)
{//文件上传
var designId = Z("#designId").val();
if (Z.Validates.isEmpty(designId))
return;
var upload = new Z.UploadLarge();
upload.elem = "upload_" + fileType;
upload.showResult = false;
upload.fileMd5Target = 1;
upload.fileCopy = true;
upload.maxSizeMiB = 500;
upload.contextPath = "${context.getContextPath()}";
upload.setFileDir(path);
upload.onSelected = function(fileName, fileLength)
{
var ajax = new Z.Ajax();
ajax.setSync();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doCheckFileName");
ajax.addParam(designId);
ajax.addParam(fileType);
if ("EndFile" != fileType)
ajax.addParam(designId + "-" + fileName);
else
ajax.addParam(fileName);
ajax.execute();
if (ajax.responseStatus != 0)
{
Z.alert(ajax.responseText);
return false;
}
if ("EndFile" != fileType)
this.setFileName(designId + "-" + fileName);
else
this.setFileName(fileName);
};
upload.onCompleted = function(fileId){
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doUplaodFile");
ajax.addParam(designId);
ajax.addParam(fileId);
ajax.addParam(fileType);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var dataMap = Z.J.toObject(this.responseText);
Z("#div_" + fileType).html("");//清除;
var html = "";
var data_color = "${zmr_color_class}";
var items = dataMap.attaList;
for(var i=0;i<items.length;i++)
{
/**/
var obj = items[i];
html += '<div id="div_checkbox_'+obj.attaId+'" class="z-text-ellipsis z-w300 z-pointer"';
if ('EndFile'== fileType)
html += 'onclick="showThumImg(\''+obj.attaId+'\',\''+obj.fileType+'\')"';
html += ' title="'+obj.fileName+'">';
html += "<input name='str_" + fileType +"' type='checkbox' value ='" + obj.attaId +"' class='z-checkbox' data-role='z-checkbox' data-class='"+data_color+"'/>";
html += '<span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click()">'+obj.fileName+'</span><br>';
html += '</div>';
}
Z("#div_" + fileType).htmlc(html);
});
ajax.setLoading(document);
ajax.execute();
};
upload.execute();
}
function doDownFile(type)
{//文件下载
var designId = Z("#designId").val();
if (Z.V.isEmpty(designId))
{
parent.Z.alert("请选择一条订单");
return;
}
var attaIds = Z.FM.getCheckBoxValue("str_" + type, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要下载的文件");
return false;
}
if(${checkeds}){
parent.Z.alert("选中多条订单不支持下载,请重新选择");
return;
}
var delType_desabled = Z("#delete_"+type).attr("disabled");
var downloadType_desabled = Z("#download_"+type).attr("disabled");
Z("#delete_"+type).attr("disabled", true);
Z("#download_"+type).attr("disabled", true);
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("attaId", attaIds);
ajax.setFailure(function(){
Z("#delete_"+type).attr("disabled", delType_desabled);
Z("#download_"+type).attr("disabled", downloadType_desabled);
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
Z("#delete_"+type).attr("disabled", delType_desabled);
Z("#download_"+type).attr("disabled", downloadType_desabled);
var prefix = Z.l.protocol + "//" + Z.l.host ;
Z.L.href(prefix+"/downFile.htm?attaId=" + attaIds, zCallFrame);
var mainFrame = parent.parent.document.getElementById("mainFrame");
if (mainFrame)
console.log(mainFrame.src);
// window.open(prefix+"/downFile.htm?attaId=" + attaIds, 'downFile');mainFrame
});
ajax.setLoading(document);
ajax.execute();
}
function doDeleteFile(type)
{//删除文件
var designId = Z("#designId").val();
if (Z.V.isEmpty(designId))
{
parent.Z.alert("请选择一条订单");
return;
}
var attaIds = Z.FM.getCheckBoxValue("str_" + type, "");
if (Z.V.isEmpty(attaIds))
{
parent.Z.alert("请选择需要删除的文件");
return ;
}
if(${checkeds}){
parent.Z.alert("选中多条订单不支持删除,请重新选择");
return;
}
Z.confirm("确认删除此文件吗?", function()
{
var arr = Z.AR.toArray(attaIds, ",")
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDeleteFile");
ajax.addParam(attaIds);
ajax.setFailure(function(){Z.alert(this.responseText,null, {width:320});});
ajax.setSuccess(function(){
Z.each(arr, function(id, i){
Z("#div_checkbox_"+id).remove();
});
});
ajax.execute();
}, {width:320});
}
function showThumImg(attaId, suffix)
{
doViewOssFile(attaId);//预览文件
Z("#thumImgs").html("");//清除;
if (suffix != "pdf")
{
var html = "<img class='z-pointer' onclick='showLargeImg(this)' class='z-mg-l10' src= '"+attaId+"-0-endFile'/>";
Z("#thumImgs").html(html);
}
else
{
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("getPdfPages");
ajax.addParam("attaId", attaId);
ajax.setCallback(function()
{
var html = "";
var page = parseInt(this.responseText);
for (var i=1;i<=page;i++)
{
html += "<img class='z-pointer' width='162' onclick='showLargeImg(this)' class='z-mg-l6' src= '"+attaId+"-"+i+"-endFile'/>";
}
html += "<br>";
Z("#thumImgs").html(html);
});
ajax.execute();
}
}
function doViewOssFile(attaId)
{
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doGetOssFileUrl");
ajax.addParam("attaId", attaId);
ajax.setSuccess(function(){
var ossFileUrl = this.responseText;
if (Z.V.isNotEmptyBlank(ossFileUrl))
{
var elem = document.createElement("a");
elem.href = ossFileUrl;
elem.setAttribute("target", "_blank");
elem.click();
}
});
ajax.execute();
}
function showLargeImg(thisImg)
{
var dialog = new parent.Z.Dialog();
dialog.shadow = true;
dialog.title = "图片预览";
dialog.fixed = true;
dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
dialog.width = parent.Z.D.clientWidth()-600;
dialog.height = parent.Z.D.clientHeight()-400;
dialog.execute();
dialog.$background.remove();
}
function doCopyProductInfo(copyType)
{
if (copyType == 1)
{//复制文件名
var designId = "${order.getDesignId()}";
var buyerNick = "${order.getBuyerNick()}";
var reciverName = "${order.getUserContact()}";
var fileName = designId+ "-";
// if (buyerNick.indexOf("-") > 0)
// {
// fileName += reciverName;
// }
// else
// {
fileName += buyerNick;
// }
if (fileName == "-")
return;
Z.copy(fileName);
top.Z.tips("复制成功");
}
else
{//复制信息
if (Z("#copy_content").length == 0)
return;
Z.copy(Z("#copy_content").text());
top.Z.tips("复制成功");
}
}
</script>
${Htmls.toCallFrame()}
<input name="designId" id="designId" value="${order.getDesignId()}" type="hidden">
<table class="z-table z-bordered-line z-pd5 zi-bd z-bg-blue z-mg-t20">
<#for item : attaList>
<#if item.getId() == "copy">
<!--复制-->
<tr class="z-h40 z-bg-gray">
<td class="z-bold" colspan="2">产品信息:
<span style="margin-left:100px">
<button type="button" id="copy" class="z-button z-yellow" onclick="doCopyProductInfo(1);">复制文件名</button>
<button type="button" id="copy" class="z-button z-cyan" onclick="doCopyProductInfo();">复制信息</button>
</span>
</td>
</tr>
<tr class="z-h50">
<#if Validates.isNotEmpty(order)>
<td id="copy_content" colspan="2">${order.getDesignId()}-${order.getBuyerNick()}-${order.getOrderText()}</td>
<#else>
<td colspan="2"></td>
</#if>
</tr>
</#if>
<#if item.getId() == "userText" && Validates.isNotEmptyBlank(order.getUserText())>
<!--客户文本-->
<tr class="z-h40 z-bg-gray">
<td class="z-bold" colspan="2">客户文本</td>
</tr>
<tr class="z-h100">
<td colspan="2">
<textarea class="z-textarea z-w100p z-h100 ${zmr_color_class}" id="userText" name="userText" class="">${order.getUserText()}</textarea>
</td>
</tr>
</#if>
<#if item.getId() == "userNotice" && Validates.isNotEmptyBlank(order.getUserNotice())>
<!--注意事项-->
<tr class="z-h40 z-bg-gray">
<td class="z-bold" colspan="2">注意事项</td>
</tr>
<tr class="z-h80" >
<td colspan="2">
<textarea id="userNotice" name="userNotice" class="z-textarea z-w100p z-h80 ${zmr_color_class}">${order.getUserNotice()}</textarea>
</td>
</tr>
</#if>
<#if item.getType() == "file">
<!-- 文件资料-->
<tr class="z-h40 z-bg-gray">
<td>
<input type="checkbox" id="box_${item.getId()}" onclick="Z.FM.doSelectCheckBox('str_${item.getId()}', this.checked);" class="z-checkbox z-mg-l2" data-role="z-checkbox" data-class="${zmr_color_class}" > <b id="fileType_Text_${item.getId()}" class="z-pointer" onclick=" Z(this).parent().find('zcover>i.z-checkbox').click();">${item.getName()}</b>
</td>
<td class="z-text-right">
<#if item.getId() == "EndFile" && endFileLink != null>
<button id="copyLink_${item.getId()}" class="z-button z-cyan z-pd3" onclick="Z.copy('${endFileLink}');top.Z.tips('复制成功')">发送链接</span></button>
</#if>
<button id="upload_${item.getId()}" class="z-button z-pd3 ${zmr_color_class}" <#if !item.isAdd()>disabled=true</#if>>添加</button>
<button id="download_${item.getId()}" class="z-button z-orange z-pd3" onclick="doDownFile('${item.getId()}');">下载</button>
<button id="delete_${item.getId()}" class="z-button z-red z-pd3" onclick="doDeleteFile('${item.getId()}');" <#if !item.isDel()>disabled=true</#if>>删除</button>
</td>
</tr>
<tr class="z-h40">
<td colspan="2">
<div id="div_${item.getId()}" class="z-overflow-y-auto <#if item.getName()=="客户素材">z-h100<#elseif item.getName()=="印刷文件">z-h50<#else>z-h60</#if>">
<#for atta : fileList>
<#if Validates.isEqual(atta.getAttaModul(), item.getId())>
<div id="div_checkbox_${atta.getAttaId()}" class="z-text-ellipsis z-w300 z-pointer" onclick="<#if item.getId()=="EndFile"> showThumImg('${atta.getAttaId()}', '${atta.getFileType()}')</#if>" title="${atta.getFileName()}">
<input name="str_${item.getId()}" type="checkbox" data-attaId="${atta.getAttaId()}" data-attaUrl="${atta.getOssUrl()}" data-fileName="${atta.getFileName()}" class="z-checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value ="${atta.getAttaId()}"><span class="z-pd6" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">${atta.getFileName()}</span><br>
</div>
</#if>
</#for>
</div>
</td>
</tr>
</#if>
<#if item.getType() == "thumFile">
<!--缩略图-->
<tr class="z-h40 z-bg-gray">
<td class="z-bold" colspan="2">${item.getName()}</td>
</tr>
<tr height="200px" valign="top">
<td colspan="2">
<div id="thumImgs"><#if Validates.isNotEmpty(item.getSavePath())><img src="${item.getSavePath()}"></#if></div>
</td>
</tr>
</#if>
<#if item.getType() == "firstThumFile">
<!--初稿缩略图-->
<tr class="z-h40 z-bg-gray">
<td class="z-bold" colspan="2">${item.getName()}</td>
</tr>
<tr height="200px" valign="top">
<td colspan="2">
<#if order != null>
<div><img style="cursor: pointer;" src="${order.getDesignId()}-FristThumFile.png" onclick='showLargeImg(this)'></div>
</#if>
</td>
</tr>
</#if>
</#for>
<!--客服留言-->
<#if Validates.isNotEmptyBlank(order.getServicesMessage())>
<tr class="z-h40 z-bg-gray">
<td class="z-bold" colspan="2">客服留言</td>
</tr>
<tr class="z-h80">
<td colspan="2">
<textarea id="servicesMessage" name="servicesMessage" class="z-textarea z-w100p z-h80 ${zmr_color_class}">${order.getServicesMessage()}</textarea>
</td>
</tr>
</#if>
</table>
@@ -0,0 +1,173 @@
${sweet_alert_reuse_method()}
<script>
function showLargeImg(thisImg)
{
var dialog = new parent.Z.Dialog();
dialog.shadow = true;
dialog.title = "图片";
dialog.fixed = true;
dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
dialog.width = parent.Z.D.clientWidth()-200;
dialog.height = parent.Z.D.clientHeight()-200;
dialog.execute();
dialog.$background.remove();
}
function doRemoveImg()
{
Z("#divImg").remove();
Z("#finishImgPath").remove();
}
(function(){
var imgReader = function( item ){
var blob = item.getAsFile(),
reader = new FileReader();
// 读取文件后将其显示在网页中
reader.onload = function(e){
var img = new Image();
var result = e.target.result;
Z("#imgData").text(result);
img.src = result;
img.id = "divImg";
Z("#imgSrc").append(img);
};
// 读取文件
reader.readAsDataURL(blob);
};
window.addEventListener( 'paste', function(e){
// 添加到事件对象中的访问系统剪贴板的接口
var clipboardData = e.clipboardData,
i = 0,
items, item, types;
if(clipboardData){
items = clipboardData.items;
if( !items ){
return;
}
item = items[0];
// 保存在剪贴板中的数据类型
types = clipboardData.types || [];
for( ; i < types.length; i++ ){
if( types[i] === 'Files' ){
item = items[i];
break;
}
}
// 判断是否为图片数据
if( item && item.kind === 'file' && item.type.match(/^image\//i) ){
imgReader( item );
}
}
});
})();
function doDealComplainOrder(){
var imgData = Z("#imgData").text();//投诉截图
if (Z.Validates.isEmpty(Z("#imgSrc").html()))
{
swal({title : "请将跟进截图粘贴至空白处",type : "warning",timer: 1500,width:300,showConfirmButton:false});
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("ComplainDealPresenter");
ajax.setMethodName("doDealComplainOrder");
ajax.addParam("complainId",Z("#complainId").val());
ajax.addParam("imgData",imgData);
ajax.setFailureAlert();
ajax.setSuccess(function(){
swal({title:"处理成功",type:"success",timer: 1200,width:300,showConfirmButton:false}).then(function(){
parent.location.reload();parent.Z.Dialog.close();
});
});
ajax.setLoading("complainDeal", '<i class="z-font z-save"></i>正在处理',{disabled:true});
ajax.execute();
}
</script>
${zhiqim_manager_content()}
<input type="hidden" id="complainId" name="complainId" value="${order.getComplainId()}">
<form name="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white z-text-left">
<tr class="z-h40">
<td align="center" width="150">客户旺旺:</td>
<td width="140">${order.getBuyerNick()}</td>
<td align="center" width="130">产品名称:</td>
<td colspan="2">${order.getOrderText()}</td>
</tr>
<tr class="z-h40">
<td align="center" width="150">店铺名称:</td>
<td width="140">${order.getShopNick()}</td>
<td align="center" width="130">设&nbsp;计&nbsp;师:</td>
<td width="210">${order.getDesigner()}</td>
<td align="left" colspan="1">录单时间:${Sqls.toDateTimeString(order.getCreateTime())}</td>
</tr>
<tr class="z-h40">
<td align="center" width="150">责任部门:</td>
<td width="190">${order.getUndertakeDept()}</td>
<td align="center" width="130">投诉类型:</td>
<td width="210">${order.getComplainType()}</td>
<td align="left" width="300">店铺扣罚:${order.getShopPunishScore()} 分</td>
</tr>
<tr class="z-h40">
<td align="center" width="150">处理方案:</td>
<td width="190">${order.getDisposeProject()}</td>
<td align="center" width="150">责任人:</td>
<td width="210">${order.getUndertakePerson()}</td>
<td width="300">
<button type="button" class="z-button zi-bg-white zi-mg-l1" onclick="Z(this).find('zcover>i.z-checkbox').click()">
<input type="checkbox" id="isSatrapAssist" name="isSatrapAssist" class="z-checkbox" data-class="${zmr_color_class}" <#if order.isSatrapAssist()>checked</#if> data-role="z-checkbox" onclick="Z.E.stop(); this.value=this.checked" disabled>
主管协助</button>
</td>
</tr>
<tr class="z-h50">
<td align="center" width="150">备注:</td>
<td colspan="4">${order.getComplainSpecificText()}
</td>
</tr>
<tr>
<td align="center" width="200">受理截图</td>
<td colspan="5" >
<div style="display: flex;max-height: 100px;">
<img src="${order.getDisposeImgPath()}" onclick="showLargeImg(this)" id="disposeImgPath">
</div>
</td>
</tr>
<tr class="z-h100">
<td align="center" width="200">跟进截图:</td>
<td colspan="5" style="position: relative;">
<#if order.getComplainStatus() != 20><button type="button" class="z-button z-mg-l10 z-w60 z-cyan z-relative-right" onclick="doRemoveImg();" style="top:2px;left: 90%;position: absolute;">移除</button></#if>
<div style="display:none" id="imgData"></div>
<div id="imgSrc"></div>
<div><img src="${order.getFinishImgPath()}" onclick="showLargeImg(this)" id="finishImgPath"></div>
</td>
</tr>
<tr class="z-h100">
<td align="center" width="200" style="border-top:none;"></td>
<td style="border-top:none;" colspan="5"></td>
</tr>
</table>
</form>
${zhiqim_manager_content_end()}
<#-- 操作 -->
<div class="z-fixed z-w100p z-h100 z-text-center" style="bottom:0;left:0">
<div>
<table class="z-table z-bordered z-pd6 z-text-left z-bg-white z-h40">
<tr class="z-h40">
<td align="center" colspan="3">订单受理人:<input type="text" value="${order.getComplainAddName()}" id="complainAddName" style="border:none;"></td>
<td align="center" colspan="3">受理时间:<input type="text" value="${Sqls.toDateTimeString(order.getComplainAddTime())}" id="complainAddTime" style="border:none;"></td>
</tr>
</table>
</div>
<div class="z-w100p z-bg-gray z-pd-t10 z-h60">
<#if order.getComplainStatus() != 20><button type="button" id="complainDeal" class="z-button ${zmr_color_class} z-large z-w150" onclick="doDealComplainOrder();">提交投诉单</button>&nbsp;&nbsp;</#if>
<button type="button" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
</div>
@@ -0,0 +1,90 @@
<script>
function showLargeImg(thisImg)
{
var dialog = new parent.Z.Dialog();
dialog.shadow = true;
dialog.title = "图片";
dialog.fixed = true;
dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
dialog.width = parent.Z.D.clientWidth()-200;
dialog.height = parent.Z.D.clientHeight()-200;
dialog.execute();
dialog.$background.remove();
}
</script>
${zhiqim_manager_content()}
<form name="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white z-text-left">
<tr class="z-h40">
<td align="center" width="150">客户旺旺:</td>
<td width="140">${order.getBuyerNick()}</td>
<td align="center" width="130">产品名称:</td>
<td colspan="2">${order.getOrderText()}</td>
</tr>
<tr class="z-h40">
<td align="center" width="150">店铺名称:</td>
<td width="140">${order.getShopNick()}</td>
<td align="center" width="130">设&nbsp;计&nbsp;师:</td>
<td width="210">${order.getDesigner()}</td>
<td align="left" colspan="1">录单时间:${Sqls.toDateTimeString(order.getCreateTime())}</td>
</tr>
<tr class="z-h40">
<td align="center" width="150">责任部门:</td>
<td width="190">${order.getUndertakeDept()}</td>
<td align="center" width="130">投诉类型:</td>
<td width="210">${order.getComplainType()}</td>
<td align="left" width="300">店铺扣罚:${order.getShopPunishScore()} 分</td>
</tr>
<tr class="z-h40">
<td align="center" width="150">处理方案:</td>
<td width="190">${order.getDisposeProject()}</td>
<td align="center" width="150">责任人:</td>
<td width="210">${order.getUndertakePerson()}</td>
<td width="300">
<button type="button" class="z-button zi-bg-white zi-mg-l1" onclick="Z(this).find('zcover>i.z-checkbox').click()">
<input type="checkbox" id="isSatrapAssist" name="isSatrapAssist" class="z-checkbox" data-class="${zmr_color_class}" <#if order.isSatrapAssist()>checked</#if> data-role="z-checkbox" onclick="Z.E.stop(); this.value=this.checked" disabled>
主管协助</button>
</td>
</tr>
<tr class="z-h50">
<td align="center" width="150">备注:</td>
<td colspan="4">${order.getComplainSpecificText()}
</td>
</tr>
<tr>
<td align="center" width="150">受理截图:</td>
<td colspan="5" >
<div style="display: flex;max-height: 100px;">
<img width="25%" src="${order.getDisposeImgPath()}" onclick="showLargeImg(this)" id="disposeImgPath">
</div>
</td>
</tr>
<tr class="z-h100">
<td align="center" width="150">跟进截图:</td>
<td colspan="5">
<img src="${order.getFinishImgPath()}" onclick="showLargeImg(this)">
</td>
</tr>
<tr class="z-h100">
<td style="border-top:none;" colspan="6"></td>
</tr>
</table>
</form>
${zhiqim_manager_content_end()}
<div class="z-fixed z-w100p z-h100 z-text-center" style="bottom:0;left:0">
<div>
<table class="z-table z-bordered z-pd6 z-text-left z-bg-white z-h40">
<tr class="z-h40">
<td align="center" colspan="3">订单受理人:<input type="text" value="${order.getComplainAddName()}" id="complainAddName" style="border:none;"></td>
<td align="center" colspan="3">受理时间:<input type="text" value="${Sqls.toDateTimeString(order.getComplainAddTime())}" id="complainAddTime" style="border:none;"></td>
</tr>
</table>
</div>
<div class="z-w100p z-bg-gray z-pd-t10 z-h60">
<button type="button" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
</div>
@@ -0,0 +1,112 @@
${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 orgAllOrder = '${orgAllOrder}';
Highcharts.chart('container',
{
chart: {plotBackgroundColor: null,plotBorderWidth: null,plotShadow: false,type: 'pie'},
title: {text: '投诉单总量:'+orgAllOrder},
tooltip: {pointFormat: '{series.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:
[{
name: '投诉原因占比',
colorByPoint: true,
data:[
<#for item : pcMap.keySet()>
{name: '${item}',y: ${pcMap.get(item)}},
</#for>
]
}]
});
});
function doQueryComplainDetail(complainId){
var dialog = new Z.Dialog();
dialog.title = "投诉单号:"+complainId;
dialog.url = "/complainDetail.htm?complainId="+complainId;
dialog.width = 1000;
dialog.height = 500;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("我导致的投诉")}
${zhiqim_manager_content()}
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/complainFinishList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="350px">
受理时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-
<input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td>&nbsp;组&nbsp;&nbsp;织
<select name="orgId" class="z-select z-w180" data-role="z-select-search" 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>
</td>
<td width="350px">责&nbsp;任&nbsp;人:
<input type="text" name="undertakePerson" class="z-input z-w180 ${zmr_color_class}" value="${undertakePerson}">
</td>
<td width="*">
<button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
</td>
</tr>
</table>
</form>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center" style="height:auto;">
<td width="45%"><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-text-left" style="text-align:center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="15%">订单编号</td>
<td width="15%">投诉单号</td>
<td width="20%">责任组织</td>
<td width="10%">责任人</td>
<td width="10%">受理状态</td>
<td width="20%">受理时间</td>
<td width="10%">操作</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 7, "暂时没有数据")}
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td>${item.getDesignId()}</td>
<td>${item.getComplainId()}</td>
<td>${ZmrOrgDao.getOrgName(request,item.getUndertakeOrg())}</td>
<td>${item.getUndertakePerson()}</td>
<td>${ComplainConstants.getStatus(item.getComplainStatus())}</td>
<td>${Sqls.toDateTimeString(item.getComplainAddTime())}</td>
<td><button class="z-button z-blue " onclick="doQueryComplainDetail(${item.getComplainId()})">详情</button></td>
</tr>
</#for>
${zhiqim_manager_paging(pageResult, "/complainFinishList.htm")}
</table>
</td>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,115 @@
<script>
function doQueryComplainDetail(){
var complainId = Z.FM.getChecked("complainId");
if (Z.V.isEmpty(complainId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "投诉单号:"+complainId;
dialog.url = "/complainDetail.htm?complainId="+complainId;
dialog.width = 1000;
dialog.height = 500;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("投诉单列表")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li class="z-active">投诉单列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/complainTotalOrderList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td>订单编号:<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单编号"></td>
<td>投诉单号:<input name="complainId" class="${zmr_color_class} z-input z-w180" value="${complainId}" maxlength="64" placeholder="投诉单号"></td>
<td>责&nbsp;任&nbsp;人:
<input name="undertakePerson" class="${zmr_color_class} z-input z-w180" value="${undertakePerson}" maxlength="64" placeholder="责任人">
</td>
<td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
<tr>
</tr class="z-h40">
<td>
受理状态:<select name="complainStatus" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : ComplainConstants.getList()>
<option value="${item.value()}" <#if complainStatus == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<td>店铺名称:<select name="shopNick" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : shopNickList>
<option value="${item}" <#if shopNick == item>selected</#if>>${item}</option>
</#for>
</select>
</td>
<td>
受理时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-
<input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button id="queryComplainDetail" class="z-button z-blue z-mg-r10" onclick="doQueryComplainDetail();"><i class="z-font z-modify"></i>查看投诉单</button>
</div>
<#-- 列表 -->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2110px">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="40">选择</td>
<td width="150">订单编号</td>
<td width="120">所属组织</td>
<td width="130">旺旺号</td>
<td width="120">店铺</td>
<td width="110">责任人</td>
<td width="110">责任组织</td>
<td width="110">受理状态</td>
<td width="100">受理时间</td>
<td width="*" style="min-width:210px">产品</td>
<td width="90">订单金额</td>
<td width="150">投诉类型</td>
<td width="80">店铺扣分</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 17, "暂时没有投诉单")}
<#for item : pageResult.list()>
<tr class="z-pointer" <#if item.getComplainStatus()== "40">style="color:#8a8a8a;"<#elseif item.getComplainStatus()== "20">style="color:#000000;"</#if> ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="complainId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getComplainId()}"></td>
<td>${item.getDesignId()}<p <#if item.getComplainStatus()== "40">style="color:#000000;"<#else>class="z-text-red"</#if>>TS:${item.getComplainId()}</p></td>
<td>${ZmrOrgDao.getOrgName(request,item.getOrgId())}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getShopNick()}</td>
<td>${item.getUndertakePerson()}</td>
<td>${CalculationUtil.operatorGetOrgName(item.getUndertakePerson())}</td>
<td>${ComplainConstants.getStatus(item.getComplainStatus())}</td>
<td>${Sqls.toDateTimeString(item.getComplainAddTime())}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${item.getComplainType()}</td>
<td>${item.getShopPunishScore()}分</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/complainTotalOrderList.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,115 @@
${Scripts.src("/zinc/js/globalcomplain_2019010801.js")}
<script>
function doQueryComplainDeal(){
var complainId = Z.FM.getChecked("complainId");
if (Z.V.isEmpty(complainId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "投诉单号:"+complainId;
dialog.url = "/complainDeal.htm?complainId="+complainId;
dialog.width = 900;
dialog.height = 500;
dialog.execute();
}
function doQueryComplainDetail(){
var complainId = Z.FM.getChecked("complainId");
if (Z.V.isEmpty(complainId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "投诉单号:"+complainId;
dialog.url = "/complainDetail.htm?complainId="+complainId;
dialog.width = 1000;
dialog.height = 500;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("我的投诉")}
${zhiqim_manager_content()}
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/complainWantDealList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td>订单编号:<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单编号"></td>
<td>投诉单号:<input name="complainId" class="${zmr_color_class} z-input z-w180" value="${complainId}" maxlength="64" placeholder="投诉单号"></td>
<td>
受理状态:<select name="complainStatus" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : ComplainConstants.getList()>
<option value="${item.value()}" <#if complainStatus == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
<tr>
</tr class="z-h40">
<td>店铺名称:<select name="shopNick" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : shopNickList>
<option value="${item}" <#if shopNick == item>selected</#if>>${item}</option>
</#for>
</select>
</td>
<td>
受理时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-
<input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td colspan="2"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button id="queryComplainDetail" class="z-button z-blue z-mg-r6" onclick="doQueryComplainDeal();"><i class="z-font z-modify"></i>投诉单处理</button>
<button id="queryComplainDetail" class="z-button z-blue z-mg-r6" onclick="doQueryComplainDetail();"><i class="z-font z-modify"></i>查看投诉单</button>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center" style="height:auto;">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="150">订单编号</td>
<td width="130">旺旺号</td>
<td width="120">店铺</td>
<td width="110">受理状态</td>
<td width="100">受理时间</td>
<td width="*" style="min-width:210px">产品</td>
<td width="90">订单金额</td>
<td width="150">投诉类型</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 17, "暂时没有待处理的投诉")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getComplainId()}" type="hidden" value="${item.getBuyerNick()}">
<tr class="z-pointer <#if item.isSatrapAssist()>z-text-red</#if>" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="complainId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getComplainId()}"></td>
<td>${item.getDesignId()}<p style="color:#000000">TS:${item.getComplainId()}</p></td>
<td>${item.getBuyerNick()}</td>
<td>${item.getShopNick()}</td>
<td>${ComplainConstants.getStatus(item.getComplainStatus())}</td>
<td>${Sqls.toDateTimeString(item.getComplainAddTime())}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${item.getComplainType()}</td>
</tr>
</#for>
${zhiqim_manager_paging(pageResult, "/complainWantDealList.htm")}
</table>
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,79 @@
<style>
body{ text-align:center}
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<script>
function doCancel()
{//取消
Z("#divImg").remove()
}
function doSubmit(type)
{
var data = Z("#imgData").text()
if (Z.Validates.isEmpty(data))
{
Z.alert("请截图后,在提交")
return;
}
parent.doUploadOcrImage(data, "png", function(){parent.Z.Dialog.close();});
}
(function(){
var imgReader = function( item ){
var blob = item.getAsFile(),
reader = new FileReader();
// 读取文件后将其显示在网页中
reader.onload = function(e){
var img = new Image();
var result = e.target.result;
Z("#imgData").text(result);
img.src = result;
img.id = "divImg";
Z("#imgSrc").append(img);
};
// 读取文件
reader.readAsDataURL(blob);
};
window.addEventListener( 'paste', function(e){
// 添加到事件对象中的访问系统剪贴板的接口
var clipboardData = e.clipboardData,
i = 0,
items, item, types;
if(clipboardData){
items = clipboardData.items;
if( !items ){
return;
}
item = items[0];
// 保存在剪贴板中的数据类型
types = clipboardData.types || [];
for( ; i < types.length; i++ ){
if( types[i] === 'Files' ){
item = items[i];
break;
}
}
// 判断是否为图片数据
if( item && item.kind === 'file' && item.type.match(/^image\//i) ){
imgReader( item );
}
}
});
})();
</script>
${zhiqim_manager_content()}
<div style="display:none" id="imgData"></div>
<div id="imgSrc"></div>
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
<div style="margin-top:10px">
<button type="button" class="z-button z-w100 ${zmr_color_class}" id="designOrderDraft" onclick="doSubmit('${type}');">提交</button>&nbsp;&nbsp;&nbsp;
<button type="button" class="z-button z-red" onclick="doCancel();">清空</button>&nbsp;
</div>
</div>
<br><br>
${zhiqim_manager_content_end()}
</html>
@@ -0,0 +1,14 @@
<div class="svgTemplateList">
<#for key : svgMap.keySet()>
<#var item = svgMap.get(key)/>
<div id="sel_${item.getMediaId()}" class="svgTemplateItem">
<#if item != null>
<#for bg : item.getBgList()>
<div class="showSvg">${bg.getSvgCode()}</div>
</#for>
</#if>
<div class="z-lh30 z-px16 z-color-gray">${item.getMediaId()}<button class="z-button z-purple z-operater" style="margin-left:20px;"onclick="copyMediaId('${item.getMediaId()}');">复制模板编号</button></div>
</div>
</#for>
</div>
@@ -0,0 +1,35 @@
<#if svgMap.isEmpty()>
<div class="z-w100p z-h50 z-text-center z-px18">请选择模板</div>
<#else>
<script>
function templateSelectedEdit(mediaId)
{
var newUrl = "/zhiqimMediaEditor/mediaDesign.htm?";
newUrl += "mediaId=" + mediaId + "&"
newUrl += "designWidth="+${type.getSizeMWidth()}+"&"
newUrl += "designHeight="+${type.getSizeMHeight()}+"&"
newUrl += "printWidth="+${designOrder.getPrintWidth()}+"&"
newUrl += "printHeight="+${designOrder.getPrintHeight()}+"&";
newUrl += "bleedSize="+${sizeItem.getSizeBleed()}+"&"
newUrl += "orderIsCardType="+${orderIsCardType}+"&"
window.open(newUrl);
}
</script>
<div class="svgTemplateList">
<#for key : svgMap.keySet()>
<#var item = svgMap.get(key)/>
<div id="sel_${item.getMediaId()}" class="svgTemplateItem" onmouseenter='Z(this).children(".itemCtrBar").show();' onmouseleave='Z(this).children(".itemCtrBar").hide();'>
<#if item != null>
<#for bg : item.getBgList()>
<div class="showSvg">${bg.getSvgCode()}</div>
</#for>
</#if>
<span class="itemCtrBar z-absolute z-w100p z-pd10 z-hide">
<button type="button" class="z-button modelCheckBtn z-blue z-float-left" onclick="templateSelectedEdit('${key}');"><i class="z-font z-px12 z-success"></i>编辑</button>
<button type="button" class="z-button modelCheckBtn z-red z-float-right" onclick="doTemplateDelete('${key}')"><i class="z-font z-px12 z-error"></i>删除</button>
</span>
<div class="z-lh30 z-px16 z-color-gray">${item.getMediaId()}</div>
</div>
</#for>
</div>
</#if>
@@ -0,0 +1,70 @@
<#if Validates.isEqual(queryType, "KEYWORD")>
<div class="z-mg-b20 z-text-center" style="display:block">
<div class="z-show-ib">
<input id="searchSort" type="hidden" />
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover <#if sort=='3'>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#searchSort').val('3');doKeywordQuery('1');">最热</button>
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover <#if sort=='1'>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#searchSort').val('1');doKeywordQuery('1');">最新</button>
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover <#if sort=='4'>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#searchSort').val('4');doKeywordQuery('1');">精品</button>
<input id="searchinput" class="z-input z-w400 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="${keyword}" maxlength="60"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="doKeywordQuery('1');"><i class="z-font z-query"></i>搜索</button>
<div class="z-mg-t10 z-text-left">热词:
<#for item : subIndustryList>
<a href="javascript:{Z('#searchinput').val('${item.getIndustrySubName()}');doKeywordQuery('1');}" >${item.getIndustrySubName()}</a>&nbsp;
</#for>
</div>
</div>
</div>
<#elseif Validates.isEqual(queryType, "COLLECT")>
<div class="z-mg-b20 z-text-center" style="display:block">
<div class="z-show-ib">
<input id="searchinput" class="z-input z-w400 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="${keyword}" maxlength="60"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="doKeywordQuery('1');"><i class="z-font z-query"></i>搜索</button>
</div>
</div>
<#else>
<#if pageResult.total() gt 0>
<div class="z-mg-b20 z-text-center" style="display:block">
<span class="z-button z-blue z-mg-l5 z-text-right" onclick="<#if pageResult.totalPages() == page>doTemplateTypeQuery('1');<#else>doTemplateTypeQuery('${page + 1}');</#if>">换一批</span>
</div>
</#if>
</#if>
<div class="svgTemplateList z-mg-t5">
<#for item : pageResult.list()>
<#var key = item.getMediaId()/>
<div id="nav_${key}" class="svgTemplateItem <#if designId != -1 && Lists.contains(idList, key)>selected</#if>">
<img src="
<#if Validates.isEmpty(item.getMediaUrl())>/zinc/images/nopic.png
<#else>
<#if media.getMediaUrl().indexOf(",") == -1>
${item.getMediaUrl()}
<#else>
<#for path : Arrays.toStringArray(item.getMediaUrl())>
<#if path_index lt 1>
${path}
</#if>
</#for>
</#if>
</#if>
">
<div class="templateItemBtn z-absolute z-w100p z-h100p">
<span class="z-button z-large z-blue" onclick="doSelectTemplate('${key}');">选择</span>
<span class="z-button z-large" onclick="unSelectTemplate('${key}');">取消</span>
</div>
<div class="itemSelectedSign z-absolute"><span class="z-absolute">已选</span></div>
<div class="z-lh30 z-px16 z-color-gray">${item.getMediaId()}</div>
</div>
</#for>
</div>
<#if pageResult.total()==0>
<div class="z-text-center z-px20 z-color-gray z-mg-t15 z-h100">该关键词未查询到模板 请换其他关键词试试!</div>
</#if>
<#if Validates.isEqual(queryType, "KEYWORD") || Validates.isEqual(queryType, "COLLECT")>
<div style="width:100%;text-align:center;margin-bottom:35px;">
<table class="z-table z-bordered zi-bd-t-none z-bg-white">
<tr class="z-h50">
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlClick(pageResult, "doKeywordQuery")}</div></td>
</tr>
</table>
</div>
</#if>
@@ -0,0 +1,63 @@
${request.getValidateScript()}
<script>
Z.onload(function()
{
doTemplateExistQuery();
})
function doTemplateExistQuery()
{//查询已选模板
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doTemplateExistQueryForCustomer");
ajax.addParam("designId", "${designId}");
ajax.addParam("typeId", "${typeId}");
ajax.setCallback("templateResult");
ajax.setLoading("templateResult");
ajax.execute();
}
function copyMediaId(mediaId)
{//复制模板id
Z.copy(mediaId);
top.Z.tips("复制成功");
}
</script>
<style>
body{height:100%;}
/*图片展示区*/
.container{min-height:auto;}
.mainbody{height:100%;}
.content{height:calc(100% - 40px);overflow-y:auto;}
form[name="theForm"]{float:left;width:100%;}
/* tab标签 */
.svgTemplateList .itemCtrBar{left:0;top:0;}
#svgTemplateWrap{height:calc(100% - 176px)}
#templateTab{float:none;}
/*内容盒子*/
#svgTemplateWrap > section{height:calc(100% - 50px);background:#ffffff;border:1px solid #dcdcdc;border-top:none;}
/*模板列表*/
.svgTemplateList{width:100%;height:100%;column-count:5;}
.svgTemplateList .svgTemplateItem{width:100%;height:100%;text-align:center;padding:5px;background:#fff;border:1px solid #ccc;overflow:auto;position:relative;}
.svgTemplateItem > .templateItemBtn{padding:10%;left:0;top:0;display:flex;justify-content:space-around;align-items:center;align-content:center;}
.svgTemplateItem > .templateItemBtn .z-button{display:none;}
.svgTemplateItem > .templateItemBtn:hover{background:rgba(0,0,0,.2);}
.svgTemplateItem > .templateItemBtn:hover .z-button{display:inline-block;}
.svgTemplateItem .itemSelectedSign{display:none;width:0;height:0;right:5px;bottom:5px;border-width:30px;border-style:solid;border-color:transparent #28a3ef #28a3ef transparent;}
.svgTemplateItem .itemSelectedSign > span{white-space:nowrap;left:-5px;color:#fff;top:5px;}
.svgTemplateItem.selected .itemSelectedSign{display:block;}
.showSvg {pointer-events:none;display: block;margin-top:2px;}
.showSvg:first-child{margin-top:0;}
.showSvg > svg {width:100%;height: auto;}
/** 选中样式 **/
.svgTemplateItem.selected{}
.column-count {-webkit-column-count:4;-moz-column-count:4;}
</style>
<div id="templateResult" class="z-pd20 z-active z-text-center"></div>
@@ -0,0 +1,477 @@
${request.getValidateScript()}
${Mydome()}
<script>
Z.onload(function()
{//定义搜索框
if (${display})
Z("#templateTab li:nth-child(1)").click();
else
Z("#templateTab li:nth-child(2)").click();
})
function doSubmit(form)
{
if (!validateForm(form))
return;
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doTemplateReplaceParam");
ajax.setParamForm(form);
ajax.setSuccess(function(){
Z("#templateTab li:nth-child(1)").click();
Z.tips("生成完成");
});
ajax.setFailureAlert();
ajax.setLoading(form.submit, "<i class='z-ico z-loading'></i>正在生成...", {disabled:true});
ajax.execute();
}
function doUploadOcrImage(data, suffix, fun)
{//上传待识别图片
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doUploadOcrImage");
ajax.addParam("data", data);
ajax.addParam("suffix", suffix);
ajax.setSuccess(function(){
Z("#ocrText").val(ajax.responseText);
if(typeof fun == "function")fun();
});
ajax.setFailure(function(){Z.alert(ajax.responseText);});
ajax.setLoading(document, true);
ajax.execute();
}
function doSaveOcrText(ocrText)
{//保存识别文本
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doSaveOcrText");
ajax.addParam("ocrText", ocrText);
ajax.addParam("designId", '${order.getDesignId()}');
ajax.setSuccess(function(){});
ajax.setFailure(function(){Z.alert(ajax.responseText);});
ajax.setLoading(document, true);
ajax.execute();
}
function doDialog()
{
var dialog = new Z.Dialog();
dialog.title = "截图(截屏后粘贴(CTRL+V)到输入框中)";
dialog.url = "/copyImage.htm";
dialog.width = 800;
dialog.height = 400;
dialog.execute();
}
function doTransforImage(type,data)
{//图片转base64
if (data.files && data.files[0])
{//1.判断input标签的file是否存在
var size = data.files[0].size;
if(size/1024/1024 >2)
{//检测图片大小
alert("图片大小不能超过2M");
return;
}
var reader = new FileReader();//2.实例化一个FileReader()接口
reader.readAsDataURL(data.files[0]);//3.通过readAsDataURL()方法读取文件,将图片内嵌在网页之中
reader.onload = function(evt)
{//4.调用FileReader()的onload事件
var url = data.value;
var suffix=url.substring(url.lastIndexOf(".") + 1, url.length);//后缀名
doUploadOcrImage(evt.target.result, suffix);
}
}
}
function doForwardEdit(mediaId)
{
var dialog = new Z.Dialog();
dialog.id = "doForwardEdit";
dialog.title = "新开窗口跳转";
dialog.url = "templateToEdit.htm?mediaId=" + mediaId;
dialog.width = 10;
dialog.height = 10;
dialog.fixed = true;
dialog.timeout = 1*1000; //自动关闭
dialog.execute();
}
function doTemplateDelete(mediaId)
{//删除用户模板
if (Z.V.isEmpty(mediaId))
{
Z.alert("请选择模板");
return;
}
Z.confirm("你确定要删除该模板吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePresenter");
ajax.setMethodName("doTemplateDelete");
ajax.addParam("mediaId", mediaId);
ajax.addParam("designId", '${order.getDesignId()}');
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z("#sel_" + mediaId).remove();
Z.tips("删除成功");
});
ajax.execute();
});
}
function doTemplateOrderCreate(designId)
{
if (Z.V.isEmpty(designId))
{
Z.alert("订单号不存在,请检查");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doCreateOrderTemplate");
ajax.addParam("designId", ${designId});
ajax.addParam("createChannel", "platform_design");
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var obj = Z.J.toObject(this.responseText);
var mediaId = obj.mediaId;
var designWidth = obj.designWidth;
var designHeight = obj.designHeight;
var printWidth = obj.printWidth;
var printHeight = obj.printHeight;
var printKs = obj.printKs;
var printMs = obj.printMs;
var bleedSize = obj.bleedSize;
var orderIsCardType = obj.orderIsCardType;
var newLink = "/zhiqimMediaEditor/mediaDesign.htm?";
newLink += "mediaId=" + mediaId + "&"
newLink += "designWidth=" + designWidth + "&"
newLink += "designHeight=" + designHeight + "&"
newLink += "printWidth=" + printWidth + "&"
newLink += "printHeight=" + printHeight + "&";
newLink += "bleedSize=" + bleedSize + "&";
newLink += "orderIsCardType=" + orderIsCardType + "&";
window.open(newLink);
window.location.reload();
});
ajax.execute();
}
function doParseText(type)
{
var userText = Z("#userText").val();
if (Z.V.isEmpty(userText))
{
Z.alert("请输入客户文本");
return;
}
var ocrText = Z("#ocrText").val();
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doParseParamData");
ajax.addParam("type", type);
ajax.addParam("paramData", userText + ocrText);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var strs = Z.Jsons.toObject(this.responseText);
if (strs != "")
{
var value = "";
for(var i= 0; i< strs.length; i++)
{
value += strs[i] +"\n";
}
Z("#paramData").val(value);
}
});
ajax.setLoading(document, true);
ajax.execute();
}
/** 选择模板 **/
function doSelectTemplate(mediaId)
{
if (Z("#nav_" + mediaId).hasClass("selected")) {
Z.tips("已选择!");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doTemplateCacheAdd");
ajax.addParam("mediaId", mediaId);
ajax.addParam("designId", '${order.getDesignId()}');
ajax.setFailureAlert();
ajax.setSuccess(function(){Z("#nav_" + mediaId).addClass("selected");Z.tips("选择成功!");});
ajax.execute();
}
/** 取消模板 **/
function unSelectTemplate(mediaId)
{
if (!Z("#nav_" + mediaId).hasClass("selected")) {
Z.tips("已取消!");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doTemplateCacheDelete");
ajax.addParam("mediaId", mediaId);
ajax.addParam("designId", '${order.getDesignId()}');
ajax.setFailureAlert();
ajax.setSuccess(function(){Z("#nav_" + mediaId).removeClass("selected");Z.tips("取消成功!");});
ajax.execute();
}
function doTemplateTypeQuery(page)
{//查询模板
var keyword = Z("#searchinput").val() || "";
var queryType = Z("#queryType").val();
var sort = Z('#searchSort').val();
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doTemplateTypeQuery");
ajax.addParam("page", page);
ajax.addParam("designId", "${designId}");
ajax.addParam("typeId", "${order.getTypeId()}");
ajax.addParam("queryType", queryType);
ajax.addParam("keyword", keyword);
ajax.addParam("sort", sort);
ajax.setCallback("templateResult");
ajax.setLoading("templateResult");
ajax.execute();
}
function doTemplateExistQuery()
{//查询已选模板
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doTemplateExistQuery");
ajax.addParam("designId", "${designId}");
ajax.addParam("typeId", "${order.getTypeId()}");
ajax.setCallback("templateResult");
ajax.setLoading("templateResult");
ajax.execute();
}
function doChangeTab(ele, queryType)
{//切换选项
Z(ele).addClass("z-active").siblings("li").removeClass("z-active");
Z('#queryType').val(queryType);
if(queryType==''){
Z("#templateLinkSpan").show();
}else{
Z("#templateLinkSpan").hide();
}
if (!queryType)
{
doTemplateExistQuery();
}
else
{
doTemplateTypeQuery(1);
}
}
function getTemplateLink()
{//生成模板链接
Z.copy(window.location.host+"/templateCustomerPreview.htm?designId=${designId}&typeId=${order.getTypeId()}");
top.Z.tips("复制成功");
}
function doKeywordQuery(page)
{//关键词搜索
var queryType = Z("#queryType").val();
Z('li[data-type="'+queryType+'"]').addClass("z-active").siblings("li").removeClass("z-active");
doTemplateTypeQuery(page);
}
function doModifyIndustry()//修改行业
{
var designId = Z("#designId").text();
if(Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改行业";
dialog.url = "/modifyIndustry.htm?designId="+designId+"&flag=1";
dialog.width = 500;
dialog.height = 300;
dialog.execute();
}
function doReFreshIndustryInfo()
{
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePreviewPresenter");
ajax.setMethodName("doReFreshIndustryInfo");
ajax.addParam("designId", "${designId}");
ajax.setFailureAlert();
ajax.setSuccess(function(){
var obj = Z.J.toObject(this.responseText);
Z("#industryName").html(obj);
});
ajax.execute();
}
</script>
<style>
body{height:100%;}
/*图片展示区*/
.container{min-height:auto;background-color:#ffffff;}
.mainbody{height:100%;}
.content{height:calc(100% - 40px);overflow-y:auto;}
form[name="theForm"]{float:left;width:100%;}
/* tab标签 */
.svgTemplateList .itemCtrBar{left:0;top:0;}
#svgTemplateWrap{height:calc(100% - 176px)}
#templateTab{float:none;}
/*内容盒子*/
#svgTemplateWrap > section{height:calc(100% - 50px);background:#ffffff;border:1px solid #dcdcdc;border-top:none;}
/*模板列表*/
.svgTemplateList{width:100%;height:100%;column-count:4;}
.svgTemplateList .svgTemplateItem{width:100%;height:100%;text-align:center;padding:5px;background:#fff;border:1px solid #ccc;overflow:auto; position: relative;margin-bottom: 15px;}
.svgTemplateItem > .templateItemBtn{padding:10%;left:0;top:0;display:flex;justify-content:space-around;align-items:center;align-content:center;}
.svgTemplateItem > .templateItemBtn .z-button{display:none;}
.svgTemplateItem > .templateItemBtn:hover{background:rgba(0,0,0,.2);}
.svgTemplateItem > .templateItemBtn:hover .z-button{display:inline-block;}
.svgTemplateItem .itemSelectedSign{display:none;width:0;height:0;right:5px;bottom:5px;border-width:30px;border-style:solid;border-color:transparent #28a3ef #28a3ef transparent;}
.svgTemplateItem .itemSelectedSign > span{white-space:nowrap;left:-5px;color:#fff;top:5px;}
.svgTemplateItem.selected .itemSelectedSign{display:block;}
.showSvg {pointer-events:none;display: block;margin-top:2px;}
.showSvg:first-child{margin-top:0;}
.showSvg > svg {width:100%;height: auto;}
/** 选中样式 **/
.svgTemplateItem.selected{}
</style>
${zhiqim_manager_breadcrumb_parent("/designOrder.htm", "设计订单", "订单模板设计")}
<div class="content">
${Scripts.src("/zinc/js/global_2019010801.js")}
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
<div class="z-tabnav-main z-blue z-mg-b10" style=" width: 478px;height: 44px; float:none">
<nav>
<div class="z-float-left z-mg10">
<button name="button" class="z-button z-mg-r20" onclick="history.go(-1)"><i class="z-font z-return"></i>返回列表</button>
</div>
</nav>
</div>
<#-- 导航栏 -->
<div class="boxs">
<div class="bos z-blue">
<nav>
<div class="bos_son z-mg10 z-lh30">
<span class=" z-mg-r10">订单号:<span id="designId" >${order.getDesignId()}</span></span></br>
<span class="my_spans z-mg-r10">行业:<span id="industryName">${Global.get(DesignIndustryCache.class).getIndustryName(order.getIndustryId())}</span>
<button style="margin: 0;position: absolute;top:40px;right:22px;" type="button "class="z-button ${zmr_color_class} z-mg-r6" onclick="doModifyIndustry();"><i class="z-font z-modify"></i>修改行业</button>
</span>
<span class=" z-mg-r10">产品名称:${order.getOrderText()}</span>
<#if ZmrPathRule.check(request, "openWangWang")><span class="mybtn_style_two z-mg-r10"><button class="z-button z-mg-r3 ${zmr_color_class}" onclick="Global.openWangWangParam('${order.getBuyerNick()}');"><img src="/zinc/images/wangwang.png">旺旺联系</button></span></#if>
<#if ZmrPathRule.check(request, "openQQ")><span class="mybtn_style_one z-mg-r10"><button class="z-button z-mg-r3 ${zmr_color_class}" onclick="Global.openQQParam('${order.getUserQq()}');"><img src="/zinc/images/qq.png">QQ联系</button></span></#if>
</div>
</nav>
</div>
<#-- 替换参数 -->
<form name="theForm" action="javascript:void(0);" onsubmit="doSubmit(this);">
<input name="paramCat" type="hidden" value="${order.getTypeId()}">
<input name="designId" type="hidden" value="${order.getDesignId()}">
<input name="typeId" type="hidden" value="${order.getTypeId()}">
<input name="industryId" type="hidden" value="${order.getIndustryId()}">
<div class="bos_two">
<div class="bos_two_one">
<p class="text"> 客户文本</p>
<textarea name="userText" id="userText" class="my-textarea">${order.getUserText()}</textarea>
</div>
<!-- <i class="z-arrow z-right z-px8"></i></td>-->
<div class="bos_two_one my_bos_two_one">
<p class="text my_text">文本识别</p>
<div class="btn" style="margin-bottom: 5px;">
<button id="qrcodeId" type="button" class="z-button z-blue z-w80 z-pointer" style="position:absolute;pointer-events:none;">选择图片</button>
<input style="width:80px; height:25px; opacity:0;" type="file" accept="image/png,image/jpeg,image/jpg" onchange="doTransforImage('qrcode', this);" single>
&nbsp;&nbsp;
<button type="button" class="z-button z-blue" onclick="doDialog()">截图粘贴</button>
</div>
<textarea name="ocrText" id="ocrText" class="my-textarea" onchange="doSaveOcrText(this.value)">${ocrText}</textarea>
</div>
<div class="bos_two_one my_bos_two_one">
<p style="width: 100%; height:12px;"></p>
<p class="text my_text">文本分析</p>
<div class="btn" style="margin-bottom: 5px;">
<button type="button" onclick="doParseText(1)" class="z-button z-blue">智能分析</button> &nbsp;&nbsp;
<button type="button" onclick="doParseText(2)" class="z-button z-blue">普通分析</button>
</div>
<textarea name="paramData" id="paramData" class="my-textarea" >${paramData}</textarea>
</div>
<button name="submit" type="sumbit" class="my_btn z-button z-blue">
生<br>
成<br>
模<br>
板<br>
</button>
</div>
</form>
</div>
<#-- 导航栏 -->
<div class="boxs_two">
<div id="svgTemplateWrap" style="height: 45px;" >
<div id="templateTab" style="height: 45px;" class="boxs_sons z-tabnav-main z-blue">
<input id="queryType" name="queryType" type="hidden" value="">
<nav>
<ul style="border: 1px solid #dcdcdc; height: 45px;width:796px;border-right:none;">
<li onclick="doChangeTab(this, '');" data-type="">已选模板</li>
<li onclick="doChangeTab(this, 'OLD');" data-type="OLD">客户历史模板</li>
<li onclick="doChangeTab(this, 'RECOMMEND');" data-type="RECOMMEND">被分享模板</li>
<li onclick="doChangeTab(this, 'COLLECT');" data-type="COLLECT">收藏模板</li>
<li onclick="doChangeTab(this, 'KEYWORD');" data-type="KEYWORD">热搜模板</li>
</ul>
<span style="margin:0;height: 35px;" id="templateLinkSpan" name="templateLinkSpan">
<button class="z-button z-purple" style="margin-bottom: 6px; height: 100%;margin-left: 20px;" onclick="getTemplateLink();">生成模板链接</button>
</span>
<span style="margin:0; height: 35px" class="my_z-float-rights">
<button style="margin-left: 16px;" name="button" class="z-button ${zmr_color_class} mystyle" onclick="doTemplateOrderCreate('${order.getDesignId()}')" ><i class="z-font z-add"></i>创建订单模板</button>
</span>
</nav>
</div>
</div>
<!-- <div class="boxs_svg" > -->
<div style="margin-top: 20px;" id="templateResult" class="mystyle_svg z-active z-text-center"></div>
<!-- </div> -->
</div>
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,125 @@
<style>
.item{
width:100%;
display: inline-flex;
flex-wrap: wrap;
padding:10px 10px;
}
.itemKey{
width : 13%;
min-height: 40px;
text-align:right;
padding-right:10px;
}
.itemValue{
width : 37%;
min-height: 40px;
}
.itemSurplus{
width:87%;
}
.lable{
padding: 6px 10px;
border-radius: 5px;
background-color: #28a3ef;
color: #FFFF;
margin-right: 5px;
}
.workItem{
width: 31%;
position: relative;
display: inline-block;
margin-right: 10px;
margin-bottom: 10px;
}
.workItem .showing {
content: url(../ztmpl/zhiqim_manager/showing.png);
position: absolute;
width: 50px;
left: 0em;
top: 0em;
}
.workItem .reviewing {
content: url(../ztmpl/zhiqim_manager/reviewing.png);
position: absolute;
width: 50px;
left: 0em;
top: 0em;
}
.workItem .rejected {
content: url(../ztmpl/zhiqim_manager/rejected.png);
position: absolute;
width: 50px;
left: 0em;
top: 0em;
}
</style>
<script>
function showLargeImg(thisImg)
{
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="' + thisImg.src + '">';
dialog.width = 1200;
dialog.height = 801;
dialog.execute();
dialog.$background.remove();
}
</script>
<div style="padding-top:10px;height:468px;overflow-y: auto;">
<div class="item">
<div class="itemKey">设计师</div>
<div class="itemValue">${designerCourse.getDesigner()}</div>
<div class="itemKey">设计师等级</div>
<div class="itemValue">${designerLever}</div>
</div>
<div class="item">
<div class="itemKey">工作年限</div>
<div class="itemValue">${designerCourse.getWorkDuration()}</div>
<div class="itemKey">擅长设计</div>
<div class="itemValue">${designerCourse.getDesignType()}</div>
</div>
<div class="item">
<div class="itemKey">工作经历</div>
<div class="itemValue">${designerCourse.getWorkExperience()}</div>
<div class="itemKey">在职情况</div>
<div class="itemValue">${designerCourse.getWorkStatus()}</div>
</div>
<div class="item">
<div class="itemKey">软件能力</div>
<div class="itemSurplus">${designerCourse.getSkillScope()}</div>
</div>
<div class="item">
<div class="itemKey">个人标签</div>
<div class="itemSurplus">
<#if Validates.isNotEmptyBlank(profile.getLabels())>
<#for item : profile.getLabels().split(",")>
<span class="lable">${item}</span>
</#for>
</#if>
</div>
</div>
<div class="item">
<div class="itemKey">个人作品</div>
<div class="itemSurplus">
<#for item : works>
<div class="workItem">
<div class="z-bg-white z-pointer">
<img style="width:100%;" src="${item.getImgPath()}" onclick="showLargeImg(this);" />
<img class="<#if item.getState() == 0>reviewing<#elseif item.getState() == 2>showing<#elseif item.getState() == 1>rejected</#if>" />
</div>
</div>
</#for>
</div>
</div>
</div>
<div class="z-absolute z-w100p z-text-center z-bg-gray z-pd10" style="bottom:0;left:0;">
<button class="z-button z-w100 ${zmr_color_class}" onclick="parent.Z.Dialog.close(location.hash)">确认</button>
</div>
@@ -0,0 +1,221 @@
<script>
function remark(){
var designer = Z.FM.getChecked("designer");
Z.prompt("请输入标签内容", Z("#remark"+designer).val(), function(value){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerPresenter");
ajax.setMethodName("doUpdateCourseRemark");
ajax.addParam("designer",designer);
ajax.addParam("remark",value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
document.getElementById("designerManage").submit();
});
});
ajax.execute();
});
}
function queryDetail(){
var designer = Z.FM.getChecked("designer");
var dialog = new parent.Z.Dialog();
dialog.title = "设计师详情";
dialog.url = "/designerCourseDetail.htm?designer="+designer;
dialog.width = 700;
dialog.height = 520;
dialog.execute();
}
function exportData(){
var form = document.designerManage;
form.action= "/designerManageExport.htm"
form.submit();
setTimeout(form.action= "/designerManage.htm",300);
}
//指定组织
function doAssignOrg()
{
var designer = Z.FM.getChecked("designer");
if (Z.V.isEmpty(designer))
{
Z.alert("请选择设计师");
return;
}
var dialog = new Z.Dialog();
dialog.title = "指定组织";
dialog.url = "/assignOrg.htm?designer=" + designer;
dialog.width = 400;
dialog.height = 250;
dialog.execute();
}
function mobileDelete(){
var designer = Z.FM.getChecked("designer");
if(Z.V.isEmpty(designer)){
Z.alert("请选择一条订单");
return;
}
Z.confirm("是否确认删除手机号", function()
{
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("mobileDelete");
ajax.addParam(designer);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("returnTk", '正在提交', {disabled:true});
ajax.execute();
}, {width:320});
}
</script>
${zhiqim_manager_breadcrumb("设计师管理")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li class="z-active">设计师管理</li>
<li onclick="Z.L.href('onlineLog.htm');">在线设计师</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>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="designerManage" action="/designerManage.htm" method="post" id="designerManage">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td>&nbsp;设&nbsp;计&nbsp;师&nbsp;
<input type="text" name="designer" class="z-input z-w180 ${zmr_color_class}" value="${designer}">
</td>
<td>&nbsp;手&nbsp;机&nbsp;号&nbsp;
<input type="text" name="operatorMobile" class="z-input z-w180 ${zmr_color_class}" value="${operatorMobile}">
</td>
<td>&nbsp;组&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;织&nbsp;
<select name="orgId" class="z-select z-w180" data-role="z-select-search" 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>
</td>
<td>工作年限&nbsp;<select name="workDuration" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="应届" <#if workDuration == "应届">selected</#if>>应届</option>
<option value="1年以内" <#if workDuration == "1年以内">selected</#if>>1年以内</option>
<option value="1-2年" <#if workDuration == "1-2年">selected</#if>>1-2年</option>
<option value="2-3年" <#if workDuration == "2-3年">selected</#if>>2-3年</option>
<option value="3年以上" <#if workDuration == "3年以上">selected</#if>>3年以上</option>
<option value="5年以上" <#if workDuration == "5年以上">selected</#if>>5年以上</option>
<option value="10年以上" <#if workDuration == "10年以上">selected</#if>>10年以上</option>
</select>
</td>
<td>工作经历&nbsp;<select name="workExperience" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="初入设计行业" <#if workExperience == "初入设计行业">selected</#if>>初入设计行业</option>
<option value="图文广告点" <#if workExperience == "图文广告点">selected</#if>>图文广告点</option>
<option value="淘宝等线上设计" <#if workExperience == "淘宝等线上设计">selected</#if>>淘宝等线上设计</option>
<option value="品牌设计公司" <#if workExperience == "品牌设计公司">selected</#if>>品牌设计公司</option>
<option value="综合广告公司" <#if workExperience == "综合广告公司">selected</#if>>综合广告公司</option>
<option value="企业设计岗位" <#if workExperience == "企业设计岗位">selected</#if>>企业设计岗位</option>
</select>
</td>
</tr>
<tr>
<td>擅长设计&nbsp;<select name="designType" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="名片类" <#if designType == "名片类">selected</#if>>名片类</option>
<option value="海报类" <#if designType == "海报类">selected</#if>>海报类</option>
<option value="包装类" <#if designType == "包装类">selected</#if>>包装类</option>
<option value="logo设计" <#if designType == "logo设计">selected</#if>>logo设计</option>
<option value="画册设计" <#if designType == "画册设计">selected</#if>>画册设计</option>
<option value="UI设计" <#if designType == "UI设计">selected</#if>>UI设计</option>
<option value="网页设计" <#if designType == "网页设计">selected</#if>>网页设计</option>
</select>
</td>
<td>软件能力&nbsp;<select name="skillScope" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="CDR" <#if skillScope == "CDR">selected</#if>>CDR</option>
<option value="PS" <#if skillScope == "PS">selected</#if>>PS</option>
<option value="AI" <#if skillScope == "AI">selected</#if>>AI</option>
<option value="3Dmax" <#if skillScope == "3Dmax">selected</#if>>3Dmax</option>
<option value="C4D" <#if skillScope == "C4D">selected</#if>>C4D</option>
<option value="CAD" <#if skillScope == "CAD">selected</#if>>CAD</option>
</select>
</td>
<td>在职情况&nbsp;<select name="workStatus" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="在职" <#if workStatus == "在职">selected</#if>>在职</option>
<option value="待业" <#if workStatus == "待业">selected</#if>>待业</option>
<option value="自由职业" <#if workStatus == "自由职业">selected</#if>>自由职业</option>
<option value="自有工作室" <#if workStatus == "自有工作室">selected</#if>>自有工作室</option>
</select>
</td>
<td>标签备注&nbsp;<input type="text" name="designerRemark" class="z-input z-w180 ${zmr_color_class}" value="${designerRemark}" placeholder="备注模糊匹配">
</td>
<td><button class="z-button z-w80 z-large z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="doAssignOrg();"><i class="z-font z-modify"></i>切换组织</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="remark();"><i class="z-font z-modify"></i>标签备注</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="queryDetail();"><i class="z-font z-query"></i>查看详情</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="exportData();"><i class="z-font z-download"></i>数据导出</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="mobileDelete();"><i class="z-font z-delete"></i>删除手机</button>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-pd5 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}" class="z-h40">
<td width="40">选择</td>
<td width="130">设计师</td>
<td width="130">手机号</td>
<td width="130">组织</td>
<td width="170">注册时间</td>
<td width="170">最后接单时间</td>
<td width="100">同时接单量</td>
<td width="220">标签备注</td>
<td width="180">提现账号</td>
<td width="100">提现方式</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有设计师信息")}
<#for item : pageResult.list()>
<input type="hidden" id="remark${item.getDesigner()}" value="${item.getDesignerRemark()}">
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designer" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesigner()}"></td>
<td>${item.getDesigner()}</td>
<td>${item.getOperatorMobile()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${item.getOperatorCreated()}</td>
<td>${Sqls.toDateTimeString(item.getLastOnlimeTime())}</td>
<td>${item.getOperatorParam()}</td>
<td>${item.getDesignerRemark()}</td>
<td>${item.getReceiveAccount()}</td>
<td>${item.getReceiveType()}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/designerManage.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,201 @@
${request.getValidateScript()}
${Scripts.src("/zinc/layui/layui.js")}
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
<script>
function remark(){
var designer = Z.FM.getChecked("designer");
Z.prompt("请输入标签内容", Z("#remark"+designer).val(), function(value){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerPresenter");
ajax.setMethodName("doUpdateCourseRemark");
ajax.addParam("designer",designer);
ajax.addParam("remark",value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
document.getElementById("teamDesignerManage").submit();
});
});
ajax.execute();
});
}
function queryDetail(){
var designer = Z.FM.getChecked("designer");
var dialog = new parent.Z.Dialog();
dialog.title = "设计师详情";
dialog.url = "/designerCourseDetail.htm?designer="+designer;
dialog.width = 700;
dialog.height = 520;
dialog.execute();
}
function exportData(){
var designIds = Z.FM.getCheckBoxValue("design");
console.log(designIds);
var parentInput = window.opener.document.getElementById('teamSecret');
if (parentInput) {
if(parentInput.value != ''){
parentInput.value = parentInput.value+','+designIds;
}else{
parentInput.value = designIds;
}
}
window.close();
}
//指定组织
function doAssignOrg()
{
var designer = Z.FM.getChecked("designer");
if (Z.V.isEmpty(designer))
{
Z.alert("请选择设计师");
return;
}
var dialog = new Z.Dialog();
dialog.title = "指定组织";
dialog.url = "/assignOrg.htm?designer=" + designer;
dialog.width = 400;
dialog.height = 250;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("设计师管理")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li class="z-active">设计师管理</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="teamDesignerManage" action="/teamDesignerManage.htm" method="post" id="teamDesignerManage">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td>&nbsp;设&nbsp;计&nbsp;师&nbsp;
<input type="text" name="designer" class="z-input z-w180 ${zmr_color_class}" value="${designer}">
</td>
<td>&nbsp;手&nbsp;机&nbsp;号&nbsp;
<input type="text" name="operatorMobile" class="z-input z-w180 ${zmr_color_class}" value="${operatorMobile}">
</td>
<td>&nbsp;组&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;织&nbsp;
<select name="orgId" class="z-select z-w180" data-role="z-select-search" 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>
</td>
<td>工作年限&nbsp;<select name="workDuration" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="应届" <#if workDuration == "应届">selected</#if>>应届</option>
<option value="1年以内" <#if workDuration == "1年以内">selected</#if>>1年以内</option>
<option value="1-2年" <#if workDuration == "1-2年">selected</#if>>1-2年</option>
<option value="2-3年" <#if workDuration == "2-3年">selected</#if>>2-3年</option>
<option value="3年以上" <#if workDuration == "3年以上">selected</#if>>3年以上</option>
<option value="5年以上" <#if workDuration == "5年以上">selected</#if>>5年以上</option>
<option value="10年以上" <#if workDuration == "10年以上">selected</#if>>10年以上</option>
</select>
</td>
<td>工作经历&nbsp;<select name="workExperience" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="初入设计行业" <#if workExperience == "初入设计行业">selected</#if>>初入设计行业</option>
<option value="图文广告点" <#if workExperience == "图文广告点">selected</#if>>图文广告点</option>
<option value="淘宝等线上设计" <#if workExperience == "淘宝等线上设计">selected</#if>>淘宝等线上设计</option>
<option value="品牌设计公司" <#if workExperience == "品牌设计公司">selected</#if>>品牌设计公司</option>
<option value="综合广告公司" <#if workExperience == "综合广告公司">selected</#if>>综合广告公司</option>
<option value="企业设计岗位" <#if workExperience == "企业设计岗位">selected</#if>>企业设计岗位</option>
</select>
</td>
</tr>
<tr>
<td>擅长设计&nbsp;<select name="designType" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="名片类" <#if designType == "名片类">selected</#if>>名片类</option>
<option value="海报类" <#if designType == "海报类">selected</#if>>海报类</option>
<option value="包装类" <#if designType == "包装类">selected</#if>>包装类</option>
<option value="logo设计" <#if designType == "logo设计">selected</#if>>logo设计</option>
<option value="画册设计" <#if designType == "画册设计">selected</#if>>画册设计</option>
<option value="UI设计" <#if designType == "UI设计">selected</#if>>UI设计</option>
<option value="网页设计" <#if designType == "网页设计">selected</#if>>网页设计</option>
</select>
</td>
<td>软件能力&nbsp;<select name="skillScope" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="CDR" <#if skillScope == "CDR">selected</#if>>CDR</option>
<option value="PS" <#if skillScope == "PS">selected</#if>>PS</option>
<option value="AI" <#if skillScope == "AI">selected</#if>>AI</option>
<option value="3Dmax" <#if skillScope == "3Dmax">selected</#if>>3Dmax</option>
<option value="C4D" <#if skillScope == "C4D">selected</#if>>C4D</option>
<option value="CAD" <#if skillScope == "CAD">selected</#if>>CAD</option>
</select>
</td>
<td>在职情况&nbsp;<select name="workStatus" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="在职" <#if workStatus == "在职">selected</#if>>在职</option>
<option value="待业" <#if workStatus == "待业">selected</#if>>待业</option>
<option value="自由职业" <#if workStatus == "自由职业">selected</#if>>自由职业</option>
<option value="自有工作室" <#if workStatus == "自有工作室">selected</#if>>自有工作室</option>
</select>
</td>
<td>标签备注&nbsp;<input type="text" name="designerRemark" class="z-input z-w180 ${zmr_color_class}" value="${designerRemark}" placeholder="备注模糊匹配">
</td>
<td><button class="z-button z-w80 z-large z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="doAssignOrg();"><i class="z-font z-modify"></i>切换组织</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="queryDetail();"><i class="z-font z-query"></i>查看详情</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="exportData();"><i class="z-font z-download"></i>保存选中</button>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-pd5 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}" class="z-h40">
<td width="30"><input name="allDesignId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${pageResult.pageNo()}" onclick="Z.FM.doSelectCheckBox('design', this.checked);"> 选择</td>
<td width="130">设计师</td>
<td width="130">手机号</td>
<td width="130">组织</td>
<td width="170">注册时间</td>
<td width="170">最后接单时间</td>
<td width="100">同时接单量</td>
<td width="220">标签备注</td>
<td width="180">提现账号</td>
<td width="100">提现方式</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有设计师信息")}
<#for item : pageResult.list()>
<input type="hidden" id="remark${item.getDesigner()}" value="${item.getDesignerRemark()}">
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="design" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesigner()}"></td>
<td>${item.getDesigner()}</td>
<td>${item.getOperatorMobile()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${item.getOperatorCreated()}</td>
<td>${Sqls.toDateTimeString(item.getLastOnlimeTime())}</td>
<td>${item.getOperatorParam()}</td>
<td>${item.getDesignerRemark()}</td>
<td>${item.getReceiveAccount()}</td>
<td>${item.getReceiveType()}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/teamDesignerManage.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,59 @@
<script>
function doApproved()
{
if(Z("#orgId").val() == "")
{
Z.alert("请选择分配组织");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("RegCheckApprovedAction");
ajax.setMethodName("checkApproved");
ajax.addParam("questionsId",Z("#questionsId").val());
ajax.addParam("orgId",Z("#orgId").val());
ajax.addParam("designerGroupId",Z("#designerGroupId").val());
ajax.addParam("score",Z("#score").val());
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("doApproved", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<form name="checkApproved" action="javascript:void(0);">
<input id="questionsId" type="hidden" value="${questionsId}">
<table class="z-table z-bordered z-bg-white z-text-left z-pd-l10">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40" bgcolor="#ffffff">
<td>分配组织:
<select name="orgId" id="orgId" class="z-select z-w150" data-role="z-select" data-class=" ${zmr_color_class}" data-options="maxHeight:120" >
<option value="">请选择</option>
<#for item : orgList>
<option value="${item.getOrgId()}">${item.getOrgName()}</option>
</#for>
</select>
</td>
</tr>
<tr id="address">
<td>接单规则:
<select name="designerGroupId" id="designerGroupId" class="z-select z-w150" data-role="z-select" data-class=" ${zmr_color_class}" data-options="maxHeight:120" >
<#for item : designerGroupList>
<option value="${item.getDesignerGroupId()}">${item.getDesignerGroupName()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40" >
<td>初始积分:
<input type="text" class="${zmr_color_class} z-input z-w150" id="score" name="score" data-options="type:Integer;paste:true;" maxlength="5">
</td>
</tr>
</table>
</form>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h50 z-text-center z-bg-gray" style="bottom:0;left:0">
<button id="doApproved" class="z-button z-w100 z-h30 z-mg-t15 z-mg-l5 zi-px14 ${zmr_color_class}" type="button" onclick="doApproved();">提交</button>
<button class="z-button z-w100 z-h30 z-mg-t15 z-mg-l5 z-mg-l20 zi-px14" type="button" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
@@ -0,0 +1,67 @@
${zhiqim_manager_breadcrumb("简介审核")}
${zhiqim_manager_content()}
<script>
function doProfileReview(state,operatorCode){
Z.confirm("确认" + (state == 3 ? "通过" : "退回") + "审核?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("doProfileReview");
ajax.addParam("state",state);
ajax.addParam("operatorCode",operatorCode);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
parent.Z.tips("审核成功");
location.reload();
});
ajax.execute();
});
}
</script>
<#-- 导航 -->
<div data-role="z-tabnav" 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 onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
<li class="z-active">数据审核</li>
</ul>
</nav>
</div>
<#-- 列表 -->
<div class="z-tabnav-main z-blue z-mg-b5">
<nav>
<ul>
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
<li class="z-active" >简介审核</li>
<li onclick="Z.L.href('designerWorks.htm');">作品审核</li>
</ul>
</nav>
</div>
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="200">设计师</td>
<td width="*">审核内容</td>
<td width="200">提交时间</td>
<td width="150">操作</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 39, "暂时没有介绍信息")}
<#for item : pageResult.list()>
<tr>
<td>${item.getOperatorCode()}</td>
<td>${item.getPersonalProfile()}</td>
<td>${Sqls.toDateTimeString(item.getAddTime())}</td>
<td>
<button type="button" class="z-button z-blue" onclick="doProfileReview(3,'${item.getOperatorCode()}')">通过</button>
<button type="button" class="z-button" onclick="doProfileReview(2,'${item.getOperatorCode()}')">退回</button>
</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/designerProfile.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,209 @@
${zhiqim_manager_breadcrumb("信息审核")}
${zhiqim_manager_content()}
<script>
function regCheckBack(questionsId)
{
var dialog = new Z.Dialog();
dialog.title = "入驻审核拒绝";
dialog.url = "/regCheckBack.htm?questionsId=" + questionsId;
dialog.width = 450;
dialog.height = 350;
dialog.execute();
}
function checkApproved(questionsId)
{
var dialog = new Z.Dialog();
dialog.title = "入驻审核通过";
dialog.url = "/checkApproved.htm?questionsId=" + questionsId;
dialog.width = 280;
dialog.height = 230;
dialog.execute();
}
function doDownDesginFile(questionsId)
{
var downFileType = "DesginFile";
var ajax = new Z.Ajax();
ajax.setClassName("DesignerRegAction");
ajax.setMethodName("downFile");
ajax.addParam(questionsId);
ajax.addParam(downFileType);
ajax.setFailureAlert();
ajax.setSuccess(function(attaIdList){
var attaIds = attaIdList.replace("[","");
attaIds = attaIds.replace("]","");
var mainFrame = parent.parent.document.getElementById("mainFrame");
var mainSrc = mainFrame.src;
var prefix = Z.l.protocol + "//" + Z.l.host ;
var element1 = document.createElement("a");
element1.href = prefix+"/downQuestionsFile.htm?attaId=" + attaIds +"&downFileType="+downFileType;
Z.L.href(prefix+"/downQuestionsFile.htm?attaId=" + attaIds+"&downFileType="+downFileType, zCallFrame);
});
ajax.execute();
}
function doDownEndFile(questionsId)
{
var downFileType = "EndFile";
var ajax = new Z.Ajax();
ajax.setClassName("DesignerRegAction");
ajax.setMethodName("downFile");
ajax.addParam(questionsId);
ajax.addParam(downFileType);
ajax.setFailureAlert();
ajax.setSuccess(function(attaIdList){
var attaIds = attaIdList.replace("[","");
attaIds = attaIds.replace("]","");
var mainFrame = parent.parent.document.getElementById("mainFrame");
var mainSrc = mainFrame.src;
var prefix = Z.l.protocol + "//" + Z.l.host ;
var element1 = document.createElement("a");
element1.href = prefix+"/downQuestionsFile.htm?attaId=" + attaIds +"&downFileType="+downFileType;
Z.L.href(prefix+"/downQuestionsFile.htm?attaId=" + attaIds+"&downFileType="+downFileType, zCallFrame);
});
ajax.execute();
}
function queryDetail(){
var designer = Z.FM.getChecked("designer");
var dialog = new parent.Z.Dialog();
dialog.title = "设计师详情";
dialog.url = "/designerCourseDetail.htm?designer="+designer;
dialog.width = 700;
dialog.height = 520;
dialog.execute();
}
//考试凭证查看
function queryExamVoucher(questionsId)
{
var ajax = new Z.Ajax();
ajax.setClassName("DesignerRegAction");
ajax.setMethodName("queryExamVoucher");
ajax.addParam(questionsId);
ajax.setFailureAlert();
ajax.setSuccess(function(url){
var hostUrl = Z.l.protocol+'//'+Z.l.host;
var dialog = new parent.Z.Dialog();
dialog.shadow = true;
dialog.title = "考试成绩截图";
dialog.fixed = true;
dialog.url = hostUrl+"/showLargeImg.htm?imgpath="+url;
dialog.width = parent.Z.D.clientWidth()-1000;
dialog.height = parent.Z.D.clientHeight()-400;
dialog.execute();
dialog.$background.remove();
});
ajax.setLoading("rackWait", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<#-- 导航 -->
<div data-role="z-tabnav" 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 onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
<li class="z-active">注册审核</li>
<li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
<li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
</ul>
</nav>
</div>
<#-- 列表 -->
<!--<div class="z-tabnav-main z-blue z-mg-b5">
<nav>
<ul>
<li class="z-active" >注册审核</li>
<li onclick="Z.L.href('designerProfile.htm');">简介审核</li>
<li onclick="Z.L.href('designerWorks.htm');">作品审核</li>
</ul>
</nav>
</div>-->
<form name="designerManage" action="/designerReg.htm" method="post" id="designerReg">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td>&nbsp;设&nbsp;计&nbsp;师&nbsp;
<input type="text" name="designer" class="z-input z-w180 ${zmr_color_class}" value="${designer}">
</td>
<td>&nbsp;手&nbsp;机&nbsp;号&nbsp;
<input type="text" name="mobile" class="z-input z-w180 ${zmr_color_class}" value="${mobile}">
</td>
<td>状态
<select name="status" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="0" <#if status == 0>selected</#if>>问卷考试中</option>
<option value="10" <#if status == 10>selected</#if>>设计考试中</option>
<option value="20" <#if status == 20>selected</#if>>等待审核</option>
<option value="40" <#if status == 30>selected</#if>>审核拒绝</option>
</select>
</td>
<td><button class="z-button z-w80 z-large z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="queryDetail();"><i class="z-font z-query"></i>查看详情</button>
</div>
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}" class="z-h40">
<td width="40">选择</td>
<td width="80">设计师</td>
<td width="80">手机号</td>
<td width="40">状态</td>
<td width="220">设计要求</td>
<td width="40">问卷成绩</td>
<td width="40">设计文件</td>
<td width="40">印刷文件</td>
<td width="80">设计完成时间</td>
<td width="80">操作</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 39, "暂时没有考试信息")}
<#for item : pageResult.list()>
<tr ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designer" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesigner()}"></td>
<td>${item.getDesigner()}</td>
<td>${item.getMobile()}</td>
<td>
<#if item.getStatus() == 0>
问卷考试中
<#elseif item.getStatus() == 10>
设计考试中
<#elseif item.getStatus() == 20>
等待审核
<#else>
审核拒绝
</#if>
</td>
<td>${item.getDesignRequirements()}</td>
<td> <#if item.getStatus() == 20>
<a onclick="queryExamVoucher('${item.getQuestionsId()}')"><p style="color:#2483EB">查看</p></a></#if>
</td>
<td> <#if item.getStatus() == 20>
<a onclick="doDownDesginFile('${item.getQuestionsId()}');"><p style="color:#2483EB">下载</p></a></#if>
</td>
<td> <#if item.getStatus() == 20>
<a onclick="doDownEndFile('${item.getQuestionsId()}');"><p style="color:#2483EB">下载</p></a></#if>
</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>
<#if item.getStatus() == 20>
<button type="button" class="z-button z-w80 z-blue" onclick="checkApproved('${item.getQuestionsId()}')">通过</button>&nbsp;&nbsp;
<button type="button" class="z-button z-w80 z-red" onclick="regCheckBack('${item.getQuestionsId()}')">拒绝</button>
<#else>
${item.getRemarks()}
</#if>
</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/designerReg.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,112 @@
${zhiqim_manager_breadcrumb("作品审核")}
${zhiqim_manager_content()}
<style>
.item {
width: 18.78328%;
position: relative;
margin: 10px;
}
.item .z-bg-white {
padding: 10px;
}
.item .worksInfo {
margin-top: 10px;
}
.itemCtrBar {
right: 0;
top: 0;
left: 0;
display: none;
}
</style>
<script>
Z.onload(function(){
Z(".item .z-bg-white").mouseover(function(){
Z(this).find(".itemCtrBar ").show();
})
Z(".item .z-bg-white").mouseout(function(){
Z(this).find(".itemCtrBar ").hide();
})
});
function doWorksReview(designerWorksId,state){
Z.confirm("确认" + (state == 2 ? "通过" : "退回") + "审核?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignerWorksPresenter");
ajax.setMethodName("doWorksReview");
ajax.addParam("designerWorksId",designerWorksId);
ajax.addParam("state",state);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
parent.Z.tips("审核成功");
location.reload();
});
ajax.execute();
});
}
function showLargeImg(thisImg)
{
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="' + thisImg.src + '">';
dialog.width = 1200;
dialog.height = 801;
dialog.execute();
dialog.$background.remove();
}
</script>
<#-- 导航 -->
<div data-role="z-tabnav" 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 onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
<li class="z-active">数据审核</li>
</ul>
</nav>
</div>
<#-- 列表 -->
<div class="z-tabnav-main z-blue z-mg-b5">
<nav>
<ul>
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
<li onclick="Z.L.href('designerProfile.htm');">简介审核</li>
<li class="z-active">作品审核</li>
</ul>
</nav>
</div>
<#-- 列表 -->
${zhiqim_manager_tr_no_record(pageResult, 39, "<table class='z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center'><tr class='zi-h60 z-bg-white z-text-center'><td colspan='39'>暂时没有作品信息</td></tr></table>")}
<div style="display: flex;width: 100%;justify-content: flex-start;flex-wrap: wrap;">
<#for item : pageResult.list()>
<div class="item">
<div class="z-bg-white z-pointer">
<img style="width:100%;" src="${item.getImgPath()}" onclick="showLargeImg(this);" />
<span class="itemCtrBar z-absolute">
<button class="z-button modelCheckBtn z-small z-blue z-float-left" onclick="doWorksReview('${item.getDesignerWorksId()}','2');"><i class="z-font z-px12 z-success"></i>通过</button>
<button class="z-button modelCheckBtn z-small z-red z-float-right" onclick="doWorksReview('${item.getDesignerWorksId()}','1');"><i class="z-font z-px12 z-error"></i>退回</button>
</span>
<div class="worksInfo">
设计师: ${item.getOperatorCode()} 时间:${Sqls.toDateTimeString(item.getAddTime())}
</div>
</div>
</div>
</#for>
</div>
${zhiqim_manager_paging(pageResult, "/designerWorks.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,31 @@
<script>
function doModifyOrderNum()
{
var orderNum = Z("#orderNum").val();
if (Z.V.isEmptyBlank(orderNum))
{
Z.alert("数量不能为空");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("doModifyOrderNum");
ajax.addParam("orderNum",orderNum);
ajax.setFailureAlert();
ajax.setSuccessAlertReloadParent("修改成功");
ajax.execute();
}
</script>
<div class="z-h60 z-pd20">
原数量:<span class="z-color-666"><#if operatorParam.isEmpty()>0<#else>${operatorParam}</#if></span>
</div>
<div class="z-h60 z-pd20">
新数量:<input id="orderNum" class="z-input z-w300 ${zmr_color_class}" maxlength="2" data-options="type:Integer;" spellcheck="false">
<span class="z-px12 z-text-red">*</span>
</div>
<div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
<button type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="doModifyOrderNum();">提交</button>
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
@@ -0,0 +1,427 @@
${Scripts.src("/zinc/layui/layui.js")}
<link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
${Scripts.src(zhiqim_uploadlarge.js)}
<style>
input::-webkit-input-placeholder {
font-size: 12px;
}
xm-select div:not(span) {
line-height: inherit;
}
.content {
display: flex;
justify-content: space-between;
}
.content td {
padding-right: 0 !important;
}
.profileTable td {
padding-left: 5px !important;
}
.item {
padding: 1em 0 0 1em;
width: 33%;
position: relative;
}
.itemCtrBar {
right: 0;
bottom: 0;
left: 0;
display: none;
}
.item .showing {
content: url(../ztmpl/zhiqim_manager/showing.png);
position: absolute;
width: 50px;
left: 1em;
top: 1em;
}
.item .reviewing {
content: url(../ztmpl/zhiqim_manager/reviewing.png);
position: absolute;
width: 50px;
left: 1em;
top: 1em;
}
.item .rejected {
content: url(../ztmpl/zhiqim_manager/rejected.png);
position: absolute;
width: 50px;
left: 1em;
top: 1em;
}
textarea::-ms-input-placeholder{
text-align: center;
line-height: 140px
}
textarea::-webkit-input-placeholder{
text-align: center;
line-height: 140px
}
.iframenav-tab-item {
border: 1px solid #d3d3d3;
padding: 0 30px 0 10px;
margin-right: 10px;
}
</style>
<script>
function doModifyAvatar()
{//修改头像
var dialog = new Z.Dialog();
dialog.title = "修改头像";
dialog.url = "modifyAvatar.htm";
dialog.width = 800;
dialog.height = 560;
dialog.fixed = true;
dialog.execute();
}
function doModifyPass()
{//修改密码
var dialog = new Z.Dialog();
dialog.title = "修改登录密码";
dialog.url = "modifyPassword.htm";
dialog.width = 650;
dialog.height = 280;
dialog.fixed = true;
dialog.execute();
}
function doModifyMobile()
{//修改手机号
var dialog = new Z.Dialog();
dialog.title = "修改手机号";
dialog.url = "modifyMobile.htm";
dialog.width = 530;
dialog.height = 220;
dialog.fixed = true;
dialog.execute();
}
function doModifyOrderNum(operatorParam)
{//修改接单数量
var dialog = new Z.Dialog();
dialog.title = "修改接单数量";
dialog.url = "modifyOrderNum.htm?operatorParam=" + operatorParam;
dialog.width = 530;
dialog.height = 220;
dialog.fixed = true;
dialog.execute();
}
function doModifyWxcode()
{// 修改个人微信
var dialog = new Z.Dialog();
dialog.title = "修改微信";
dialog.url = "modifyWxcode.htm";
dialog.width = 530;
dialog.height = 220;
dialog.fixed = true;
dialog.execute();
}
function doEditPersonalProfile(elem){
if(Z(elem).text() == "编辑"){
document.getElementById("personalProfile").readOnly = false;
Z(elem).text("提交审核");
} else {
var personalProfile = Z("#personalProfile").val();
if(personalProfile.length == 0){
Z.alert("个人简介不能为空");
return;
} else if(personalProfile.length > 300){
Z.alert("个人简介最多不能超过300个字符");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("doSubmitReview");
ajax.addParam("personalProfile",personalProfile);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.Z.tips("提交成功");
location.reload();
});
ajax.execute();
}
}
function doAddLabel(){
if(Z(".iframenav-tab-item").length > 10){
Z.alert("标签最大不能超过10个");
return;
}
Z.prompt("请输入标签内容", "", function(value){
if(value && value.length < 6){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("addDesignerLabel");
ajax.addParam("label",value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var addLabel = document.getElementById("addLabel");
var newLabel = document.createElement("li");
newLabel.className = "iframenav-tab-item";
newLabel.innerHTML = "<span>" + value + '</span><i class="z-font z-error" onclick="doDeleteLabel(\''+ value +'\',this)"></i>';
addLabel.parentElement.insertBefore(newLabel,addLabel);
});
ajax.execute();
} else {
Z.alert("标签内容不能为空且最多5个字符");
}
});
}
function doDeleteLabel(label,elem){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("doDeleteLabel");
ajax.addParam("label",label);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z(elem).parent().remove();
});
ajax.execute();
}
layui.config({
base: '../zinc/module/'
}).extend({
xmSelect: 'xmSelect/xm-select',
}).use(['jquery','xmSelect'], function () {
var $ = layui.$;
var xmSelect = layui.xmSelect;
var workExperienceList = [{"name":"初入设计行业"},{"name":"图文广告点"},{"name":"淘宝等线上设计"},{"name":"品牌设计公司"},{"name":"综合广告公司"},{"name":"企业设计岗位"}];
var designTypeList = [{"name":"名片类"},{"name":"海报类"},{"name":"包装类"},{"name":"logo设计"},{"name":"画册设计"},{"name":"UI设计"},{"name":"网页设计"}];
var skillScopeList = [{"name":"CDR"},{"name":"PS"},{"name":"AI"},{"name":"3Dmax"},{"name":"C4D"},{"name":"CAD"}];
var dbWorkExperience = '${course.getWorkExperience()}';
var dbDesignType = '${course.getDesignType()}';
var dbSkillScope = '${course.getSkillScope()}';
var workExperience = xmSelect.render({
el: '#workExperience',
toolbar: {show: true},
theme: {color: '#28a3ef'},
filterable: true,
autoRow: true,
prop: {
name: 'name',
value: 'name',
},
initValue: dbWorkExperience.split(","),
data: workExperienceList
});
var designType = xmSelect.render({
el: '#designType',
toolbar: {show: true},
theme: {color: '#28a3ef'},
filterable: true,
autoRow: true,
prop: {
name: 'name',
value: 'name',
},
initValue: dbDesignType.split(","),
data: designTypeList
});
var skillScope = xmSelect.render({
el: '#skillScope',
toolbar: {show: true},
theme: {color: '#28a3ef'},
filterable: true,
autoRow: true,
prop: {
name: 'name',
value: 'name',
},
initValue: dbSkillScope.split(","),
data: skillScopeList
});
$("#designerCourseSubmit").click(function(){
designerCourseSubmit();
});
function designerCourseSubmit()
{//设计师个人经历信息提交
console.log(workExperience.getValue("value"));
var workExperiences = workExperience.getValue("value");
if(workExperiences.length <= 0){
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
var skillScopes = skillScope.getValue("value");
if(skillScopes.length <= 0){
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
var designTypes = designType.getValue("value");
if(designTypes.length <= 0){
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
var workDuration = Z("#workDuration").val();
if(workDuration == ""){
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
var workStatus = Z("#workStatus").val();
if(workStatus == ""){
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
var receiveType = Z("#receiveType").val();
if(receiveType == ""){
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
var receiveAccount = Z("#receiveAccount").val();
if(receiveAccount.length <= 0)
{
Z.alert("为了您更好的工作体验,请完整填写个人信息~");
return;
}
Z.confirm("提交前请仔细检查核对哦,确认提交吗?",function(){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("doDesignerCourseSubmit");
ajax.addParam("workExperience",workExperiences.join(","));
ajax.addParam("skillScope",skillScopes.join(","));
ajax.addParam("designType",designTypes.join(","));
ajax.addParam("workDuration",workDuration);
ajax.addParam("workStatus",workStatus);
ajax.addParam("receiveType",receiveType);
ajax.addParam("receiveAccount",receiveAccount);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("保存成功");
});
ajax.execute();
});
}
});
</script>
${zhiqim_manager_breadcrumb_name("个人中心")}
${zhiqim_manager_content()}
<div style="width:60%;">
<!-- 基本信息 -->
<table class="z-table z-bordered-line z-bg-white z-pd20 zi-bd-l zi-bd-r profileTable">
<tr class="z-bg-gray">
<td class="z-bold z-px14 zi-pd16 zi-pd-l20" colspan="5" style="padding: 20px !important;">账号信息</td>
</tr>
<tr>
<td rowspan="2" width="10%" style="text-align: center;padding-left: 0 !important;">
<img class="z-w70 z-h70 z-bd-rd50p z-pointer" title="点击修改" src="${sessionUser.getAvatar100()}" onclick="doModifyAvatar();">
</td>
<td width="8%">用户昵称:</td>
<td width="20%">#{operator.getOperatorCode()}</td>
<td width="14%">登录密码:</td>
<td width="20%">******** &nbsp;<span class="z-px12 z-text-orange z-pointer" onclick="doModifyPass();">修改</span></td>
</tr>
<tr>
<td width="8%">手机号码:</td>
<td><#if Validates.isNotEmpty(operator.getOperatorMobile())>${operator.getOperatorMobile()}<span class="z-px12 z-text-orange z-pointer" onclick="doModifyMobile();"> &nbsp;修改</span><#else><span class="z-px14 z-color-999 z-pointer" onclick="doModifyMobile();">点击绑定</span></#if></span></td>
<td width="14%">个人微信:</td>
<td width="20%">
<#if Validates.isNotEmpty(operator.getOperatorWxcode())>${operator.getOperatorWxcode()}<span class="z-px12 z-text-orange z-pointer" onclick="doModifyWxcode();"> &nbsp;修改</span><#else><span class="z-px14 z-color-999 z-pointer" onclick="doModifyWxcode();">点击绑定</span></#if></td>
</td>
</tr>
</table>
<!-- 接单配置 -->
<table class="z-table z-bordered-line z-bg-white z-pd20 zi-bd-l zi-bd-r z-mg-t10">
<tr class="z-bg-gray">
<td class="z-bold z-px14 zi-pd16 zi-pd-l20" colspan="4">接单配置</td>
</tr>
<tr>
<td width="15%">最大同时接单量:</td>
<td width="10%"><#if Validates.isNotEmpty(operator.getOperatorParam())>${operator.getOperatorParam()}<#else>0</#if>&nbsp;
<span class="z-px12 z-text-orange z-pointer" onclick="doModifyOrderNum(<#if Validates.isNotEmpty(operator.getOperatorParam())>${operator.getOperatorParam()}<#else>0</#if>);">修改</span>
</td>
<td width="*" colspan="2"><span class="z-px14 z-color-red">
说明:正在设计状态订单总数超过最大同时接单数时,系统将不会自动派单(大于0规则才会生效)
</span></td>
</tr>
</table>
<table class="z-table z-bordered-line z-bg-white z-pd20 zi-bd-l zi-bd-r z-mg-t10">
<tr class="z-h40">
<td class="z-bg-gray z-bold z-px14" colspan="3">个人简介</td>
</tr>
<tr>
<td>
<div style="display: flex;align-items: center;"><span class="z-color-red">*</span>工作经历&nbsp;<div id="workExperience" style="display: inline-block;width: 205px;"></div></div>
</td>
<td>
<div style="display: flex;align-items: center;"><span class="z-color-red">*</span>软件能力&nbsp;<div id="skillScope" style="display: inline-block;width: 200px;"></div></div>
</td>
<td>
<div style="display: flex;align-items: center;"><span class="z-color-red">*</span>擅长设计&nbsp;<div id="designType" style="display: inline-block;width: 200px;"></div></div>
</td>
</tr>
<tr>
<td>
<span class="z-color-red">*</span>
工作年限&nbsp;<select name="workDuration" id="workDuration" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="应届" <#if course.getWorkDuration() == "应届">selected</#if>>应届</option>
<option value="1年以内" <#if course.getWorkDuration() == "1年以内">selected</#if>>1年以内</option>
<option value="1-2年" <#if course.getWorkDuration() == "1-2年">selected</#if>>1-2年</option>
<option value="2-3年" <#if course.getWorkDuration() == "2-3年">selected</#if>>2-3年</option>
<option value="3年以上" <#if course.getWorkDuration() == "3年以上">selected</#if>>3年以上</option>
<option value="5年以上" <#if course.getWorkDuration() == "5年以上">selected</#if>>5年以上</option>
<option value="10年以上" <#if course.getWorkDuration() == "10年以上">selected</#if>>10年以上</option>
</select>
</td>
<td>
<span class="z-color-red">*</span>
在职情况&nbsp;<select name="workStatus" id="workStatus" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="在职" <#if course.getWorkStatus() == "在职">selected</#if>>在职</option>
<option value="待业" <#if course.getWorkStatus() == "待业">selected</#if>>待业</option>
<option value="自由职业" <#if course.getWorkStatus() == "自由职业">selected</#if>>自由职业</option>
<option value="自有工作室" <#if course.getWorkStatus() == "自有工作室">selected</#if>>自有工作室</option>
</select>
</td>
<td>
<span class="z-color-red">*</span>
收款方式&nbsp;<select name="receiveType" id="receiveType" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">请选择</option>
<option value="支付宝" <#if course.getReceiveType() == "支付宝">selected</#if>>支付宝</option>
</select>
</td>
</tr>
<tr>
<td>
<span class="z-color-red">*</span>收款账号&nbsp;
<input type="text" name="receiveAccount" id="receiveAccount" class="z-input ${zmr_color_class} z-w200" value="${course.getReceiveAccount()}" placeholder="手机号/邮箱">
</td>
<td colspan="2"></td>
</tr>
<tr >
<td colspan="3" align="center"><button class="z-button z-w120 z-mg-r15 ${zmr_color_class}" id="designerCourseSubmit"><i class="z-font z-save"></i>保存提交</button></td>
</tr>
</table>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,25 @@
<script>
function backRemarks()
{
var ajax = new Z.Ajax();
ajax.setClassName("RegCheckBackAction");
ajax.setMethodName("backRemarks");
ajax.addParam(Z("#questionsId").val());
ajax.addParam(Z("#backRemarks").val());
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("提交成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("rackWait", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<div class="z-h60 zi-pd20">
<input id="questionsId" type="hidden" value="${questionsId}">
拒绝原因:
<textarea id="backRemarks" name="backRemarks" class="z-textarea z-w100p z-h200" style="vertical-align: middle;" maxlength="200"></textarea>
</div>
<div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
<button id="rackWait" type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="backRemarks();">提交</button>
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
@@ -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>&nbsp;&nbsp;
<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">&nbsp;接单时长列表</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">&nbsp;*</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="最小金额">
&nbsp;-&nbsp;
<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">&nbsp;*</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">&nbsp;*</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>&nbsp;&nbsp;
<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>&nbsp;&nbsp;
<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">&nbsp;*</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">&nbsp;*</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="最小金额">
&nbsp;-&nbsp;
<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>&nbsp;&nbsp;
<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">&nbsp;商户分拣日志列表</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">&nbsp;*</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="最小金额">
&nbsp;-&nbsp;
<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">&nbsp;*</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="最小金额">
&nbsp;-&nbsp;
<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">&nbsp;*</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">&nbsp;*</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>&nbsp;&nbsp;
<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">&nbsp;派单日志列表</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>&nbsp;&nbsp;
<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">&nbsp;派单属性列表</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>&nbsp;*</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>&nbsp;*</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()}"> &nbsp;${item.getTypeName()}&nbsp;&nbsp;
<#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()}"> &nbsp;${item.getTypeName()}&nbsp;&nbsp;
<#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()}"> &nbsp;${item.getIndustryName()}&nbsp;&nbsp;
<#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()}"> &nbsp;${item.getIndustryName()}&nbsp;&nbsp;
<#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>&nbsp;*</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()}"> &nbsp;${item.getTypeName()}&nbsp;&nbsp;
<#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()}"> &nbsp;${item.getTypeName()}&nbsp;&nbsp;
<#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()}"> &nbsp;${item.getIndustryName()}&nbsp;&nbsp;
<#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()}"> &nbsp;${item.getIndustryName()}&nbsp;&nbsp;
<#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>&nbsp;*</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>&nbsp;&nbsp;
<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">&nbsp;商户分拣日志列表</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>&nbsp;&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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>&nbsp;&nbsp;
<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">&nbsp;待分拣订单列表</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>&nbsp;&nbsp;
<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">&nbsp;待分拣订单列表</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>&nbsp;&nbsp;
<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">&nbsp;工作日志列表</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 ">&nbsp;查询条件:</td>
</tr>
</table>
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="${oddColor}">
<td width="25%">设计师:&nbsp;<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}">&nbsp;-&nbsp;
<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}">&nbsp;-&nbsp;
<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>&nbsp;&nbsp;&nbsp;&nbsp;<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">&nbsp;上班中的设计师信息</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()}
@@ -0,0 +1,40 @@
${request.getValidateScript()}
<script>
function bindingType()
{//指定设计师
var typeId = Z("#typeId").val();
var ajax = new Z.Ajax();
ajax.setClassName("DesignPinleiPresenter");
ajax.setMethodName("bindingType");
ajax.addParam("id", ${designPinlei.getId()});
ajax.addParam("typeId", typeId);
ajax.setFailure(function(){Z.failure(ajax.responseText, function(){parent.Z.Dialog.close();});});
ajax.setSuccess(function(s)
{
Z.success("绑定成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("bindingType", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<input id="id" name="id" value="${designPinlei.getId()}" type="hidden">
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td>产品类型:</td>
<td>
<select id="typeId" name="typeId" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}" data-options="maxHeight:100">
<option value="0">解绑产品类型</option>
<#for item : typeList>
<option value="${item.getTypeId()}" <#if designPinlei.getTypeId() == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
</tr>
</table>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="doAssignDer" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="bindingType();">提交</button>&nbsp;
<button type="button" class="z-button z-large z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
@@ -0,0 +1,95 @@
<#def designatedPath="/designTypeList.htm"/>
<script>
function syncPinlei()
{//同步品类
var ajax = new Z.Ajax();
ajax.setClassName("DesignPinleiPresenter");
ajax.setMethodName("insert");
ajax.setFailureAlert();
ajax.setSuccess(function(){
location.reload();
});
ajax.setLoading("submit", '<i class="z-font z-query"></i>正在查询', {disabled:true});
ajax.execute();
}
function bindingType()
{//绑定产品类型
var id = Z.FM.getChecked("id");
if (Z.V.isEmpty(id))
{
Z.alert("请选择一个品类");
return;
}
var dialog = new Z.Dialog();
dialog.title = "绑定产品类型";
dialog.url = "/bindingType.htm?id=" + id;
dialog.width = 600;
dialog.height = 220;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("设计类型")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li class="z-active">品类</li>
</ul>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="syncPinlei()"><i class="z-font z-add"></i>同步品类</button>
<#-- <#if ZmrPathRule.check(request, "/designTypeModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('designTypeModify.htm?page=${page}', 'typeId');"><i class="z-font z-modify"></i>绑定产品类型</button></#if>
--><button type="button" class="z-button z-blue" onclick="bindingType()"><i class="z-font z-modify"></i>绑定产品类型</button>
</div>
</nav>
</div>
<form>
<table class="z-table z-pd10">
<tr>
<td width="250">品类ID<input type="text" name="id" class="z-input z-w150 ${zmr_color_class}" value="" ></td>
<td width="300">品类名称:<input type="text" name="name" class="z-input z-w200 ${zmr_color_class}" value="" placeholder="名称模糊匹配"></td>
<td width="250">类型ID<input type="text" name="typeId" class="z-input z-w150 ${zmr_color_class}" value="" ></td>
<td width="300">类型名称:<input type="text" name="typeName" class="z-input z-w200 ${zmr_color_class}" value="" placeholder="名称模糊匹配"></td>
<td width="*">
<button type="submit" class="z-button z-blue"><i class="z-font z-query"></i>查询</button>
<button type="button" class="z-button" onclick="Z.Forms.clearForm(this.form);">清空</button>
</td>
</tr>
</table>
</form>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="40">选项</td>
<td width="155">品类ID</td>
<td width="100">品类名称</td>
<td width="155">类型ID</td>
<td width="100">类型名称</td>
</tr>
<#if Lists.size(pageResult.list()) == 0>
${zhiqim_manager_no_record(9, "无品类信息")}
</#if>
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input id="id" name="id" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getId()}"></td>
<td>${item.getId()}</td>
<td>${item.getName()}</td>
<#if item.getTypeId() == 0>
<td></td>
<#else>
<td>${item.getTypeId()}</td>
</#if>
<td>${item.getTypeName()}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/designPinleiList.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,41 @@
<script>
Z.onload(function()
{//初始化
Z("#nav_" + "${industryId}").addClass("z-active");
doKeywordIndustryTop('${industryId}', '${industrySubId}');
})
function doKeywordIndustryTop(industryId, industrySubId)
{
var ajax = new Z.Ajax();
ajax.setClassName("KeywordPresenter");
ajax.setMethodName("doKeywordIndustryTop");
ajax.addParam("industryId", industryId);
ajax.addParam("industrySubId", industrySubId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var text = this.responseText;
Z("#resultWrap").htmlc(text);
});
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("关键词排行榜")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('keywordTop.htm');">关键词排行榜</li>
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
<li id="nav_${item.getIndustryId()}" onclick="Z.Location.href('keywordIndustryTop.htm?industryId=${item.getIndustryId()}&industrySubId=${LabelDao.getIndustrySubId(item.getIndustryId())}');">${item.getIndustryName()}</li>
</#for>
</ul>
</nav>
</div>
<div id="resultWrap"></div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,130 @@
${zhiqim_manager_breadcrumb("关键词排行榜")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li class="z-active">关键词排行榜</li>
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
<li onclick="Z.Location.href('keywordIndustryTop.htm?industryId=${item.getIndustryId()}');">${item.getIndustryName()}</li>
</#for>
</ul>
</nav>
</div>
<style>
.z-w35p{width:35%;}
/***************************
******** 图形列表 ********
***************************/
.scoreChar>.scoreChar-title{font-weight:normal;}
.scoreChar>.scoreChar-list{height:330px;}
.scoreChar>.scoreChar-list>.list-char{position:absolute;width:600px;height:100%;padding:30px;z-index:1;}
.scoreChar>.scoreChar-list>.list-char>.char-item{position:absolute;bottom:30px;width:160px;}
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-status,.scoreChar>.scoreChar-list>.list-char>.char-item>.item-name,
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-score{font-size:16px;}
.scoreChar>.scoreChar-list>.list-char>.char-item>div{position:absolute;width:100%;text-align:center;}
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-status{top:-70px;}
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-arrow{width:0;height:0;line-height:0;font-size:0;border-style:dashed;
border-color:transparent;border-width:40px 80px;border-bottom-style:solid;position:absolute;top:-80px;}
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-name{bottom:60px;}
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-score{bottom:20px;}
.scoreChar>.scoreChar-list>.list-char>.char-item>.item-name a,.scoreChar>.scoreChar-list>.list-char>.char-item>.item-score{color:#ffffff;}
/*排列*/
.scoreChar>.scoreChar-list>.list-char>.char-item:nth-child(1){left:30px;}
.scoreChar>.scoreChar-list>.list-char>.char-item:nth-child(2){left:220px;}
.scoreChar>.scoreChar-list>.list-char>.char-item:nth-child(3){left:410px;}
.scoreChar>.scoreChar-list>.list-char>.char-item.first{height:200px;background:#fe7811;}
.scoreChar>.scoreChar-list>.list-char>.char-item.first>.item-arrow{border-bottom-color:#fe7811}
.scoreChar>.scoreChar-list>.list-char>.char-item.first>.item-status{color:#fe7811;}
.scoreChar>.scoreChar-list>.list-char>.char-item.second{height:160px;background:#2cb8c6;}
.scoreChar>.scoreChar-list>.list-char>.char-item.second>.item-arrow{border-bottom-color:#2cb8c6}
.scoreChar>.scoreChar-list>.list-char>.char-item.second>.item-status{color:#2cb8c6;}
.scoreChar>.scoreChar-list>.list-char>.char-item.third{height:120px;background:#478cea;}
.scoreChar>.scoreChar-list>.list-char>.char-item.third>.item-arrow{border-bottom-color:#478cea}
.scoreChar>.scoreChar-list>.list-char>.char-item.third>.item-status{color:#478cea;}
/*char2*/
.scoreChar>.scoreChar-list>.list-char2>.char-item>.item-arrow,
.scoreChar>.scoreChar-list>.list-char2>.char-item>.item-score,
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li:first-child .z-text-cyan,
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li:first-child .z-text-red{display:none;}
.scoreChar>.scoreChar-list>.list-char2>.char-item>.item-status{top:-30px;}
.scoreChar>.scoreChar-list>.list-char2>.char-item::after{content:"";position:absolute;width:30px;height:30px;text-align:center;border-radius:50%;
line-height:30px;bottom:20px;left:50%;margin-left:-15px;background:#ffffff;}
.scoreChar>.scoreChar-list>.list-char2>.char-item.first::after{content:"1";color:#fe7811;}
.scoreChar>.scoreChar-list>.list-char2>.char-item.second::after{content:"2";color:#2cb8c6;}
.scoreChar>.scoreChar-list>.list-char2>.char-item.third::after{content:"3";color:#478cea;}
/*右侧列表*/
.scoreChar>.scoreChar-list>.list-list{padding:30px 30px 30px 600px;}
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li,
.scoreList>.scoreList-list>.list-ul>.ul-li{width:100%;float:left;height:30px;}
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li:nth-child(even),
.scoreList>.scoreList-list>.list-ul>.ul-li:nth-child(even){background:#f4f4f4;}
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li:first-child,
.scoreList>.scoreList-list>.list-ul>.ul-li:first-child{background:#999999;color:#ffffff;}
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li>div,
.scoreList>.scoreList-list>.list-ul>.ul-li>div{float:left;height:100%;line-height:30px;}
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li>div:first-child,
.scoreList>.scoreList-list>.list-ul>.ul-li>div:first-child{text-align:center;}
.scoreChar>.scoreChar-list>.list-list>.list-ul>.ul-li:last-child{text-align:right;}
/***************************
********* 分类列表 ********
***************************/
.scoreList>.scoreList-list{}
.scoreList>.scoreList-list>.list-nav{margin-bottom:20px;border-bottom:2px solid #f1f1f1;}
.scoreList>.scoreList-list>.list-nav>span{display:inline-block;padding:15px 25px;margin-bottom:-2px;border:0 solid transparent;cursor:pointer;}
.scoreList>.scoreList-list>.list-nav>span:hover,.scoreList>.scoreList-list>.list-nav>span.active{color:#009899;border-bottom:2px solid #009899;}
.scoreList>.scoreList-list>.list-ul>.ul-li{height:40px;}
.scoreList>.scoreList-list>.list-ul>.ul-li>div{line-height:40px;}
</style>
<script>
function switchList(elem)
{
Z(elem).addClass("z-active").siblings("li").removeClass("z-active");
var ind = [].indexOf.call(elem.parentNode.children,elem) + 1;
Z("#list" + ind).show().siblings("div").hide();
}
</script>
<div id="scoreList">
<div id="list1">
<div class="scoreChar">
<h3 class="scoreChar-title">今日搜索榜</h3>
<div class="scoreChar-list z-relative z-bd">
<div class="list-char z-clearfix">
<#for item : threeList>
<div class="char-item <#if item_index == 0>first</#if><#if item_index == 1>second</#if><#if item_index == 2>third</#if>">
<div class="item-status"><!--上升154位--></div>
<div class="item-arrow"></div>
<div class="item-name">${item.getKeywordName()}</div>
<div class="item-score">${item.getKeywordNum()}</div>
</div>
</#for>
</div>
<div class="list-list z-absolute z-l0 z-t0 z-w100p z-h100p">
<ul class="list-ul">
<li class="ul-li">
<div class="z-w15p"></div><div class="z-w35p">关键词</div>
<div class="z-w25p">指数</div> <div class="z-w25p">升降 &nbsp &nbsp<span class="z-text-red">↑</span></div>
</li>
<#for item : restList>
<li class="ul-li">
<div class="z-w15p"></div><div class="z-w35p">${item.getKeywordName()}</div>
<div class="z-w25p">${item.getKeywordNum()}</div><div class="z-w25p"></div>
</li>
</#for>
<li class="ul-li">
<div class="z-w15p"></div><div class="z-w35p"></div><div class="z-w25p"></div><div class="z-w25p"></div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,36 @@
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<table class="z-table z-bordered z-bg-white z-pd6"">
<tr class="z-h30" bgcolor="${zmr_thead_bgolor}">
<td width="6%" align="center">子行业:</td>
<td width="*">
<#for item : inSubList>
<button name="subName" id="sub_${item.getIndustrySubId()}" type="button" class="z-button z-large z-bordered z-mg-r6 z-mg-t6 z-blue-bd z-hover <#if item.getIndustrySubId() == industrySubId>z-active</#if>" onclick="Z.Location.href('keywordIndustryTop.htm?industryId=${item.getIndustryId()}&industrySubId=${item.getIndustrySubId()}');">${item.getIndustrySubName()}</button>
</#for>
</td>
</tr>
</table>
<div data-role="z-tabnav" class="z-tabnav">
<nav>
<ul>
<li class="z-active">搜索热门排行</li>
</ul>
</nav>
<section>
<div class="z-active z-pd10">
<table class="z-table z-bordered z-bg-white z-pd6">
<tr align="center" class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">排名</td>
<td width="15%">关键词</td>
<td width="*">搜索次数</td>
</tr>
<#for item : coreList>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()}>
<td>${item_index + 1}</td>
<td>${item.getKeywordName()}</td>
<td>${item.getKeywordNum()}</td>
</tr>
</#for>
</table>
</div>
</section>
</div>
@@ -0,0 +1,64 @@
${zhiqim_manager_breadcrumb("标签属性")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('labelIndustry.htm');">标签行业</li>
<li onclick="Z.Location.href('labelAttributeCat.htm');">标签属性</li>
<li class="z-active">标签属性值</li>
<!--
<li onclick="Z.Location.href('labelBrand.htm');">标签品牌</li>
-->
</ul>
<div class="z-float-left z-mg10 z-lh30">
<form name="theForm">
<select name="industryId" id="industryId" class="z-select z-w100 z-float-left" data-role="z-select" data-class="${zmr_color_class}" onchange="Z.L.href('/labelAttribute.htm?industryId=' + this.value)">
<option value="">全部</option>
<#for item : industryList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select>
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>&nbsp;&nbsp;
</form>
</div>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('labelAttributeAdd.htm');"><i class="z-font z-add"></i>添加标签属性值</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('labelAttributeModify.htm', 'attributeId');"><i class="z-font z-modify"></i>修改标签属性值</button>
<button class="z-button z-red" onclick="Z.Location.confirm('labelAttributeDelete.htm', '确认要删除该标签吗?', 'attributeId');"><i class="z-font z-delete"></i>删除标签属性值</button>
</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">&nbsp;标签属性值列表</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td width="20%">行业名称</td>
<td width="20%">属性名称</td>
<td width="20%">属性值名称</td>
<td width="15%">创建时间</td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(4 "暂时没有标签属性信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="attributeId" id="attributeId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getAttributeId()}"></td>
<td>
<#for industry : industryList>
<#if item.getIndustryId() == industry.getIndustryId()>${industry.getIndustryName()} </#if>
</#for>
</td>
<td>${LabelPresenter.doAttributeCatName(item.getAttributeCatId())}</td>
<td>${item.getAttributeName()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/labelAttribute.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,68 @@
<script>
Z.onload(function()
{
doIndustryCatQuery();
});
function doIndustryCatQuery()
{//获取标签属性分类
var industryId = Z("#industryId").val();
if(industryId == null || industryId == undefined)
return;
var ajax = new Z.Ajax();
ajax.setClassName("LabelPresenter");
ajax.setMethodName("doIndustryCatQuery");
ajax.addParam(industryId);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var labels = Z.Jsons.toObject(this.responseText);
var html = "";
var data_color = "${zmr_color_class}";
html += "<select name='attributeCatId' id='attributeCatId' class='z-select z-w200' data-role='z-select' data-class='"+data_color+"'>";
for(var i=0; i<labels.length; i++)
{
var label = labels[i];
html += "<option value=" + label.attributeCatId +">"+ label.attributeCatName +"</option>";
}
html += "</select>";
Z("#attributeCat").html(html);
});
ajax.execute();
}
</script>
${zhiqim_manager_history("/labelAttribute.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttribute.htm", "标签属性值", "增加标签属性值")}
<div class="content">
${zhiqim_manager_title("新增标签属性值")}
<form name="theForm" action="labelAttributeInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" id="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" onchange="doIndustryCatQuery()">
<#for item : indList>
<option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td> 属性:(请选择)</td>
<td>
<span id="attributeCat"></span><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>属性值:(逗号隔开)</td>
<td><textarea name="attributeName" class="z-textarea z-w60p ${zmr_color_class}" cols=60 rows=4 size="30" maxlength="5000"></textarea><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,61 @@
${zhiqim_manager_breadcrumb("标签属性分类")}
${zhiqim_manager_content()}
<#-- 属性分类栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('labelIndustry.htm');">标签行业</li>
<li class="z-active">标签属性</li>
<li onclick="Z.Location.href('labelAttribute.htm');">标签属性值</li>
<!--
<li onclick="Z.Location.href('labelBrand.htm');">标签品牌</li>
-->
</ul>
<div class="z-float-left z-mg10 z-lh30">
<form name="theForm">
<select name="industryId" id="industryId" class="z-select z-w100 z-float-left" data-role="z-select" data-class="${zmr_color_class}" onchange="Z.L.href('/labelAttributeCat.htm?industryId=' + this.value)">
<option value="">全部</option>
<#for item : industryList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select>
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>&nbsp;&nbsp;
</form>
</div>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('/labelAttributeCatAdd.htm');"><i class="z-font z-add"></i>增加标签属性</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('/labelAttributeCatModify.htm', 'attributeCatId');"><i class="z-font z-modify"></i>修改标签属性</button>
<button class="z-button z-red" onclick="Z.Location.confirm('/labelAttributeCatDelete.htm', '确认要删除标签属性分类?', 'attributeCatId');"><i class="z-font z-delete"></i>删除标签属性</button>
</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">&nbsp;标签属性列表</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td width="20%">行业名称</td>
<td width="20%">属性名称</td>
<td width="5%">创建时间 </td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(4 "暂时没有标签属性信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="attributeCatId" id="attributeCatId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getAttributeCatId()}"></td>
<td>
<#for industry : industryList>
<#if item.getIndustryId() == industry.getIndustryId()>${industry.getIndustryName()} </#if>
</#for>
</td>
<td>${item.getAttributeCatName()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/labelAttributeCat.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,25 @@
${zhiqim_manager_history("/labelAttributeCat.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttributeCat.htm", "标签属性", "增加标签属性")}
<div class="content">
${zhiqim_manager_title("新增标签属性")}
<form name="theForm" action="labelAttributeCatInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>标签属性名称:(64位不定长字符)</td>
<td><input name="attributeCatName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,26 @@
${zhiqim_manager_history("/labelAttributeCat.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttributeCat.htm", "标签属性", "修改标签属性")}
<div class="content">
${zhiqim_manager_title("修改标签属性")}
<form name="theForm" action="labelAttributeCatUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
<input name="attributeCatId" type="hidden" value="${cat.getAttributeCatId()}"/>
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == attr.getIndustryId()>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>标签属性名称:(64位不定长字符)</td>
<td><input name="attributeCatName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="${cat.getAttributeCatName()}" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,69 @@
<script>
Z.onload(function()
{
doIndustryCatQuery();
});
function doIndustryCatQuery()
{//获取标签属性分类
var industryId = Z("#industryId").val();
if (industryId == null || industryId == undefined)
return;
var ajax = new Z.Ajax();
ajax.setClassName("LabelPresenter");
ajax.setMethodName("doIndustryCatQuery");
ajax.addParam(industryId);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var labels = Z.Jsons.toObject(this.responseText);
var html = "";
var data_color = "${zmr_color_class}";
html += "<select name='attributeCatId' id='attributeCatId' class='z-select z-w200' data-role='z-select' data-class='"+data_color+"'>";
for(var i=0; i<labels.length; i++)
{
var label = labels[i];
html += "<option value=" + label.attributeCatId +">"+ label.attributeCatName +"</option>";
}
html += "</select>";
Z("#attributeCat").html(html);
});
ajax.execute();
}
</script>
${zhiqim_manager_history("/labelAttribute.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttribute.htm", "标签属性值", "修改标签属性值")}
<div class="content">
${zhiqim_manager_title("修改标签属性值")}
<form name="theForm" action="labelAttributeUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="attributeId" type="hidden" value="${attr.getAttributeId()}">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签分类:(请选择)</td>
<td width="*">
<select name="industryId" id="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" onchange="doIndustryCatQuery()">
<#for item : indList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == attr.getIndustryId()>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td> 属性:(请选择)</td>
<td>
<span id="attributeCat"></span><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>属性值名称:(64位不定长字符)</td>
<td><input name="attributeName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" maxlength="64" value="${attr.getAttributeName()}"/><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,47 @@
${zhiqim_manager_breadcrumb("标签品牌")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('labelIndustry.htm');">标签行业</li>
<li onclick="Z.Location.href('labelAttributeCat.htm');">标签属性</li>
<li onclick="Z.Location.href('labelAttribute.htm');">标签属性值</li>
<li class="z-active">标签品牌</li>
</ul>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('labelBrandAdd.htm');"><i class="z-font z-add"></i>添加标签品牌</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('labelBrandModify.htm', 'brandId');"><i class="z-font z-modify"></i>修改标签品牌</button>
<button class="z-button z-red" onclick="Z.Location.confirm('labelBrandDelete.htm', '确认要删除该标签吗?', 'brandId');"><i class="z-font z-delete"></i>删除标签品牌</button>
</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="6">&nbsp;标签品牌列表</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width=8%>选择</td>
<td width=10%>排序</td>
<td width=15%>品牌ID</td>
<td width=25%>品牌名称</td>
<td width=15%>产品类型</td>
<td width=8%>状态</td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(6 "暂时没有标签品牌信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="brandId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getBrandId()}"></td>
<td>${item.getBrandSeq()}</td>
<td>${item.getBrandId()}</td>
<td>${item.getBrandName()}</td>
<td>${Global.get(ProductTypeCache.class).getName(item.getTypeId())}</td>
<td><#if item.getBrandStatus() == 0>有效<#else><font class="z-color-red">已停用</font></#if></td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/labelBrand.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,38 @@
${zhiqim_manager_history("/labelBrand.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelBrand.htm", "标签品牌", "增加标签品牌")}
<div class="content">
${zhiqim_manager_title("新增标签品牌")}
<form name="theForm" action="labelBrandInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="40%">标签分类:(请选择)</td>
<td width="*">
<select name="typeId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : DesignTypeDao.list()>
<option value="${item.getTypeId()}" title="${item.getTypeName()}">${item.getTypeName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr bgcolor="${evenColor}" class="z-h40">
<td>标签品牌名称:(64位不定长字符)</td>
<td><input name="brandName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
<tr class="z-h40">
<td>序号:</td>
<td><input name="brandSeq" class="z-input z-w200 ${zmr_color_class}" type="text" value="" maxlength="6" data-options="type:Decimal;paste:true;"></td>
</tr>
<tr bgcolor="${evenColor}" class="z-h40">
<td>行业状态:(有效|停用)</td>
<td>
<select name="brandStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="0">有效</option>
<option value="1">停用</option>
</select>
<font class="z-color-red">&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,39 @@
${zhiqim_manager_history("/labelBrand.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelBrand.htm", "标签品牌", "修改标签品牌")}
<div class="content">
${zhiqim_manager_title("修改标签品牌")}
<form name="theForm" action="labelBrandUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="brandId" type="hidden" value="${brand.getBrandId()}">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="40%">标签分类:(请选择)</td>
<td width="*">
<select name="typeId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : DesignTypeDao.list()>
<option value="${item.getTypeId()}" <#if brand.getDesignType() == item.getTypeId()>selected</#if> title="${item.getTypeName()}">${item.getTypeName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr bgcolor="${oddColor}" class="z-h40">
<td>标签品牌名称:(64位不定长字符)</td>
<td><input name="brandName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="${brand.getBrandName()}" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
<tr class="z-h40">
<td>序号:</td>
<td><input name="brandSeq" class="z-input z-w200 ${zmr_color_class}" type="text" value="${brand.getBrandSeq()}" maxlength="6" data-options="type:Decimal;paste:true;"></td>
</tr>
<tr bgcolor="${oddColor}" class="z-h40">
<td>品牌状态:(有效|停用)</td>
<td>
<select name="brandStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="1" <#if brand.getBrandStatus()= 1>selected</#if>>停用</option>
<option value="0" <#if brand.getBrandStatus()= 0>selected</#if>>有效</option>
</select><font class="z-color-red">&nbsp;*</font>
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,56 @@
<script>
Z.onload(function()
{
var industryId = '${industryId}';
if (industryId != -1)
doIndustrySubQuery(industryId);
});
function doIndustrySubQuery(industryId)
{
var ajax = new Z.Ajax();
ajax.setClassName("LabelPresenter");
ajax.setMethodName("doIndustrySubQuery");
ajax.addParam(industryId);
ajax.setCallback("result");
ajax.setLoading("result");
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("标签行业")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li class="z-active">标签行业</li>
<li onclick="Z.Location.href('labelAttributeCat.htm');">标签属性</li>
<li onclick="Z.Location.href('labelAttribute.htm');">标签属性值</li>
</ul>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('/labelIndustryAdd.htm');"><i class="z-font z-add"></i>增加标签行业</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('labelIndustryModify.htm', 'industrySubId');"><i class="z-font z-modify"></i>修改标签行业</button>
<button class="z-button z-red" onclick="Z.Location.confirm('labelIndustryDelete.htm', '确认要删除该标签行业吗?', 'industrySubId');"><i class="z-font z-delete"></i>删除标签行业</button>
</div>
</nav>
</div>
<table class="z-table">
<tr>
<td width="300" valign="top">
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}"><td>标签导航</td></tr>
<#for item : indList>
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
<td><a href="javascript:doIndustrySubQuery('${item.getIndustryId()}');">${item.getIndustryName()}</a></td>
</tr>
</#for>
</table>
</td>
<td width="10"></td>
<td width="*" id="result" valign="top">
</td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,25 @@
${zhiqim_manager_history("/labelIndustry.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelIndustry.htm", "标签行业", "增加标签行业")}
<div class="content">
${zhiqim_manager_title("新增标签行业")}
<form name="theForm" action="labelIndustryInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
</#for>
</select><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>子行业名称:(逗号隔开)</td>
<td><textarea name="industrySubName" class="z-textarea z-w60p ${zmr_color_class}" cols=60 rows=4 size="30" maxlength="5000"></textarea><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,26 @@
${zhiqim_manager_history("/labelIndustry.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelIndustry.htm", "标签行业", "修改标签行业")}
<div class="content">
${zhiqim_manager_title("修改标签行业")}
<form name="theForm" action="labelIndustryUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
<input name="industrySubId" type="hidden" value="${industry.getIndustrySubId()}"/>
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}" <#if industry.getIndustryId() == item.getIndustryId() >selected</#if>>${item.getIndustryName()}</option>
</#for>
</select><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>子行业名称:(5000位不定长字符)</td>
<td><input name="industrySubName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" maxlength="64" value="${industry.getIndustrySubName()}"/><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,80 @@
<script>
<!--
var indIdarr = Z.AR.toArray("${indIdarr}", ",");
var attrIdarr = Z.AR.toArray("${attrIdarr}", ",");
function doLabelIdSet(type,attaid)
{
if (type == "industry")
{
if (Z.AR.contains(indIdarr, attaid))
Z.AR.remove(indIdarr, attaid);
else
indIdarr.push(attaid);
}
else if (type == "attribute")
{
if(Z.AR.contains(attrIdarr, attaid))
Z.AR.remove(attrIdarr, attaid)
else
attrIdarr.push(attaid);
}
}
function doLabelRelation()
{
var ajax = new Z.Ajax();
ajax.setClassName("WorksPresenter");
ajax.setMethodName("doLabelRelation");
ajax.addParam('${works.getWorksId()}');
ajax.addParam('${works.getDesignType()}');
ajax.addParam('${works.getIndustryId()}');
ajax.addParam(indIdarr);
ajax.addParam(attrIdarr);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("关联成功", function(){parent.location.reload();})
});
ajax.execute();
}
-->
</script>
<div class="z-w300p">
${zhiqim_manager_title("关联标签行业")}
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="10%" >产品类型:</td>
<td width="*"> ${Global.get(ProductTypeCache.class).getName(works.getDesignType())}</td>
</tr>
<tr class="z-h40" bgcolor="#FFFFFF">
<td>标签行业:</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(works.getIndustryId())}</td>
</tr>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td>标签子行业:</td>
<td>
<#for item : inSubList>
<button name="subName" id="sub_${item.getIndustrySubId()}" type="button" class="z-button z-large z-bordered z-blue-bd z-hover <#if subsList.contains(item.getIndustrySubId()+"")>z-active</#if>" onclick="Z.EL.toggleClass(this, 'z-active');doLabelIdSet('industry', '${item.getIndustrySubId()}')">${item.getIndustrySubName()}</button>
</#for>
</td>
</tr>
</table><br>
${zhiqim_manager_title("关联标签属性")}
<table class="z-table z-bordered z-pd6">
<#for item : attrCatList>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="10%">${item.getAttributeCatName()}</td>
<td width="*">
<#for aitem : map.get(item.getAttributeCatId())>
<button name="attrId" id="sub_${aitem.getAttributeId()}" type="button" class="z-button z-large z-bordered z-blue-bd z-hover <#if attrList.contains(aitem.getAttributeId()+"")>z-active</#if>" onclick="Z.EL.toggleClass(this, 'z-active');doLabelIdSet('attribute', '${aitem.getAttributeId()}')">${aitem.getAttributeName()}</button>
</#for>
</td>
</tr>
</#for>
</table>
<div class="z-absolute z-w100p z-h80 z-text-center z-bg-gray" style="bottom:0;left:0">
<button class="z-button ${zmr_color_class} z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 fi-px22" type="button" onclick="doLabelRelation();">提交</button>
<button class="z-button z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 fi-px22" type="button" onclick="parent.location.reload();">关闭</button>
</div>
</div>
@@ -0,0 +1,26 @@
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40">
<td align="left" colspan="4" class="z-bold z-px14 fi-pd-l5"><input name="industryId" id="industryId" value="${industryId}" type="hidden"/>[<span class="z-text-blue">${Global.get(DesignIndustryCache.class).getIndustryName(industryId)}</span>] 的子行业信息</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td width="20%">子行业名称</td>
<td width="15%">创建时间</td>
</tr>
<#for item : result>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="industrySubId" id="industrySubId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getIndustrySubId()}"></td>
<td>${item.getIndustrySubName()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
<#if result.size() == 0>
${zhiqim_manager_no_record(4 "暂时没有相关信息")}
</#if>
</table>
<table class="z-table z-bordered fi-bd-t-none z-pd6 z-bg-white">
<tr class="z-h40">
<td align="right">共 <font color="red">${result.size()}</font> 条数据</td>
</tr>
</table>
@@ -0,0 +1,26 @@
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40">
<td align="left" colspan="3" class="z-bold z-px14 fi-pd-l5">标签分类 [<span class="z-text-blue">${labelName}</span>] 的属性信息</td>
</tr>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="8%">选择</td>
<td width="30%">属性名称</td>
<td width="15%">排序号</td>
</tr>
<#for item : result>
<tr class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="labelId" id="labelId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getLabelId()}"></td>
<td>${item.getLabelName()}</td>
<td>${item.getLabelOrder()}</td>
</tr>
</#for>
<#if result.size() == 0>
${zhiqim_manager_no_record(3 "暂时没有相关信息")}
</#if>
</table>
<table class="z-table z-bordered fi-bd-t-none z-pd6 z-bg-white">
<tr class="z-h40">
<td align="right">共 <font color="red">${result.size()}</font> 条数据</td>
</tr>
</table>
@@ -0,0 +1,119 @@
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<table class="z-table z-bordered z-bg-white z-text-center">
<#if console>
<tr class="z-h40">
<td class="z-text-left z-bold z-px14 z-bg-white" colspan="10" style="padding-left: 10px;">
定稿日期:
<input name="designerPerformanceBeginDate" id="designerPerformanceBeginDate" onfocus="parent.Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${designerPerformanceBeginDate}"> -
<input name="designerPerformanceEndDate" id="designerPerformanceEndDate" onfocus="parent.Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${designerPerformanceEndDate}">
<button class="z-mg-l10 z-button ${zmr_color_class}" onclick="doQueryCompleteOrderInfo(1);">查询</button>
</td>
</tr>
<#else>
<tr class="z-h40">
<td class="z-text-left z-bold z-px14 z-bg-white" colspan="10">&nbsp;<#if Validates.isNotEmpty(designer)><span class="z-text-red z-bold">[${designer}]</span></#if>订单详情&emsp;</td>
</tr>
</#if>
<tr class="z-h40 z-text-center z-bg-gray">
<td width="130">订单号</td>
<td width="100">设计师</td>
<td width="90">设计类型</td>
<td width="*">产品</td>
<td width="80">修改类型</td>
<td width="80">修改前价格</td>
<td width="80">修改后价格</td>
<td width="80">初始值</td>
<td width="80">最新值</td>
<td width="80">修改人</td>
<td width="90">修改时间</td>
</tr>
<#if result.size() == 0>
<tr valign="middle" class="z-h40 z-text-center z-bg-white">
<td colspan="12">暂不存在绩效修改信息</td>
</tr>
</#if>
<#for item : result.list()>
<tr align="center" class="z-h40 z-pointer" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
<td>${item.getDesignId()}</td>
<td>${item.getDesigner()}</td>
<td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
<td>${item.getOrderText()}</td>
<#if item.getType() == 1>
<td>
修改设计份数
</td>
<td>${Amounts.toYuanMustRadix(item.getOldPrice())}</td>
<td>${Amounts.toYuanMustRadix(item.getNewPrice())}</td>
<td>${item.getOldData()}份</td>
<td>${item.getNewData()}份</td>
</#if>
<#if item.getType() == 2>
<td>
重置佣金
</td>
<td>${Amounts.toYuanMustRadix(item.getOldPrice())}</td>
<td>${Amounts.toYuanMustRadix(item.getNewPrice())}</td>
<td>${item.getOldData()}</td>
<td>${item.getNewData()}</td>
</#if>
<#if item.getType() == 3>
<td>
修改佣金
</td>
<td>${Amounts.toYuanMustRadix(item.getOldPrice())}</td>
<td>${Amounts.toYuanMustRadix(item.getNewPrice())}</td>
<td>${item.getOldData()}</td>
<td>${item.getNewData()}</td>
</#if>
<#if item.getType() == 4>
<td>
修改加急费
</td>
<td>${Amounts.toYuanMustRadix(item.getOldPrice())}</td>
<td>${Amounts.toYuanMustRadix(item.getNewPrice())}</td>
<td>${item.getOldData()}</td>
<td>${item.getNewData()}</td>
</#if>
<#if item.getType() == 5>
<td>
修改稿件类型
</td>
<td>${Amounts.toYuanMustRadix(item.getOldPrice())}</td>
<td>${Amounts.toYuanMustRadix(item.getNewPrice())}</td>
<#if item.getOldData() == 0>
<td>标准自来稿</td>
</#if>
<#if item.getOldData() == 1>
<td>改稿自来稿</td>
</#if>
<#if item.getOldData() == 2>
<td>普通设计</td>
</#if>
<#if item.getOldData() == 3>
<td>资深设计</td>
</#if>
<#if item.getOldData() == 4>
<td>现货</td>
</#if>
<#if item.getNewData() == 0>
<td>标准自来稿</td>
</#if>
<#if item.getNewData() == 1>
<td>改稿自来稿</td>
</#if>
<#if item.getNewData() == 2>
<td>普通设计</td>
</#if>
<#if item.getNewData() == 3>
<td>资深设计</td>
</#if>
<#if item.getNewData() == 4>
<td>现货</td>
</#if>
</#if>
<td>${item.getAddUser()}</td>
<td>${Sqls.toDateTimeString(item.getAddTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging_jsMethod(result, "doQueryCompleteOrderInfo")}
@@ -0,0 +1,84 @@
<script>
Z.onload(function(){
doQueryDesigner('${designer}');
});
var designer;
function doQueryDesigner(designers){
designer = designers;
doQueryCompleteOrderInfo(1);
}
function doQueryCompleteOrderInfo(page)
{
var ajax = new Z.Ajax();
ajax.setClassName("StatPresenter");
ajax.setMethodName("doQueryOrderMeritsInfo");
ajax.addParam("page",page);
ajax.addParam("beginDate",Z("#beginDate").val());
ajax.addParam("endDate",Z("#endDate").val());
ajax.addParam("designer",designer);
ajax.addParam("query",${queryFlag});
ajax.setCallback("result");
ajax.setLoading("result");
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("绩效修改统计")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li class="z-active">绩效修改统计</li>
</ul>
</nav>
</div>
<table class="z-table z-bordered z-pd6">
<tr>
<td colspan="2">
<form name="theForm" action="/meritsTotal.htm" id="meritsTotal">
<table class="z-table">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td class="z-bold z-px14 zi-pd-l5">&nbsp;统计查询条件</td>
</tr>
</table>
<table class="z-table z-bordered z-pd6">
<tr class="z-h40 z-bg-white">
<td>定稿日期:
<input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${beginDate}"> -
<input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="${endDate}">
<input type="hidden" name="query" id="query" value="1">
&emsp;设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
&emsp;
<button class="z-mg-l10 z-button ${zmr_color_class}" onclick="Z.loading({shadow:true});document.getElementById('meritsTotal').submit();">查询</button>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr class="z-h40">
<td width="350" valign="top">
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40 z-bold">
<td colspan="3" align="left" style="padding-left:15px;">绩效修改总数:${endCount}&emsp;</td>
</tr>
<tr class="z-h40">
<td width="120">设计师</td>
<td width="100">绩效修改次数</td>
</tr>
<#for item : pageModelList>
<tr class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" onclick="doQueryDesigner('${item.getDesigner()}')">
<td>${item.getDesigner()}</td>
<td>${item.getOrderEndCount()}</td>
</tr>
</#for>
</table>
</td>
<td width="*" id="result" valign="top"></td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>秒绘名片详情页</title>
<link rel="stylesheet" href="/zinc/mobileWorks/css/mobileWorksPublic.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mobileWorkDetail.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mui.min.css">
<script src="/zinc/mobileWorks/zepto/zepto.min.js"></script>
<script src="/zinc/mobileWorks/js/mui.min.js"></script>
<script src="/zinc/mobileWorks/js/mobileWorkDetail.js"></script>
</head>
<body>
<div class="mui-slider">
<div class="mui-slider-group">
<!--第一个内容区容器-->
<#for path : Arrays.toStringArray(media.getMediaUrl())>
<div class="mui-slider-item">
<div class="img-box">
<img src="${path}" alt="">
</div>
</div>
</#for>
</div>
<div class="info" style="margin-top: -20px;"><span class="swiper-pagination-current">1</span>/<span class="swiper-pagination-sum">${MobileTemplatePresenter.getTemplateDetailCount(media.getMediaUrl())}</span></div>
</div>
<!-- 下方点击复制id -->
<a href="javasrcipt:;" class="btn-copy">复制模板ID<span class="val">${media.getMediaId()}</span></a>
<div class="my-btn-back-template-home">返回首页</div>
</body>
</html>
@@ -0,0 +1,682 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>秒绘设计模板库</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mui.min.css">
<link href="/zinc/mobileWorks/css/mui.poppicker.css" rel="stylesheet" />
<link href="/zinc/mobileWorks/css/mui.picker.css" rel="stylesheet" />
<script src="/zinc/mobileWorks/js/mui.min.js"></script>
<script src="/zinc/mobileWorks/js/mui.poppicker.js"></script>
<script src="/zinc/mobileWorks/js/mui.picker.js"></script>
<script src="/zinc/mobileWorks/js/mui.pullToRefresh.js"></script>
<script src="/zinc/mobileWorks/js/mui.pullToRefresh.material.js"></script>
<script src="/zinc/mobileWorks/js/mui.view.js"></script>
<style>
* { touch-action: none; }
html,
body {
background-color: #efeff4;
}
.mui-bar~.mui-content .mui-fullscreen {
top: 44px;
height: auto;
}
.mui-pull-top-tips {
position: absolute;
top: -20px;
left: 50%;
margin-left: -25px;
width: 40px;
height: 40px;
border-radius: 100%;
z-index: 1;
}
.mui-bar~.mui-pull-top-tips {
top: 24px;
}
.mui-pull-top-wrapper {
width: 42px;
height: 42px;
display: block;
text-align: center;
background-color: #efeff4;
border: 1px solid #ddd;
border-radius: 25px;
background-clip: padding-box;
box-shadow: 0 4px 10px #bbb;
overflow: hidden;
}
.mui-pull-top-tips.mui-transitioning {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
}
.mui-pull-top-tips .mui-pull-loading {
/*-webkit-backface-visibility: hidden;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;*/
margin: 0;
}
.mui-pull-top-wrapper .mui-icon,
.mui-pull-top-wrapper .mui-spinner {
margin-top: 7px;
}
.mui-pull-top-wrapper .mui-icon.mui-reverse {
/*-webkit-transform: rotate(180deg) translateZ(0);*/
}
.mui-pull-bottom-tips {
text-align: center;
background-color: #efeff4;
font-size: 15px;
line-height: 70px;
color: #777;
}
.mui-pull-top-canvas {
overflow: hidden;
background-color: #fafafa;
border-radius: 40px;
box-shadow: 0 4px 10px #bbb;
width: 40px;
height: 40px;
margin: 0 auto;
}
.mui-pull-top-canvas canvas {
width: 40px;
}
.mui-slider-indicator.mui-segmented-control {
background-color: #efeff4;
}
.mui-content>.mui-table-view:first-child {
margin-top: -1px;
}
.heard input {
background-color: white;
}
.mui-search {
left: 100px;
right: 80px;
width: auto;
display: inline-block;
position: absolute;
}
.mui-card {
width: 46%;
display: inline-block;
margin: 5px 2% 0 2%;
}
.mui-card-footer {
display: block;
}
#slider {
margin-top: 50px;
}
.mui-fullscreen {
position: fixed;
z-index: 20;
}
.mui-ios .mui-navbar .mui-bar .mui-title {
position: static;
}
html,
body {
background-color: #efeff4;
}
.mui-views,
.mui-view,
.mui-pages,
.mui-page,
.mui-page-content {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: #efeff4;
}
.mui-scroll-wrapper,
.mui-scroll {
background-color: #efeff4;
}
.mui-page.mui-transitioning {
-webkit-transition: -webkit-transform 300ms ease;
transition: transform 300ms ease;
}
.mui-page-left {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.mui-ios .mui-page-left {
-webkit-transform: translate3d(-20%, 0, 0);
transform: translate3d(-20%, 0, 0);
}
.mui-navbar {
position: fixed;
right: 0;
left: 0;
z-index: 10;
height: 44px;
background-color: #f7f7f8;
}
.mui-navbar .mui-bar {
position: absolute;
text-align: center;
}
.mui-android .mui-navbar-inner.mui-navbar-left {
opacity: 0;
}
.mui-ios .mui-navbar-left .mui-left,
.mui-ios .mui-navbar-left .mui-center,
.mui-ios .mui-navbar-left .mui-right {
opacity: 0;
}
.mui-navbar .mui-btn-nav {
-webkit-transition: none;
transition: none;
-webkit-transition-duration: .0s;
transition-duration: .0s;
}
.mui-navbar .mui-bar .mui-title {
display: inline-block;
width: auto;
}
.mui-page-shadow {
position: absolute;
right: 100%;
top: 0;
width: 16px;
height: 100%;
z-index: -1;
content: '';
}
.mui-page-shadow {
background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
}
.mui-navbar-inner.mui-transitioning,
.mui-navbar-inner .mui-transitioning {
-webkit-transition: opacity 300ms ease, -webkit-transform 300ms ease;
transition: opacity 300ms ease, transform 300ms ease;
}
.mui-page {
display: none;
}
.mui-pages .mui-page {
display: block;
}
.mui-page .mui-table-view:first-child {
margin-top: 15px;
}
.mui-page .mui-table-view:last-child {
margin-bottom: 30px;
}
.mui-table-view {
margin-top: 20px;
}
.mui-table-view span.mui-pull-right {
color: #999;
}
.mui-table-view-divider {
background-color: #efeff4;
font-size: 14px;
}
.mui-table-view-divider:before,
.mui-table-view-divider:after {
height: 0;
}
#imageShow {
padding: 10px 10px 0 10px;
margin-top: 50px;
}
#imageShow img {
padding: 10px;
}
.mui-slider-indicator {
margin-bottom: 20px;
}
.mui-content-padded {
margin: 0 20px;
}
.mui-content-padded button {
height: 25px;
line-height: 0px;
font-size: 15px;
}
#one img {
width: 100%;
}
.mui-bar-tab {
top: 90px;
height: 30px;
}
.mui-top{
top: 120px;
}
.mui-bar-tab a {
height: 30px !important;
}
</style>
</head>
<body class="mui-fullscreen">
<!--页面主结构开始-->
<div id="app" class="mui-views">
<div class="mui-view">
<div class="mui-navbar">
</div>
<div class="mui-pages">
</div>
</div>
</div>
<input id="copyMediaId" readonly>
<!--页面主结构结束-->
<!--单页面开始-->
<div id="page" class="mui-page">
<!--页面标题栏开始-->
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<header class="mui-bar mui-bar-nav heard">
<button id="industryType" type="button" class="mui-btn mui-btn-blue mui-btn-link mui-pull-left">选择行业<img src="/zinc/images/dropDown.png" style="width: 16px;height: 16px;margin-bottom: -2px;"></button>
<div class="mui-input-row mui-search" style="">
<input id="searchInput" type="search" class="mui-input-clear" placeholder="">
</div>
<button id="seachButton" style="margin-top: -2px;" type="submit" class="mui-btn mui-btn-primary mui-pull-right" onclick="return false;">搜索</button>
</header>
</div>
<!--下拉刷新容器-->
<div class="mui-content">
<div id="slider" class="mui-slider mui-fullscreen">
<div class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
<div id="typeScroll" class="mui-scroll">
<#for item : DesignTypeDao.list()>
<#if item.getTypeName() == "画册" || item.getTypeName() == "名片" || item.getTypeName() == "彩页" || item.getTypeName() == "优惠券" || item.getTypeName() == "透明PVC名片" || item.getTypeName() == "电子传单">
<a class="mui-control-item <#if item_index == 0>mui-active</#if>" value="${item.getTypeId()}" href="#item1mobile">
${item.getTypeName()}
</a>
</#if>
</#for>
</div>
</div>
<div class="mui-slider-group">
<div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
<div class="mui-scroll-wrapper">
<div class="mui-scroll" id="showScroll" style="margin-top: 35px;">
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="mui-bar mui-bar-tab" style="background-color: #efeff4;z-index:9999;font-size: 15px;">
<a class="mui-tab-item mui-active" href="#Popover_1" value="3">最热</a>
<a class="mui-tab-item" href="#Popover_2" value="1">最新</a>
</nav>
<div id="#oddEven">
<nav id="mTemplateHomeNav" class="mui-bar mui-bar-tab mui-top" style="background-color: #efeff4;z-index:9999;font-size: 15px;display: none">
<a class="mui-tab-item mui-active" href="#oddEven_-1" value="-1">全部</a>
<a class="mui-tab-item" href="#oddEven_0" value="0">横版</a>
<a class="mui-tab-item" href="#oddEven_1" value="1">竖版</a>
</nav>
</div>
</div>
<!--单页面结束-->
<div id="mediaInfo" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>返回
</button>
<h1 class="mui-center mui-title">模板详情</h1>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<div id="imageShow" class="mui-slider" >
<div class="mui-slider-group mui-slider-loop">
</div>
<div class="mui-slider-indicator">
</div>
<div id="one" style="display:none;">
</div>
</div>
<div id="mediaResult" class="mui-content-padded" style="display: none;font-size:13px;line-height: 26px;">
<div id="mediaName" style="float:left"></div></br>
<div id="mediaPageValue" style="float:left"></div></br>
<div id="mediaOddEven" style="float:left"></div></br>
</div>
<div class="mui-content-padded" style="font-size:13px;line-height: 26px;">
<div id="mediaIdArea" style="float:left"></div>
<div style="float:right;color:#7f7f7f;">复制后发送设计师</div>
</div>
<div class="mui-content-padded">
<button type="button" class="mui-btn mui-btn-primary mui-btn-block mui-btn-outlined" style="color: #FFF;background-color: #28a3ef;">复制模板ID</button>
<button type="button" class="mui-btn mui-btn-block mui-btn-outlined mui-action-back">返回上一页</button>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
mui.init({
swipeBack:false
});
//初始化单页view
var viewApi = mui('#app').view({
defaultPage: '#page'
});
var view = viewApi.view;
var page = 1;
var hasNext = true;
var industryId = -1;
var self;
var typeId = 1;
var sort = 3;
var oddEven = -1;
//阻尼系数
var deceleration = mui.os.ios?0.003:0.0009;
(function($,doc) {
//处理view的后退与webview后退
var oldBack = $.back;
$.back = function() {
if (viewApi.canBack()) { //如果view可以后退,则执行view的后退
viewApi.back();
} else { //执行webview后退
oldBack();
}
};
//监听页面切换事件方案1,通过view元素监听所有页面切换事件,目前提供pageBeforeShow|pageShow|pageBeforeBack|pageBack四种事件(before事件为动画开始前触发)
//第一个参数为事件名称,第二个参数为事件回调,其中e.detail.page为当前页面的html对象
/*view.addEventListener('pageBeforeShow', function(e) {
});
view.addEventListener('pageShow', function(e) {
});
view.addEventListener('pageBeforeBack', function(e) {
});
view.addEventListener('pageBack', function(e) {
});*/
$('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true, //是否显示滚动条
deceleration:deceleration
});
$.ready(function() {
// 选择框
var userPicker = new $.PopPicker();
userPicker.setData([
{
value: '-1',
text: '全部行业'
},
<#for item : indList>
{
value: '${item.getIndustryId()}',
text: '${item.getIndustryName()}'
},
</#for>
]);
mui("#typeScroll").on('tap','a',function(){
typeId = this.getAttribute('value');
if(typeId == 3){
var nav = document.getElementById("mTemplateHomeNav");
nav.style.display = "table-row";
}
reload();
});
mui(".mui-top").on('tap','a',function(){
oddEven = this.getAttribute('value');
reload();
});
mui(".heard").on('tap','#seachButton',function(){
reload();
});
mui(".mui-bar-tab").on('tap','a',function(){
sort = this.getAttribute('value');
reload();
});
mui(".mui-content-padded").on('tap','.mui-btn.mui-btn-primary.mui-btn-block.mui-btn-outlined',function(){
var copyMediaId=document.getElementById("copyMediaId");
copyMediaId.select();
document.execCommand("Copy");
mui.toast('复制成功');
});
var industryTypeButton = doc.getElementById('industryType');
industryTypeButton.addEventListener('tap', function(event) {
userPicker.show(function(items) {
industryId = items[0].value;
reload();
//返回 false 可以阻止选择框的关闭
//return false;
});
}, false);
var reload = function () {
document.activeElement.blur();
$.each(document.querySelectorAll('.mui-card'),function(){
this.remove();
});
page = 1;
hasNext = true;
self.refresh(true);
queryAllTemplate();
scrollToTop();
}
var scrollToTop = function () {
//mui('#showScroll').setTranslate(0,0,500);
}
var queryAllTemplate = function(){
mui.ajax('/service/ajax?path=/mobileTemplateHome.htm&time=' + new Date().getTime(),{
data:{
page: page,
industryId: industryId,
keyword: document.getElementById('searchInput').value,
typeId: typeId,
sort: sort,
oddEven: oddEven,
},
dataType:'json',
type:'post',
timeout:10000,
async:false,
headers:{
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'X-Requested-With': 'XMLHttpRequest',
'X-RMI-Class': 'MobileTemplatePresenter',
'X-RMI-Method': 'doTemplateSearch',
},
success:function(data){
hasNext = data.hasNext;
page++;
var list = data.pageResultList;
if(list && list.length > 0){
var showScroll = document.getElementById('showScroll');
var fragment = document.createDocumentFragment()
for(var i=0;i<list.length;i++){
var card = document.createElement('div');
card.className = "mui-card";
var htmls = `
<div class="mui-card-content">
<a value="`+ list[i].mediaId +`">
`;
if (list[i].mediaUrl){
var imgPathArr = list[i].mediaUrl.split(",");
for (var j = 0; j < imgPathArr.length; j++) {
if (j == 0){
htmls += `<img src="` + imgPathArr[j] + `" onerror="javascript:this.src='/zinc/images/nopic.png';">`;
}
}
} else{
htmls += `<img src="/zinc/images/nopic.png">`;
}
htmls += `</a><div class="mui-card-footer">`;
htmls += `ID:` + list[i].mediaId;
htmls += `<br><div style="display:inline-block;color:red;"><img src="/zinc/images/fire.png" style="width: 16px;height: 16px;margin-bottom: -2px;">热度:` + list[i].score +`</div>`;
htmls += `<div class="copyId" value="`+ list[i].mediaId +`" style="display: inline;float: right;"><img src="/zinc/images/copy.png" style="width: 16px;height: 16px;margin-bottom: -3px;">复制ID</div>`;
htmls += `</div>`;
card.innerHTML = htmls;
fragment.appendChild(card);
}
showScroll.insertBefore(fragment,document.querySelector('.mui-pull-bottom-tips'));
}
self.endPullUpToRefresh(!hasNext);
// 添加点击查看详情事件
mui(".mui-card-content").on('tap','a',function(){
var mediaId = this.getAttribute('value');
queryMediaInfo(mediaId);
});
// 添加点击复制ID事件
mui(".mui-card-content").on('tap','.copyId',function(){
var id = this.getAttribute("value");
var inputEle = document.createElement("input");
document.designMode = "on";
inputEle.value = id;
document.body.appendChild(inputEle);
inputEle.select();
document.execCommand('copy');
inputEle.blur();
inputEle.style.display = 'none';
document.body.removeChild(inputEle);
document.designMode = "off";
mui.toast('复制成功',{ duration:500, type:'div' })
});
},
error:function(xhr,type,errorThrown){
self.endPullUpToRefresh(true);
}
});
}
var queryMediaInfo = function(mediaId){
mui.ajax('/mobileTemplateDetail.htm',{
data:{
mediaId: mediaId,
},
dataType:'json',
type:'post',
timeout:10000,
async:false,
success:function(data){
if(data){
document.getElementById('copyMediaId').value = data.mediaId;
document.getElementById('mediaIdArea').innerHTML = 'ID'+ data.mediaId;
if(data.typeId == 3){
document.getElementById('mediaResult').style.display = "block";
document.getElementById('mediaName').innerHTML = "名称:"+data.mediaName;
document.getElementById('mediaPageValue').innerHTML = "P 数:"+data.pageValue+"P";
if(data.oddEven == 0){
document.getElementById('mediaOddEven').innerHTML = "版式:"+"横版" + data.widthMm + "*" + data.heightMm +"mm";
}else if(data.oddEven == 1){
document.getElementById('mediaOddEven').innerHTML = "版式:"+ "横版" + data.widthMm + "*" + data.heightMm +"mm";
}
}
var parentDiv = document.querySelector("#imageShow .mui-slider-group");
var one = document.querySelector("#one");
var indicatorDiv = document.querySelector("#imageShow .mui-slider-indicator");
indicatorDiv.innerHTML = "";
one.style.display = 'none';
if(data.mediaUrl){
var array = data.mediaUrl.split(',');
if(array.length == 1){
one.style.display = 'block';
one.innerHTML = "";
one.appendChild(creatImgShowDiv(array[0]));
parentDiv.innerHTML = "";
mui('.mui-slider').slider().stopped = true;
} else {
var firstImg = array[0];
var lastImg = array[array.length-1];
var length = array.length;
if (!lastImg){
lastImg = array[array.length-2];
length = array.length - 1;
}
parentDiv.innerHTML = "";
parentDiv.appendChild(creatImgShowDiv(firstImg),"mui-slider-item-duplicate");
parentDiv.appendChild(creatImgShowDiv(lastImg),"mui-slider-item-duplicate");
for(var i =0 ;i<length;i++){
parentDiv.insertBefore(creatImgShowDiv(array[i]),parentDiv.children[0]);
var indicator;
if(i==0){
indicator = creatIndicator("mui-active");
} else {
indicator = creatIndicator();
}
indicatorDiv.appendChild(indicator);
}
mui('.mui-slider').slider().stopped = false;
}
}
document.activeElement.blur();
viewApi.go("#mediaInfo");
} else {
mui.toast('未查询到模板数据');
}
},
error:function(xhr,type,errorThrown){
mui.toast('未查询到模板数据');
}
});
}
function creatImgShowDiv(mediaUrl,className){
var showImgDiv = document.createElement('div');
showImgDiv.className = className ? "mui-slider-item "+className:"mui-slider-item";
showImgDiv.innerHTML = `<a href="#">`;
showImgDiv.innerHTML += `<img src="`+ mediaUrl +`" onerror="javascript:this.src='/zinc/images/nopic.png';">`;
showImgDiv.innerHTML += `</a>`;
return showImgDiv;
}
function creatIndicator(className){
var indicatorDiv = document.createElement('div');
indicatorDiv.className = className ? "mui-indicator "+className:"mui-indicator";
return indicatorDiv;
}
//循环初始化所有下拉刷新,上拉加载。
$.each(document.querySelectorAll('.mui-slider-group .mui-scroll'), function(index, pullRefreshEl) {
$(pullRefreshEl).pullToRefresh({
up: {
auto:true,
contentrefresh : "正在加载...",
contentnomore:'没有更多模板了',
callback: function() {
self = this;
queryAllTemplate(self);
}
}
});
});
});
})(mui, document);
</script>
</html>
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>秒绘彩页详情页</title>
<link rel="stylesheet" href="/zinc/mobileWorks/css/mobileWorksPublic.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mobileWorkDetail.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mui.min.css">
<script src="/zinc/mobileWorks/zepto/zepto.min.js"></script>
<script src="/zinc/mobileWorks/js/mui.min.js"></script>
<script src="/zinc/mobileWorks/js/mobileWorkDetail.js"></script>
</head>
<body>
<div class="mui-slider">
<div class="mui-slider-group">
<!--第一个内容区容器-->
<#for path : Arrays.toStringArray(works.getThumbImagePath())>
<div class="mui-slider-item">
<div class="img-box">
<img src="${path}" alt="">
</div>
</div>
</#for>
</div>
<div class="info" style="margin-top: -20px;"><span class="swiper-pagination-current">1</span>/<span class="swiper-pagination-sum">${MobileWorksPresenter.getWorksDetailCount(works.getThumbImagePath())}</span></div>
</div>
<!-- 下方点击复制id -->
<a href="javasrcipt:;" class="btn-copy">复制模板ID<span class="val">${works.getWorksId()}</span></a>
<div class="my-btn-back-works-home">返回首页</div>
</body>
</html>
@@ -0,0 +1,372 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>秒绘彩页库</title>
<link rel="stylesheet" href="/zinc/mobileWorks/css/mobileWorksPublic.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mobileWorksHome.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/mui.min.css">
<link rel="stylesheet" href="/zinc/mobileWorks/css/pagination.css">
<script src="/zinc/mobileWorks/zepto/zepto.min.js"></script>
<script src="/zinc/mobileWorks/js/mui.min.js"></script>
<script src="/zinc/mobileWorks/js/mobileWorksHome.js"></script>
<script src="/zinc/mobileWorks/js/pagination.js"></script>
${Scripts.src(zhiqim.js)}
${Scripts.src("/zinc/js/zhiqim_search_auto_list.js")}
</head>
<body>
<!-- 头部搜索开始 -->
<div class="header">
<a href="javasrcipt:;" class="classify">分类</a>
<div class="serch">
<img src="./zinc/mobileWorks/images/search.png" onclick="doWorksSearchByKeyword();" alt="">
<input type="text" id="searchinput" placeholder="请输入您要查找的内容">
</div>
<a href="javasrcipt:;" class="my-classify" onclick="doWorksSearchByKeyword();">搜索</a>
</div>
<!-- -->
<!-- 头部选择模块开始 -->
<div class="header-cater" style="line-height: 50px;">
<div class="header-cater-rigth" onclick="doWorksSearch('BEST');">精品推荐</div>
<div class="header-cater-left" onclick="doWorksSearch();">更多模板
<!-- 先不展示 -->
<!-- <i class="dom-arrow"></i> -->
</div>
</div>
<!-- ************ -->
<div style="width: 100%; height: 110px;"></div>
<!-- 遮罩层 -->
<div class="mui-backdrop one">
<div class="select">
<a id="heat_label_all" href="javasrcipt:;" class="text-value" onclick="doWorksSearchByLabel('label_all');">全部</a>
<a id="heat_label_best" href="javasrcipt:;" class="text-value" onclick="doWorksSearchByLabel('label_best');">精品</a>
<a id="heat_label_recommend" href="javasrcipt:;" class="text-value" onclick="doWorksSearchByLabel('label_recommend');">推荐</a>
<a id="heat_label_hot" href="javasrcipt:;" class="text-value" onclick="doWorksSearchByLabel('label_hot');">热门</a>
</div>
</div>
<!-- 商品部分开始 -->
<div class="commodity-box" id="commodity-box">
<ul class="box-size" id="list-box">
<ul>
</div>
<div class="ht-page" id="ht-page" style="background-color: white; margin-top: 20px;"></div>
<!-- 分类行业开始 -->
<div class="cates-box">
<!-- 阴影遮罩层 -->
<div class="box-showdom"></div>
<!-- 行业选择区域 -->
<div class="box-white">
<p class="catres">行业</p>
<div class="my-style">
<a id="clazz_ind_all" href="javasrcipt:;" class="catres-value">全部</a>
<#for item : indList>
<a id="clazz_ind_${item.getIndustryId()}" href="javasrcipt:;" class="catres-value">${item.getIndustryName()}</a>
</#for>
</div>
<p class="catres">产品</p>
<div class="my-style">
<a id="clazz_ind_prdColorPage" href="javasrcipt:;" class="catres-value actives">彩页</a>
<a id="clazz_ind_prdCart" href="./mobileTemplateHome.htm" class="catres-value">名片</a>
</div>
<button type="button" class="my-style-btn">确定</button>
</div>
</div>
<!-- 返回顶部 -->
<a href="javasrcipt:;" class="top">
<img src="./zinc/mobileWorks/images/tx.png" alt="">
<p class="top-text">顶部</p>
</a>
<!-- 搜索时候显示的结果 -->
<div class="serch-show">
检索结果
</div>
</body>
<script>
// tabIndex[0: 精品推荐, 1: 更多模板]
var tabIndex;
var _tabType = "BEST";
var _pageTotal = 100;
var _pageSize = 10;
var _pageNo = 1;
Z.onload(function()
{
tabIndex = 0;
doWorksSearch(_tabType, "", _pageNo);
})
// 移动端分页组件部分
function pageChange(i)
{
// console.log("index is :" + i);
doWorksSearch(_tabType, "", i+1);
Pagination.Page($(".ht-page"), i, _pageTotal, _pageSize);
}
Pagination.init($(".ht-page"), pageChange);
// 点击Tab查询作品
function doWorksSearch(type, keyw, ppage)
{
_tabType = type;
// 关键字
var keyword = Z("#searchinput").val();
// 行业
var industryId = "";
var indElem = $(".catres-value.actives");
var indElemId = indElem[0].id;
// 判断页面元素id是否为[全部]的id,否则根据行业id查询作品列表
if(indElemId != "clazz_ind_all")
{
var indIdStrs = indElemId.split("clazz_ind_");
industryId = indIdStrs[1];
}
// 热度标签
var heatLabelId = "";
var heatlbElem = $(".text-value.actives");
var heatlbElemId = heatlbElem[0].id;
if(heatlbElemId != "heat_label_all")
{
var heatlbIdStrs = heatlbElemId.split("heat_");
heatLabelId = heatlbIdStrs[1];
if (heatLabelId == "label_best")
{
heatLabelId = "1";
}
if (heatLabelId == "label_recommend")
{
heatLabelId = "2";
}
if (heatLabelId == "label_hot")
{
heatLabelId = "3";
}
}
if (!type)
{
tabIndex = 1;
}
var ajax = new Z.Ajax();
ajax.setClassName("MobileWorksPresenter");
ajax.setMethodName("doWorksSearch");
if (type == "BEST")
{
ajax.addParam("worksTypeIndex", "BEST");
tabIndex = 0;
}
if (type == "KEYWORD")
{
if (tabIndex == 0)
{
ajax.addParam("worksTypeIndex", "BEST");
}
}
if (type == "INDUSTRY")
{
if (tabIndex == 0)
{
ajax.addParam("worksTypeIndex", "BEST");
}
if (keyw)
{
ajax.addParam("industryId", keyw);
}
}
if (type == "SEARCHLIKE")
{
if (tabIndex == 0)
{
ajax.addParam("worksTypeIndex", "BEST");
}
keyword = keyw;
ajax.addParam("searchLike", "true");
}
if(industryId)
{
ajax.addParam("industryId", industryId);
}
if (type == "LABEL")
{
if (tabIndex == 0)
{
ajax.addParam("worksTypeIndex", "BEST");
}
if (keyw == "label_best")
{
ajax.addParam("labelStatus", "1");
}
if (keyw == "label_recommend")
{
ajax.addParam("labelStatus", "2");
}
if (keyw == "label_hot")
{
ajax.addParam("labelStatus", "3");
}
}
if(heatLabelId)
{
ajax.addParam("labelStatus", heatLabelId);
}
// 分页
if(ppage)
{
ajax.addParam("page", ppage);
}
ajax.addParam("keyword", keyword);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var resObj = Z.J.toObject(this.responseText);
var resList = resObj.desWorksFileModels;
_pageNo = resObj.pageNo - 1;
_pageTotal = resObj.pageTotal;
Pagination.Page($(".ht-page"), _pageNo, _pageTotal, _pageSize);
var html = "";
if (resList.length != 0)
{
Z("#ht-page").removeClass("ht-page-hide");
for (var i = 0; i < resList.length; i++)
{
html +=
`
<li>
<div class="son-box">
<div class="son-box-item">
<a href="./mobileWorkDetail.htm?worksId=` + resList[i].worksId + `"` + `>
`;
// 封面图片部分
if (resList[i].thumbImagePath)
{
var imgPathArr = resList[i].thumbImagePath.split(",");
for (var j = 0; j < imgPathArr.length; j++)
{
if (j == 0)
{
html +=
` <img src="` + imgPathArr[j] + `" alt="">`;
}
}
}
else
{
html +=
` <img src="/zinc/images/nopic.png" alt="">`;
}
// 热度红心部分
html +=
`
</a>
</div>
<div class="son-box-item-bottom">
<p class="idName">ID:` + resList[i].worksId + `</p>
<p class="heat">
<span>热度:</span>
`;
for (var k = 0; k < resList[i].worksHeatLabel + 1; k++)
{
html +=
` <img src="./zinc/mobileWorks/images/degree-red.png" alt="">
`;
}
var grayLength = 5 - (resList[i].worksHeatLabel + 1);
for (var n = 0; n < grayLength; n++)
{
html +=
` <img src="./zinc/mobileWorks/images/degree-gray.png" alt="">
`;
}
// 找相似部分
html +=
` </p>
<div class="son-box-item-footer">
<a href="javascript:;" class="one" style="width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;">`
+ resList[i].industrySubName + resList[i].attributeName + `</a>
<a href="javascript:;" class="two" style="z-index: 996;" onclick="doWorksSearch('SEARCHLIKE', '` + resList[i].industrySubName + `', 1);">找相似</a>
</div>
</div>
<span class="tag" style="display: `;
// 热度标签部分
if (resList[i].worksHeatLabel == 1)
{
html += `none`;
}
html += `;">`;
if (resList[i].worksHeatLabel == 2)
{
html +=
`
<label>精品</label>
`;
}
if (resList[i].worksHeatLabel == 3)
{
html +=
`
<label>推荐</label>
`;
}
if (resList[i].worksHeatLabel == 4)
{
html +=
`
<label>热门</label>
`;
}
html +=
` </span>
</div>
</li>
`;
}
}
else
{
Z("#ht-page").addClass("ht-page-hide");
html = `<div style="height: 562px; width: 100%; margin-top: 150px; text-align: center;">暂时没有作品数据</div>`;
}
// console.dir(html);
Z("#list-box").htmlc(html);
});
ajax.execute();
}
// 根据关键字查询作品
function doWorksSearchByKeyword(keyword)
{
// console.log(keyword);
doWorksSearch("KEYWORD", keyword);
}
// 根据行业id查询作品
function doWorksSearchByIndustryId(industryId)
{
// console.log(industryId);
doWorksSearch("INDUSTRY", industryId);
}
// 根据标签查询作品
function doWorksSearchByLabel(label)
{
// console.log(label);
doWorksSearch("LABEL", label);
}
</script>
</html>
@@ -0,0 +1,53 @@
${request.getValidateScript()}
${zhiqim_manager_history ("noticeList.htm")}
${zhiqim_manager_breadcrumb_parent ("noticeAdd.htm", "公告内容", "增加公告")}
${zhiqim_manager_content()}
<form name="theForm" action="noticeAddInfo.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
<tr class="zi-h40 z-bg-gray z-bold">
<td colspan="2">增加公告</td>
</tr>
<tr>
<td>是否发布:<span class="z-color-999">(请选择)</span></td>
<td>
<span style="margin-left:30px">保存草稿:</span><input name="status" type="radio" data-class="${zmr_color_class}" value="0" style="margin-right:50px"/>
<span>立即发布:</span><input name="status" type="radio" checked data-class="${zmr_color_class}" value="1"/>
</td>
</tr>
<tr>
<td>公告标题:<span class="z-color-999">32位不定长字符)</span></td>
<td><input name="title" class="z-input z-w300 ${zmr_color_class}" maxlength="32"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td colspan="2">
<div class="z-mg-t20">公告内容:<span class="z-color-999">(不能超过50000个字符)</span><span class="z-color-red">&nbsp;*</span></div>
<div class="z-pd-t20 z-pd-b20" style="margin-top:20px">
<textarea id="content" name="content" class="z-textarea ckeditor z-w100p ${zmr_color_class}" rows="15" size="30" maxlength="50000"></textarea>
</div>
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
<!--
<script charset="utz-8" src="/inc/ckeditor/ckeditor.js"></script>
-->
<link rel="stylesheet" type="text/css" href="/zres/zteditor/zteditor.css">
<script type="text/javascript" src="/zres/zteditor/zteditor.js"></script>
<script>
//CKEDITOR.replace("articleContent");
Z.onload(function()
{
var editor = new Z.ZhiqimEditor();
editor.setId("content");
editor.execute();
});
function validateForm2(form)
{
Z("#content").val(CKEDITOR.instances.articleContent.getData());
return validateForm(form);
}
</script>
@@ -0,0 +1,41 @@
${zhiqim_manager_breadcrumb("公告列表")}
${zhiqim_manager_content()}
${sweet_alert_reuse_method()}
<#-- 列表 -->
<table class="z-table z-bordered z-mg-t20 z-pd10 z-bg-white z-lh150p z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="25%">公告标题</td>
<td width="*">公告内容</td>
<td width="15%">发布人</td>
<td width="15%">发布时间</td>
</tr>
<#for item : result.list()>
<tr class="z-h60" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
<td>#{item.getTitle()}</td>
<td><a href="javascript:void(0);" style="color:green"><span onclick="findInfo(${item.getId()})">点击查看</span></a></td>
<td>#{item.getFinshUser()}</td>
<td>#{Sqls.toDateTimeString(item.getFinshTime())}</td>
</tr>
</#for>
${zhiqim_manager_tr_no_record(result, 10, "暂时没有公告")}
</table>
<table class="z-table z-bordered zi-bd-t-none z-bg-white">
<tr class="z-h50">
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlLink(result)}</div></td>
</tr>
</table>
${zhiqim_manager_content_end()}
<script>
function findInfo(id){
var dialog = new Z.Dialog();
dialog.title = "公告详情";
dialog.url = "/noticeInfo.htm?id="+id;
dialog.width = 1000;
dialog.height = 746;
dialog.position=4
dialog.execute();
}
</script>
@@ -0,0 +1,58 @@
<div class=" intro_text" style="margin-left: auto;margin-right: auto;">
<div class="header">
<h1 id="title" style="text-align:center"></h1>
<span id="updateTime" style="text-align:center;display:block;"></span>
</div>
<div class="content">
<p id="p1"></p>
</div>
</div>
<style>
.intro_text {
width: 100%;
}
.intro_text .header {
font-size: 18px;
line-height: 18px;
padding: 1px 20px 1px 20px;
}
.intro_text .content {
font-size: 16px;
padding: 40px 50px;
}
.container{ min-height:743px;
background:#fff;
}
</style>
<script>
Z.onload(function(){
var id='${id}';
var ajax = new Z.Ajax();
ajax.setClassName("DesignerNoticePresenter");
ajax.setMethodName("getNoticeInfo");
ajax.addParam(id);
ajax.setFailureAlert();
ajax.setSuccess(function(res){
var data = eval('('+res+')');
Z("#title").html(data.title);
if(data.finshTime){
Z("#updateTime").html(timestampToTime(data.finshTime));
}
Z("#p1").html(data.content);
});
ajax.execute();
})
function timestampToTime(timestamp) {
var date = new Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
Y = date.getFullYear() + '-';
M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
D = (date.getDate()< 10 ? '0'+(date.getDate()) : date.getDate()) + ' ';
h = (date.getHours()< 10 ? '0'+(date.getHours()) : date.getHours()) + ':';
m = (date.getMinutes() < 10 ? '0'+(date.getMinutes()) : date.getMinutes()) + ':';
s = (date.getSeconds() < 10 ? '0'+(date.getSeconds()) : date.getSeconds());
return Y+M+D+h+m+s;
}
</script>
@@ -0,0 +1,120 @@
${zhiqim_manager_content()}
<#-- 导航 -->
<div data-role="z-tabnav" 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">
<form name="theForm" method="post">
<input name="title" class="z-float-left z-input z-w300 zi-bd-r-none" value="${title}" maxlength="64" placeholder="公告标题">
<select name="status" 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>
<option value="0" <#if status=="0">selected</#if>>草稿</option>
<option value="1" <#if status=="1">selected</#if>>已发布</option>
<option value="2" <#if status=="2">selected</#if>>已下线</option>
</select>
<button class="z-float-left z-button z-w80 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i>查询</button>
</form>
</div>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('noticeAdd.htm');"><i class="z-font z-add"></i>增加公告</button>
</div>
</nav>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="50">选择</td>
<td width="10%">公告状态</td>
<td width="*">文章标题</td>
<td width="10%">创建人</td>
<td width="10%">创建时间</td>
<td width="10%">发布人</td>
<td width="10%">发布时间</td>
<td width="10%">操作</td>
</tr>
${zhiqim_manager_tr_no_record(noticeList, 5, "暂时没有公告信息")}
<#for item :noticeList.list()>
<tr class="z-h40 z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="noticeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getId()}"></td>
<td>
<#if item.getStatus()==0><span style="color:violet">草稿</span></#if>
<#if item.getStatus()==1><span style="color:green">已发布</span></#if>
<#if item.getStatus()==2><span style="color:red">已下线</span></#if>
</td>
<td><a title="点击查看详情" href="javascript:getInfo('${item.getId()}');">${item.getTitle()}</a></td>
<td>${item.getAddUser()}</td>
<td>
${Sqls.toDateTimeString(item.getAddTime())}
</td>
<td>${item.getFinshUser()}</td>
<td>${Sqls.toDateTimeString(item.getFinshTime())}</td>
<td>
<#if item.getStatus()==0>
<button class="z-button ${zmr_color_class}" onclick="doModify('${item.getId()}')"><i class="z-font z-modify"></i>修改</button>
<button class="z-button z-green" onclick="doEnable('${item.getId()}');"><i class="z-font z-open"></i>发布</button>
</#if>
<#if item.getStatus()==1>
<button class="z-button z-red" onclick="doBlockUp('${item.getId()}')"><i class="z-font z-close"></i>下线</button>
</#if>
<!--
<#if item.getStatus()==2>
<button class="z-button z-green" onclick="doEnable('${item.getId()}');"><i class="z-font z-open"></i>发布</button>
</#if>
//-->
</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(noticeList, "noticeList.htm")}
<script>
function doEnable(id){
Z.confirm("您确定要启用该公告吗",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignerNoticePresenter");
ajax.setMethodName("doEnable");
ajax.addParam(id);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.execute();
});
}
function doBlockUp(id){
Z.confirm("您确定要下线该公告吗",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignerNoticePresenter");
ajax.setMethodName("doBlockUp");
ajax.addParam(id);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.execute();
});
}
function doModify(id){
window.location.href="/noticeModify.htm?noticeId="+id;
}
function getInfo(id){
var dialog = new Z.Dialog();
dialog.title = "公告详情";
dialog.url = "/noticeInfo.htm?id="+id;
dialog.width = 1000;
dialog.height = 746;
dialog.execute();
}
</script>
@@ -0,0 +1,48 @@
${request.getValidateScript()}
${zhiqim_manager_history ("noticeList.htm")}
${zhiqim_manager_breadcrumb_parent ("noticeModify.htm", "公告内容", "修改公告")}
${zhiqim_manager_content()}
<form name="theForm" action="noticeUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="noticeId" type="hidden" value="${notice.getId()}">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
<tr class="zi-h40 z-bg-gray z-bold">
<td colspan="2">修改公告</td>
</tr>
<tr>
<td>是否发布:<span class="z-color-999">(请选择)</span></td>
<td>
<span style="margin-left:30px">保存草稿:</span><input name="status" type="radio" data-class="${zmr_color_class}" value="0" style="margin-right:50px"/>
<span>立即发布:</span><input name="status" type="radio" checked data-class="${zmr_color_class}" value="1"/>
</td>
</tr>
<tr>
<td>公告标题:<span class="z-color-999">32位不定长字符)</span></td>
<td><input name="title" class="z-input z-w300 ${zmr_color_class}" maxlength="32" value="${notice.getTitle()}"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td colspan="2">
<div class="z-mg-t20">公告内容:<span class="z-color-999">(不能超过50000个字符)</span><span class="z-color-red">&nbsp;*</span></div>
<div class="z-pd-t20 z-pd-b20" style="margin-top:20px">
<textarea id="content" name="content" class="z-textarea ckeditor z-w100p ${zmr_color_class}" rows="15" size="30" maxlength="50000">${notice.getContent()}</textarea>
</div>
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
<!--
<script charset="utz-8" src="/inc/ckeditor/ckeditor.js"></script>
-->
<link rel="stylesheet" type="text/css" href="/zres/zteditor/zteditor.css">
<script type="text/javascript" src="/zres/zteditor/zteditor.js"></script>
<script>
//CKEDITOR.replace("articleContent");
Z.onload(function()
{
var editor = new Z.ZhiqimEditor();
editor.setId("content");
editor.execute();
});
</script>
@@ -0,0 +1,56 @@
${request.getValidateScript()}
<script>
function doAssignDesigner()
{//指定设计师
var designer = Z("#designer").val();
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doAssignDesigner");
ajax.addParam("designId", ${order.getDesignId()});
ajax.addParam("designer", designer);
ajax.setFailure(function(){Z.failure(ajax.responseText, function(){parent.Z.Dialog.close();});});
ajax.setSuccess(function(s)
{
Z.success("指定成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("assignDesigner", '正在提交', {disabled:true});
ajax.execute();
}
function getAssignDesigner()
{
var industryId = Z("#industryId").val();
var onWork = Z("#onWork").val();
Z.L.href("/assignDesigner.htm?designId=" + ${order.getDesignId()}+"&onWork="+onWork);
}
</script>
<input id="designId" name="designId" value="${order.getDesignId()}" type="hidden">
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="${oddColor}">
<td width="25%">订单号:</td>
<td width="*">${order.getDesignId()}</td>
</tr>
<tr class="z-h40" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${order.getOrderText()}</td>
</tr>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td>设计师:</td>
<td>
<select id="designer" name="designer" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}" data-options="maxHeight:100">
<option value="">全部</option>
<#for item : operatorList>
<option value="${item.getOperatorCode()}" <#if order.getDesigner() == item.getOperatorCode()>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
<input id="onWork" type="checkbox" class="z-checkbox z-mg-l50" data-role="z-checkbox" data-class="z-xlarge z-blue" <#if onWork == 1 > value="1" checked<#else>value="0"</#if> onclick="this.value=this.checked?1:0;getAssignDesigner();">接单中
</td>
</tr>
</table>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="doAssignDer" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="doAssignDesigner();">提交</button>&nbsp;
<button type="button" class="z-button z-large z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>

برخی از فایل ها نشان داده نشدند زیرا تعداد زیادی فایل در این تفاوت تغییر کرده اند نمایش بیشتر