first commit

This commit is contained in:
2025-02-20 14:59:35 +08:00
parent d7be84fac6
commit d4a3bb8ffc
2541 changed files with 336536 additions and 0 deletions
@@ -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>
@@ -0,0 +1,61 @@
${request.getValidateScript()}
<script>
function doAssignDesigner()
{//指定设计师
debugger;
var designer = Z("#designer").val();
var names = "${order.getAfterNames()}";
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doAssignDesigners");
ajax.addParam("designId",names);
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("assignDesigners", '正在提交', {disabled:true});
ajax.execute();
}
function getAssignDesigner()
{
var industryId = Z("#industryId").val();
var onWork = Z("#onWork").val();
var names = "${order.getAfterNames()}";
Z.L.href("/assignDesigners.htm?designId=" + names +"&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.getAfterNames()}</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>
<div class="select-options">
<select id="designer" name="designer" class="z-select z-w200" data-role="z-select-search" >
<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>
</div>
</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>
@@ -0,0 +1,48 @@
${request.getValidateScript()}
<script>
function doAssignOrg()
{//指定组织
var orgId = Z("#orgId").val();
var designer = Z("#designer").val();
var ajax = new Z.Ajax();
ajax.setClassName("DesignerProfilePresenter");
ajax.setMethodName("doUpdateDesignerOrg");
ajax.addParam("designer", designer);
ajax.addParam("orgId", orgId);
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("doAssignOrg", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<input id="designer" name="designer" value="${oper.getOperatorCode()}" type="hidden">
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="${oddColor}">
<td width="25%">设计师:</td>
<td width="*">${oper.getOperatorCode()}</td>
</tr>
<tr class="z-h40" bgcolor="${trColor}">
<td>原组织:</td>
<td>${ZmrOrgDao.getOrgName(request, oper.getOrgId())}</td>
</tr>
<tr class="z-h40" bgcolor="${oddColor}">
<td>新组织:</td>
<td>
<select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}" data-options="maxHeight:100">
<#for item : orgList>
<option value="${item.getOrgId()}">${item.getOrgName()}</option>
</#for>
</select>
<font color=red>&nbsp;*</font></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="doAssignOrg" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="doAssignOrg();">提交</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,52 @@
${request.getValidateScript()}
<script>
function addProgressNote()
{//设计份数修改
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("doChangeStatus");
var selectElement = document.getElementById("orderStatus");
var selectedValue = selectElement.options[selectElement.selectedIndex].value
ajax.addParam("designId", '${designId}');
ajax.addParam("selectedValue", selectedValue);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("修改成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("addProgressNote", '正在提交', {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="*">${order.getDesignId()}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${order.getOrderText()}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td>订单状态:</td>
<td>
<select id="orderStatus" name="orderStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for statusStr : StatusConstants.getOrderStatusList()>
<option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
</#for>
<option value="110" <#if orderStatus == 110>selected</#if>>未完成</option>
<option value="120" <#if orderStatus == 120>selected</#if>>审稿退回</option>
</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="addProgressNote" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="addProgressNote();">提交</button>&nbsp;
<button type="button" class="z-button z-large z-w120" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
@@ -0,0 +1,184 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(414, 110)}
<script>
function doChargeOrderAudit()
{//审核通过
var designId = Z.FM.getChecked("designId");
Z.confirm('确定审核通过?', function()
{
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doChargeOrderAudit");
ajax.addParam(designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("提交成功",function(){parent.location.reload();});
});
ajax.execute();
});
}
function doChargeOrderReject()
{//审核退回
var designId = Z.FM.getChecked("designId");
Z.prompt("审核拒绝原因", "", function(value)
{
if(Z.V.isEmpty(value))
{
Z.alert("请输入拒绝原因");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doChargeOrderReject");
ajax.addParam(designId);
ajax.addParam(value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("提交成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
}, {type: 'textarea'});
}
function doProgressNote()
{//进度备注
var designId = Z.FM.getChecked("designId");
if(Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "订单["+designId+"]进度备注";
dialog.url = "/progressNote.htm?designId="+designId;
dialog.width = 1000;
dialog.height = 630;
dialog.execute();
}
</script>
<#var data="data=copy,userText,CustomFile,TemplateFile,userNotice"/>
<#var addRule=""/>
<#var delRule=""/>
${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('timeoutOrderNear.htm');">快超时订单</li>
<li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li>
<li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li>
<li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</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" action="/chargeOrder.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="30%">订单号:<input class="z-input ${zmr_color_class} z-w160" name="designId" value="${designId}" maxlength="32" 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 width="*">行业分类:<select name="industryId" class="z-select z-w180" 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>
</td>
</tr>
<tr class="z-h40">
<td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></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-t20 z-mg-b3">
<#if ZmrPathRule.check(request, "openWangWang")><button type="button" class="z-button z-mg-l6 z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button></#if>
<#if ZmrPathRule.check(request, "openQQ")><button type="button" class="z-button z-mg-l6 z-mg-r6 ${zmr_color_class}" onclick="Global.openQQ();"><img src="/zinc/images/qq.png">QQ联系</button></#if>
<button type="button" class="z-button ${zmr_color_class} z-mg-r6" onclick="doProgressNote();"><i class="z-font z-add"></i>进度备注</button>
<!--<button class="z-button z-cyan z-mg-r6" onclick="doDesignerAppoint();">指定设计师</button>-->
<button class="z-button z-cyan z-mg-r6" onclick="doChargeOrderAudit();">审核通过</button>
<button class="z-button z-red z-mg-r6" onclick="doChargeOrderReject();">审核拒绝</button>
</div>
<#-- 分页列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" style="width:1780px">
${zhiqim_manager_tr_title(14, "主管审核订单列表")}
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="100">订单号</td>
<td width="100">设计类型</td>
<td width="130">旺旺号</td>
<td width="80">设计师</td>
<td width="95">领取时间</td>
<td width="95">设计时间</td>
<td width="100">订单状态</td>
<td width="100">进度备注</td>
<td width="300">产品</td>
<td width="80">行业</td>
<td width="80">付款金额</td>
<td width="80">对稿QQ</td>
<td width="80">对稿微信</td>
<td width="80">对稿手机</td>
<td width="*">申请原因</td>
</tr>
<#if pageResult.size() == 0>
${zhiqim_manager_no_record(14, "暂不存在主管审核订单")}
</#if>
<#for item : pageResult.list()>
<input type="hidden" id="buyerNick_${item.getDesignId()}" value="${item.getBuyerNick()}">
<input type="hidden" id="userQq_${item.getDesignId()}" value="${item.getUserQq()}">
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input type="radio" name="designId" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick = window.open('attaFileList.htm?designId=${item.getDesignId()}&${data}',"attaFileList")></td>
<td>${item.getDesignId()}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getDesigner()}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignBeginTime())}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td>${item.getOrderText()}</td>
<td>${industryNameMap.get(item.getIndustryId())}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${item.getUserQq()}</td>
<td>${item.getUserWx()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getDesignRequestReason()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "chargeOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${fmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,22 @@
<form name="theForm" action="/designerAppoint.htm" method="post" onSubmit="return validateForm(this);">
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="#f3fdfc">
<td width="35%">原设计师:</td>
<td width="*"></td>
</tr>
<tr class="z-h40" bgcolor="#f3fdfc">
<td>指定新设计师:</td>
<td>
<select name="designer" class="z-select ${zmr_color_class} z-w200">
<#for item : operatorList>
<option value="${item.getOperatorCode()}">${item.getOperatorCode()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<table class="z-table fi-bd fi-bd-t-none z-pd6 z-bg-white">
<tr class="z-h40">
<td colspan="2" align="center"><button type="submit" class="z-button ${zmr_color_class} z-large z-w100">提交</button></td>
</tr>
</table>
</tabale>
@@ -0,0 +1,38 @@
<style>
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<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()}
<div class="z-mg5">
<sapn>${orderCheckModel.getBackReason()}</sapn> <br/>
</div>
<#if Validates.isNotEmpty(orderCheckModel.getBackReasonPicUrl())>
<div class="z-pd5">
<img alt="审核退回图片" src="${orderCheckModel.getBackReasonPicUrl()}" onclick="showLargeImg(this)">
</div>
</#if>
<br><br>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button type="button" class="z-button z-large z-w100" onclick="parent.Z.Dialog.close();">关闭</button></td>
</div>
${zhiqim_manager_content_end()}
</html>
@@ -0,0 +1,147 @@
${Scripts.src("/zinc/js/global_2019010801.js")}
<script>
function doPassCheck()
{//审核通过
var designIds = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
Z.confirm("确认审核通过吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("ComplaintOrderPresenter");
ajax.setMethodName("complaintPass");
ajax.addParam("designIds", designIds);
ajax.setFailureAlert();
ajax.setSuccess(function(){document.theForm.submit(); location.reload(); Z.tips("操作成功"); });
ajax.execute();
})
}
function showBackDialog()
{//审核退回窗口
var designId = Z.FM.getChecked("designId");
Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
{
if (Z.V.isEmpty(value))
{
Z.alert("请输入退回原因");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("ComplaintOrderPresenter");
ajax.setMethodName("complaintBack");
ajax.addParam("designId", designId);
ajax.addParam("desc", value);
ajax.setFailureAlert();
ajax.setSuccess(function(){document.theForm.submit();Z.tips("操作成功");});
ajax.execute();
}, {type: 'textarea'});
}
function docomplaintView(designId)
{
var dialog = new Z.Dialog();
dialog.title = "申诉详情";
dialog.url = "/complaintView.htm?designId=" + designId;
dialog.width = 1000;
dialog.height = 700;
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>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" id="theForm" >
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="25%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>设计师:
<select name="designer" class="z-select z-w160" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : operatorList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td width="25%">旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td width="25%">退款时间:<input id="beginDate" name="beginDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginDate}">&nbsp;-&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>
</tr>
<tr class="z-h40" align="center">
<td colspan="4"><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-t20 z-mg-b3">
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="doPassCheck();"><i class="z-font z-success"></i>审核通过</button>
<button type="button" class="z-button z-red z-mg-r6" onclick="showBackDialog();"><i class="z-font z-return"></i>审核退回</button>
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button>
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openQQ();"><img src="/zinc/images/qq.png">QQ联系</button>
</div>
<#-- 列表 -->
<div class=" z-bd-r">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="100">订单号</td>
<td width="100">所属组织</td>
<td width="90">商户</td>
<td width="140">旺旺号</td>
<td width="100">状态</td>
<td width="*" style="min-width:220px">产品</td>
<td width="80">订单金额</td>
<td width="90">领单时间</td>
<td width="90">退款时间</td>
<td width="100">设计师</td>
<td width="200">申诉详情</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 20, "暂时没有申诉订单")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<input id="userQq_${item.getDesignId()}" type="hidden" value="${item.getUserQq()}">
<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()}"></td>
<td> ${item.getDesignId()} <#if item.isUrgent()><span style="color: red;font-size:16px;font-weight: bold"> 急 </span></#if></td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${item.getShopNick()}</td>
<td>${item.getBuyerNick()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${item.getRefundTime()}</td>
<td>${item.getDesigner()}</td>
<td><button class="z-button z-blue z-w100" onclick="docomplaintView(${item.getDesignId()})">查看</button></td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "complaintOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,88 @@
<style>
body{ text-align:center}
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<script>
function doPassCheck()
{//审核通过
var designIds = ${order.getDesignId()};
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
Z.confirm("确认审核通过吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("ComplaintOrderPresenter");
ajax.setMethodName("complaintPass");
ajax.addParam("designIds", designIds);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.location.reload();
parent.Z.Dialog.close();
});
ajax.execute();
})
}
function showBackDialog()
{//审核退回窗口
var designId = ${order.getDesignId()};
Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
{
if (Z.V.isEmpty(value))
{
Z.alert("请输入退回原因");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("ComplaintOrderPresenter");
ajax.setMethodName("complaintBack");
ajax.addParam("designId", designId);
ajax.addParam("desc", value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.location.reload();
parent.Z.Dialog.close();
});
ajax.execute();
}, {type: 'textarea'});
}
//图片放大
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()}
<div class="z-mg5">
<textarea id="complaintReason" name="complaintReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="200" >${order.getComplaintReason()}</textarea>
</div>
<#for item : attaList>
<div class="z-pd5">
<img alt="截图" src="/${item.getAttaId()}-${item_index}-img" onclick="showLargeImg(this)">
</div>
</#for>
<br><br>
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
<div style="margin-top:10px">
<button class="z-button z-blue z-w100" onclick="doPassCheck()">审核通过</button>
<button class="z-button z-w100 ${zmr_color_class}" id="designOrderDraft" onclick="showBackDialog()">审核退回</button>&nbsp;&nbsp;&nbsp;
</div>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,62 @@
${request.getValidateScript()}
<script>
function doOrderQuestionsAdd(){
var product = Z("#product").val();
var materials = Z("#materials").val();
var sizeLength = Z("#sizeLength").val();
var sizeWidth = Z("#sizeWidth").val();
var faceCount = Z("#faceCount").val();
var styleCount = Z("#styleCount").val();
var others = Z("#others").val();
var ajax = new Z.Ajax();
ajax.setClassName("ConfigQuestionsAction");
ajax.setMethodName("orderQuestionsAdd");
ajax.addParam("product",product);
ajax.addParam("materials",materials);
ajax.addParam("sizeLength",sizeLength);
ajax.addParam("sizeWidth",sizeWidth);
ajax.addParam("faceCount",faceCount);
ajax.addParam("styleCount",styleCount);
ajax.addParam("others",others);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.success("添加成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
}
</script>
<style>
.container{ min-height:200px;}
</style>
<table class="z-table z-bordered z-pd6 z-bg-white" style="height:240px;">
<tr>
<td>
产品类型:<input id="product" type="text" name="product" class="z-input z-w200" value="" placeholder="如:名片">&nbsp;&nbsp;&nbsp;
材质描述:<input id="materials" type="text" name="materials" class="z-input z-w200" value="" placeholder="如:铜版纸覆膜">
</td>
</tr>
<tr>
<td>
尺寸长(mm)<input id="sizeLength" type="text" name="sizeLength" class="z-input z-w180" value="" placeholder="如:90" data-options="type:Integer;">&nbsp;&nbsp;&nbsp;
尺寸宽(mm)<input id="sizeWidth" type="text" name="sizeWidth" class="z-input z-w180" value="" placeholder="如:54" data-options="type:Integer;">
</td>
</tr>
<tr>
<td>
单双面:&nbsp;&nbsp;&nbsp;&nbsp;<input id="faceCount" type="text" name="faceCount" class="z-input z-w200" value="" placeholder="如:双面">&nbsp;&nbsp;&nbsp;
款数:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input id="styleCount" type="text" name="styleCount" class="z-input z-w200" value="" placeholder="如:1款1模">
</td>
</tr>
<tr>
<td>
其他需求:<input id="others" type="text" name="others" class="z-input z-w500" value="" >
</td>
</tr>
</table>
<#-- 操作 -->
<div class=" z-w100p z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button class="z-button z-large z-w120 ${zmr_color_class}" onclick="doOrderQuestionsAdd();" >提交</button>&nbsp;
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
@@ -0,0 +1,38 @@
${request.getValidateScript()}
<script>
function doOrderQuestionsModify(){
var questionsId = ${result.getQuestionsId()};
var designRequirements = document.getElementById("designRequirements").value;
var ajax = new Z.Ajax();
ajax.setClassName("ConfigQuestionsAction");
ajax.setMethodName("orderQuestionsModify");
ajax.addParam("questionsId", questionsId);
ajax.addParam("designRequirements", designRequirements);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.success("修改成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
}
</script>
<style>
.container{ min-height:150px;}
</style>
<form name="theForm" method="post" action="javascript:void(0);" onSubmit="doOrderQuestionsModify(this);">
<table class="z-table z-text-left z-pd6 z-bg-white" >
<tr>
<td>设计要求:</td>
</tr>
<tr>
<td>
<input id="designRequirements" type="text" name="designRequirements" class="z-input z-w600" value="${result.getDesignRequirements()}">&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<#-- 操作 -->
<div class="z-w100p z-text-center z-bg-gray z-pd10" style="position:fixed;bottom:0;left:0">
<button class="z-button z-large z-w120 ${zmr_color_class}" onclick="doOrderQuestionsModify();">提交</button>&nbsp;
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
</form>
@@ -0,0 +1,36 @@
<script>
function contendOrder(){
var ajax = new Z.Ajax();
ajax.setClassName("ContendOrderAction");
ajax.setMethodName("contendOrder");
ajax.addParam("designId",${designId});
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("抢单成功,可以在设计订单开始设计啦~", function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.execute();
}
</script>
<style>
.container{ min-height:455px; 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'>订单编号: ${designId}</div>
<div class='order-p'>产品类型: ${orderText}</div>
<div class="order-info">确认接单,请按规定时效流程进行设计服务!(务必十分钟内联系客户,快速定稿有奖励,超时定稿有处罚)</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="contendOrder" style="border-radius:8px; background:#0089e1;" class="z-button ${zmr_color_class} z-large z-w100" onclick="contendOrder();">确认</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,28 @@
${request.getValidateScript()}
<script>
function addProgressNote()
{//设计份数修改
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("upDesignCopiesr");
var copies = document.getElementById("DesignCopiesr").value;
ajax.addParam("designId", '${designId}');
ajax.addParam("copies", copies);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("设计份数修改成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("addProgressNote", '正在提交', {disabled:true});
ajax.execute();
}
</script>
<div class="z-mg-t10 z-mg-b10 z-mg-l10 ">
输入设计费份数:<input class="z-w100 z-h20 z-input" id="DesignCopiesr" value="${copies}" data-options="type:Integer;" placeholder="份数"></input>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button id="addProgressNote" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="addProgressNote();">提交</button>&nbsp;
<button type="button" class="z-button z-large z-w120" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
@@ -0,0 +1,80 @@
${request.getValidateScript()}
<script>
function agreeRefundSub()
{//同意退款
var responsibility = Z("#responsibility").val();
var designOrderId=${designId};
if(responsibility==0){
Z.confirm("您当前选择的责任人:设计师",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderAgreeRefund");
if(!responsibility){
Z.alert("请选择责任部门")
return;
}
ajax.addParam("responsibility", responsibility);
ajax.addParam("designOrderId", designOrderId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
});
}
if(responsibility==1){
Z.confirm("您当前选择的责任人:用户",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderAgreeRefund");
if(!responsibility){
Z.alert("请选择责任部门")
return;
}
ajax.addParam("responsibility", responsibility);
ajax.addParam("designOrderId", designOrderId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
});
}
if(responsibility==2){
Z.confirm("您当前选择的责任人:售前",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderAgreeRefund");
if(!responsibility){
Z.alert("请选择责任部门")
return;
}
ajax.addParam("responsibility", responsibility);
ajax.addParam("designOrderId", designOrderId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
});
}
}
</script>
<style>
.container{ min-height:300px;}
</style>
<div style="margin:55px 0 60px 50px;font-size:large">
<label class="z-label">退款责任 </label>
<select id="responsibility" name="responsibility" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}" data-options="maxHeight:100">
<option value="1">用户</option>
<option value="0">设计师</option>
<option value="2">售前</option>
</select>
</div>
<span style="color:red;margin-left: 15px;width:495px;display:inline-block">若选择设计师,则退款责任在于设计师,将会统计到设计师退款率中<br/>若选择用户,则退款责任在于用户,将不会纳入到设计师退款率中</br>若选择售前,则退款责任在于售前,将不会统计到设计师退款率中</span>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-pd10" style="bottom:0;left:0;border-top:ridge">
<button id="doAssignDer" class="z-button z-w90 ${zmr_color_class}" type="button" onclick="agreeRefundSub();">确认</button>&nbsp;
<button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
</div>
@@ -0,0 +1,275 @@
${zhiqim_manager_breadcrumb("考试题库")}
${Styles.htmlOverflowHidden()}
${Scripts.src(zhiqim_uploadlarge.js)}
<script>
var upload;
Z.onload(function()
{
upload = new Z.UploadLarge();
initUploader("MaterialFile", '${customPath}', "uploadingFileList", upload);
});
//初始化文件上传组件
function initUploader(fileType, path, dropWrap, upload)
{
upload.elem = "upload_" + fileType;
upload.contextPath = "${context.getContextPath()}";
upload.showResult = false;
upload.fileCopy = true;
upload.multiSelect = true;
upload.dropWrap = dropWrap;
upload.multiDisplayType = 0;
upload.setFileDir(path);
upload.onSelected = function(fileName, fileLength)
{
var questionsId = Z("#questionsId:checked").val();
if (Z("#questionsId:checked").length <= 0)
{
Z.alert("请选择订单");
return false;
}
this.setFileName(questionsId + "-" + fileName);
};
upload.onCompleted = function(fileList, uploadedList)
{
var questionsId = Z("#questionsId:checked").val();
for(var i = 0; i < uploadedList.length; i++)
{//保存附件信息
var fileModle = uploadedList[i]
var ajax = new Z.Ajax();
ajax.setSync();
ajax.setClassName("QuestionsFilePresenter");
ajax.setMethodName("uploadQuestionsFile");
ajax.addParam(questionsId);
ajax.addParam(fileModle.fileId);
ajax.addParam(fileType);
ajax.setFailureAlert();
ajax.setSuccess(function(responseText)
{
var obj = Z.J.toObject(this.responseText);
var items = obj.attaList;
Z("#CustomFileList").html("");//清除历史数据
var html = "";
for (var i=0;i<items.length;i++)
{
var obj = items[i];
html += "<div id='ck_"+obj.attaId+"' onclick='Z(this).find(\"zcover>i.z-checkbox\").click()' class='z-pointer z-pd-b4 z-text-ellipsis' style='width:370px' title='" + obj.fileName +"'>";
html += "<input name='" + fileType +"_str' class='z-checkbox' data-role='z-checkbox' data-class='z-blue' type='checkbox' value ='" + obj.attaId +"'/>"+obj.fileName;
html += "</div>";
}
Z("#CustomFileList").htmlc(html);
});
ajax.execute();
}
Z("#"+upload.dropWrap).html("");//清空上传列表信息
};
upload.execute();
}
//添加订单
function designOrderQuestionsAdd()
{
var designRequirements = Z("#designRequirements").val();
var dialog = new Z.Dialog();
dialog.title = "添加考试订单";
dialog.url = "configQuestionsAdd.htm";
dialog.width = 640;
dialog.height = 300;
dialog.execute();
}
//修改订单
function designOrderQuestionsModify(){
var questionsId = Z.FM.getChecked("questionsId");
if(Z.V.isEmpty(questionsId)){
Z.alert("请选择一个订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "订单["+questionsId+"]编辑";
dialog.url = "/configQuestionsModify.htm?questionsId="+questionsId;
dialog.width = 640;
dialog.height = 200;
dialog.execute();
}
//删除订单
function doDesignOrderQuestionsDelete(){
var questionsId = Z.FM.getChecked("questionsId");
if(Z.V.isEmpty(questionsId)){
Z.alert("请选择一个订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("ConfigQuestionsAction");
ajax.setMethodName("designOrderQuestionsDelete");
ajax.addParam("questionsId", questionsId);
ajax.setFailureAlert();
ajax.setSuccess(function() {
Z.success("删除成功", function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.execute();
}
//显示客户文件列表
function showOrderCustomFileList(questionsId)
{
var ajax = new Z.Ajax();
ajax.setClassName("QuestionsFilePresenter");
ajax.setMethodName("showMaterialFileList");
ajax.addParam("questionsId", questionsId);
ajax.setFailureAlert();
ajax.setSuccess(function(responseText)
{
var obj = Z.J.toObject(responseText);
var attaList = obj.attaList;
var html = "";
for (var i=0;i<attaList.length;i++)
{
var obj = attaList[i];
html += "<div id='ck_"+obj.attaId+"' class='z-pointer z-pd-b4 z-text-ellipsis' onclick='Z(this).find(\"zcover>i.z-checkbox\").click()' style='width:370px' title='" + obj.fileName +"'>";
html += "<input name='MaterialFile_str' class='z-checkbox' data-role='z-checkbox' data-class='z-blue' type='checkbox' value ='" + obj.attaId +"'/>"+obj.fileName;
html += "</div>";
}
Z("#CustomFileList").htmlc(html);
});
ajax.execute();
}
function doDownFile(){
var attaIds = Z.FM.getCheckBoxValue("MaterialFile_str", "");
if (Z.V.isEmpty(attaIds))
{
Z.alert("请选择需要下载的素材");
return ;
}
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;
Z.L.href(prefix+"/downQuestionsFile.htm?attaId=" + attaIds, zCallFrame);
}
//删除文件
function doDeleteFile(fileType)
{
var attaIds = Z.FM.getCheckBoxValue("MaterialFile_str", "");
if (Z.V.isEmpty(attaIds))
{
Z.alert("请选择需要删除的素材");
return ;
}
var ajax = new Z.Ajax();
ajax.setClassName("QuestionsFilePresenter");
ajax.setMethodName("deleteMaterialFile");
ajax.addParam(attaIds);
ajax.setFailure(function(s){Z.alert(s);});
ajax.setSuccess(function(){
var ids = attaIds.split(",");
for (var i=0; i<ids.length; i++)
{
var el = Z("#ck_"+ids[i]);
el.remove();
}
});
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 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" action="designOrderQuestions.htm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td>&nbsp;设计要求:<input name="designRequirements" type="text" class="${zmr_color_class} z-input z-w160" value="${designRequirements}" placeholder="输入关键字"></td>
<td width="800px">
<button class="z-blue z-button" ><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>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<button type="button" class="z-button z-blue" onclick="designOrderQuestionsAdd();"><i class="z-font z-add"></i>添加订单</button>
<button type="button" class="z-button z-blue" onclick="designOrderQuestionsModify();"><i class="z-font z-modify"></i>修改订单</button>
<button type="button" class="z-button z-red" onclick="doDesignOrderQuestionsDelete();"><i class="z-font z-delete"></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:1220px">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="5">选择</td>
<td width="120">设计要求</td>
<td width="40">操作员</td>
<td width="20">最后修改时间</td>
</tr>
<#if pageResult.total() == 0>
<tr valign="middle" class="z-text-center z-bg-white z-h40">
${zhiqim_manager_no_record(9 "暂时没有数据")}
</tr>
</#if>
<#for item : pageResult.list()>
<tr class="z-pointer bgcolor="${zhiqim_manager_tr_bg(item_index)}" ${zhiqim_manager_tr_click_radio()}>
<td><input id="questionsId" name="questionsId" class="z-radio" data-role="z-radio" data-class=" ${zmr_color_class}" value="${item.getQuestionsId()}" type="radio" onclick="Z.E.stop();showOrderCustomFileList('${item.getQuestionsId()}')"></td>
<td>${item.getDesignRequirements()}</td>
<td>${item.getUpdateOperator()}</td>
<td>${Sqls.toDateTimeString(item.getModificationTime())}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "designOrderQuestions.htm")}
</div>
${zhiqim_manager_content_end()}
<#-- 右侧信息&客户素材-->
<div class="z-fixed z-pd10 z-bd z-bg-white z-h100p z-overflow-y-auto z-overflow-x-hidden" style="top:0;right:0;width:450px;z-index:50">
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:20px;">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td>
<input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" onclick="Z.FM.doSelectCheckBox('MaterialFile_str', this.checked);" ><b class="z-pd4">订单素材</b>
<button id="upload_MaterialFile" class="z-button z-mg-l20 ${zmr_color_class} z-mg-r6">添加</button>
<button id="doUpload" class="z-button z-mg-l2 z-cyan z-mg-r2" onclick="upload.upload()">开始上传</button>
<button class="z-button z-orange z-mg-l6" onclick="doDownFile();">下载</button>
<button class="z-button z-red z-mg-l6 z-mg-r6" onclick="doDeleteFile();">删除</button>
</td>
</tr>
<tr class="z-h40" >
<td class="z-pd-l10">
<#--客户素材列表-->
<div class="z-overflow-y-auto" style="width:400px" id="uploadingFileList"></div>
<div class="z-overflow-y-auto z-h120 z-w100p" id="CustomFileList"></div>
</td>
</tr>
</table>
</div>
@@ -0,0 +1,149 @@
${request.getValidateScript()}
${Styles.src(context.getRootPath("/zinc/layui/css/layui.css"))}
${Scripts.src(context.getRootPath("/zinc/layui/layui.js"))}
<style>
.container{ min-height:646px;}
.divBox{
display:inline-block;
font-size: 13px;
width: 215px;
padding: 12px;
margin-left:20px
}
.ico{
width: 21px;
height: 21px;
border-radius: 50%;
border: 2px solid red;
display:inline;
font-size:15px;
}
}
</style>
<script>
layui.use(['jquery','layer'], function () {
var layer = layui.layer;
$ = layui.$;
// 图片预览
$('body').on('click',"#refundImg",function (item) {
var imgUrl = item.currentTarget.currentSrc;
var imgW = item.currentTarget.naturalWidth;
var imgH = item.currentTarget.naturalHeight;
var showModel =
'<div id="showbox">' +
'<img width="720px" height="400px" src="' + imgUrl + '" />' +
'</div>';
layer.open({
type: 1,
title: false,
closeBtn: 1,
area: ['720px', '400px'],
content: showModel,
success: function (layero, index) {
}
});
});
})
</script>
<div style="color:red;border-bottom:ridge;font-size:20px;padding: 10px;">
&nbsp&nbsp&nbsp&nbsp当前订单状态:请求退款
</div>
<div>
<div class="divBox">
<label>订单号:</label>
<span class="order_info">${order.getDesignId()}</span>
</div>
<div class="divBox">
<label>商户:</label>
<span>${Global.get(DesignMerchantCache.class).getName(order.getMerchantId())}</span>
</div>
<div class="divBox">
<label>组织:</label>
<span>${Global.get(OrgCache.class).name(order.getOrgId())}</span>
</div>
</div>
<div>
<div class="divBox">
<label>稿件类型:</label>
<#if order.getDraftType()==0>
<span>标准自来稿</span>
</#if>
<#if order.getDraftType()==1>
<span>改稿自来稿</span>
</#if>
<#if order.getDraftType()==2>
<span>普通设计</span>
</#if>
<#if order.getDraftType()==3>
<span>资深设计</span>
</#if>
<#if order.getDraftType()==4>
<span>现货</span>
</#if>
</div>
<div class="divBox">
<label>旺旺号:</label>
<span>${order.getBuyerNick()}</span>
</div>
<div class="divBox">
<label>设计师:</label>
<span>${order.getDesigner()}</span>
</div>
</div>
<div>
<div class="divBox">
<label>对稿微信:</label>
<span >${order.getUserWx()}</span>
</div>
<div class="divBox">
<label>店铺:</label>
<span>${order.getShopNick()}</span>
</div>
<div class="divBox">
<label>付款金额:</label>
<span>${Amounts.toYuanMustRadix(order.getAmount())}</span>
</div>
</div>
<div>
<div class="divBox">
<label>对稿手机:</label>
<span >${order.getUserMobile()}</span>
</div>
</div>
<div>
<div class="divBox" style="width:100%">
<label>产品:</label>
<span class="order_info">${order.getOrderText()}</span>
</div>
</div>
<div>
<div class="divBox">
<label>收货人:</label>
<span class="order_info">${order.getReceiverName()}</span>
</div>
<div class="divBox">
<label>录单员:</label>
<span class="order_info">${order.getCreater()}</span>
</div>
</div>
<div>
<div class="divBox" style="width:100%">
<label>收货地址:</label>
<span style="white-space:nowrap">${order.getReceiverAddress()}</span>
</div>
</div>
<div style="border:1px solid;width:600px;height:260px;margin-left:30px;border:ridge">
<label style="display:inline-block;margin-bottom:10px;margin-top:10px">退款原因:</label>
<span>${Global.get(DesignOrderRefundReasonCache.class).getName(order.getRefundReason())}</span></br>
<img width="598px" height="220px" id="refundImg" src="data:image/jpeg;base64,${base64Img}" style='cursor:pointer;'/>
</div>
<#-- 操作 -->
<div style="margin:55px 0 60px 50px;font-size:large">
<div class="z-absolute z-w100p z-h60 z-text-center z-pd10" style="bottom:0;left:0;border-top:ridge">
<button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
</div>
@@ -0,0 +1,34 @@
${request.getValidateScript()}
<script>
function reasonModify()
{//修改退款问题配置
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderRefundReasonModify");
var reason = document.getElementById("title").value;
if(!reason){
Z.alert("标题不能为空")
return;
}
var id='${id}';
ajax.addParam(reason);
ajax.addParam(id);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
}
</script>
<style>
.container{ min-height:298px;}
</style>
<div style="margin:55px 0 0 50px;font-size:large">
<label class="">标题 </label>
<input id="title" class="z-input" style="width:300px" value="${designOrderRefundReason.getTitle()}"/>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-pd10" style="bottom:0;left:0;border-top:ridge">
<button id="doAssignDer" class="z-button z-w90 ${zmr_color_class}" type="button" onclick="reasonModify();">确认</button>&nbsp;
<button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
</div>
@@ -0,0 +1,86 @@
<#def designatedPath="/designOrderRefundReason.htm"/>
${zhiqim_manager_breadcrumb("设计师退款问题类型配置")}
${zhiqim_manager_content()}
<script>
function add()
{
var dialog = new Z.Dialog();
dialog.title = "退款原因配置";
dialog.url = "/designOrderRefundReasonAdd.htm";
dialog.width = 500;
dialog.height = 300;
dialog.execute();
}
function deleteOne()
{
var id = Z.FM.getChecked("id");
Z.confirm("您确定要删除该记录吗?", function()
{
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderRefundReasonDelete");
ajax.addParam(id);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("删除成功",function(){parent.location.reload();});
});
ajax.execute();
});
}
function update()
{
var id = Z.FM.getChecked("id");
var dialog = new Z.Dialog();
dialog.title = "修改退款原因";
dialog.url = "/designOrderRefundReasonModify.htm?id="+id;
dialog.width = 500;
dialog.height = 300;
dialog.execute();
}
</script>
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
<#if ZmrPathRule.check(request, "/businessParam.htm")><li onclick="Z.L.href('/businessParam.htm');">公共参数</li></#if>
<#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
<#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">审稿退回原因</li></#if>
<li class="z-active">退款原因类型配置</li>
<li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
</ul>
</nav>
</div>
<table class="z-table z-bordered z-bg-white z-pd6">
<tr>
<td class="z-h40 z-text-left z-bold z-px18 z-bg-white" colspan="6">
<div class="" style="margin-right:80px;float:right">
<button class="z-button z-blue" style="padding:7px 30px 7px 30px" onclick="add();">新增</button>
<button class="z-button z-blue" style="padding:7px 30px 7px 30px;margin:auto 15px auto 15px" onclick="update();">修改</button>
<button class="z-button z-red" style="padding:7px 30px 7px 30px" onclick="deleteOne();">删除</button>
</div>
</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="10%">选择</td>
<td width ="70%" >标题</td>
<td width ="20%">最后一次修改时间</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="id" id="id" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getId()}"></td>
<td>${item.getTitle()}</td>
<td>${Sqls.toDateTimeString(item.getUpdateTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/designOrderRefundReason.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,33 @@
${request.getValidateScript()}
<script>
function reasonAdd()
{//添加退款问题配置
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderRefundReasonAdd");
var reason = document.getElementById("title").value;
if(!reason){
Z.alert("标题不能为空")
return;
}
ajax.addParam("reason", reason);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
}
</script>
<style>
.container{ min-height:298px;}
</style>
<div style="margin:55px 0 0 50px;font-size:large">
<label class="">标题 </label>
<input id="title" class="z-input" style="width:300px"/>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-pd10" style="bottom:0;left:0;border-top:ridge">
<button id="doAssignDer" class="z-button z-w90 ${zmr_color_class}" type="button" onclick="reasonAdd();">确认</button>&nbsp;
<button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
</div>
@@ -0,0 +1,124 @@
${request.getValidateScript()}
<script>
window.onbeforeunload = onbeforeunload_handler;
window.onunload = onload;
function onbeforeunload_handler(){
parent.location.reload();
parent.Z.Dialog.close();
}
function onload(){
parent.location.reload();
parent.Z.Dialog.close();
}
function doDesignCopiesr(designId,designCopies)
{//设计份数修改
var dialog = new Z.Dialog();
dialog.title = "订单["+designId+"]设计份数修改";
dialog.url = "/designCopiesr.htm?designId="+designId+"&copies="+designCopies;
dialog.width = 310;
dialog.height = 150;
dialog.execute();
}
//重置佣金
function doDesignPriceCalculate(designId){
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("designPriceCalculate");
ajax.addParam(designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
ajax.execute();
}
//修改单价
function doEditDesignPrice(designId,designPrice,orderText) {
var dialog = new Z.Dialog();
dialog.title = "修改订单佣金";
dialog.url = "/doEditDesignPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
//修改加急费
function doEditUrgentPrice(designId,urgentPrice,orderText) {
var dialog = new Z.Dialog();
dialog.title = "修改订单加急费";
dialog.url = "/doEditUrgentPrice.htm?designId=" + designId +"&urgentPrice="+urgentPrice+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
//修改稿件类型
function doEditDraftType(designId,orderText,draftType,status){
if(draftType ==0 ){
Z.alert("标准自来稿件不支持修改");
return;
}
if(status >= 55){
Z.alert("已定稿订单不支持修改稿件类型");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改订单稿件类型";
dialog.url = "/doEditDraftType.htm?designId=" + designId +"&draftType="+draftType+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
</script>
<style>
</style>
<#-- 操作 -->
<div>
<table class="z-table z-bordered z-pd6 z-bg-white" >
<tr>
<td style="padding:30px 20px 20px 40px">
<button id="doDesignCopiesr" type="button" class="z-button z-blue" onclick="doDesignCopiesr('${order.getDesignId()}','${order.getDesignCopies()}');"><i class="z-font z-modify"></i>设计份数修改</button>
</td>
<td>
<span>(修改指定订单设计份数)</span>
</td>
</tr>
<tr>
<td style="padding:20px 20px 20px 40px">
<button id="doDesignPriceCalculate" type="button" class="z-button z-yellow" onclick="doDesignPriceCalculate(${order.getDesignId()});"><i class="z-font z-refresh"></i>重置佣金</button>
</td>
<td>
<span>(自动修改指定订单对应稿件类型所匹配的设计佣金)</span>
</td>
</tr>
<tr>
<td style="padding:20px 20px 20px 40px">
<button id="doEditDesignPrice" type="button" class="z-button z-yellow" onclick="doEditDesignPrice('${order.getDesignId()}','${order.getDesignPrice()}','${order.getOrderText()}');"><i class="z-font z-modify"></i>修改佣金</button>
</td>
<td>
<span>(修改指定订单的设计佣金)</span>
</td>
</tr>
<tr>
<td style="padding:20px 20px 20px 40px">
<button id="doEditUrgentPrice" type="button" class="z-button z-yellow" onclick="doEditUrgentPrice('${order.getDesignId()}','${order.getUrgentPrice()}','${order.getOrderText()}');"><i class="z-font z-modify"></i>修改加急费</button>
</td>
<td>
<span>(修改指定订单的加急费用,未分拣订单设置加急费有30分钟加急时效,时效内未领取自动取消加急)</span>
</td>
</tr>
<tr>
<td style="padding:20px 20px 20px 40px">
<button id="doEditDraftType" type="button" class="z-button z-yellow" onclick="doEditDraftType('${order.getDesignId()}','${order.getOrderText()}','${order.getDraftType()}','${order.getStatus()}');"><i class="z-font z-modify"></i>修改稿件类型</button>
</td>
<td>
<span>(修改指定订单的稿件类型,会自动重新计算稿件类型所对应设计佣金,暂只支持普通设计和资深设计)</span>
</td>
</tr>
</table>
</div>
@@ -0,0 +1,44 @@
${request.getValidateScript()}
<script>
function editDesignPrice()
{
var designId = ${designId};
var designPrice = document.getElementById("designPrice").value;
var ajax = new Z.Ajax();
ajax.setClassName("ProductConvertAction");
ajax.setMethodName("editDesignPrice");
ajax.addParam(designId);
ajax.addParam(designPrice);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("editDesignPrice", '正在提交', {disabled:true});
ajax.execute();
window.top.location.reload();
}
</script>
<table class="z-table z-bordered z-pd6">
<tr class="z-h50" bgcolor="${oddColor}">
<td width="25%">订单号:</td>
<td width="*">${designId}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${orderText}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td>设计佣金:</td>
<td>
<input id="designPrice" name="designPrice" <#if designPrice lt 0>value="${Amounts.toYuanMustRadix(designPrice)}"<#else>value="${designPrice}"</#if> step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
</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="editDesignPrice" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editDesignPrice();">提交</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,62 @@
${request.getValidateScript()}
<script>
function editDesignPrice(designId)
{
var check = document.getElementById('push_file');
Z.confirm("确认审核通过吗?", function(designIds){
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("doPassCheck");
ajax.addParam("designIds", designId);
ajax.addParam("pushFile",check.checked);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){document.theFrom.submit()});
window.top.location.reload();
});
ajax.execute();
})
}
function doEditDesignPrice(designId,designPrice,orderText) {
var dialog = new Z.Dialog();
dialog.title = "修改订单佣金";
dialog.url = "/doEditDesignPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
</script>
<table class="z-table z-bordered z-pd6">
<tr class="z-h50" bgcolor="${oddColor}">
<td width="25%">订单号:</td>
<td width="*">${designId}</td>
</tr>
<!--<tr class="z-h60" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${orderText}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td>设计佣金:</td>
<td>
<#if designPrice lt 0>${Amounts.toYuanMustRadix(designPrice)}<#else>${designPrice}</#if>
</td>
</tr>-->
<tr class="z-h70">
<td>文件推送:</td>
<td>
<input type="checkbox" id="push_file">
</td>
</tr>
</table>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="left:0">
<button id="editDesignPrice" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editDesignPrice('${designId}');">审核通过</button>&nbsp;
<!--<button type="button" class="z-button z-large z-mg-l10" onclick="doEditDesignPrice('${designId}','${designPrice}','${orderText}');">修改佣金</button>-->
</div>
@@ -0,0 +1,48 @@
${request.getValidateScript()}
<script>
function editDraftType()
{
var designId = ${designId};
var draftType = document.getElementById("draftType").value;
if(draftType == ${draftType}){
Z.alert("修改稿件类型与原稿件类型相同");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("ProductConvertAction");
ajax.setMethodName("editDraftType");
ajax.addParam(designId);
ajax.addParam(draftType);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("修改成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("editDraftType", '正在提交', {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="*">${designId}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${orderText}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td>稿件类型:</td>
<td>
<select id="draftType" name="draftType" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="1" <#if draftType == 1>selected</#if>>改稿设计</option>
<option value="2" <#if draftType == 2>selected</#if>>普通设计</option>
<option value="3" <#if draftType == 3>selected</#if>>资深设计</option>
</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="editDraftType" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editDraftType();">提交</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,51 @@
${request.getValidateScript()}
<script>
function editDraftType()
{
debugger;
var designId = ${designId};
var orderStatus = document.getElementById("orderStatus").value;
var ajax = new Z.Ajax();
ajax.setClassName("ProductConvertAction");
ajax.setMethodName("designStatus");
ajax.addParam(designId);
ajax.addParam(orderStatus);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("修改成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("editDraftType", '正在提交', {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="*">${designId}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${orderText}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td>订单状态:</td>
<td>
<select id="orderStatus" name="orderStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for statusStr : StatusConstants.getOrderStatusList()>
<option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
</#for>
<option value="110" <#if orderStatus == 110>selected</#if>>未完成</option>
<option value="120" <#if orderStatus == 120>selected</#if>>审稿退回</option>
</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="editDraftType" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editDraftType();">提交</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,40 @@
${request.getValidateScript()}
<script>
function editUrgentPrice()
{
var designId = ${designId};
var designPrice = document.getElementById("urgentPrice").value;
var ajax = new Z.Ajax();
ajax.setClassName("ProductConvertAction");
ajax.setMethodName("editUrgentPrice");
ajax.addParam(designId);
ajax.addParam(designPrice);
ajax.setFailureAlert();
ajax.setSuccess(function(result){
Z.success(result,function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("editUrgentPrice", '正在提交', {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="*">${designId}</td>
</tr>
<tr class="z-h60" bgcolor="${trColor}">
<td>产品描述:</td>
<td>${orderText}</td>
</tr>
<tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
<td>加急费:</td>
<td>
<input step="1" min="0" id="urgentPrice" name="urgentPrice" <#if urgentPrice lt 0>value="${Amounts.toYuanMustRadix(urgentPrice)}"<#else>value="${urgentPrice}"</#if> onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
</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="editUrgentPrice" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editUrgentPrice();">提交</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,50 @@
${request.getValidateScript()}
<script>
function doModifyIndustry()
{//修改行业
var designId = Z("#designId").val();
var industryId = Z("#industryId").val();
var flag = ${flag};
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doModifyIndustry");
ajax.addParam("designId", designId);
ajax.addParam("industryId", industryId);
ajax.setFailureAlert();
ajax.setSuccess(function(s)
{
Z.success("修改成功", function(){if(flag == 1){window.parent.doReFreshIndustryInfo();}parent.Z.Dialog.close();});
});
ajax.setLoading("modifyIndustry", '正在提交', {disabled:true});
ajax.execute();
}
</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="${oddColor}">
<td>行业:</td>
<td>
<select id="industryId" name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" data-options="maxHeight:140">
<#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
<option value="${item.getIndustryId()}" <#if Validates.isEqual(item.getIndustryId(), order.getIndustryId())>selected</#if>>${item.getIndustryName()}</option>
</#for>
</select>
<font color=red>&nbsp;*</font></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="modifyIndustry" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="doModifyIndustry();">提交</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,273 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 70)}
<script>
function copyText()
{
var designId = Z.FM.getChecked("designId");
var ajax = new Z.Ajax();
ajax.setSync();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doPortalUrlCopy");
ajax.addParam(designId);
ajax.execute();
if(ajax.responseStatus != 0)
{
Z.alert(ajax.responseText)
return;
}
Z.copy(ajax.responseText);
Z.tips("复制成功");
}
function doDesignOrderApply()
{//申请指派
var designId = Z.FM.getChecked("designId");
if (!doQueryStatus(designId, "SUPPORT"))
return;
var dialog = new Z.Dialog();
dialog.title = "申请主管支援";
dialog.url = "/designOrderApply.htm?designId=" + designId;
dialog.width = 600;
dialog.height = 300;
dialog.execute();
}
function doDesignOrderStop()
{//暂停设计
var designId = Z.FM.getChecked("designId");
if (!doQueryStatus(designId, "PAUSE"))
return;
var dialog = new Z.Dialog();
dialog.title = "暂停设计";
dialog.url = "/designOrderStop.htm?designId=" + designId;
dialog.width = 600;
dialog.height = 300;
dialog.execute();
}
function doDesignOrderStart()
{//开启设计
var designId = Z.FM.getChecked("designId");
if(!doQueryStatus(designId, "RESUME"))
return;
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doDesignOrderStart");
ajax.addParam(designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("开启成功",function(){parent.location.reload();});
});
ajax.execute();
}
function doProgressNote()
{//进度备注
var designId = Z.FM.getChecked("designId");
if(Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "订单["+designId+"]进度备注";
dialog.url = "/progressNote.htm?designId="+designId;
dialog.width = 1000;
dialog.height = 630;
dialog.execute();
}
function doDesignOrderRefund()
{//请求退款
var designId = Z.FM.getChecked("designId");
if(!doQueryStatus(designId, "REFUND"))
return;
Z.confirm("确定退款订单[" + designId + "]", function()
{
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doDesignOrderRefund");
ajax.addParam(designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("申请成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
});
}
function doDesignOrderDraft()
{//完成初稿
var designId = Z.FM.getChecked("designId");
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doQueryStatus");
ajax.addParam(designId);
ajax.addParam("SUMBIT");
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var dialog = new Z.Dialog();
dialog.title = "完成初稿截图(截屏后粘贴(CTRL+V)到输入框中)";
dialog.url = "/designOrderDraft.htm?designId=" + designId;
dialog.width = 600;
dialog.height = 400;
dialog.execute();
})
ajax.execute();
}
function doQueryStatus(designId, oprType)
{//查询订单状态
var ajax = new Z.Ajax();
ajax.setSync();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doQueryStatus");
ajax.addParam(designId);
ajax.addParam(oprType);
ajax.execute();
if(ajax.responseStatus != 0)
{
Z.alert(ajax.responseText);
return false;
}
return true;
}
</script>
<#var data="data=copy,userText,CustomFile,TemplateFile,userNotice"/>
<#var addRule=""/>
<#var delRule=""/>
${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('designOrderDay.htm');">我的订单统计</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" action="/designOrder.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="30%">订单号:<input class="z-input ${zmr_color_class} z-w160" name="designId" value="${designId}" maxlength="32" 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 width="*">行业分类:<select name="industryId" class="z-select z-w180" 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>
</td>
</tr>
<tr class="z-h40">
<td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
<td>淘宝单号:<input class="z-input ${zmr_color_class} z-w180" name="tid" value="${tid}" maxlength="22" placeholder="淘宝单号"/></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-t20 z-mg-b3">
<#if ZmrPathRule.check(request, "openWangWang")><button class="z-button z-mg-r3 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button></#if>
<#if ZmrPathRule.check(request, "openQQ")><button class="z-button z-mg-r3 ${zmr_color_class}" onclick="Global.openQQ();"><img src="/zinc/images/qq.png">QQ联系</button></#if>
<button class="z-button z-blue z-mg-r3" onclick="doDesignOrderRefund();"><i class="z-ico z-modify"></i>申请退款</button>
<button class="z-button z-blue z-mg-r3" onclick="doDesignOrderApply();">主管支援</button>
<button class="z-button z-blue z-mg-r3" id="copy" type="button" onclick="copyText()"><i class="z-ico z-share"></i>自助地址</button>
<button class="z-button z-blue z-mg-r3" onclick="doProgressNote();"><i class="z-ico z-setting"></i>进度备注</button>
<button class="z-button z-red z-mg-r3" onclick="doDesignOrderStop();">暂停设计</button>
<button class="z-button z-orange z-mg-r3" onclick="doDesignOrderStart();">开启设计</button>
<button class="z-button z-cyan z-mg-r3" onclick="doDesignOrderDraft();">完成初稿</button>
</div>
<#-- 分页列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" style="width:2480px">
${zhiqim_manager_tr_title(18, "设计订单列表")}
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="100">订单号</td>
<td width="100">设计类型</td>
<td width="100">店铺</td>
<td width="130">旺旺号</td>
<td width="80">设计师</td>
<td width="100">领取时间</td>
<td width="100">设计时间</td>
<td width="100">订单状态</td>
<td width="300">产品</td>
<td width="80">行业</td>
<td width="80">付款金额</td>
<td width="100">进度备注</td>
<td width="80">对稿QQ</td>
<td width="80">对稿微信</td>
<td width="80">对稿手机</td>
<td width="180">暂停设计原因</td>
<td width="180">主管退回原因</td>
<td width="180">审核退回原因</td>
</tr>
<#if pageResult.size() == 0>
${zhiqim_manager_no_record(18, "暂不存在设计订单信息")}
</#if>
<#for item : pageResult.list()>
<input type="hidden" id="buyerNick_${item.getDesignId()}" value="${item.getBuyerNick()}">
<input type="hidden" id="userQq_${item.getDesignId()}" value="${item.getUserQq()}">
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
<td><input type="radio" name="designId" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick="Z.L.href('attaFileList.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}', attaFileList);"></td>
<td>${item.getDesignId()}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${Global.get(ShopCache.class).getName(item.getShopNick())}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getDesigner()}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignBeginTime())}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getOrderText()}</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td>${item.getUserQq()}</td>
<td>${item.getUserWx()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getDesignPauseReason()}</td>
<td>${item.getDesignRejectReason()}</td>
<td>${item.getCheckRejectReason()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "designOrder.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${fmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,115 @@
<script>
function doQueryDesigner(designer)
{
Z("#designer").val(designer);
Z.loading(document);
Z("#theForm")[0].submit();
}
</script>
<#def designatedPath="/timeoutOrderNear.htm"/>
${zhiqim_manager_breadcrumb("时效绩效")}
${zhiqim_manager_content()}
<#-- 页面数据定义 -->
<#var typeMap = DesignTypeDao.mapAll()/>
<#var industryMap = Global.get(DesignIndustryCache.class).mapAll()/>
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/personalPerformanceStat.htm")><li onclick="Z.L.href('personalPerformanceStat.htm');">个人绩效统计</li></#if>
<#if ZmrPathRule.check(request, "/designerPerformanceStat.htm")><li onclick="Z.L.href('designerPerformanceStat.htm');">设计师绩效统计</li></#if>
<li class="z-active">时效绩效</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" id="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<input type="hidden" name="designer" id="designer" value="">
<tr class="z-h40">
<td width="300">定稿时间:
<input name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
<input name="endDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td width="290">产品类型:
<select name="prdTypeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : typeMap.values()>
<option value="${item.getTypeId()}" <#if prdTypeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*"><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>
<tr>
</tr>
</table>
</form>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-pd6 z-bd-none">
<tr>
<td width="300" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="60">序号</td>
<td width="100">设计师</td>
<td width="70">订单数</td>
<td width="70">奖励金额</td>
</tr>
<#for item : map.keySet()>
<tr class="z-h40" <#if item == designer>bgcolor="#f3fdfc"</#if> onclick="doQueryDesigner('${item}');">
<td>${item_index +1}</td>
<td>${item}</td>
<td>${map.get(item).getDesignOrderSum()}</td>
<td>${Maths.division(map.get(item).getRewardAmountSum(),100,2)}</td>
</tr>
</#for>
<#if map.values().isEmpty()>
${zhiqim_manager_no_record(4, "暂时没有信息")}
</#if>
</table>
</td>
<td width="*" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单ID</td>
<td width="*">订单信息</td>
<td width="100">旺旺名</td>
<td width="150">录单时间</td>
<td width="150">领单时间</td>
<td width="150">初稿时间</td>
<td width="150">定稿时间</td>
<td width="150">进度备注</td>
<td width="100">设计师</td>
</tr>
<#for item : pageResult.list()>
<#var effectiveTime = 24*60/>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()}>
<td>${item.getDesignId()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getBuyerNick()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td>${item.getDesigner()}</td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(9, "暂时没有时效绩效信息")}
</#if>
</table>
${zhiqim_manager_paging(pageResult, "notTimeoutCompleteOrderHistory.htm")}
</td>
</tr>
</table>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,157 @@
<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(designer){
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("designSroce");
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();
}
//指定组织
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('orderList.htm');">订单列表</li>
<li onclick="Z.L.href('orderLogList.htm');">订单日志</li>
<li onclick="Z.L.href('orderRefundList.htm');">退款订单列表</li>
<li class="z-active">待办列表</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="orderBacklog" action="/orderBacklog.htm" method="post" id="orderBacklog">
<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>
商户名称:<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>
<td>设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
</td>
</tr>
<tr>
<td>
订单状态:<select name="orderStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="1" >暂停设计</option>
<option value="2" >初稿/定稿未完成</option>
<option value="3" >已处理</option>
<option value="4" >超时订单</option>
</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>
<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>
<#-- 操作功能 -->
<#-- 列表-->
<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 class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="25%">待办状态</td>
<td width="*">待办内容</td>
<td width="15%">通知人</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>
<#if item.getMessageType() == 1>待办事项</#if>
<#if item.getMessageType() == 2>已办事项</#if>
<#if item.getMessageType() == 3>已办事项</#if>
</td>
<td>#{item.getMessageBody()}</td>
<td>#{item.getConsumerCode()}</td>
<td>#{Sqls.toDateTimeString(item.getCreateTime())}</td>
<td align="center">
<span class="z-button z-blue" onclick="exportData('${item.getConsumerCode()}')">增加积分</span>
</td>
</tr>
</#for>
${zhiqim_manager_tr_no_record(result, 10, "暂时没有公告")}
</table>
${zhiqim_manager_paging(pageResult, "/orderBacklog.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,190 @@
${Scripts.src("/zinc/js/global_2019010801.js")}
<script>
//快捷联系人
function quickContact()
{
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("quickContact");
ajax.addParam("designId", designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var obj = Z.J.toObject(this.responseText);
console.log(obj);
var resultHtml = obj.resultHtml;
if (!Z("#quickContact_dialog")[0])
{
var dialog = new Z.Dialog();
dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
dialog.text = '<div id="quickContact_dialog"></div>';
dialog.width = 1100;
dialog.height = 520;
dialog.shadow = false;
dialog.execute();
dialog.$background.remove();
console.log(dialog)
}
Z("#quickContact_dialog").htmlc(resultHtml);
Z("#quickContact_title").htmlc(Z("#title_content").html());
});
ajax.setLoading("quickContactBtn", '<i class="z-font z-add"></i>正在查询', {disabled:true});
ajax.execute();
}
//快捷联系 发送短信
function doContactMobile(mobile, defaultValue, orderId)
{
if (Z.V.isEmptyBlank(mobile))
{
Z.alert("无效手机号");
return;
}
if (Z.V.isEmptyBlank(defaultValue))
{
defaultValue = '';
}
Z.prompt('发送短信至:'+mobile , defaultValue,function(value)
{
if (Z.V.isEmptyBlank(value))
{
Z.alert("短信内容不能为空", function()
{
doContactMobile(mobile, defaultValue);
});
}
else
{
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("doContactMobile");
ajax.addParam("orderId", orderId);
ajax.addParam("mobile", mobile);
ajax.addParam("notes", value);
ajax.setFailureAlert();
ajax.setSuccess(function(){Z.tips("发送成功");});
ajax.execute();
}
},{type:'textarea'});
}
//查看历史退回
function doHistoryBack(){
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "订单历史退回详情";
dialog.url = "/historyBackDetails.htm?designId=" + designId;
dialog.width = 1350;
dialog.height = 400;
dialog.execute();
}
//审核详情查看
function doCheckDetail()
{
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "审核详情";
dialog.url = "/checkBackDetail.htm?designId=" + designId;
dialog.width = 800;
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>
<#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckWait.htm');">待审订单</li></#if>
<#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckFinish.htm');">已审订单</li></#if>
<li class="z-active">退回列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/orderCheckBackList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td>订&nbsp;单&nbsp;号&nbsp;<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
<td>设&nbsp;计&nbsp;师:
<select name="designer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : operatorList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</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>
<tr>
<tr class="z-h40" align="center">
<td colspan="4"><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 class="z-button z-blue z-mg-r10" onclick="doHistoryBack();"><i class="z-font z-query"></i>查看历史退回</button>
<button class="z-button z-blue z-mg-r10" onclick="doCheckDetail();"><i class="z-font z-query"></i>退回原因查看</button>
<button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></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="40">选择</td>
<td width="100">订单号</td>
<td width="80">订单金额</td>
<td width="90">定稿时间</td>
<td width="100">退回时间</td>
<td width="100">退回人</td>
<td width="110">订单状态</td>
<td width="250">产品</td>
<td width="150">退回原因</td>
<td width="40">退回次数</td>
<td width="100">设计师</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 12, "暂时没有审核退回单")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<tr class="z-pointer ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
<td>${item.getDesignId()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
<td>${item.getChecker()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td align="left">${item.getOrderText()} </td>
<td align="left">${item.getCheckBackReason()}</td>
<td>${backCountMap.get(item.getDesignId())}</td>
<td>${item.getDesigner()}</td>
</tr>
</#for>
${zhiqim_manager_paging(pageResult, "/orderCheckBackList.htm")}
</table>
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,101 @@
<#def designatedPath="/orderCheckWait.htm"/>
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 110)}
<#var data="data=copy,userText,CustomFile,EndFile,WorkFile,FristThumFile,TbzFile"/>
<#var addRule="addRule=CustomFile,EndFile,WorkFile,TbzFile"/>
<#var delRule="delRule=CustomFile,EndFile,WorkFile,TbzFile"/>
${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, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckWait.htm');">待审订单</li></#if>
<li class="z-active">已审订单</li>
<#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckBackList.htm');">退回列表</li></#if>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theFrom" id="theFrom" >
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="30%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w160" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td width="34%">产品类型:<select name="typeId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : typeList>
<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-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-&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>
</tr>
<tr class="z-h40">
<td>旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td>其他信息:<input class="${zmr_color_class} z-input z-w200" id="otherInfo" name="otherInfo" maxlength="64" value="${otherInfo}" placeholder="收件人、电话、对稿手机"></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>
<tr class="z-h40" align="center">
<td colspan="3">
</td>
</tr>
</table>
</form>
<#-- 列表 -->
<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:1300px">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="50"><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="80">订单号</td>
<td width="80">商户</td>
<td width="80">稿件类型</td>
<td width="80">订单金额</td>
<td width="60">产品类型</td>
<td width="90">审稿时间</td>
<td width="90">审稿人</td>
<td width="150">特殊工艺</td>
<td width="80">设计师</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 20, "暂时没有订单信息")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<input id="userQq_${item.getDesignId()}" type="hidden" value="${item.getUserQq()}">
<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.getDesignId()}</td>
<td>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
<td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
<td>${item.getChecker()}</td>
<td>${item.getPrintSpecial()}</td>
<td>${item.getDesigner()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "orderCheckFinish.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,273 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 110)}
<script>
function doPassCheck()
{//审核通过
var designIds = Z.FM.getCheckBoxValue("designId");
//var price = Z("#price_"+designIds).val();// Z.V.isAmount2R();
//var text = Z("#text_"+designIds).val();// Z.V.isAmount2R();
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "检查订单";
dialog.url = "/doEditDesignPriceDZ.htm?designId=" + designIds;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
function editDesignPrice()
{
var designIds = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
Z.confirm("确认审核通过吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("doPassCheck");
ajax.addParam("designIds", designIds);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){document.theFrom.submit()});
window.top.location.reload();
});
ajax.execute();
})
}
function downloads()
{
var designIds = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("downloads");
ajax.addParam("designIds", designIds);
ajax.setFailureAlert();
ajax.setSuccess(function(responseText){
var idsArray = responseText.split(',');
if(idsArray == ''){
alert("所选文件为空")
}
for (let i = 0; i < idsArray.length; i++) {
setTimeout(function() {
var prefix = Z.l.protocol + "//" + Z.l.host ;
window.location.href = prefix+"/downFile.htm?attaId="+idsArray[i]+"&zCallFrame=true";
}, i * 1000);
}
});
ajax.execute();
}
function showBackDialog()
{//审核退回窗口
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "审核退回原因(截图粘贴在输入框下方)";
dialog.url = "/orderCheckBackInfo.htm?designId=" + designId+"&src=printCheck";
dialog.width = 800;
dialog.height = 500;
dialog.execute();
}
//快捷联系人
function quickContact()
{
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("quickContact");
ajax.addParam("designId", designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var obj = Z.J.toObject(this.responseText);
console.log(obj);
var resultHtml = obj.resultHtml;
if (!Z("#quickContact_dialog")[0])
{
var dialog = new Z.Dialog();
dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
dialog.text = '<div id="quickContact_dialog"></div>';
dialog.width = 750;
dialog.height = 400;
dialog.shadow = false;
dialog.execute();
dialog.$background.remove();
console.log(dialog)
}
Z("#quickContact_dialog").htmlc(resultHtml);
Z("#quickContact_title").htmlc(Z("#title_content").html());
});
ajax.setLoading("quickContactBtn", '<i class="z-font z-add"></i>正在查询', {disabled:true});
ajax.execute();
}
</script>
<#var data="data=copy,userText,CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
<#var addRule="addRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
<#var delRule="delRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
${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>
<#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckFinish.htm');">已审订单</li></#if>
<#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckBackList.htm');">退回列表</li></#if>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theFrom" id="theFrom" >
<input type="hidden" name="page" value="${page}" >
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="30%">&nbsp;订 单 号:<input name="designId" class="${zmr_color_class} z-input z-w160" 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 : typeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*">
稿件类型:<select name="draftType" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DraftConstants.getList()>
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40">
<td>&nbsp;旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
<td>
是否后工:<select name="afterNames" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="true" <#if afterNames == "true">selected</#if>>是</option>
<option value="false" <#if afterNames == "false">selected</#if>>否</option>
</select>
</td>
</tr>
<tr class="z-h40" >
<td>
商户名称:<select name="merchantId" class="z-select z-w160" 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>
<td width="30%">&nbsp;老系统订单号:<input name="designIdold" class="${zmr_color_class} z-input z-w160" value="${designIdold}" maxlength="50" placeholder="老系统订单号"></td>
<td align="left" ><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-t20 z-mg-b3">
<#if ZmrPathRule.check(request, "/doCheckOrderPass.htm")><button type="button" class="z-button z-green" onclick="doPassCheck();"><i class="z-font z-success"></i>审核通过</button></#if>
<#if ZmrPathRule.check(request, "/doCheckOrderReback.htm")><button type="button" class="z-button z-red" onclick="showBackDialog();"><i class="z-font z-return"></i>审核退回</button></#if>
<button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></i>快捷联系人</button>
<button id="downloadsBtn" type="button" class="z-button z-purple" onclick="downloads();"><i ></i>多选下载</button>
</div>
<#-- 列表 -->
<div class="z-overflow-y-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:1400px">
<tr bgcolor="${zmr_thead_bgcolor}">
<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="100">订单号</td>
<td width="80">商户<br/>稿件类型</td>
<td width="60">订单金额</td>
<td width="60">佣金</td>
<td width="70">下单时间</td>
<td width="70">定稿时间</td>
<td width="60">状态</td>
<td width="100">特殊工艺</td>
<td width="240">产品描述</td>
<td width="120">退回原因</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单信息")}
<#for item : pageResult.list()>
<input id="text_${item.getDesignId()}" type="hidden" value="${item.getOrderText()}">
<input id="price_${item.getDesignId()}" type="hidden" value="${item.getDesignPrice()}">
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<tr class="z-pointer <#if Validates.isNotEmptyBlank(item.getPrepressBackReason())> z-text-red </#if>" ${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.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>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td >${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getPrintSpecial()}</td>
<td align="left" >${item.getOrderText()} </td>
<td align="left">${item.getCheckBackReason()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "orderCheckWait.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,172 @@
<!-- 初稿待审列表 -->
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 110)}
<script>
function designOrderPass()
{//审核通过
var designIds = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
Z.confirm("确认审核通过吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("designOrderPass");
ajax.addParam("designIds", designIds);
ajax.addParam("type", "draft");
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){document.theFrom.submit()});
});
ajax.execute();
})
}
function designOrderReback()
{//审核退回窗口
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "审核退回原因(截图粘贴在输入框下方)";
dialog.url = "/orderCheckBackInfo.htm?designId=" + designId+"&src=draftCheck";
dialog.width = 800;
dialog.height = 500;
dialog.execute();
}
</script>
<#var data="data=copy,userText,userNotice,CustomFile,DesginFile,FristThumFile,TbzFile"/>
<#var addRule="addRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
<#var delRule="delRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
${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>
<#if ZmrPathRule.check(request, "/orderDraftCheckWait.htm")><li onclick="Z.L.href('/orderEndCheckWait.htm');">定稿待审订单</li></#if>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theFrom" id="theFrom" >
<input type="hidden" name="page" value="${page}" >
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="30%">&nbsp;订 单 号:<input name="designId" class="${zmr_color_class} z-input z-w160" 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 : typeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*">
稿件类型:<select name="draftType" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DraftConstants.getList()>
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40">
<td>&nbsp;旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
<td>
是否后工:<select name="afterNames" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="true" <#if afterNames == "true">selected</#if>>是</option>
<option value="false" <#if afterNames == "false">selected</#if>>否</option>
</select>
</td>
</tr>
<tr class="z-h40" >
<td>
商户名称:<select name="merchantId" class="z-select z-w160" 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>
<td>
</td>
<td align="left" ><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-t20 z-mg-b3">
<#if ZmrPathRule.check(request, "/designOrderPass.htm")><button type="button" class="z-button z-green" onclick="designOrderPass();"><i class="z-font z-success"></i>审核通过</button></#if>
<#if ZmrPathRule.check(request, "/designOrderReback.htm")><button type="button" class="z-button z-red" onclick="designOrderReback();"><i class="z-font z-return"></i>审核退回</button></#if>
</div>
<#-- 列表 -->
<div class="z-overflow-y-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:1470px">
<tr bgcolor="${zmr_thead_bgcolor}">
<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="100">订单号</td>
<td width="70">商户<br/>设计等级</td>
<td width="70">设计类型<br/>产品类型</td>
<td width="60">订单金额</td>
<td width="70">下单时间</td>
<td width="70">初稿时间</td>
<td width="70">设计师</td>
<td width="60">状态</td>
<td width="100">特殊工艺</td>
<td width="240">产品描述</td>
<td width="120">退回原因</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单信息")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<tr class="z-pointer <#if Validates.isNotEmptyBlank(item.getPrepressBackReason())> z-text-red </#if>" ${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.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>
</td>
<td>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
<td><#if item.isOnlyDesign()>
仅设计
<#else>印刷设计</#if>
<br/>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}
</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
<td>${item.getDesigner()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getPrintSpecial()}</td>
<td align="left">${item.getOrderText()} </td>
<td align="left">${item.getDraftBackReason()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "orderDraftCheckWait.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
@@ -0,0 +1,242 @@
<!-- 定稿待审列表 -->
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 110)}
<script>
function designOrderPass()
{//审核通过
var designIds = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
Z.confirm("确认审核通过吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("designOrderPass");
ajax.addParam("designIds", designIds);
ajax.addParam("type", "end");
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功", function(){document.theFrom.submit()});
});
ajax.execute();
})
}
function designOrderReback()
{//审核退回窗口
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "审核退回原因(截图粘贴在输入框下方)";
dialog.url = "/orderCheckBackInfo.htm?designId=" + designId+"&src=endCheck";
dialog.width = 800;
dialog.height = 500;
dialog.execute();
}
//快捷联系人
function quickContact()
{
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("quickContact");
ajax.addParam("designId", designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var obj = Z.J.toObject(this.responseText);
console.log(obj);
var resultHtml = obj.resultHtml;
if (!Z("#quickContact_dialog")[0])
{
var dialog = new Z.Dialog();
dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
dialog.text = '<div id="quickContact_dialog"></div>';
dialog.width = 750;
dialog.height = 400;
dialog.shadow = false;
dialog.execute();
dialog.$background.remove();
console.log(dialog)
}
Z("#quickContact_dialog").htmlc(resultHtml);
Z("#quickContact_title").htmlc(Z("#title_content").html());
});
ajax.setLoading("quickContactBtn", '<i class="z-font z-add"></i>正在查询', {disabled:true});
ajax.execute();
}
function downloads()
{
var designIds = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designIds))
{
Z.alert("请选择订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("downloads");
ajax.addParam("designIds", designIds);
ajax.addParam("type", "end");
ajax.setFailureAlert();
ajax.setSuccess(function(responseText){
var idsArray = responseText.split(',');
if(idsArray == ''){
alert("所选文件为空")
}
var prefix = Z.l.protocol + "//" + Z.l.host ;
window.location.href = prefix+"/downFile.htm?attaId="+responseText+"&zCallFrame=true";
});
ajax.execute();
}
</script>
<#var data="data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
<#var addRule="addRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
<#var delRule="delRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
${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, "/orderDraftCheckWait.htm")><li onclick="Z.L.href('/orderDraftCheckWait.htm');">初稿待审列表</li></#if>
<li class="z-active">定稿待审订单</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theFrom" id="theFrom" >
<input type="hidden" name="page" value="${page}" >
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="30%">&nbsp;订 单 号:<input name="designId" class="${zmr_color_class} z-input z-w160" 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 : typeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*">
稿件类型:<select name="draftType" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DraftConstants.getList()>
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40">
<td>&nbsp;旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
<td>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
<td>
是否后工:<select name="afterNames" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="true" <#if afterNames == "true">selected</#if>>是</option>
<option value="false" <#if afterNames == "false">selected</#if>>否</option>
</select>
</td>
</tr>
<tr class="z-h40" >
<td>
商户名称:<select name="merchantId" class="z-select z-w160" 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>
<td>
</td>
<td align="left" ><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-t20 z-mg-b3">
<#if ZmrPathRule.check(request, "/designOrderPass.htm")><button type="button" class="z-button z-green" onclick="designOrderPass();"><i class="z-font z-success"></i>审核通过</button></#if>
<#if ZmrPathRule.check(request, "/designOrderReback.htm")><button type="button" class="z-button z-red" onclick="designOrderReback();"><i class="z-font z-return"></i>审核退回</button></#if>
<button id="downloadsBtn" type="button" class="z-button z-purple" onclick="downloads();"><i ></i>多选下载</button>
</div>
<#-- 列表 -->
<div class="z-overflow-y-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:1470px">
<tr bgcolor="${zmr_thead_bgcolor}">
<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="100">订单号</td>
<td width="70">商户<br/>设计等级</td>
<td width="70">设计类型<br/>产品类型</td>
<td width="60">订单金额</td>
<td width="70">下单时间</td>
<td width="70">设计师</td>
<td width="60">状态</td>
<td width="100">特殊工艺</td>
<td width="240">产品描述</td>
<td width="120">退回原因</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单信息")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<tr class="z-pointer <#if Validates.isNotEmptyBlank(item.getPrepressBackReason())> z-text-red </#if>" ${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.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>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
<td><#if item.isOnlyDesign()>
仅设计
<#else>印刷设计</#if>
<br/>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}
</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${item.getDesigner()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getPrintSpecial()}</td>
<td align="left">${item.getOrderText()} </td>
<td align="left">${item.getEndBackReason()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "orderEndCheckWait.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,518 @@
<script src="https://oss-88-res.oss-cn-shenzhen.aliyuncs.com/static/js/jquery-3.4.1.min.js"></script>
${Scripts.src("/zinc/js/qrcode.min.js")}
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(414, 110)}
<script>
function doAssignDesigner()
{//指定设计师
var designId = Z.FM.getCheckBoxValue("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doAssignABCheck");
ajax.addParam("designId", designId);
ajax.setFailure(function()
{
Z.failure(ajax.responseText, function(){parent.Z.Dialog.close();});
});
ajax.setSuccess(function(result)
{
if(result != '')
{
Z.confirm(result, function(){
var dialog = new Z.Dialog();
dialog.title = "指定设计师";
dialog.url = "/assignDesigners.htm?designId=" + designId;
dialog.width = 600;
dialog.height = 220;
dialog.execute();
});
}
else
{
var dialog = new Z.Dialog();
dialog.title = "指定设计师";
dialog.url = "/assignDesigners.htm?designId=" + designId;
dialog.width = 600;
dialog.height = 220;
dialog.execute();
}
});
ajax.setLoading("assignDesigners", '正在操作', {disabled:true});
ajax.execute();
}
function doDesignOrdertoERP(e)
{//开启设计
var url = "https://file.lingtao8.com/?tid="+e;
var dialog = new Z.Dialog();
dialog.title = "客户信息";
dialog.url = url;
dialog.width = 1000;
dialog.height = 630;
dialog.execute();
}
function doDesignCopiesr()
{//设计份数修改
var designId = Z.FM.getChecked("designId");
var copies= Z("#userQqs_"+designId).val();
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "订单["+designId+"]设计份数修改";
dialog.url = "/designCopiesr.htm?designId="+designId+"&copies="+copies;
dialog.width = 310;
dialog.height = 150;
dialog.execute();
}
function doProgressNote(id)
{//进度备注
var designId =id
if (Z.V.isEmpty(designId))
{
designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
}
var dialog = new Z.Dialog();
dialog.title = "订单["+designId+"]进度备注";
dialog.url = "/progressNote.htm?designId="+designId;
dialog.width = 1000;
dialog.height = 630;
dialog.execute();
}
function quickContact()
{//快捷联系
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("quickContact");
ajax.addParam("designId", designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var obj = Z.J.toObject(this.responseText);
var resultHtml = obj.resultHtml;
if (!Z("#quickContact_dialog")[0])
{
var dialog = new Z.Dialog();
dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
dialog.text = '<div id="quickContact_dialog"></div>';
dialog.width = 750;
dialog.height = 400;
dialog.shadow = false;
dialog.execute();
dialog.$background.remove();
console.log(dialog)
}
Z("#quickContact_dialog").htmlc(resultHtml);
Z("#quickContact_title").htmlc(Z("#title_content").html());
});
ajax.setLoading("quickContactBtn", '<i class="z-font z-query"></i>正在查询', {disabled:true});
ajax.execute();
}
//修改单价
function doEditDesignPrice() {
var designId = Z.FM.getChecked("designId");
var designPrice = document.getElementById("designPrice_"+designId).value;
var orderText = document.getElementById("orderText_"+designId).value;
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改订单单价";
dialog.url = "/doEditDesignPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
//修改加急费
function doEditUrgentPrice() {
var designId = Z.FM.getChecked("designId");
var designPrice = document.getElementById("urgentPrice_"+designId).value;
var orderText = document.getElementById("orderText_"+designId).value;
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改订单加急费";
dialog.url = "/doEditUrgentPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 244;
dialog.execute();
}
//修改稿件类型
function doEditDraftType(){
var designId = Z.FM.getChecked("designId");
var designPrice = document.getElementById("urgentPrice_"+designId).value;
var orderText = document.getElementById("orderText_"+designId).value;
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改订单稿件类型";
dialog.url = "/doEditDraftType.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 400;
dialog.execute();
}
//修改订单绩效
function doEditDesignOrder(){
var designId = Z.FM.getChecked("designId");
if(Z.V.isEmpty(designId)){
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改订单["+designId+']';
dialog.url = "/doEditDesignOrder.htm?designId=" + designId;
dialog.width = 900;
dialog.height = 400;
dialog.execute();
}
//修改订单状态
function doEditDraftType(designId){
var orderText= Z("#orderText_"+designId).val();
var status_= Z("#status_"+designId).val();
var dialog = new Z.Dialog();
dialog.title = "修改订单稿件类型";
dialog.url = "/doEditStatus.htm?designId=" + designId +"&status_="+status_+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 400;
dialog.execute();
}
//审核详情查看
function doCheckDetail()
{
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "审核退回详情";
dialog.url = "/checkBackDetail.htm?designId=" + designId;
dialog.width = 800;
dialog.height = 500;
dialog.execute();
}
function doDesignPriceCalculate(){
var designId = 0;
if(Z.FM.getChecked("designId")){
designId = Z.FM.getChecked("designId");
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("designPriceCalculate");
ajax.addParam(designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
ajax.execute();
}
function returnTk(){
var designId = Z.FM.getChecked("designId");
if(Z.V.isEmpty(designId)){
Z.alert("请选择一条订单");
return;
}
Z.confirm("确认重新启用此订单吗,如果重新启用将自动回退到请求退款前的状态,只能启用淘宝自动退款且已经取消的订单", function()
{
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("returnTk");
ajax.addParam(designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("returnTk", '正在提交', {disabled:true});
ajax.execute();
}, {width:320});
}
function changeStatus(designId){
var dialog = new Z.Dialog();
dialog.title = "修改状态";
dialog.url = "/changeStatus.htm?designId=" + designId;
dialog.width = 800;
dialog.height = 500;
dialog.execute();
}
</script>
<#var data="data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
<#var addRule="addRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
<#var delRule="delRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
${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>
<#if ZmrPathRule.check(request, "/orderLogList.htm")><li onclick="Z.L.href('orderLogList.htm');">订单日志</li></#if>
<#if ZmrPathRule.check(request, "/orderRefundList.htm")><li onclick="Z.L.href('orderRefundList.htm');">退款订单列表</li></#if>
<li onclick="Z.L.href('orderBacklog.htm');">待办列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div class="z-overflow-y-auto" style="width: 100% !important;height: 696px;">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form action="orderList.htm" method="post">
<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-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-&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>
</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">
<#if ZmrPathRule.check(request, "/assignDesigner.htm")><button type="button" class="z-button z-blue" onclick="doAssignDesigner();"><i class="z-font z-modify"></i>指定设计师</button></#if>
<button type="button" class="z-button z-blue" onclick="doProgressNote();"><i class="z-font z-modify"></i>进度备注</button>
<button class="z-button z-blue" onclick="doCheckDetail();"><i class="z-font z-query"></i>退回原因查看</button>
<button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></i>快捷联系人</button>
<#if ZmrPathRule.check(request, "/designCopiesr.htm")>
<!--<button type="button" class="z-button z-blue" onclick="doDesignCopiesr();"><i class="z-font z-modify"></i>设计份数修改</button>
<button id="doDesignPriceCalculate" type="button" class="z-button z-yellow" onclick="doDesignPriceCalculate();"><i class="z-font z-refresh"></i>重置佣金</button>
<button id="doEditDesignPrice" type="button" class="z-button z-yellow" onclick="doEditDesignPrice();"><i class="z-font z-refresh"></i>修改佣金</button>
<button id="doEditUrgentPrice" type="button" class="z-button z-yellow" onclick="doEditUrgentPrice();"><i class="z-font z-refresh"></i>修改加急费</button>-->
<button id="doEditDesignOrder" type="button" class="z-button z-yellow" onclick="doEditDesignOrder();"><i class="z-font z-refresh"></i>修改绩效</button>
</#if>
<button id="returnTk" type="button" class="z-button z-green" onclick="returnTk();"><i class="z-font z-open"></i>启用订单</button>
<!--<button id="changeStatus" type="button" class="z-button z-green" onclick="changeStatus();"><i class="z-font z-open"></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="100">订单号</td>
<td width="200">备注</td>
<td width="100">erp订单号</td>
<td width="100">客户信息</td>
<td width="70">店铺名称</td>
<td width="100">旺旺号</td>
<td width="70">设计类型<br/>产品类型</td>
<td width="70">下单时间</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="设计师完成订单后获取的费用">&nbsp;*</span></td>
<td width="70">设计师</td>
<td width="60">订单状态</td>
<td width="100">进度备注</td>
<td width="35">领单方式</td>
<td width="100">领单时间</td>
<td width="100">定稿时间</td>
<td width="100">审稿时间</td>
<td width="80">审稿人</td>
<td width="100">退单理由</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><input name="designId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesignId()}"></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>${item.getTids()}</td>
<td align="center">
<span class="z-button z-blue" onclick="doDesignOrdertoERP('${item.getTids()}')">查看</span>
</td>
<td>${item.getShopNick()}</td>
<td>${item.getBuyerNick()}</td>
<td><#if item.isOnlyDesign()>
仅设计
<#else>印刷设计</#if>
<br/>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}
</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
<td>${item.getDesigner()}</td>
<td onclick="changeStatus('${item.getDesignId()}')">${StatusConstants.getStatus(item.getStatus())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td>
<#if item.getReceiveType() == 0>抢单</#if>
<#if item.getReceiveType() == 1>派单</#if>
<#if item.getReceiveType() == 2>指定</#if>
</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
<td>${item.getChecker()}</td>
<td>${item.getReturnReason()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/orderList.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<#--<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div> -->
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,64 @@
<#def designatedPath="/orderList.htm"/>
<script>
function validateForm(form)
{
if (Z.V.isEmpty(form.designId.value))
{
Z.tips({text:"请输入订单号", width: 150});
return false;
}
return true;
}
</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, "/orderList.htm")><li onclick="Z.L.href('orderList.htm');">订单列表</li></#if>
<li class="z-active">订单日志</li>
<li onclick="Z.L.href('orderRefundList.htm');">退款订单列表</li>
<li onclick="Z.L.href('orderBacklog.htm');">待办列表</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("订单日志查询")}
<form name="theForm" method="post" onsubmit="return validateForm(this);">
<table class="z-table z-bordered z-bg-white z-pd6">
<tr>
<td>
订单号:<input class="z-input ${zmr_color_class} z-w200" name="designId" value="${designId}" maxlength="20" placeholder="订单号">
<button type="submit" class="z-button z-large z-w120 z-mg-l20 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 zi-bd z-pd5 z-bg-white z-text-center z-mg-t20" >
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单号</td>
<td width="150">状态</td>
<td width="100">操作员</td>
<td width="*">操作项</td>
<td width="200">操作时间</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 6, "暂时没有订单日志信息")}
<#for item : pageResult.list()>
<tr ${zhiqim_manager_tr_onmouse()}>
<td>${item.getDesignId()}</td>
<td class="z-text-center">${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getOperatorCode()}</td>
<td>${item.getOperateDesc()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "orderLogList.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,167 @@
${Scripts.src("/zinc/js/global_2019010801.js")}
${zhiqim_manager_breadcrumb("订单列表")}
${zhiqim_manager_content()}
<script>
function agreeRefund()
{//同意退款
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "退款责任";
dialog.url = "/designOrderAgreeRefund.htm?designId=" + designId;
dialog.width = 500;
dialog.height = 302;
dialog.execute();
}
function disAgreeRefund(){
//拒绝退款
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
Z.confirm("您确定拒绝退款吗?",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("designOrderDisAgreeRefund");
ajax.addParam("designId",designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success('操作成功', function(){
location.reload();
});
});
ajax.setLoading(document);
ajax.execute();
});
}
function desingOrderRefundInfo()
{//设计师退款订单详情
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "订单详情";
dialog.url = "/designOrderRefundInfo.htm?designId=" + designId;
dialog.offset
dialog.width = 750;
dialog.height = 650;
dialog.execute();
}
</script>
<#-- 导航 -->
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li onclick="Z.L.href('orderList.htm');">订单列表</li>
<li onclick="Z.L.href('orderLogList.htm');">订单日志</li>
<li class="z-active">退款订单列表</li>
<li onclick="Z.L.href('orderBacklog.htm');">待办列表</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form action="orderRefundList.htm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="25%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>
商户名称:<select name="merchantId" class="z-select z-w180" 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>
<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="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : typeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40">
<td>旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号">
<td>
退款原因:<select name="refundReason" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : Global.get(DesignOrderRefundReasonCache.class).getListAll()>
<option value="${item.getId()}" <#if refundReason == item.getId()>selected</#if>>${item.getTitle()}</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 class="z-button z-w120 z-mg-r15 z-large ${zmr_color_class}" onclick="agreeRefund()">同意退款</button>
<button class="z-button z-w120 z-mg-r15 z-red z-large" onclick="disAgreeRefund()">拒绝退款</button>
<button class="z-button z-w120 z-mg-r15 z-large ${zmr_color_class}" onclick="desingOrderRefundInfo()">查看详情</button>
</div>
<#-- 列表-->
<div class="z-overflow-auto z-bd-r" style="overflow-x: auto; overflow-y: auto;width:100%">
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="40">选择</td>
<td width="80">订单号</td>
<td width="80">商户</td>
<td width="100">旺旺号</td>
<td width="100">店铺</td>
<td width="100">产品</td>
<td width="60">付款金额</td>
<td width="120">特殊工艺</td>
<td width="120">退款原因</td>
<td width="80">申请时间</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有退款订单信息")}
<#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()}">
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
<td>${item.getDesignId()}</td>
<td>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getShopNick()}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Global.get(DesignOrderRefundReasonCache.class).getName(item.getRefundReason())}</td>
<td>${item.getRefundTime()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/orderRefundList.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,173 @@
${Scripts.src("/zinc/js/global_2019010801.js")}
${Styles.htmlOverflowHidden()}
${yangcai_calc_Left_width_height(414, 110)}
<script>
function historyOrderTagLogQuery()
{
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "历史订单标签日志详情";
dialog.url = "/historyOrderTagLog.htm?designId=" + designId;
dialog.width = 1200;
dialog.height = 400;
dialog.execute();
}
// 下载成品文件
function downloadEndFile()
{
// 订单号
var designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
// 参数:订单号和下载文件的类型
var ajax = new Z.Ajax();
ajax.setClassName("UploadFilePresenter");
ajax.setMethodName("doDownloadFile");
ajax.addParam("designId", designId);
ajax.addParam("fileType", "EndFile");
ajax.setFailure(function(){
Z.alert(this.responseText,null, {width:320});
});
ajax.setSuccess(function(){
var resObj = Z.J.toObject(this.responseText);
var attaIds = resObj.attaIds;
// console.dir(resObj);
var prefix = Z.l.protocol + "//" + Z.l.host ;
Z.L.href(prefix+"/downFile.htm?attaId=" + attaIds, zCallFrame);
// console.dir(prefix);
});
ajax.setLoading(document);
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>
<#if ZmrPathRule.check(request, "/orderList.htm")>
<li onclick="Z.L.href('orderList.htm');">订单列表</li></#if>
<li onclick="Z.L.href('orderLogList.htm');">订单日志</li>
<li class="z-active">订单标签列表</li>
<li onclick="Z.L.href('orderRefundList.htm');">退款订单列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form action="orderTagList.htm" method="post">
<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>产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DesignTypeDao.listAll()>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td>
设计师:
<select name="designer" class="z-select z-w160" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designerList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</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>
录单时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-&nbsp;
<input id="endDate" name="endDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td>行业类型:<select name="industryId" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : Global.get(DesignIndustryCache.class).getIndustryListAll()>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected</#if>>${item.getIndustryName()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40">
<td colspan="3" align="center">
<button type="button" class="z-button z-large zi-bg-white zi-mg-r18" onclick="Z(this).find('zcover>i.z-checkbox').click()">
<input type="checkbox" id="waitRedress" name="waitRedress" class="z-checkbox" <#if waitRedress ==1980727080001 >checked</#if> value="<#if waitRedress ==1980727080001 >1980727080001</#if>" data-class="${zmr_color_class}" data-role="z-checkbox" onclick="Z.E.stop(); this.value=this.checked==true?1980727080001:''" >
待纠偏</button>
<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="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="historyOrderTagLogQuery()"><i class="z-font z-query"></i>标签日志</button>
<button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="downloadEndFile();"><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">
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
<td width="60">选择</td>
<td width="120">订单号</td>
<td width="130">旺旺号</td>
<td width="110">手机号</td>
<td width="120">店铺</td>
<td width="100">行业</td>
<td width="100">子行业</td>
<td width="*">产品类型</td>
<td width="80">金额</td>
<td width="90">创建时间</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单标签数据")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick="Z.L.href('tagAttaInfoList.htm?designId=${item.getDesignId()}', tagAttaInfoList);"></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.getOrderFlag() 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>${item.getBuyerNick()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getShopNick()}</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
<td>${map.get(item.getDesignId())}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/orderTagList.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:420px;z-index:50;">
<iframe name="tagAttaInfoList" src="tagAttaInfoList.htm" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,61 @@
${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.addParam("designIds", ${order.getAfterNames()});
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="${oddColor}">
<td width="25%">多选订单号:</td>
<td width="*">${order.getAfterNames()}</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>
@@ -0,0 +1,10 @@
<#if Validates.isEqual(text, "BLOCK")>
<div class="z-float-left z-px16 z-mg-l30" style="line-height:50px;">
今日定稿目标数:<span class="z-color-blue z-bold z-px20">${goalNum}单</span>,已完成定稿数:<span class="z-color-green z-bold z-bold z-px20">${comNum}单</span>
</div>
</#if>
<#if Validates.isEqual(text, "HIDDEN")>
<div class="z-float-left z-px16 z-mg-l30" style="line-height:50px;">
<span class="z-color-red z-bold z-px18">今日未设置定稿目标数</span>
</div>
</#if>
@@ -0,0 +1,29 @@
<script></script>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="140">订单号</td>
<td width="130">旺旺号</td>
<td width="80">订单金额</td>
<td width="80">退回时间</td>
<td width="250">产品描述</td>
<td width="150">退回原因</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 8, "没有历史退回记录")}
<#for item : models>
<tr class="z-pointer ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td>${item.getDesignId()}</td>
<td>${item.getBuyerNick()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getBackTime())}</td>
<td align="left">${item.getOrderText()}</td>
<td align="left">${item.getCheckBackReason()}</td>
</tr>
</#for>
</table>
<div class="z-h60">
</div>
<div class="z-fixed z-w100p z-bg-gray z-text-center z-pd-t10 z-h60" style="bottom:0;left:0">
<button type="button" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
@@ -0,0 +1,25 @@
<table class="z-table z-bordered z-pd6 z-bg-white z-text-left">
<#for item : modelList>
<tr class="z-h40">
<td align="center" style="background-color:#f3fdfc;" width="16%">主行业:</td>
<td width="16%">${item.getMainIndustryName()}</td>
<td align="center" style="background-color:#f3fdfc;" width="16%">子行业:</td>
<td width="16%">${item.getSonIndustryName()}</td>
<td align="center" style="background-color:#f3fdfc;" width="16%">应用场景:</td>
<td width="16%">${item.getAppScenarios()}</td>
</tr>
<tr class="z-h40">
<td align="center" style="background-color:#f3fdfc;">客户类型:</td>
<td>${item.getCustomerType()}</td>
<td align="center" style="background-color:#f3fdfc;">未匹配关键字:</td>
<td>${item.getUnmatchKeyword()}</td>
<td align="center" style="background-color:#f3fdfc;">设计风格:</td>
<td>${item.getDesignStyle()}</td>
</tr>
<tr class="z-h40" style="background-color:#f3fdfc;">
<td colspan="3" align="center">标签编辑人:${item.getOperatorCode()}</td>
<td colspan="3" align="center">标签编辑时间:${Sqls.toDateTimeString(item.getOperatorTime())}</td>
</tr>
<tr class="z-h20"><td colspan="6"></td></tr>
</#for>
</table>
@@ -0,0 +1,185 @@
<style>
body{ text-align:center}
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<script>
var reasonMap = new Z.HashMap();
var catReasonMap = new Z.HashMap();
var catList = [];
Z.onload(function(){
var ajax = new Z.Ajax();
ajax.setClassName("OrderCheckPresenter");
ajax.setMethodName("doQueryBackReason");
ajax.setFailureAlert();
ajax.setSuccess(function(){
var obj = Z.J.toObject(this.responseText);
var list = obj.reasonList;
Z.each(list, function(item, i){
var reasonId = Z.S.toString(item.reasonId);
var reasonParent = Z.S.toString(item.reasonParent);
item.reasonId = reasonId;
item.reasonParent = reasonParent;
reasonMap.put(reasonId, item);
if (item.isReasonType && reasonParent == '0')
{
catList.push(item);
}
else
{
var rlist = catReasonMap.get(reasonParent);
rlist = rlist ? rlist : [];
rlist.push(item);
catReasonMap.put(reasonParent, rlist);
}
})
var select = Z.D.id("resonTypeId");
if (!select)
{
return;
}
if (select.options)
select.options.length=0;
else
select.options = [];
select.options[0] = new Option('--选择原因分类--', '');
Z.each(catList, function(item, i){
select.options[i+1] = new Option(item.reasonText, item.reasonId);
});
Z("#reasonTypeSpan").htmlc(select.outerHTML);
});
ajax.setLoading("orderCheckWait", '正在提交', {disabled:true});
ajax.execute();
});
function doinitReason(parentId)
{
var rlist = catReasonMap.get(parentId);
var select = Z.D.id("reasonId");
if (!select)
{
return;
}
if (select.options)
select.options.length=0;
else
select.options = [];
Z.each(rlist, function(item, i){
select.options[i] = new Option(item.reasonText, item.reasonId);
});
Z("#reasonItemSpan").htmlc(select.outerHTML);
}
function doRemove()
{//移除截图
Z("#divImg").remove()
}
function doSubmit()
{
var desc = Z("#resonTypeId").val();
if (Z.Validates.isEmpty(desc))
{
Z.alert("审核原因分类不能为空");
return;
}
var data = Z("#imgData").text()
var ajax = new Z.Ajax();
ajax.setClassName("OrderCheckPresenter");
ajax.setMethodName("doCheckback");
ajax.addParam("designId", ${designId});
ajax.addParam("src", '${src}');
ajax.addParam("imgData", data);
ajax.addParam("desc", Z("#checkBackReason").val());
ajax.addParam("resonTypeId", Z("#resonTypeId").val());
ajax.addParam("reasonId", Z("#reasonId").val());
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("提交成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("orderCheckWait", '正在提交', {disabled:true});
ajax.execute();
}
(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").html(img.outerHTML);
};
// 读取文件
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 class="z-mg5 z-text-left">
<span class="z-mg-l20">原因分类:</span>
<span id="reasonTypeSpan">
<select id="resonTypeId" name="resonTypeId" class="z-select z-w200" onchange="doinitReason(this.value)" data-role="z-select-search" data-class="${zmr_color_class}" >
<option value="">--选择原因分类--</option>
</select>
</span>
<span class="z-mg-l20">问题原因:</span>
<span id="reasonItemSpan">
<select id="reasonId" name="reasonId" class="z-select" style="width:350px" data-role="z-select-search" data-class="${zmr_color_class}" ></select>
</span>
</div>
<div class="z-mg5">
<textarea id="checkBackReason" name="checkBackReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="100" placeHolder="附加退回原因"></textarea>
</div>
<div style="display:none" id="imgData"></div>
<div>
<button type="button" class="z-button z-mg-r5 z-w60 z-red z-relative-right" onclick="doRemove();">移除</button>
<div id="imgSrc" class="z-overflow-y-auto" style="max-height:300px"><div id="imgSrchorder" class="z-text-left z-pd6 z-text-gray">(ctrl+v)粘贴退回截图</div></div>
</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 class="z-button z-w100 ${zmr_color_class}" id="orderCheckWait" onclick="doSubmit();">提交</button>&nbsp;&nbsp;&nbsp;
<button type="button" class="z-button z-mg-l10 z-w80" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
</div>
<br><br>
${zhiqim_manager_content_end()}
</html>
@@ -0,0 +1,115 @@
<script>
function showLargeImg(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()-1200;
dialog.height = parent.Z.D.clientHeight()-400;
dialog.execute();
dialog.$background.remove();
}
</script>
<!--标题部分-->
<div id="title_content" class="z-hide">
<div class="z-bold">
<div class="z-float-left z-pd10 z-mg-t3">订单【${order.getDesignId()}】快捷联系方式</div>
</div>
</div>
<div class="z-pd20">
<div class="z-w100p zi-pd20">
<!--扬彩服务渠道-->
<#if order.getMerchantId() == "2019491431057">
<#if order.getShopNick() == "领淘">
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px dashed;">
<div class="z-float-left zi-mg-t18 " style="width:200px">
<span class="z-bold">售前客服:</span>玉米
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">联系电话:</span>15200463922
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">个人微信:</span>15200463922
</div>
</div>
<#else>
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px dashed;">
<div class="z-float-left zi-mg-t18 " style="width:200px">
<span class="z-bold">售前客服:</span>玲珑
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">联系电话:</span>13667316513
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">个人微信:</span>13667316513
</div>
</div>
</#if>
<!--淘印通渠道-->
<#elseif order.getMerchantId() == "1920862616055">
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px dashed;">
<div class="z-float-left zi-mg-t18 " style="width:200px">
<span class="z-bold">售前客服:</span>木易
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">联系电话:</span>15874971979
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">个人微信:</span>15874971979
</div>
</div>
<!--小程序渠道-->
<#elseif order.getMerchantId() == "2000922684001">
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px dashed;">
<div class="z-float-left zi-mg-t18 " style="width:200px">
<span class="z-bold">售前客服:</span>崔崔
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">联系电话:</span>13786298968
</div>
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">个人微信:</span>13786298968
</div>
</div>
<#else>
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px dashed;">
<div class="z-float-left zi-mg-t18" style="width:200px">
<span class="z-bold">售前客服:</span>${createrDesigner.getOperatorCode()}
</div>
<div class="z-float-left zi-mg-t18 z-mg-l20 " style="width:200px">
<span class="z-bold">联系电话:</span>${createrDesigner.getOperatorMobile()}
</div>
<div class="z-float-left zi-mg-t18 z-mg-l20 " style="width:200px">
<span class="z-bold">个人微信:</span>${createrDesigner.getOperatorWxcode()}
</div>
</div>
</#if>
</div>
</div>
<div class="z-pd20">
<div class="z-w100p zi-pd20">
<div class="z-h140 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px dashed;">
<div class="z-float-left zi-mg-t18" style="width:360px">
<#if Validates.isNotEmptyBlank(order.getCustomerQrcodeUrl())>
<span class="z-bold">对稿沟通群服务二维码:</span>
<img src="${order.getCustomerQrcodeUrl()}" onclick="showLargeImg('${order.getCustomerQrcodeUrl()}')" width="130px" height="130px" style="cursor: pointer;">
<#else>
<#if order.getShopNick() == "领淘">
<span class="z-bold">对稿沟通:</span> 企业微信搜索:${order.getUserContact()}&nbsp;&nbsp;${order.getUserMobile()}
<#else>
对稿沟通请联系售前客服
</#if>
</#if>
</div>
</div>
</div>
</div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h80 z-text-center z-bg-gray" style="bottom:0;left:0">
<button class="z-button z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 zi-px22" type="button" onclick="Z.Dialog.close();">关闭</button>
</div>
@@ -0,0 +1,52 @@
<script>
function addProgressNote()
{//添加进度备注
var ordProgressNote = Z("#ordProgressNote").val();
if (Z.Validates.isEmpty(ordProgressNote))
{
Z.alert("进度备注不能为空");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("addProgressNote");
ajax.addParam("designId", '${designId}');
ajax.addParam("ordProgressNote", ordProgressNote);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("备注保存成功", function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.execute();
}
</script>
<div class="z-mg-t10 z-mg-b10 z-mg-l10 ">
<span class="z-text-center">
<textarea class="z-w800 z-h100" id="ordProgressNote" name="ordProgressNote" placeholder="进度备注"></textarea>
<button type="button" class="z-button z-xlarge ${zmr_color_class} z-mg-l20" style="margin-top:-80px;" onclick="addProgressNote();">保存备注</button>
</span>
</div>
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40 z-text-center z-bg-gray">
<td width="150">订单号</td>
<td width="*">备注内容</td>
<td width="100">备注人</td>
<td width="150">备注时间</td>
</tr>
<#if pageResult.size() == 0>
<tr valign="middle" class="z-h40 z-text-center z-bg-white">
<td colspan="4">暂不存在进度备注信息</td>
</tr>
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40 z-pointer" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
<td>${item.getDesignId()}</td>
<td>${item.getOrdProgressNote()}</td>
<td>${item.getOperateCode()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
${zhiqim_manager_paging(pageResult, "progressNote.htm")}
</table>
@@ -0,0 +1,120 @@
<style>
body{ text-align:center}
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<script>
function doPassCheck()
{//申请通过
var applyId = ${apply.getApplyId()};
Z.confirm("确认审核通过吗?", function(){
var qcTypeId = Z.FM.getChecked("qcTypeId");
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("doApplyPass");
ajax.addParam("applyId", applyId);
ajax.addParam("qcTypeId", qcTypeId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.location.reload();
parent.Z.Dialog.close();
});
ajax.execute();
})
}
function showBackDialog()
{//审核退回窗口
var applyId = ${apply.getApplyId()};
Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
{
if (Z.V.isEmpty(value))
{
Z.alert("请输入退回原因");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("doApplyBack");
ajax.addParam("applyId", applyId);
ajax.addParam("desc", value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.location.reload();
parent.Z.Dialog.close();
});
ajax.execute();
}, {type: 'textarea'});
}
function cancelQcAwarded(){
//取消加分申请
var applyId = ${apply.getApplyId()};
var applyFlag = ${apply.getApplyFlag()};
Z.confirm("确认取消申请加分吗?", function(){
if(applyFlag != 0){
Z.alert("该状态不能取消申请!");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("docancelAwarded");
ajax.addParam("applyId", applyId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success('取消成功!', function(){
parent.location.reload();
parent.Z.Dialog.close();});
});
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()-200;
dialog.height = parent.Z.D.clientHeight()-200;
dialog.execute();
dialog.$background.remove();
}
</script>
${zhiqim_manager_content()}
<div style="position: relative;bottom: 10px;">
<label style="float: left;font-size: 18px;padding: 25px 0px 0px 10px;">加分类型 : </label>
<div style="width: 700px;height: 41px;position: relative;top: 25px;">
<ul>
<#for item : awardedTypeList>
<li style="display: inline;float: left;padding-left:15px;"><label><input name="qcTypeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getQcTypeId()}" <#if qcTypeIdChecked == item.getQcTypeId()>checked</#if>>&nbsp;&nbsp;${item.getQcAwardedName()}</label></li>
</#for>
</ul>
</div>
</div>
<div class="z-mg5">
<textarea id="applyReason" name="applyReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="200" >${apply.getApplyReason()}</textarea>
</div>
<div class="z-pd5">
<img alt="凭证" src="/${apply.getApplyId()}-0-qcImg" onclick="showLargeImg(this)">
</div>
<br><br>
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
<div style="margin-top:10px">
<#if !readonly>
<button class="z-button z-blue z-w100" onclick="doPassCheck()">审核通过</button>
<button class="z-button z-w100 ${zmr_color_class}" onclick="showBackDialog()">审核退回</button>&nbsp;&nbsp;&nbsp;
<#else>
<button class="z-button z-blue z-w100" onclick="cancelQcAwarded()">取消加分申请</button>
</#if>
</div>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,125 @@
<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()
{
var designer = '${designer}';
var content = Z("#content").val();
var qcAwardedTypeId;
var qcTypeId = document.getElementsByName("qcTypeId");
for(var i=0;i<qcTypeId.length;i++){
if(qcTypeId[i].checked){
qcAwardedTypeId = qcTypeId[i].value;
}
}
if (Z.Validates.isEmpty(qcAwardedTypeId))
{
Z.alert("请选择加分类型");
return;
}
if (Z.Validates.isEmpty(content))
{
Z.alert("请填写加分描述");
return;
}
var data = Z("#imgData").text();
if(data == "")
{
Z.alert("请将加分凭证粘贴在空白区域");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("doApplyScore");
ajax.addParam("data", data);
ajax.addParam("designer", designer);
ajax.addParam("content", content);
ajax.addParam("qcTypeId", qcAwardedTypeId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("提交成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("qcPersonal", '正在提交', {disabled:true});
ajax.execute();
}
(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()}
<input type="hidden" id="designId" name="designId" value="${order.getDesignId()}">
<table class="z-table z-bordered-line z-pd6 z-bg-white z-text-left z-mg-b10">
<tr class="z-h40">
<label style="float: left;font-size: 18px;padding: 25px 0px 0px 10px;">加分类型 : </label>
<div style="width: 700px;height: 41px;position: relative;top: 25px;">
<ul>
<#for item : awardedTypeList>
<li style="display: inline;float: left;padding-left:15px;"><label><input name="qcTypeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getQcTypeId()}" <#if item_index ==0>checked</#if>>&nbsp;&nbsp;${item.getQcAwardedName()}</label></li>
</#for>
</ul>
</div>
</tr>
<tr class="z-h40">
<td>
<textarea id="content" class="z-textarea z-w100p z-h100" placeholder="申请加分描述"></textarea>
</td>
</tr>
</table>
<div style="display:none" id="imgData"></div>
<div id="imgSrc"></div>
<#-- 操作 -->
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
<button type="button" id="doSubmit" class="z-button z-large z-w150 ${zmr_color_class}" onclick="doSubmit();">提交</button>&nbsp;&nbsp;
<button type="button" class="z-button z-large z-w100" onclick="parent.Z.Dialog.close();">关闭</button></td>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,172 @@
<style>
.qcTypeId+div{
width:150px !important;
height:28px !important;
}
</style>
<script>
function doPassCheck()
{//申请通过
var applyId = Z.FM.getChecked("applyId");
Z.confirm("确认审核通过吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("doApplyPass");
ajax.addParam("applyId", applyId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.location.reload();
parent.Z.Dialog.close();
});
ajax.execute();
})
}
function showBackDialog()
{//审核退回窗口
var applyId = Z.FM.getChecked("applyId");
Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
{
if (Z.V.isEmpty(value))
{
Z.alert("请输入退回原因");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("doApplyBack");
ajax.addParam("applyId", applyId);
ajax.addParam("desc", value);
ajax.setFailureAlert();
ajax.setSuccess(function(){
parent.location.reload();
parent.Z.Dialog.close();
});
ajax.execute();
}, {type: 'textarea'});
}
function doViewApplyDetail(applyId)
{
var dialog = new Z.Dialog();
dialog.title = "申请加分凭证";
dialog.url = "/qcApplyDetail.htm?applyId=" + applyId;
dialog.width = 900;
dialog.height = 600;
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('/qcOrderList.htm');">质检订单列表</li>
<li onclick="Z.L.href('/qcViolationsList.htm');">质检违规列表</li>
<li class="z-active">质检加分列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/qcApplyScoreList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="25%">设计师:
<select name="designer" class="z-select z-w160" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : operatorList>
<option <#if designerList.contains(item.getOperatorCode())>class="z-text-red"</#if> value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td width="25%">
申请状态:<select name="applyFlag" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if qcFlag == 0>selected</#if>>申请中</option>
<option value="1" <#if qcFlag == 1>selected</#if>>申请成功</option>
<option value="2" <#if qcFlag == 2>selected</#if>>申请失败</option>
</select>
</td>
<td width="25%">
加分类型:
<select name="qcTypeId" class="z-select z-w180 qcTypeId" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : awardedTypeList>
<option value="${item.getQcTypeId()}" <#if item.getQcTypeId() == qcTypeIdSelected>selected</#if>>${item.getQcAwardedName()}</option>
</#for>
</select>
</td>
<td width="25%">
申请时间:<input id="beginDate" name="beginDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginDate}">&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>
</tr>
<tr>
<td width="25%">审核人:<input name="qcAwardedAuditor" class="${zmr_color_class} z-input z-w163" value="${qcAwardedAuditor}" maxlength="64" placeholder="审核人"></td>
<td width="25%">
审核时间:<input id="beginAuditDate" name="beginAuditDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginAuditDate}">&nbsp;-
<input id="endAuditDate" name="endAuditDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endAuditDate}">
</td>
<td width="25%">
<button class="z-button z-w80 z-mg-l15 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
</td>
<td></td>
</tr>
</table>
</form>
<#-- 操作功能 -->
<div class="z-w100p z-mg-t10 z-mg-b3">
<#-- <button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="doPassCheck();"><i class="z-font z-success"></i>审核通过</button>
<button type="button" class="z-button z-red z-mg-r6" onclick="showBackDialog();"><i class="z-font z-return"></i>审核退回</button> -->
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="120">设计师</td>
<td width="150">组织</td>
<td width="150">加分类型</td>
<td width="*">申请理由</td>
<td width="150">审核人</td>
<td width="200">审核时间</td>
<td width="120">质检加分</td>
<td width="150">申请时间</td>
<td width="120">申请状态</td>
<td width="120">操作</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 20, "暂时没有申请")}
<#for item : pageResult.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()} >
<td><input name="applyId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getApplyId()}"></td>
<td>${item.getDesigner()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${AwardedTypeConstants.getAwardedTypeId(item.getQcTypeId())}</td>
<td>${item.getApplyReason()}</td>
<td>${item.getQcAwardedAuditor()}</td>
<td>${Sqls.toDateTimeString(item.getQcAwardedAuditorTime())}</td>
<td>${item.getScore()}</td>
<td>${DateTimes.toDateTimeString(item.getApplyTime())}</td>
<td>
<#if item.getApplyFlag()==0>申请中</#if>
<#if item.getApplyFlag()==1><span class="z-text-blue">申请成功</span></#if>
<#if item.getApplyFlag()==2><span class="z-text-red">申请失败</span></#if>
</td>
<td><button class="z-button z-blue z-w100" onclick="doViewApplyDetail(${item.getApplyId()})">查看凭证</button></td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/qcApplyScoreList.htm")}
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,138 @@
<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()
{
var designId = Z("#designId").val();
var orgId = Z("#orgId").val();
var designer = Z("#designer").val();
var content = Z("#content").val();
var description = Z("#description").val();
if (Z.Validates.isEmpty(content))
{
Z.alert("请选择质检违规原因");
return;
}
var data = Z("#imgData").text();
if(data == "")
{
Z.alert("请将质检违规截图粘贴在空白区域");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("saveQcJudge");
ajax.addParam("data", data);
ajax.addParam("designId", designId);
ajax.addParam("orgId", orgId);
ajax.addParam("designer", designer);
ajax.addParam("content", content);
ajax.addParam("description", description);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("提交成功",function(){parent.location.reload();parent.Z.Dialog.close();});
});
ajax.setLoading("qcOrderList", '正在提交', {disabled:true});
ajax.execute();
}
(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()}
<input type="hidden" id="designId" name="designId" value="${order.getDesignId()}">
<table class="z-table z-bordered-line z-pd-t6 z-pd-b6 z-pd-r6 z-bg-white z-text-left z-mg-b10">
<tr class="z-h40">
<td width="100" align="right">订&emsp;单&emsp;号&emsp;</td>
<td width="160"><span>${order.getDesignId()}</span></td>
<td width="100" align="right">组&emsp;织:</td>
<td width="160"><span id="orgId" value="${order.getOrgId()}">${ZmrOrgDao.getOrgName(request, order.getOrgId())}</span></td>
<td width="100" align="right">设计师:</td>
<td width="100"><span id="designer" value="${order.getDesigner()}">${order.getDesigner()}</span></td>
</tr>
<tr class="z-h40">
<td align="right">店&ensp;铺&ensp;名&ensp;称&ensp;</td>
<td>${order.getShopNick()}</td>
<td align="right">旺旺号:</td>
<td colspan="3">${order.getBuyerNick()}</td>
</tr>
<tr class="z-h40">
<td width="150" align="right">质检违规原因:</td>
<td colspan="5">
<select id="content" class="z-select" data-role="z-select" data-class="${zmr_color_class}">
<option value="">请选择</option>
<#for item : list>
<option value="${item.getContent()}">${item.getContent()}</option>
</#for>
</select>
</td>
</tr>
<tr class="z-h40">
<td width="150" align="right">质检违规描述:</td>
<td colspan="5">
<textarea id="description" name="describe" class="z-textarea z-w80p z-h100"></textarea>
</td>
</tr>
</table>
<div style="border:1px solid #ccc; min-height:280px; height:auto;" class="z-mg3">
<div style="display:none" id="imgData"></div>
<div id="imgSrc"></div>
</div>
<#-- 操作 -->
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
<div class="z-mg-t5">
<button type="button" id="doSubmit" class="z-button z-large z-w120 ${zmr_color_class}" onclick="doSubmit();">提交</button>&nbsp;&nbsp;
<button type="button" class="z-button z-large z-w100 z-red" onclick="doCancel();">清空图片</button></td>
</div>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,157 @@
${Scripts.src("/zinc/js/global_2019010801.js")}
<script>
function qcJudge()
{
var designId = Z.FM.getChecked("designId");
var dialog = new Z.Dialog();
dialog.title = "质检违规判定(截图粘贴在下方空白框内)";
dialog.url = "/qcJudge.htm?designId=" + designId;
dialog.width = 800;
dialog.height = 590;
dialog.execute();
}
function qcNormal()
{
var designId = Z.FM.getChecked("designId");
var orgId = Z("#orgId").val();
var ajax = new Z.Ajax();
ajax.setClassName("QcOrderPresenter");
ajax.setMethodName("updateQcFlag");
ajax.addParam("designId", designId);
ajax.addParam("orgId", orgId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("质检正常",function(){location.reload();});
});
ajax.setLoading("qcOrderList", '正在加载', {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 class="z-active">质检订单列表</li>
<li onclick="Z.L.href('/qcViolationsList.htm');">质检违规列表</li>
<li onclick="Z.L.href('/qcApplyScoreList.htm');">质检加分列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/qcOrderList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="25%">订&nbsp;单&nbsp;号&nbsp;<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>设计师:
<select name="designer" class="z-select z-w160" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : operatorList>
<option <#if designerList.contains(item.getOperatorCode())>class="z-text-red"</#if> value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#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()!= "1.1" && statusStr.value()!= "1.2">
<option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
</#if>
</#for>
</select>
</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()>
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<tr>
</tr class="z-h40">
<td>
质检状态:<select name="qcFlag" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if qcFlag == 0>selected</#if>>未质检</option>
<option value="1" <#if qcFlag == 1>selected</#if>>质检正常</option>
</select>
</td>
<td colspan="3">
录单时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-
<input id="stopDate" name="stopDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${stopDate}">
</td>
</tr>
<tr class="z-h40" align="center">
<td colspan="4"><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-r6 ${zmr_color_class}" onclick="qcNormal();"><i class="z-font z-success"></i>质检正常</button>
<button type="button" class="z-button z-red z-mg-r6" onclick="qcJudge();"><i class="z-font z-error"></i>质检违规</button>
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</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="100">订单号</td>
<td width="100">所属组织</td>
<td width="120">设计</td>
<td width="140">旺旺号</td>
<td width="130">店铺</td>
<td width="100">设计师</td>
<td width="100">状态</td>
<td width="*" style="min-width:220px">产品</td>
<td width="100">进度备注</td>
<td width="80">订单金额</td>
<td width="90">领取时间</td>
<td width="90">设计时间</td>
<td width="90">初稿时间</td>
<td width="100">状态</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 20, "暂时没有质检订单")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<input id="userQq_${item.getDesignId()}" type="hidden" value="${item.getUserQq()}">
<input id="orgId" type="hidden" value="${item.getOrgId()}">
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()} >
<td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
<td> ${item.getDesignId()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getShopNick()}</td>
<td>${item.getDesigner()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getOrderText()}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignBeginTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
<td>
<#if item.getQcFlag()==0>未质检</#if>
<#if item.getQcFlag()==1><span class="z-text-blue">质检正常</span></#if>
</td>
</tr>
</#for>
${zhiqim_manager_paging(pageResult, "/qcOrderList.htm")}
</table>
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,181 @@
${Styles.htmlOverflowHidden()}
${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 chart = Highcharts.chart('container',
{
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie',
title: {text: '质检违规原因分析'},
tooltip: {headerFormat: '{series.name}<br>',pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'},
plotOptions:
{
pie:
{
allowPointSelect: true, // 可以被选择
cursor: 'pointer', // 鼠标样式
dataLabels:
{
enabled: true,
useHTML: true,
format: '<span style=" white-space:normal;">{point.name}</span>'
+ '<span style="display:block;">订单数量:{point.y}</span>'
+ '<span style="display:block;">占比:{point.percentage:.1f} % </span>',
}
}
},
series:
[{
type: 'pie',
name: '质检原因占比',
data:
[
<#for item : map.entrySet()>
['${item.getKey()}', ${item.getValue()}],
</#for>
]
}]
});
});
function doApply()
{
var designer = '${request.getSessionName()}';
var dialog = new Z.Dialog();
dialog.title = "申请加分(截图粘贴在下方空白区域)";
dialog.url = "/qcApplyScore.htm?designer=" + designer;
dialog.width = 800;
dialog.height = 600;
dialog.execute();
}
function doViewDetail(designId)
{
var dialog = new Z.Dialog();
dialog.title = "质检违规详情";
dialog.url = "/qcViolationsDetail.htm?designId=" + designId;
dialog.width = 800;
dialog.height = 600;
dialog.execute();
}
function doViewApplyDetail(applyId)
{
var dialog = new Z.Dialog();
dialog.title = "申请加分凭证";
dialog.url = "/qcApplyDetail.htm?applyId=" + applyId + '&readonly=true';
dialog.width = 800;
dialog.height = 600;
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-float-left z-mg10 z-lh30">
<form name="theForm" action="/qcPersonal.htm" method="post">
&nbsp;质检日期:
<select name="year" class="z-select z-w110" data-role="z-select" data-class="${zmr_color_class}" value="${year}">
<#for item : yearList>
<option value="${item}" <#if item==year>selected</#if>>${item}</option>
</#for>
</select>
<select name="month" class="z-select z-w110" data-role="z-select" data-class="${zmr_color_class}" value="${month}">
<option value="1" <#if month==1>selected</#if>>1</option>
<option value="2" <#if month==2>selected</#if>>2</option>
<option value="3" <#if month==3>selected</#if>>3</option>
<option value="4" <#if month==4>selected</#if>>4</option>
<option value="5" <#if month==5>selected</#if>>5</option>
<option value="6" <#if month==6>selected</#if>>6</option>
<option value="7" <#if month==7>selected</#if>>7</option>
<option value="8" <#if month==8>selected</#if>>8</option>
<option value="9" <#if month==9>selected</#if>>9</option>
<option value="10" <#if month==10>selected</#if>>10</option>
<option value="11" <#if month==11>selected</#if>>11</option>
<option value="12" <#if month==12>selected</#if>>12</option>
</select>
<button class="z-button z-w80 z-blue z-mg-l5"><i class="z-font z-query"></i>查询</button>
<button type="button" class="z-button z-mg-l5 ${zmr_color_class}" onclick="doApply();"><i class="z-font z-add"></i>申请加分</button>
<span class="z-mg-l5 z-bold">当前质检分数:</span><span class="z-text-red">${score}</span>
</form>
</div>
</nav>
</div>
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="50%"><div id="container" class="z-bg-white" style="min-width:400px;height:600px"></div></td>
<td width="*">
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td colspan="5"><span class="z-bold z-float-left">设计师[${designer}]质检扣分表</span></td>
</tr>
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="15%">违规单号</td>
<td width="*%">违规原因</td>
<td width="10%">违规扣分</td>
<td width="100">质检时间</td>
<td width="15%">操作</td>
</tr>
<#for item : pageResult.list()>
<tr>
<td>${item.getDesignId()}</td>
<td>${item.getReason()}</td>
<td>-${item.getScore()}</td>
<td>${item.getQcTime()}</td>
<td><button class="z-button z-w90 z-blue" onclick="doViewDetail(${item.getDesignId()})">详情</button></td>
</tr>
</#for>
${zhiqim_manager_tr_no_record(pageResult, 20, "没有质检扣分订单")}
</table>
${zhiqim_manager_paging(pageResult, "/qcPersonal.htm")}
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center z-mg-t10">
<tr bgcolor="${zmr_thead_bgcolor}">
<td colspan="5"><span class="z-bold z-float-left">设计师[${designer}]质检加分表</span></td>
</tr>
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="15%">申请ID</td>
<td width="*">申请原因</td>
<td width="100">退回原因</td>
<td width="10%">质检加分</td>
<td width="100">申请时间</td>
<td width="100">申请状态</td>
<td width="15%">操作</td>
</tr>
<#for item : result.list()>
<tr>
<td>${item.getApplyId()}</td>
<td>${item.getApplyReason()}</td>
<td>${item.getApplyBackReason()}</td>
<td>+${item.getScore()}</td>
<td>${item.getApplyTime()}</td>
<td>
<#if item.getApplyFlag()==0>申请中</#if>
<#if item.getApplyFlag()==1><span class="z-text-blue">申请成功</span></#if>
<#if item.getApplyFlag()==2><span class="z-text-red">申请失败</span></#if>
</td>
<td><button class="z-button z-w90 z-blue" onclick="doViewApplyDetail(${item.getApplyId()})">详情</button></td>
</tr>
</#for>
${zhiqim_manager_tr_no_record(result, 20, "没有申请加分")}
</table>
${zhiqim_manager_paging(result, "/qcPersonal.htm")}
</td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,61 @@
<style>
body{ text-align:center}
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<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()}
<input type="hidden" id="designId" name="designId" value="${order.getDesignId()}">
<table class="z-table z-bordered-line z-pd6 z-bg-white z-text-left z-mg-b10">
<tr class="z-h40">
<td width="100" align="right">设计订单:</td>
<td width="160"><span id="designId" value="${order.getDesignId()}">${order.getDesignId()}</span></td>
<td width="100" align="right">组织:</td>
<td width="160"><span id="orgId" value="${order.getOrgId()}">${ZmrOrgDao.getOrgName(request, order.getOrgId())}</span></td>
<td width="100" align="right">设计师:</td>
<td width="100"><span id="designer" value="${order.getDesigner()}">${order.getDesigner()}</span></td>
</tr>
<tr class="z-h40">
<td align="right">店铺名称:</td>
<td><span id="shopNick" value="${order.getShopNick()}">${order.getShopNick()}</span></td>
<td align="right">旺旺号:</td>
<td><span id="buyerNick" value="${order.getBuyerNick()}">${order.getBuyerNick()}</span></td>
<td width="100" align="right">违规扣分:</td>
<td>-${record.getScore()}</td>
</tr>
<tr class="z-h40">
<td align="right">产品信息:</td>
<td colspan="5">${order.getOrderText()}</td>
</tr>
<tr class="z-h40">
<td width="150" align="right">质检违规原因:</td>
<td colspan="5">${record.getReason()}</td>
</tr>
<tr class="z-h40">
<td width="150" align="right">质检违规描述:</td>
<td colspan="5">${record.getDescription()}</td>
</tr>
</table>
<div class="z-pd5">
<img alt="质检违规证据图" src="/${atta.getAttaId()}-0-qcImg" onclick="showLargeImg(this)">
</div>
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
<div class="z-mg-t5">
<button type="button" class="z-button z-large z-blue z-w100" onclick="parent.Z.Dialog.close();">关闭</button></td>
</div>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,127 @@
<script>
function doViewDetail(designId)
{
var dialog = new Z.Dialog();
dialog.title = "质检违规详情";
dialog.url = "/qcViolationsDetail.htm?designId=" + designId;
dialog.width = 800;
dialog.height = 600;
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('/qcOrderList.htm');">质检订单列表</li>
<li class="z-active">质检违规列表</li>
<li onclick="Z.L.href('/qcApplyScoreList.htm');">质检加分列表</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" action="/qcViolationsList.htm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="25%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
<td>设计师:
<select name="designer" class="z-select z-w160" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : operatorList>
<option <#if designerList.contains(item.getOperatorCode())>class="z-text-red"</#if> value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td>
订单状态:<select name="status" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for statusStr : StatusConstants.getOrderStatusList()>
<#if statusStr.value()!= "1.1" && statusStr.value()!= "1.2">
<option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
</#if>
</#for>
</select>
</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()>
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<tr>
</tr class="z-h40">
<td colspan="4">
录单时间:<input id="beginDate" name="beginDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${beginDate}">&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>
</tr>
<tr class="z-h40" align="center">
<td colspan="4"><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-r6 ${zmr_color_class}" onclick="qcNormal();"><i class="z-font z-success"></i>质检正常</button>
<button type="button" class="z-button z-red z-mg-r6" onclick="qcJudge();"><i class="z-font z-return"></i>质检违规</button>
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button>
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openQQ();"><img src="/zinc/images/qq.png">QQ联系</button>
-->
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="100">订单号</td>
<td width="100">所属组织</td>
<td width="120">设计</td>
<td width="140">旺旺号</td>
<td width="130">店铺</td>
<td width="100">设计师</td>
<td width="100">状态</td>
<td width="*" style="min-width:220px">产品</td>
<td width="80">订单金额</td>
<td width="90">录单时间</td>
<td width="100">对稿微信</td>
<td width="110">对稿手机</td>
<td width="100">操作</td>
</tr>
${zhiqim_manager_tr_no_record(pageResult, 20, "暂时没有质检订单")}
<#for item : pageResult.list()>
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
<input id="userQq_${item.getDesignId()}" type="hidden" value="${item.getUserQq()}">
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()} >
<td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
<td> ${item.getDesignId()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getShopNick()}</td>
<td>${item.getDesigner()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${item.getUserWx()}</td>
<td>${item.getUserMobile()}</td>
<td><button class="z-button z-w80 z-blue" onclick="doViewDetail(${item.getDesignId()})">详情</button></td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/qcViolationsList.htm")}
${zhiqim_manager_content_end()}
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,100 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(0, 70)}
<script>
function doContendOrder(designId,orderText,status)
{//抢单
if (status == 10){
var dialog = new Z.Dialog();
dialog.title = "接受订单";
dialog.url = "/contendOrder.htm?designId="+designId+"&orderText="+orderText;
dialog.width = 600;
dialog.height = 460;
dialog.execute();
} else {
Z.alert('该订单已被领取!',
function(){
parent.location.reload();
parent.Z.Dialog.close();
});
};
}
</script>
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<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" action="receiveOrder.htm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white" >
<tr class="z-h40">
<td >&nbsp;产品类型:
<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : typeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="1300px">
<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="receiveOrder">
<td width="60">订单号</td>
<td width="200">产品信息</td>
<td width="60">产品类型</td>
<td width="100">特殊工艺</td>
<td width="60">设计佣金</td>
<td width="60">加急费</td>
<td width="100">设计等级</td>
<td width="60">下单时间</td>
<td width="100">操作</td>
</tr>
<#if pageResult.size() == 0>
${zhiqim_manager_no_record(8,"暂不存在抢单信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40 ">
<td>${item.getDesignId()}
<#if item.isUrgent()>
<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>
</td>
<td>${item.getOrderText()}</td>
<td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
<td>
<#if item.getUrgentPrice() gt 0>
${Amounts.toYuanMustRadix(item.getUrgentPrice())}
<#else>
</#if>
</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td><button type="button" class="z-button z-green z-w100" onclick="doContendOrder('${item.getDesignId()}','${item.getOrderText()}','${item.getStatus()}')">抢单</button></td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "/receiveOrder.htm")}
</div>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,95 @@
<script>
function retentionDealTrigger(){
var designId =${order.getDesignId()};
var retentDealWay =Z("input[name='retentDealWay']:checked").val();
var retentFollowFlag =Z("input[name='retentFollowFlag']:checked").val();
var retentRemark =Z("#retentRemark").val();
if (Z.V.isEmpty(designId))
{
Z.alert("订单号不存在");
return;
}
if (Z.V.isEmpty(retentRemark))
{
Z.alert("请填写处理滞留单备注");
return;
}
var ajax = new Z.Ajax();
ajax.setClassName("OrderPresenter");
ajax.setMethodName("doRetentionDealTrigger");
ajax.addParam("designId", designId);
ajax.addParam("retentDealWay", retentDealWay);
ajax.addParam("retentFollowFlag", retentFollowFlag);
ajax.addParam("retentRemark", retentRemark);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("处理成功!",function(){
location.reload();
Z.Dialog.close();
})
});
ajax.execute();
}
</script>
<!--标题部分-->
<div id="title_content" class="z-hide">
<div class="z-bold">
<div class="z-float-left z-pd10 z-mg-t3">订&nbsp;单&nbsp;号:${order.getDesignId()}</div>
<div class="z-float-left z-pd10 z-mg-t3">滞留时长:${retentDealTime}</div>
</div>
</div>
<!-- 内容 -->
<div style="margin-top: 20px;height:120px;">
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px solid;align-items: center;display: flex;height:50%;">
<div class="z-float-left zi-mg-t18 zi-mg-l20" style="width:260px">
<span class="z-bold">旺旺号:</span>
${order.getBuyerNick()}
</div>
<div class="z-float-left zi-mg-t18" style="width:600px;">
<span class="z-bold">产品类型:</span>
${order.getOrderText()}
</div>
<div class="z-float-left zi-mg-t18 zi-mg-l50" style="width:160px;">
<span class="z-bold">设计师:</span>
${order.getDesigner()}
</div>
</div>
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px solid;align-items: center;display: flex;height:50%;margin-top:1px;">
<div class="z-float-left zi-mg-t18 zi-mg-l20" style="width:360px">
<span class="z-bold">组织名称:</span>
${ZmrOrgDao.getOrgName(request, order.getOrgId())}
</div>
<div class="z-float-left zi-mg-t18 zi-mg-l20" style="width:400px;">
<span class="z-bold">订单金额:</span>
${Amounts.toYuan(order.getAmount())}
</div>
<div class="z-float-left zi-mg-t18 zi-mg-l50" style="width:280px">
<span class="z-bold">店铺名称:</span>
${order.getShopNick()}
</div>
</div>
</div>
<!-- <div class="z-px18 z-pd6">滞留单处理结果反馈<label style="margin-left:100px">反馈人&nbsp;:</label></div> -->
<div style="height:60px;border-bottom:rgb(211, 211, 211) 1px solid;" class="z-pd-l15">
<div style="width:40%;border-right:rgb(211, 211, 211) 1px solid;display:inline-block;height:100%;padding-top: 30px;">处理方式:
<label class="z-pd-l20"><input name="retentDealWay" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="0" checked>&nbsp;&nbsp;寄存</label>
<label class="z-pd-l20"><input name="retentDealWay" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" >&nbsp;&nbsp;退款</label>
</div>
<div style="width:60%;display:inline;" class="z-pd-l15">设计师跟进情况:
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="0" checked>&nbsp;&nbsp;较好</label>
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" >&nbsp;&nbsp;一般</label>
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="2" >&nbsp;&nbsp;差</label>
</div>
</div>
<div class="z-px18 z-pd-l20 z-pd-t20">备注</div>
<div class="z-pd-l20 z-pd-r20 z-pd-t10">
<textarea class="z-w100p z-h100" id="retentRemark" name="retentRemark" placeholder=""></textarea>
</div>
<div style="width: 100%;display: flex;height: 80px;align-items: center;justify-content: center;">
<button class="z-button z-w80 z-cyan z-h30 z-mg-r50" onclick="retentionDealTrigger()">提交</button>
<button class="z-button z-w80 z-cyan z-h30" onclick="Z.Dialog.close();">关闭</button>
</div>
@@ -0,0 +1,59 @@
<!--标题部分-->
<div id="title_content" class="z-hide">
<div class="z-bold">
<div class="z-float-left z-pd10 z-mg-t3">订&nbsp;单&nbsp;号:${order.getDesignId()}</div>
<div class="z-float-left z-pd10 z-mg-t3">滞留时长:${retentDealTime}</div>
</div>
</div>
<!-- 内容 -->
<div style="margin-top: 20px;height:120px;">
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px solid;align-items: center;display: flex;height:50%;">
<div class="z-float-left zi-mg-t18 zi-mg-l20" style="width:260px">
<span class="z-bold">旺旺号:</span>
${order.getBuyerNick()}
</div>
<div class="z-float-left zi-mg-t18" style="width:600px;">
<span class="z-bold">产品类型:</span>
${order.getOrderText()}
</div>
<div class="z-float-left zi-mg-t18 zi-mg-l50" style="width:160px;">
<span class="z-bold">设计师:</span>
${order.getDesigner()}
</div>
</div>
<div class="z-h40 z-mg-t-20" style="border-bottom:rgb(211, 211, 211) 1px solid;align-items: center;display: flex;height:50%;margin-top:1px;">
<div class="z-float-left zi-mg-t18 zi-mg-l20" style="width:360px">
<span class="z-bold">组织名称:</span>
${ZmrOrgDao.getOrgName(request, order.getOrgId())}
</div>
<div class="z-float-left zi-mg-t18 zi-mg-l20" style="width:400px;">
<span class="z-bold">订单金额:</span>
${Amounts.toYuan(order.getAmount())}
</div>
<div class="z-float-left zi-mg-t18 zi-mg-l50" style="width:280px">
<span class="z-bold">店铺名称:</span>
${order.getShopNick()}
</div>
</div>
</div>
<div style="height:35px;border-bottom:rgb(211, 211, 211) 1px solid;padding-left:20px;display:flex;align-items: center;background-color: rgb(245, 245, 245);">滞留单处理结果反馈<label style="margin-left:130px">反馈人&nbsp;:&nbsp;${order.getRetentDealName()}</label></div>
<div style="height:60px;border-bottom:rgb(211, 211, 211) 1px solid;" class="z-pd-l15">
<div style="width:40%;border-right:rgb(211, 211, 211) 1px solid;display:inline-block;height:100%;padding-top: 30px;">处理方式:
<label class="z-pd-l20"><input name="retentDealWay" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="0" <#if order.getRetentDealWay()==0>checked</#if>>&nbsp;&nbsp;寄存</label>
<label class="z-pd-l20"><input name="retentDealWay" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" <#if order.getRetentDealWay()==1>checked</#if>>&nbsp;&nbsp;退款</label>
</div>
<div style="width:60%;display:inline;" class="z-pd-l15">设计师跟进情况:
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="0" <#if order.getRetentFollowFlag()==0>checked</#if>>&nbsp;&nbsp;较好</label>
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" <#if order.getRetentFollowFlag()==1>checked</#if>>&nbsp;&nbsp;一般</label>
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="2" <#if order.getRetentFollowFlag()==2>checked</#if>>&nbsp;&nbsp;差</label>
</div>
</div>
<div class="z-px18 z-pd-l20 z-pd-t20">备注</div>
<div class="z-pd-l20 z-pd-r20 z-pd-t10">
<textarea class="z-w100p z-h100" id="retentRemark" name="retentRemark" placeholder="">${order.getRetentRemark()}</textarea>
</div>
<div style="width: 100%;display: flex;height: 80px;align-items: center;justify-content: center;">
<button class="z-button z-w100 z-h40" onclick="Z.Dialog.close()">关闭</button>
</div>
@@ -0,0 +1,27 @@
<style>
body{ text-align:center}
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
</style>
<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()}
<#for item : attaList>
<div class="z-pd5">
<img alt="截图" src="/${item.getAttaId()}-${item_index}-img" onclick="showLargeImg(this)">
</div>
</#for>
<br><br>
${zhiqim_manager_content_end()}
@@ -0,0 +1,148 @@
${Scripts.src("/zinc/chart/highcharts.js")}
${Scripts.src("/zinc/chart/exporting.js")}
${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
<script>
Z.onload(function()
{
Highcharts.setOptions({
colors: ['#c00','#006600']
});
var chart = Highcharts.chart('container',
{
title: {text: '组织初稿时效统计(总单量:${designOrderSum}'},
tooltip: {headerFormat: '{series.name}<br>', pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'},
plotOptions:
{
pie:
{
allowPointSelect: true, // 可以被选择
cursor: 'pointer', // 鼠标样式
dataLabels:
{
enabled: true,
useHTML: true,
format: '<span style=" white-space:normal;">{point.name}</span>'
+ '<span style="display:block;">订单数量:{point.y}</span>'
+ '<span style="display:block;" class="z-text-red">占比:{point.percentage:.1f} % </span>',
}
}
},
series:
[{
type: 'pie',
name: '订单量占比',
data:
[
<#for item : statMap.entrySet()>
['${item.getKey()}', ${item.getValue()}],
</#for>
]
}]
});
});
</script>
${zhiqim_manager_breadcrumb("组织初稿时效")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistory.htm")><li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li></#if>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
<li class="z-active">组织初稿时效</li>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form action="timelinessOrgStat.htm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="40%">录单时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-&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}">&nbsp;&nbsp;&nbsp;
产品类型:
<select name="typeId" class="z-select z-mg-r20" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部产品</option>
<#for items : designTypeList>
<option value="${items.getTypeId()}" <#if items.getTypeId()==typeId>selected</#if>>${items.getTypeName()}</option>
</#for>
</select>
</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>
<#-- 分页列表-->
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="50%"><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-mg-b20 z-lh30 z-text-left z-pd-r10 z-pd-l10 z-pd-b5 z-pd-t5">
<tr>
<td><span class="z-bold">当日总设计单:</span>&nbsp;&nbsp;&nbsp;${designOrderSum}</td>
<td colspan="3"></td>
</tr>
<tr>
<td width="40%"><span class="z-bold">当日总初稿:</span>&nbsp;&nbsp;${firstDraftSum}</td>
<td width="30%"><span>时效内:</span>${timelinessSum}</td>
<td width="30%"><span>已超时:</span>${exceedTimelinessSum}</td>
</tr>
<tr>
<td width="40%"><span class="z-bold">等待初稿:</span>&nbsp;&nbsp;${sleepDraftSum}</td>
<td width="30%"><span>时效内:</span>${sleepTimelinessSum}</td>
<td width="30%"><span>已超时:</span>${exceedSleepTimelinessSum}</td>
</tr>
</table>
<table class="z-table z-bordered-line z-pd10 z-bg-white z-text-left">
<tr>
<td colspan="9" class="z-bold">组织初稿时效统计表</td>
</tr>
<tr class="z-bg-gray">
<td width="15%">组织名称</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="15%">超时百分比</td>
</tr>
<#for item : orgStatModelList>
<tr>
<td>${item.getOrgName()}</td>
<td>${item.getOrgOrderSum()}</td>
<td>${item.getOrgFirstDraftSum()}</td>
<td>${item.getOrgTimelinessSum()}</td>
<td>${item.getOrgExceedTimelinessSum()}</td>
<td>${item.getOrgSleepDraftSum()}</td>
<td>${item.getOrgSleepTimelinessSum()}</td>
<td>${item.getOrgExceedSleepTimelinessSum()}</td>
<td>${item.getOrgExceedPrent()}%</td>
</tr>
</#for>
<tr class="z-bold">
<td>总计</td>
<td>${designOrderSum}</td>
<td>${firstDraftSum}</td>
<td>${timelinessSum}</td>
<td>${exceedTimelinessSum}</td>
<td>${sleepDraftSum}</td>
<td>${sleepTimelinessSum}</td>
<td>${exceedSleepTimelinessSum}</td>
<td>${prentSum}%</td>
</tr>
</table>
</td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,127 @@
<script>
function doQueryDesigner(designer)
{
Z("#designer").val(designer);
Z.loading(document);
Z("#theForm")[0].submit();
}
</script>
<#def designatedPath="/timeoutOrderNear.htm"/>
${zhiqim_manager_breadcrumb("定稿超时列表")}
${zhiqim_manager_content()}
<#-- 页面数据定义 -->
<#var typeMap = DesignTypeDao.mapAll()/>
<#var industryMap = Global.get(DesignIndustryCache.class).mapAll()/>
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistory.htm")><li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li></#if>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<li class="z-active">定稿超时列表</li>
<#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
<#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" id="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<input type="hidden" name="designer" id="designer" value="">
<tr class="z-h40">
<td width="24%">录单时间:
<input name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
<input name="endDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td width="24%">是否定稿:
<select name="hasComplete" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="1" <#if 1 == hasComplete>selected</#if>>已定稿</option>
<option value="0" <#if 0 == hasComplete>selected</#if>>未定稿</option>
</select>
</td>
<td width="*">选择行业:
<select name="industryId" class="z-select z-w180" 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>
</td>
<td width="*"><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>
<tr>
</tr>
</table>
</form>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-pd6 z-bd-none">
<tr>
<td width="300" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="100">序号</td>
<td width="100">设计师</td>
<td width="100">订单数</td>
</tr>
<#for item : map.keySet()>
<tr class="z-h40" <#if item == designer>bgcolor="#f3fdfc"</#if> onclick="doQueryDesigner('${item}');">
<td>${item_index +1}</td>
<td>${item}</td>
<td>${map.get(item)}</td>
</tr>
</#for>
<#if map.values().isEmpty()>
${zhiqim_manager_no_record(3, "暂时没有信息")}
</#if>
</table>
</td>
<td width="*" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单ID</td>
<td width="*">订单信息</td>
<td width="100">旺旺名</td>
<td width="150">录单时间</td>
<td width="150">初稿时间</td>
<td width="150">定稿时间</td>
<td width="150">进度备注</td>
<td width="100">超时时长</td>
<td width="100">设计师</td>
<td width="100">行业</td>
</tr>
<#for item : pageResult.list()>
<#var effectiveTime = 24*60/>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()}>
<td>${item.getDesignId()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getBuyerNick()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td><span class="z-text-red"><#if Validates.isNotEmpty(item.getDesignEndTime())>${DateTimes.compareMinute(item.getDesignEndTime(), item.getCreateTime()) - effectiveTime}<#else>${DateTimes.compareMinute(Sqls.nowTimestamp(), item.getCreateTime()) - effectiveTime}</#if> 分钟</span></td>
<td>${item.getDesigner()}</td>
<td><#if Validates.isNotEmpty(industryMap) && industryMap.containsKey(item.getIndustryId())>${industryMap.get(item.getIndustryId()).getIndustryName()}</#if></td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(10, "暂时没有定稿超时列表信息")}
</#if>
</table>
${zhiqim_manager_paging(pageResult, "timeoutCompleteOrderHistory.htm")}
</td>
</tr>
</table>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,83 @@
${zhiqim_manager_breadcrumb("派单超时")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/timeoutMerDispatch.htm")><li onclick="Z.L.href('timeoutMerDispatch.htm');">分拣超时</li></#if>
<li class="z-active">派单超时</li>
<#if ZmrPathRule.check(request, "/timeoutDraftOrder.htm")><li onclick="Z.L.href('timeoutDraftOrder.htm');">初稿超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">设计师定稿超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrgComplete.htm")><li onclick="Z.Location.href('timeoutOrgComplete.htm');">组织定稿超时统计</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件&emsp;<span style='color:red;'>此列表展示派单超时仍未派送订单(等待设计到正在设计)</span>")}
<form name="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="240">订单号:
<input name="designId" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号" >
</td>
<td width="240">旺旺号:
<input name="buyerNick" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号" >
</td>
<td width="270">选择行业:
<select name="industryId" class="z-select z-w180" 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>
</td>
<td width="270">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DesignTypeDao.listAll()>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*"><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>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="140">订单号</td>
<td width="160">旺旺名</td>
<td width="*">产品</td>
<td width="150">组织</td>
<td width="125">录单客服</td>
<td width="155">分拣时间</td>
<td width="140">进度备注</td>
<td width="130">行业</td>
<td width="140">超时时长</td>
</tr>
<#var typeMap = DesignTypeDao.mapAll()/>
<#for item : pageResult.list()>
<#var effectiveTime = Validates.isEmpty(typeMap) ? 0 : ( typeMap.containsKey(item.getTypeId()) ? typeMap.get(item.getTypeId()).getDispatchOrderEffectiveTime() : 0)/>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} <#if item_index % 2 == 0>bgcolor="#f3fdfc"</#if>>
<td>${item.getDesignId()}</td>
<td>${item.getBuyerNick()}</td>
<td>${item.getOrderText()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${item.getCreater()}</td>
<td>${Sqls.toDateTimeString(item.getOrgReceiveTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
<td><span class="z-text-red">${CalculationUtil.dateTimeTran(DateTimes.compareMinute(Sqls.nowTimestamp(), item.getOrgReceiveTime()) - effectiveTime)}</span></td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(10, "暂时没有派单超时订单信息")}
</#if>
</table>
</div>
${zhiqim_manager_paging(pageResult, "timeoutDispatchOrder.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,121 @@
<script>
Z.onload(function()
{
doQueryDesigner('${designer}');
});
var designer;
function doQueryDesigner(designers)
{
designer = designers;
doQueryTimeoutDraftOrder(1);
}
function doQueryTimeoutDraftOrder(page)
{
var ajax = new Z.Ajax();
ajax.setClassName("StatPresenter");
ajax.setMethodName("doQueryTimeoutDraftOrder");
ajax.addParam("page",page);
ajax.addParam("beginDate", Z("#beginDate").val());
ajax.addParam("endDate", Z("#endDate").val());
ajax.addParam("designer", designer);
ajax.setCallback("result");
ajax.setLoading("result");
ajax.execute();
}
function doProgressNote(id)
{//进度备注
var designId =id
if (Z.V.isEmpty(designId))
{
designId = Z.FM.getChecked("designId");
if (Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
}
var dialog = new Z.Dialog();
dialog.title = "订单["+designId+"]进度备注";
dialog.url = "/progressNote.htm?designId="+designId;
dialog.width = 1000;
dialog.height = 630;
dialog.execute();
}
</script>
${zhiqim_manager_breadcrumb("初稿超时")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<#if ZmrPathRule.check(request, "/timeoutMerDispatch.htm")><li onclick="Z.L.href('timeoutMerDispatch.htm');">分拣超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDispatchOrder.htm")><li onclick="Z.L.href('timeoutDispatchOrder.htm');">派单超时</li></#if>
<li class="z-active">初稿超时</li>
<#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">定稿超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrgComplete.htm")><li onclick="Z.Location.href('timeoutOrgComplete.htm');">组织定稿超时统计</li></#if>
</ul>
</nav>
</div>
<table class="z-table z-bordered z-pd6">
<tr>
<td colspan="2">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件&emsp;<span style='color:red;'>此列表展示初稿超时订单</span>")}
<form name="theForm" action="timeoutDraftOrder.htm" id="timeoutDraftOrder">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="345">
接单日期:<input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="<#if Validates.isNotEmpty(beginDate)>${beginDate}<#else>${DateTimes.getDateString()}</#if>"> -
<input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120"value="<#if Validates.isNotEmpty(endDate)>${endDate}<#else>${DateTimes.getDateString()}</#if>">
</td>
<#if isOrgRoot> <td width="250">
设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
</td></#if>
<td width="*"><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>
</td>
</tr>
<tr class="z-h40">
<td width="330" valign="top">
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40">
<td>设计师</td>
<td>接单量</td>
<td>超时量</td>
<td>超时率</td>
</tr>
<#for item : pageResult.list()>
<tr class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}" onclick="doQueryDesigner('${item.getDesigner()}');">
<td>${item.getDesigner()}</td>
<td>${item.getOrdCount()}</td>
<td>${item.getTimeoutOrdCount()}</td>
<td>${CalculationUtil.calculatePercent(item.getTimeoutOrdCount(),item.getOrdCount())}</td>
</tr>
</#for>
<#if pageResult.list().size() == 0>
${zhiqim_manager_no_record(4, "暂时没有初稿超时统计信息")}
<#else>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td>总计</td>
<td>${ordSum}</td>
<td>${timeoutOrdSum}</td>
<td>${CalculationUtil.calculatePercent(timeoutOrdSum,ordSum)}</td>
</tr>
</#if>
</table>
${zhiqim_manager_paging(pageResult, "/timeoutDraftOrder.htm")}
</td>
<td width="*" id="result" valign="top" id="result" ></td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,99 @@
<script>
Z.onload(function()
{
doQueryTimeoutMerDispatchOrder(1);
});
function doQueryTimeoutMerDispatchOrder(page)
{
var ajax = new Z.Ajax();
ajax.setClassName("StatPresenter");
ajax.setMethodName("doQueryTimeoutMerDispatchOrder");
ajax.addParam("page",page);
ajax.addParam("designId", Z("#designId").val());
ajax.addParam("buyerNick", Z("#buyerNick").val());
ajax.addParam("typeId", Z("#typeId").val());
ajax.addParam("industryId", Z("#industryId").val());
ajax.addParam("beginDate", Z("#beginDate").val());
ajax.addParam("endDate", Z("#endDate").val());
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>
<#if ZmrPathRule.check(request, "/timeoutDispatchOrder.htm")><li onclick="Z.L.href('timeoutDispatchOrder.htm');">派单超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDraftOrder.htm")><li onclick="Z.L.href('timeoutDraftOrder.htm');">初稿超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutDesignerComplete.htm")><li onclick="Z.Location.href('timeoutDesignerComplete.htm');">定稿超时</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrgComplete.htm")><li onclick="Z.Location.href('timeoutOrgComplete.htm');">组织定稿超时统计</li></#if>
</ul>
</nav>
</div>
<table class="z-table z-bordered z-pd6">
<tr>
<td colspan="2">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件&emsp;<span style='color:red;'>此列表展示分拣超时订单</span>")}
<form name="theForm" action="timeoutMerDispatch.htm" id="timeoutMerDispatch">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="240">订单号:
<input name="designId" id="designId" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号" >
</td>
<td width="240">旺旺号:
<input name="buyerNick" id="buyerNick" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号" >
</td>
<td width="270">选择行业:
<select name="industryId" id="industryId" class="z-select z-w180" 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>
</td>
<td width="270">产品类型:<select name="typeId" id="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DesignTypeDao.listAll()>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="345">
创建日期:<input name="beginDate" id="beginDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120" value="<#if Validates.isNotEmpty(beginDate)>${beginDate}<#else>${DateTimes.getDateString()}</#if>"> -
<input name="endDate" id="endDate" onfocus="Z.date(this);" readonly class="z-input ${zmr_color_class} z-w120"value="<#if Validates.isNotEmpty(endDate)>${endDate}<#else>${DateTimes.getDateString()}</#if>">
</td>
<td width="*"><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>
</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">
<td>订单量</td>
<td>超时量</td>
<td>超时率</td>
</tr>
<tr class="z-h40">
<td>${ordCount}</td>
<td>${timeoutOrdCount}</td>
<td>${CalculationUtil.calculatePercent(timeoutOrdCount,ordCount)}</td>
</tr>
</table>
</td>
<td width="*" id="result" valign="top" id="result" ></td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,142 @@
<script>
function doQueryDesigner(designer)
{
Z("#designer").val(designer);
Z.loading(document);
Z("#theForm")[0].submit();
}
</script>
<#def designatedPath="/timeoutOrderNear.htm"/>
${zhiqim_manager_breadcrumb("历史超时订单")}
${zhiqim_manager_content()}
<#-- 页面数据定义 -->
<#var typeMap = DesignTypeDao.mapAll()/>
<#var industryMap = Global.get(DesignIndustryCache.class).mapAll()/>
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
<li class="z-active">历史超时订单</li>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
<#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm" id="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<input type="hidden" name="designer" id="designer" value="">
<tr class="z-h40">
<td width="24%">录单时间:
<input name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
<input name="endDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
</td>
<td width="24%">订单状态:
<select name="hasDesigner" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if 0 == hasDesigner>selected</#if>>未领取</option>
<option value="1" <#if 1 == hasDesigner>selected</#if>>已有设计师</option>
</select>
</td>
<td width="24%">是否初稿:
<select name="hasDraft" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="1" <#if 1 == hasDraft>selected</#if>>已初稿</option>
<option value="0" <#if 0 == hasDraft>selected</#if>>未初稿</option>
</select>
</td>
<td width="*">选择行业:
<select name="industryId" class="z-select z-w180" 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>
</td>
</tr>
<tr>
<td width="24%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designTypeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td colspan="3" 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>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-pd6 z-bd-none">
<tr>
<td width="300" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="100">序号</td>
<td width="100">设计师</td>
<td width="100">订单数</td>
</tr>
<#for item : map.keySet()>
<tr class="z-h40" <#if item == designer>bgcolor="#f3fdfc"</#if> onclick="doQueryDesigner('${item}');">
<td>${item_index +1}</td>
<td>${item}</td>
<td>${map.get(item)}</td>
</tr>
</#for>
<#if map.values().isEmpty()>
${zhiqim_manager_no_record(3, "暂时没有信息")}
</#if>
</table>
</td>
<td width="*" valign="top">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单ID</td>
<td width="*">订单信息</td>
<td width="100">旺旺名</td>
<td width="150">录单时间</td>
<td width="150">领单时间</td>
<td width="150">初稿时间</td>
<td width="150">进度备注</td>
<td width="100">超时时长</td>
<td width="100">设计师</td>
<td width="100">行业</td>
</tr>
<#for item : pageResult.list()>
<#var effectiveTime = Validates.isEmpty(typeMap) ? 0 : (typeMap.containsKey(item.getTypeId()) ? typeMap.get(item.getTypeId()).getEffectiveTime() : 0)/>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()}>
<td>${item.getDesignId()}</td>
<td>${item.getOrderText()}</td>
<td>${item.getBuyerNick()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td><span class="z-text-red"><#if Validates.isNotEmpty(item.getDesignDraftTime())>${DateTimes.compareMinute(item.getDesignDraftTime(), item.getCreateTime()) - effectiveTime}<#else>${DateTimes.compareMinute(Sqls.nowTimestamp(), item.getCreateTime()) - effectiveTime}</#if> 分钟</span></td>
<td>${item.getDesigner()}</td>
<td><#if Validates.isNotEmpty(industryMap) && industryMap.containsKey(item.getIndustryId())>${industryMap.get(item.getIndustryId()).getIndustryName()}</#if></td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(10, "暂时没有历史超时订单信息")}
</#if>
</table>
${zhiqim_manager_paging(pageResult, "timeoutOrderHistory.htm")}
</td>
</tr>
</table>
</div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,135 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/chart/highcharts.js")}
${Scripts.src("/zinc/chart/exporting.js")}
${Scripts.src("/zinc/chart/data.js")}
${Scripts.src("/zinc/chart/highcharts-zh_CN.js")}
<script>
Z.onload(function()
{
var chart = new Highcharts.Chart('container',
{
chart: {
type: 'spline'
},
title: {
text: '初稿超时走势'
},
subtitle: {
text: '${titleStartDate}——${titleEndDate} (总单量: ${orderSum} 初稿超时总单量: ${orderTimeoutSum})'
},
xAxis: {
categories: [
<#for date : dateList>
<#if date_index==(dateList.size()-1)>
'${date}'
<#else>
'${date}',
</#if>
</#for>
]
},
yAxis: {
title: {
text: '单量'
},
labels: {
formatter: function () {
return this.value + '';
}
}
},
tooltip: {
crosshairs: true,
shared: true
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
plotOptions: {
spline: {
marker: {
radius: 4,
lineColor: '#eaeaea',
lineWidth: 1
}
}
},
series:
[
{
name: '当天录入单量',
marker: {
symbol: 'square'
},
data: [
<#for date : dateList>
<#if date_index==(dateList.size()-1)>
${orderCountMap.get(date)}
<#else>
${orderCountMap.get(date)},
</#if>
</#for>
]
},
{
name: '当天初稿超时单量',
marker: {
symbol: 'diamond'
},
data: [
<#for date : dateList>
<#if date_index==(dateList.size()-1)>
${historyOrderCountMap.get(date)}
<#else>
${historyOrderCountMap.get(date)},
</#if>
</#for>
]
},
]
});
});
</script>
${zhiqim_manager_breadcrumb("初稿超时折线图")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistory.htm")><li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li></#if>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
<li class="z-active">初稿超时折线图</li>
<#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form action="timeoutOrderHistoryStat.htm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="50%">录单时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-&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}">&nbsp;&nbsp;&nbsp;
产品类型:
<select name="typeId" class="z-select z-mg-r20" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部产品</option>
<#for items : designTypeList>
<option value="${items.getTypeId()}" <#if items.getTypeId()==typeId>selected</#if>>${items.getTypeName()}</option>
</#for>
</select>
</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 id="container" class="z-bg-white" style="margin-top:20px; min-width:400px;min-height:550px"></div>
${zhiqim_manager_content_end()}
@@ -0,0 +1,95 @@
${zhiqim_manager_breadcrumb("快超时订单")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<li class="z-active">快超时订单</li>
<#if ZmrPathRule.check(request, "/timeoutOrderToday.htm")><li onclick="Z.Location.href('timeoutOrderToday.htm');">当日超时订单</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistory.htm")><li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li></#if>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
<#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="20%">设计师名称:
<select name="designer" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designerList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td width="20%">订单状态:
<select name="hasDesigner" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if 0 == hasDesigner>selected</#if>>未领取</option>
<option value="1" <#if 1 == hasDesigner>selected</#if>>已有设计师</option>
</select>
</td>
<td width="20%">选择行业:
<select name="industryId" class="z-select z-w200" 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>
</td>
<td width="20%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designTypeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*"><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>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单ID</td>
<td width="150">组织名称</td>
<td width="*">订单信息</td>
<td width="100">行业</td>
<td width="200">旺旺名</td>
<td width="150">录单时间</td>
<td width="150">领单时间</td>
<td width="150">进度备注</td>
<td width="100">倒计时</td>
<td width="100">设计师</td>
</tr>
<#for item : pageResult.list()>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} <#if item_index % 2 == 0>bgcolor="#f3fdfc"</#if>>
<td>${item.getDesignId()}</td>
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
<td>${item.getOrderText()}</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
<td>${item.getBuyerNick()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td><span class="z-text-green">${item.getCountDown()} 分钟</span></td>
<td>${item.getDesigner()}</td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(10, "暂时没有快超时订单信息")}
</#if>
</table>
</div>
${zhiqim_manager_paging(pageResult, "timeoutOrderNear.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,96 @@
<#def designatedPath="/timeoutOrderNear.htm"/>
${zhiqim_manager_breadcrumb("当日超时订单")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<!--<li onclick="Z.Location.href('chargeOrder.htm');">主管审核</li>-->
<#if ZmrPathRule.check(request, "/timeoutOrderNear.htm")><li onclick="Z.Location.href('timeoutOrderNear.htm');">快超时订单</li></#if>
<li class="z-active">当日超时订单</li>
<#if ZmrPathRule.check(request, "/timeoutOrderHistory.htm")><li onclick="Z.Location.href('timeoutOrderHistory.htm');">历史超时订单</li></#if>
<#if ZmrPathRule.check(request, "/notTimeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('notTimeoutCompleteOrderHistory.htm');">时效绩效</li></#if>
<#if ZmrPathRule.check(request, "/timeoutCompleteOrderHistory.htm")><li onclick="Z.Location.href('timeoutCompleteOrderHistory.htm');">定稿超时列表</li></#if>
<#if ZmrPathRule.check(request, "/timeoutOrderHistoryStat.htm")><li onclick="Z.Location.href('timeoutOrderHistoryStat.htm');">初稿超时折线图</li></#if>
<#if ZmrPathRule.check(request, "/timelinessOrgStat.htm")><li onclick="Z.Location.href('timelinessOrgStat.htm');">组织初稿时效</li></#if>
</ul>
</nav>
</div>
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form name="theForm">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="20%">设计师名称:
<select name="designer" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designerList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td width="20%">订单状态:
<select name="hasDesigner" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if 0 == hasDesigner>selected</#if>>未领取</option>
<option value="1" <#if 1 == hasDesigner>selected</#if>>已有设计师</option>
</select>
</td>
<td width="20%">选择行业:
<select name="industryId" class="z-select z-w200" 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>
</td>
<td width="20%">产品类型:<select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : designTypeList>
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
</#for>
</select>
</td>
<td width="*"><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>
<#-- 分页列表 -->
<div class="z-mg-t20">
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="150">订单ID</td>
<td width="*">订单信息</td>
<td width="100">行业</td>
<td width="200">旺旺名</td>
<td width="150">录单时间</td>
<td width="150">领单时间</td>
<td width="150">进度备注</td>
<td width="100">超时时长</td>
<td width="100">设计师</td>
</tr>
<#var typeMap = DesignTypeDao.mapAll()/>
<#for item : pageResult.list()>
<#var effectiveTime = Validates.isEmpty(typeMap) ? 0 : ( typeMap.containsKey(item.getTypeId()) ? typeMap.get(item.getTypeId()).getEffectiveTime() : 0)/>
<tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} <#if item_index % 2 == 0>bgcolor="#f3fdfc"</#if>>
<td>${item.getDesignId()}</td>
<td>${item.getOrderText()}</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
<td>${item.getBuyerNick()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
<td>${progressNoteMap.get(item.getDesignId())}</td>
<td><span class="z-text-red">${DateTimes.compareMinute(Sqls.nowTimestamp(), item.getCreateTime()) - effectiveTime} 分钟</span></td>
<td>${item.getDesigner()}</td>
</tr>
</#for>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(9, "暂时没有当日超时订单信息")}
</#if>
</table>
</div>
${zhiqim_manager_paging(pageResult, "timeoutOrderToday.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,88 @@
<#-- 主题变量和函数定义 -->
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<!DOCTYPE html>
<html>
<head>
<title>${context.getContextName()}</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
${Styles.src(zhiqim.css)}
${Scripts.src(zhiqim.js)}
${Styles.src(zmr_theme.css)}
${Styles.src(context.getRootPath("/zinc/layui/css/layui.css"))}
${Scripts.src(context.getRootPath("/zinc/layui/layui.js"))}
</head>
<body>
<script>
var hostUrl = Z.l.protocol+'//'+Z.l.host;
layui.use(['upload', 'element', 'layer'], function(){
var $ = layui.jquery
,upload = layui.upload
,element = layui.element
,layer = layui.layer;
//拖拽上传
upload.render({
elem: '#test10'
,url: hostUrl+'/uploadCustomFilesInfo.htm?oid='+${oid}
,accept: 'file'
,size:51200
,multiple:true
,number:0
,allDone: function(obj){ //当文件全部被提交后,才触发
$("#uploadTotal").empty();
$("#uploadSuccessful").empty();
$("#uploadAborted").empty();
$("#uploadTotal").append(obj.total);
$("#uploadSuccessful").append(obj.successful);
$("#uploadAborted").append(obj.aborted);
}
,before: function(obj){
window.ajaxLoading = Z.loading({text:"正在上传中,请稍后...", shadow:true , width:300});
}
,done: function(res){
ajaxLoading.close();
if(res.code == 0)
{
layer.msg('上传成功');
}
else
{
layer.msg(res.msg);
}
}
, error: function (res) {
//请求异常回调
layer.closeAll('loading');
console.error(res);
}
});
});
</script>
<input type="hidden" id="oid" name="oid" value="${order.getOid()}">
<table class="z-table z-bordered z-pd6 z-bg-white zi-bd-b-none">
<tr style="height:35px" bgcolor="${zmr_thead_bgcolor}">
<td class="z-text-left z-w50p">客户素材</td>
</tr>
<tr valign="top" >
<td>
<div class="layui-upload-drag" id="test10" style="width: 100%;height: 240px;">
<i class="layui-icon"></i>
<p>点击上传或拖拽资料素材到此处</p>
</div><br/><br/>
共上传:<strong id="uploadTotal" style="color: #009688;">0</strong>个&nbsp;&nbsp;
成功:<strong id="uploadSuccessful" style="color: #5FB878;">0</strong>个&nbsp;&nbsp;
失败:<strong id="uploadAborted" style="color: #FF5722;">0</strong>个
</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 type="button" class="z-button z-large z-mg-l20" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
</div>
</body>
</html>
@@ -0,0 +1,161 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 70)}
<script>
function doModifyIndustry()
{
var designId = Z.FM.getChecked("designId");
if(Z.V.isEmpty(designId))
{
Z.alert("请选择一条订单");
return;
}
var dialog = new Z.Dialog();
dialog.title = "修改行业";
dialog.url = "/modifyIndustry.htm?designId="+designId;
dialog.width = 500;
dialog.height = 300;
dialog.execute();
}
</script>
<#var data="data=copy,userText,CustomFile,TemplateFile,DesginFile,EndFile,WorkFile,AftersaleFile,ThumFile,userNotice"/>
<#var addRule="addRule=DesginFile,EndFile,WorkFile,AftersaleFile"/>
<#var delRule="delRule=DesginFile,EndFile,WorkFile,AftersaleFile"/>
${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>
<#-- 左侧功能 -->
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
<#-- 查询条件 -->
${zhiqim_manager_title("查询条件")}
<form action="uploadData.htm" method="post">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<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 width="*">其他信息:<input class="${zmr_color_class} z-input z-w200" id="otherInfo" name="otherInfo" maxlength="64" value="${otherInfo}" placeholder="收件人、电话、QQ、对稿手机"></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>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
<td>录单时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}">&nbsp;-&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>
</tr>
<tr class="z-h40">
<td>
<span class="z-px12">稿件类型:</span><select name="draftType" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : DraftConstants.getList()>
<option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
</#for>
</select>
</td>
<td>是否印刷:<select name="isOnlyDesign" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if isOnlyDesign == 0>selected</#if>>是</option>
<option value="1" <#if isOnlyDesign == 1>selected</#if>>否</option>
</select>
</td>
<td>添加行业:<select name="havaIndustry" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="">全部</option>
<option value="0" <#if havaIndustry == 0>selected</#if>>已添加</option>
<option value="1" <#if havaIndustry == 1>selected</#if>>未添加</option>
</select>
</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-t20 z-mg-b3">
<button type="button" class="z-button ${zmr_color_class} z-mg-r6" onclick="doModifyIndustry();"><i class="z-font z-modify"></i>修改行业</button>
<#if ZmrPathRule.check(request, "openWangWang")><button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button></#if>
<#if ZmrPathRule.check(request, "openQQ")><button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openQQ();"><img src="/zinc/images/qq.png">QQ联系</button></#if>
</div>
<#-- 分页列表-->
<div class="z-overflow-auto z-bd-r">
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-text-center" style="width:2220px">
${zhiqim_manager_tr_title(30, "订单列表")}
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="60">选择</td>
<td width="120">订单号</td>
<td width="120">店铺</td>
<td width="120">设计</td>
<td width="140">旺旺号</td>
<td width="90">状态</td>
<td width="100">行业</td>
<td width="*">产品</td>
<td width="80">印刷金额</td>
<td width="160">特殊工艺</td>
<td width="160">录单时间</td>
<td width="160">完稿时间</td>
<td width="100">设计师</td>
<td width="100">审核人</td>
<td width="100">联系人</td>
<td width="120">对稿手机</td>
<td width="120">对稿QQ</td>
<td width="120">对稿微信</td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(30, "暂时没有订单信息")}
</#if>
<#for item : pageResult.list()>
<input type="hidden" id="buyerNick_${item.getDesignId()}" value="${item.getBuyerNick()}">
<input type="hidden" id="userQq_${item.getDesignId()}" value="${item.getUserQq()}">
<tr class="z-h40 z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input type="radio" name="designId" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick="Z.L.href('attaFileList.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}', attaFileList);"></td>
<td>${item.getDesignId()}</td>
<td>${item.getShopNick()}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${item.getBuyerNick()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(item.getIndustryId())}</td>
<td>${item.getOrderText()}</td>
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
<td>${item.getPrintSpecial()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
<td>${item.getDesigner()}</td>
<td>${item.getChecker()}</td>
<td>${item.getUserContact()}</td>
<td>${item.getUserMobile()}</td>
<td>${item.getUserQq()}</td>
<td>${item.getUserWx()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_paging(pageResult, "uploadData.htm")}
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${fmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>
<#-- 联系旺旺&联系QQ弹窗框 -->
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
@@ -0,0 +1,36 @@
<script>
function waiveOrder(){
var ajax = new Z.Ajax();
ajax.setClassName("WaiveOrderAction");
ajax.setMethodName("waiveOrder");
ajax.addParam("designId",${designId});
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("订单已放弃!", function(){
parent.location.reload();
parent.Z.Dialog.close();
});
});
ajax.execute();
}
</script>
<style>
.container{ min-height:390px; 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:100px; 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'>订单编号: ${designId}</div>
<div class='order-p'>产品类型: ${typeName}</div>
<div class="order-info">确认放弃订单,将<span>扣除积分-10分</span><br>本月仅剩(<span>${waiveNum}</span>)次放弃次数</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="waiveOrder" style="border-radius:8px; background:#0089e1;" class="z-button ${zmr_color_class} z-large z-w100" onclick="waiveOrder();">确认</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,60 @@
${Styles.htmlOverflowHidden()}
${Scripts.src("/zinc/js/global_2019010801.js")}
${yangcai_calc_Left_width_height(400, 70)}
<#var data="data=copy,userText,CustomFile,DesginFile,EndFile,WorkFile,AftersaleFile,ThumFile,userNotice,TbzFile"/>
<#var addRule="addRule=CustomFile,TemplateFile,DesginFile,EndFile,WorkFile,TbzFile"/>
<#var delRule="delRule=CustomFile,TemplateFile,DesginFile,EndFile,WorkFile,TbzFile"/>
${zhiqim_manager_breadcrumb("旺旺订单")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('designOrder.htm');">未完成订单</li>
<li onclick="Z.Location.href('designOrderFinish.htm');">已完结订单</li>
<li class="z-active">旺旺订单</li>
</ul>
</nav>
</div>
<#-- 左侧功能 -->
<div id="left" class="z-relative-left z-overflow-y-auto">
<#-- 分页列表-->
<table class="z-table z-bordered z-bg-white z-pd6">
${zhiqim_manager_tr_title(7, "旺旺订单列表")}
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}" >
<td width="40">选择</td>
<td width="100">订单号</td>
<td width="100">稿件类型</td>
<td width="80">设计师</td>
<td width="100">订单状态</td>
<td width="100">旺旺号</td>
<td width="60">产品类型</td>
<td width="150">特殊工艺</td>
<td width="80">收货人</td>
<td width="250">收件地址</td>
</tr>
<#for item : orderList>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input type="radio" name="designId" data-role="z-radio" data-class="${zmr_color_class} z-large" value="${item.getDesignId()}" onclick="Z.L.href('attaFileList.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}', attaFileList);"></td>
<td>${item.getDesignId()}</td>
<td>${DraftConstants.get(item.getDraftType())}</td>
<td>${item.getDesigner()}</td>
<td>${StatusConstants.getStatus(item.getStatus())}</td>
<td>${item.getBuyerNick()}</td>
<td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
<td>${item.getPrintSpecial()}</td>
<td>${item.getReceiverName()}</td>
<td align="left">${item.getReceiverState()} ${item.getReceiverCity()} ${item.getReceiverDistrict()} ${item.getReceiverAddress()}</td>
</tr>
</#for>
</table>
</div>
${zhiqim_manager_content_end()}
<#--右侧文件信息-->
<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${fmr_topnav_height}px;right:0;width:400px;z-index:50;">
<iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
</div>