first commit
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
${sweet_alert_reuse_method()}
|
||||
<script>
|
||||
|
||||
function addAfterMessage(){
|
||||
//提交售后留言
|
||||
var designId =Z("#designId").val();//订单ID
|
||||
var creater =Z("#creater").val();//售后留言人
|
||||
var createTime =Z("#createTime").val();//售后留言时间
|
||||
var complainFlag =Z("#complainFlag").val();//是否有投诉差评意向
|
||||
var note =Z("#note").val();//售后留言备注
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OrderPresenter");
|
||||
ajax.setMethodName("addAfterMessage");
|
||||
ajax.addParam("designId",designId);
|
||||
ajax.addParam("creater",creater);
|
||||
ajax.addParam("createTime",createTime);
|
||||
ajax.addParam("complainFlag",complainFlag);
|
||||
ajax.addParam("note",note);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj =Z.J.toObject(this.responseText);
|
||||
swal({title:obj,type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.Z.Dialog.close();
|
||||
});
|
||||
});
|
||||
ajax.setLoading("addAfterMessage", '<i class="z-font z-return"></i>正在处理',{disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_content()}
|
||||
<input type="hidden" id="designId" name="designId" value="${order.getDesignId()}">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white z-text-left">
|
||||
<tr class="z-h40">
|
||||
<td align="center" width="150px">客户旺旺:</td>
|
||||
<td width="200px">${order.getBuyerNick()}</td>
|
||||
<td align="center" width="150px">店铺名称:</td>
|
||||
<td width="200px">${order.getShopNick()}</td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td align="center">产品名称:</td>
|
||||
<td>${order.getOrderText()}</td>
|
||||
<td align="center">录单时间:</td>
|
||||
<td>${Sqls.toDateTimeString(order.getCreateTime())}</td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td colspan="4" align="center">
|
||||
<input type="checkbox" id="complainFlag" name="complainFlag" class="z-checkbox" data-class="${zmr_color_class}" data-role="z-checkbox" onclick="Z.E.stop(); this.value=this.checked" >
|
||||
是否有投诉/差评意向
|
||||
<span style="color:orange;font-size:8px;">勾选此选项,则在留言列表中置顶标红售后优先处理</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td colspan="4" align="center">
|
||||
<textarea class="z-h100" style="width:670px" id="note" placeholder="请输入售后留言备注"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td align="center" colspan="2">留言提交人:<input type="text" class="z-bg-white" value="${request.getSessionName()}" id="creater" style="border:none;" disabled="true"></td>
|
||||
<td align="center" colspan="2">提交时间:<input type="text" class="z-bg-white" value="${Sqls.toDateTimeString(Sqls.nowTimestamp())}" id="createTime" style="border:none;" disabled="true"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
|
||||
<#-- 操作 -->
|
||||
<div class="z-relative z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
|
||||
<button type="button" id="addAfterMessage" class="z-button ${zmr_color_class} z-large z-w150" onclick="addAfterMessage();">保存并提交</button>
|
||||
<button type="button" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close();">关闭</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> *</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}"> -
|
||||
<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>
|
||||
</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="如:名片">
|
||||
材质描述:<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;">
|
||||
尺寸宽(mm):<input id="sizeWidth" type="text" name="sizeWidth" class="z-input z-w180" value="" placeholder="如:54" data-options="type:Integer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
单双面: <input id="faceCount" type="text" name="faceCount" class="z-input z-w200" value="" placeholder="如:双面">
|
||||
款数: <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>
|
||||
<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()}">
|
||||
</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>
|
||||
<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 20px 0 30px; line-height:36px; border-bottom:1px solid #f2f2f2;}
|
||||
.order-info{ background:#0089e1;border-radius:8px;width:520px;height:130px; margin:30px 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:10px;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,610 @@
|
||||
${Styles.htmlOverflowHidden()}
|
||||
${Scripts.src("/zinc/js/global_2019010801.js")}
|
||||
${yangcai_calc_Left_width_height(400, 70)}
|
||||
<style>
|
||||
.search-box{ border:1px solid #d3d3d3; margin:0 10px 0 0; width:210px; float:left; border-radius:20px; padding:0 14px; background:#fff;}
|
||||
.search-box span{ float:left; line-height:32px; color:#282c2f;}
|
||||
.search-box input{ border:none; box-shadow:none; width:130px; height:32px; padding:0 0 0 10px; line-height:32px;}
|
||||
.search-box select{ float:right; width:100px;}
|
||||
.design-order{ background: #fff;}
|
||||
.clear:after{content:'';display:block;clear:both;height:0;overflow:hidden;visibility:hidden;}
|
||||
.clear{zoom:1;}
|
||||
.z-select{ height:32px; padding:0;}
|
||||
.z-dropdown>.z-default{ color:#999;}
|
||||
.z-dropdown{ border:none; }
|
||||
.z-dropdown>i{ padding:4px 0 0 0;}
|
||||
.z-dropdown.z-blue.z-active, .z-dropdown.z-blue>.z-list{ border:none;}
|
||||
.z-operater{ padding:4px 4px;}
|
||||
.z-text-ellipsis {text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline; }
|
||||
.z-floater .z-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
min-width: 30px;
|
||||
min-height: 25px;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #c6c6c6;
|
||||
line-height: 25px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
}
|
||||
.z-table.z-bordered>thead>tr>th,.z-table.z-bordered>thead>tr>td,.z-table.z-bordered>tbody>tr>th,.z-table.z-bordered>tbody>tr>td{
|
||||
border:none; border-bottom: 1px solid #e4e4e4; font-size:13px; color:#999; height:52px;
|
||||
}
|
||||
.z-table.z-bordered{ border:none;}
|
||||
.z-bd-r{ border:none;}
|
||||
.z-tabnav-main>nav li{ border-right:none; font-size:15px; height:50px; line-height:50px;}
|
||||
.z-tabnav-main.z-blue>nav li.z-active { color:#28a3ef; background: #fff; position: relative; font-weight: bold; }
|
||||
.z-tabnav-main.z-blue>nav li.z-active:hover{ background: #fff;}
|
||||
.z-tabnav-main.z-blue>nav li.z-active::before{content:''; bottom:0; left:50%; margin:0 0 0 -18px; position: absolute; width:36px; height:2px; background:#28a3ef;}
|
||||
.screen{ background: #e4e5ea; height:70px; padding:20px 0 0 24px; box-sizing: border-box;}
|
||||
.z-tabnav-main{ border:none;}
|
||||
.btn-search{ border-radius:32px; height:32px; float:left; margin:0 10px 0 0;}
|
||||
.z-text-left td{ color:#363940!important; font-weight: bold;}
|
||||
.z-button.z-red { background: #1681f5; border: 1px solid #1681f5;}
|
||||
.z-readonly{ border:none!important; background: #edeeef!important;}
|
||||
.z-text-red{color:#1681f5;}
|
||||
.z-red:hover{ background: #1681f5!important;}
|
||||
.schedule a{ color:#999;}
|
||||
.color-orange{ color:#ff6600;}
|
||||
.schedule a p{ line-height:28px;}
|
||||
.goDetail{ cursor: pointer; height:30px; background:#1182fc; color:#fff!important; font-size:12px; width:70px; border-radius:4px; line-height:30px; display:block; text-align: center;}
|
||||
</style>
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
refreshEffectiveTime();
|
||||
Z.timer(10000, -1, null, refreshEffectiveTime);
|
||||
|
||||
var height=Z("#operation").offsetHeight();
|
||||
|
||||
if(height>55){
|
||||
Z("#fixedSpan").style("margin-top: -30px;");
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
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+"&flag=0";
|
||||
dialog.width = 500;
|
||||
dialog.height = 300;
|
||||
dialog.execute();
|
||||
}
|
||||
|
||||
function refreshEffectiveTime()
|
||||
{
|
||||
Z.each(Z("span[id^=time_]"), function(span, i)
|
||||
{
|
||||
var effectiveTime = span.attributes["data-effectiveTime"].value*1;
|
||||
var createTime = new Date(span.attributes["data-createTime"].value).getTime();
|
||||
var nowTime = new Date().getTime();
|
||||
var time = parseInt((createTime - nowTime)/1000/60 + effectiveTime);
|
||||
|
||||
if (time > 0)
|
||||
{
|
||||
if(!Z(span).hasClass("z-text-green"))
|
||||
Z(span).addClass("z-text-green")
|
||||
}
|
||||
else
|
||||
{
|
||||
time = -time;
|
||||
Z(span).removeClass("z-text-green");
|
||||
Z(span).addClass("z-text-red");
|
||||
}
|
||||
|
||||
var day;
|
||||
var hour;
|
||||
var minutes;
|
||||
if (time/(24*60) >0)
|
||||
{
|
||||
day = parseInt(time/(24*60));
|
||||
time = time%(24*60);
|
||||
}
|
||||
if (time/60 >0)
|
||||
{
|
||||
hour = parseInt(time/60);
|
||||
minutes = time%60;
|
||||
}
|
||||
|
||||
var timeHtml = "";
|
||||
if (day >0)
|
||||
timeHtml += day+"天";
|
||||
if (hour >0)
|
||||
timeHtml += hour+"小时";
|
||||
if (minutes >0)
|
||||
timeHtml += minutes+"分钟";
|
||||
|
||||
Z(span).html(timeHtml);
|
||||
});
|
||||
}
|
||||
|
||||
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 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 doDesignOrderRefund()
|
||||
{//请求退款
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDesignOrderRefundValidate");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
if(Z.V.isNotEmpty(this.responseText)){
|
||||
Z.confirm(this.responseText, function(){
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "退款订单: "+designId+" (截屏后粘贴(CTRL+V)到下方空白处)";
|
||||
dialog.url = "/designOrderRefund.htm?designId=" + designId;
|
||||
dialog.width = 600;
|
||||
dialog.height = 400;
|
||||
dialog.execute();
|
||||
});
|
||||
return;
|
||||
}
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "退款订单: "+designId+" (截屏后粘贴(CTRL+V)到下方空白处)";
|
||||
dialog.url = "/designOrderRefund.htm?designId=" + designId;
|
||||
dialog.width = 600;
|
||||
dialog.height = 400;
|
||||
dialog.execute();
|
||||
});
|
||||
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 doDraftOrderToComplete()
|
||||
{//完成定稿
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
var draftType = Z("#draftType_"+designId).val();
|
||||
if(draftType == 0)
|
||||
{//自来稿订单
|
||||
var ajax1 = new Z.Ajax();
|
||||
ajax1.setClassName("DesignOrderPresenter");
|
||||
ajax1.setMethodName("doEasyDraftOrderToComplete");
|
||||
ajax1.addParam(designId);
|
||||
ajax1.setFailureAlert();
|
||||
ajax1.setSuccess(function(){Z.success("定稿成功", function(){location.reload();});});
|
||||
ajax1.setLoading("doDraftOrderToComplete", '正在提交', {disabled:true});
|
||||
ajax1.execute();
|
||||
}
|
||||
else
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDraftOrderToComplete");
|
||||
ajax.addParam(designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){Z.success("提交定稿成功", function(){location.reload();});});
|
||||
ajax.setLoading("doDraftOrderToComplete", '正在提交', {disabled:true});
|
||||
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;
|
||||
}
|
||||
|
||||
//前往设计
|
||||
function toDesign()
|
||||
{
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
var prdType = Z("#prdType_"+designId).val();
|
||||
var targetUrl = "/templatePreview.htm?designId="+designId;
|
||||
var targetCardUrl = "/templateCardPreview.htm?designId="+designId+"&src=design";
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDesignerOrderTemplate");
|
||||
ajax.addParam("designId", designId);
|
||||
if(prdType == "2023207561256")
|
||||
{
|
||||
ajax.addParam("validateUrl", targetCardUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
ajax.addParam("validateUrl", targetUrl);
|
||||
}
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccessLocationResponse();
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
//名片手机库访问连接
|
||||
function doCopyURLInfoPC()
|
||||
{
|
||||
Z.copy("http://design.yangcai365.com/pcWorks.htm");
|
||||
top.Z.tips("复制成功");
|
||||
}
|
||||
|
||||
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 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 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-query"></i>正在查询', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
//放弃订单
|
||||
function doWaiveOrder(){
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
if (Z.V.isEmpty(designId))
|
||||
{
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
};
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.url = "/waiveOrder.htm?designId="+designId;
|
||||
dialog.width = 600;
|
||||
dialog.height = 400;
|
||||
dialog.execute();
|
||||
|
||||
}
|
||||
function checkReturn(designId){
|
||||
if(designId == "" || designId==null){
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
}
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("checkReturn");
|
||||
ajax.addParam(designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("退款成功",function(){parent.location.reload();});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function checkNoReturn(designId){
|
||||
if(designId == "" || designId==null){
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
}
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("checkNoReturn");
|
||||
ajax.addParam(designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("拒绝退款成功",function(){parent.location.reload();});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
<#var data="data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,FristThumFile,TbzFile"/>
|
||||
<#var addRule="addRule=CustomFile"/>
|
||||
<#var delRule="delRule=CustomFile"/>
|
||||
${zhiqim_manager_breadcrumb("未完成订单")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<div class="design-order clear">
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">未完成订单</li>
|
||||
<li onclick="Z.Location.href('designOrderFinish.htm');">已完结订单</li>
|
||||
<li onclick="Z.Location.href('waitHandleAfterOrder.htm');">售后订单</li>
|
||||
<li onclick="Z.Location.href('complainWantDealList.htm');">投诉订单</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 左侧功能 -->
|
||||
<div class="z-overflow-y-auto z-overflow-x-hidden z-relative-left" style="width:100%;">
|
||||
|
||||
<#-- 查询条件 -->
|
||||
<form name="theForm" action="/designOrder.htm">
|
||||
<div class="screen">
|
||||
<div class="search-box">
|
||||
<span>订单号</span>
|
||||
<input class="z-input z-w160 ${zmr_color_class}" name="designId" value="${designId}" maxlength="32" placeholder="订单号"/>
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<span>旺旺号</span>
|
||||
<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/>
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<span>产品类型</span>
|
||||
<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>
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<span>设计等级</span>
|
||||
<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>
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<span>订单状态</span>
|
||||
<select name="orderStatus" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">全部</option>
|
||||
<#for statusStr : StatusConstants.getOrderStatusList()>
|
||||
<#if statusStr.value() gte StatusConstants.ORDER_30.value() && statusStr.value() lte StatusConstants.ORDER_52.value()>
|
||||
<option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
|
||||
</#if>
|
||||
</#for>
|
||||
</select>
|
||||
</div>
|
||||
<button class="z-button z-blue btn-search"><i class="z-font z-query"></i>查询</button>
|
||||
<button class="z-button btn-search" style=" padding:0 20px;" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<#-- 操作功能-->
|
||||
<div id="operation" class="z-w100p z-mg-t20 z-mg-b3" style="width:100%; padding:0 24px 14px 24px;">
|
||||
<button id="designOrderRefund" class="z-button z-blue" onclick="doDesignOrderRefund();"><i class="z-font z-modify"></i>申请退款</button>
|
||||
<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 class="z-button z-yellow" onclick="doDesignOrderStop();"><i class="z-font z-close"></i>暂停设计</button>
|
||||
<button class="z-button z-yellow" onclick="doDesignOrderStart();"><i class="z-font z-open"></i>开启设计</button>-->
|
||||
<button type="button" style="display:none;" class="z-button z-yellow z-w100" onclick="doWaiveOrder();"><i class="z-font z-return"></i>放弃订单</button>
|
||||
<span id="fixedSpan" class="z-float-right">
|
||||
<!--<button class="z-button z-blue z-mg-l20 z-operater" onclick="doCopyURLInfoPC();">复制模板库链接</button>-->
|
||||
<!--<button class="z-button z-purple" onclick="toDesign();"> <i class="z-font z-next"></i>前往模板设计</button>-->
|
||||
</span>
|
||||
|
||||
<!--<button type="button" class="z-button ${zmr_color_class} z-mg-r6" onclick="doModifyIndustry();"><i class="z-font z-modify"></i>修改行业</button>-->
|
||||
</div>
|
||||
|
||||
<#-- 分页列表-->
|
||||
<div class="z-overflow-auto z-bd-r" style="padding:0 24px;">
|
||||
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" style="width:100%">
|
||||
<tr class="z-text-left z-h40" data-layoutCode="designOrderList">
|
||||
<td width="40">选择</td>
|
||||
<td width="60">产品类型</td>
|
||||
<td width="100">设计等级<br/>设计类型</td>
|
||||
<td width="100">订单号</td>
|
||||
<td width="100">旺旺号</td>
|
||||
<td width="100">领单时间</td>
|
||||
<#if isShowCost == 1>
|
||||
<td width="60">设计佣金</td>
|
||||
</#if>
|
||||
<td width="60">加急费</td>
|
||||
<td width="80">订单状态</td>
|
||||
<td width="150">淘宝信息</td>
|
||||
<td width="150">进度备注</td>
|
||||
<td width="100">退回理由</td>
|
||||
<td width="60" align="center">操作</td>
|
||||
<td width="60" align="center">客户信息</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
${zhiqim_manager_no_record(15, "暂不存在设计订单信息")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<input type="hidden" id="buyerNick_${item.getDesignId()}" value="${item.getBuyerNick()}">
|
||||
<input type="hidden" id="prdType_${item.getDesignId()}" value="${item.getTypeId()}">
|
||||
<input type="hidden" id="draftType_${item.getDesignId()}" value="${item.getDraftType()}">
|
||||
<tr align="left" class="z-h40 <#if Validates.isNotEmpty(item.getCheckBackReason())> z-text-red</#if>" ${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()}"
|
||||
></td>
|
||||
<td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
|
||||
<td>${DraftConstants.get(item.getDraftType())}<br/>
|
||||
<#if item.isOnlyDesign()>
|
||||
仅设计
|
||||
<#else>印刷设计</#if>
|
||||
</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.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>
|
||||
<#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><a href="/wangwangOrder.htm?buyerNick=${item.getBuyerNick()}">${item.getBuyerNick()}</a></td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
|
||||
<#if isShowCost == 1>
|
||||
<td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
|
||||
</#if>
|
||||
<td><#if item.getUrgentPrice() gt 0>
|
||||
${Amounts.toYuanMustRadix(item.getUrgentPrice())}
|
||||
<#else></#if>
|
||||
</td>
|
||||
<td>${StatusConstants.getStatus(item.getStatus())}</td>
|
||||
<td>${item.getReturnMsg()}</td>
|
||||
<td class="schedule">${progressNoteMap.get(item.getDesignId())}</td>
|
||||
<td>${item.getReturnReason()}</td>
|
||||
<td align="center">
|
||||
<span class="goDetail" onclick="Z.L.href('allOrderDetail.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}');if(${item.getDraftType()} == 0){Z('#orderDraft').hide()}else{Z('#orderDraft').show()}">详情</span>
|
||||
<#if item.getStatus() == 34>
|
||||
</br><span class="goDetail" onclick="checkReturn(${item.getDesignId()})">确认退款</span>
|
||||
</br><span class="goDetail" onclick="checkNoReturn(${item.getDesignId()})">拒绝退款</span>
|
||||
</#if>
|
||||
</td>
|
||||
<td align="center">
|
||||
<span class="goDetail" onclick="doDesignOrdertoERP('${item.getTids()}')">查看</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
</div>
|
||||
${zhiqim_manager_paging(pageResult, "designOrder.htm")}
|
||||
</div>
|
||||
</div>
|
||||
${zhiqim_manager_content_end()}
|
||||
|
||||
|
||||
|
||||
<#-- 联系旺旺&联系QQ弹窗框 -->
|
||||
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
|
||||
@@ -0,0 +1,90 @@
|
||||
<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 data = Z("#imgData").text()
|
||||
if (Z.Validates.isEmpty(data))
|
||||
{
|
||||
Z.alert("请添加初稿截图!")
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("saveDraftCertificate");
|
||||
ajax.addParam(data);
|
||||
ajax.addParam(${designId});
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("提交成功",function(){parent.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("designOrderDraft", '正在提交', {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()}
|
||||
<div style="display:none" id="imgData"></div>
|
||||
<div id="imgSrc"></div>
|
||||
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
|
||||
<div style="margin-top:10px">
|
||||
<button class="z-button z-w100 ${zmr_color_class}" id="designOrderDraft" onclick="doSubmit();">提交</button>
|
||||
<button class="z-button z-w80" onclick="parent.Z.Dialog.close()">关闭</button>
|
||||
<button class="z-button z-cyan z-w80" onclick="doCancel();">移除截图</button>
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
${zhiqim_manager_content_end()}
|
||||
</html>
|
||||
@@ -0,0 +1,167 @@
|
||||
<script>
|
||||
function doCardModify()
|
||||
{//电子名片去设计
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
if(Z("#typeId"+designId).val() == 2023207561256){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDesignerOrderTemplate");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.addParam("validateUrl", "/templateCardPreview.htm?designId="+designId+"&src=finish");
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccessLocationResponse();
|
||||
ajax.execute();
|
||||
}else{
|
||||
Z.alert("仅支持秒绘智能名片产品操作");
|
||||
}
|
||||
}
|
||||
|
||||
function doOrderReturn()
|
||||
{//订单退回
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
if(Z("#designer"+designId).val() != '${request.getSessionName()}'){
|
||||
Z.alert("非订单设计师 不支持操作");
|
||||
return;
|
||||
}
|
||||
Z.confirm('你确定退回订单吗?', function(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OrderCheckPresenter");
|
||||
ajax.setMethodName("doDesignerOrderReturn");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
ajax.execute();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.z-tabnav-main{ border:none;}
|
||||
.z-tabnav-main>nav li{ border-right:none; font-size:15px; height:50px; line-height:50px;}
|
||||
.z-tabnav-main.z-blue>nav li.z-active { color:#28a3ef; background: #fff; position: relative; font-weight: bold; }
|
||||
.z-tabnav-main.z-blue>nav li.z-active:hover{ background: #fff;}
|
||||
.z-tabnav-main.z-blue>nav li.z-active::before{content:''; bottom:0; left:50%; margin:0 0 0 -18px; position: absolute; width:36px; height:2px; background:#28a3ef;}
|
||||
.screen{ background: #e4e5ea; min-height:70px; padding:20px 0 10px 24px; box-sizing: border-box;}
|
||||
.search-box{ border:1px solid #d3d3d3; margin:0 10px 0 0; width:210px; float:left; border-radius:20px; padding:0 14px; background:#fff;}
|
||||
.search-box span{ float:left; line-height:32px; color:#282c2f;}
|
||||
.search-box input{ border:none; box-shadow:none; width:130px; height:32px; padding:0 0 0 10px; line-height:32px;}
|
||||
.search-box select{ float:right; width:100px;}
|
||||
.btn-search{ border-radius:32px; height:32px; float:left; margin:0 10px 0 0;}
|
||||
.z-table.z-bordered>thead>tr>th,.z-table.z-bordered>thead>tr>td,.z-table.z-bordered>tbody>tr>th,.z-table.z-bordered>tbody>tr>td{
|
||||
border:none; border-bottom: 1px solid #e4e4e4; font-size:13px; color:#999; height:52px;
|
||||
}
|
||||
.z-table.z-bordered{ border:none;}
|
||||
.z-bd-r{ border:none;}
|
||||
.design-order{ background: #fff;}
|
||||
.clear:after{content:'';display:block;clear:both;height:0;overflow:hidden;visibility:hidden;}
|
||||
.clear{zoom:1;}
|
||||
.z-readonly{ border:none!important; background: #edeeef!important;}
|
||||
.z-text-left td {
|
||||
color: #363940!important;
|
||||
font-weight: bold;
|
||||
}
|
||||
.z-text-red{color:#1681f5;}
|
||||
.z-red:hover{ background: #1681f5!important;}
|
||||
.z-button.z-red { background: #1681f5; border: 1px solid #1681f5;}
|
||||
.goDetail{cursor: pointer; height:30px; background:#1182fc; color:#fff!important; font-size:12px; width:70px; border-radius:4px; line-height:30px; display:block; text-align: center;}
|
||||
</style>
|
||||
<#def designatedPath="/designOrder.htm"/>
|
||||
<#var data="data=copy,userText,CustomFile,DesginFile,EndFile,WorkFile,AftersaleFile,ThumFile,userNotice,TbzFile"/>
|
||||
<#var addRule="addRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
|
||||
<#var delRule="delRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
|
||||
${Styles.htmlOverflowHidden()}
|
||||
${yangcai_calc_Left_width_height(400, 70)}
|
||||
${zhiqim_manager_breadcrumb("已完成订单")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<div class="design-order clear">
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.Location.href('designOrder.htm');">未完成订单</li>
|
||||
<li class="z-active">已完结订单</li>
|
||||
<li onclick="Z.Location.href('waitHandleAfterOrder.htm');">售后订单</li>
|
||||
<li onclick="Z.Location.href('complainWantDealList.htm');">投诉订单</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="z-overflow-y-auto z-overflow-x-hidden z-relative-left" style="width:100%;">
|
||||
<form name="theForm" action="/designOrderFinish.htm" method="post">
|
||||
<div class="screen clear">
|
||||
<div class="search-box">
|
||||
<span>订单号</span>
|
||||
<input name="designId" class="z-input ${zmr_color_class} z-w150" value="${designId}" placeholder="订单号">
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<span>旺旺号</span>
|
||||
<input name="buyerNick" class="z-input ${zmr_color_class} z-w150" value="${buyerNick}" placeholder="旺旺号">
|
||||
</div>
|
||||
<div class="search-box" style="width:310px;">
|
||||
<span>定稿日期</span>
|
||||
<input name="beginDate" style="width:100px;" onfocus="zhiqim.date(this);" readonly class="z-input" value="${beginDate}"> -
|
||||
<input name="endDate" style="width:100px;" onfocus="zhiqim.date(this);" readonly class="z-input" value="${endDate}">
|
||||
</div>
|
||||
|
||||
<button class="z-button z-blue btn-search"><i class="z-font z-query"></i>查询</button>
|
||||
<!--<button type="button" class="z-button btn-search" style="background: #ea4a36; color:#fff; border: 1px solid #ea4a36; box-shadow:none;" onclick="doOrderReturn();"><i class="z-font z-return"></i>订单退回</button>-->
|
||||
<button type="button" class="z-button z-cyan btn-search" onclick="doCardModify();"><i class="z-font z-modify"></i>修改订单</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<#-- 分页列表-->
|
||||
<div class="z-overflow-auto z-bd-r" style="padding:0 24px;">
|
||||
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" style="width:100%;">
|
||||
<tr align="center" class="z-text-left z-h40" data-layoutCode="designOrderFinish">
|
||||
<td width="40">选择</td>
|
||||
<td width="80">订单号</td>
|
||||
<td width="60">设计等级</td>
|
||||
<td width="80">旺旺号</td>
|
||||
<td width="60">订单状态</td>
|
||||
<td width="60">产品类型</td>
|
||||
<td width="90">下单时间</td>
|
||||
<td width="90">领单时间</td>
|
||||
<td width="90">初稿时间</td>
|
||||
<td width="90">定稿时间</td>
|
||||
<td width="60" align="center">操作</td>
|
||||
</tr>
|
||||
<#if pageResult.total() == 0>
|
||||
${zhiqim_manager_no_record(23, "暂时没有数据")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<input type="hidden" id="typeId${item.getDesignId()}" value="${item.getTypeId()}">
|
||||
<input type="hidden" id="designer${item.getDesignId()}" value="${item.getDesigner()}">
|
||||
<tr align="left" class="z-h50" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}" id="tr_${item.getDesignId()}">
|
||||
<td><input type="radio" name="designId" data-role="z-radio" data-class="${zmr_color_class} z-large" value="${item.getDesignId()}"
|
||||
></td>
|
||||
<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>
|
||||
<#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></td>
|
||||
<td>${DraftConstants.get(item.getDraftType())}</td>
|
||||
<td><a href="/wangwangOrder.htm?buyerNick=${item.getBuyerNick()}">${item.getBuyerNick()}</a></td>
|
||||
<td>${StatusConstants.getStatus(item.getStatus())}</td>
|
||||
<td>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesignBeginTime())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesignDraftTime())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
|
||||
<td align="center"><span class="goDetail" onclick="Z.L.href('allOrderDetail.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}');">详情</span></td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
</div>
|
||||
${zhiqim_manager_paging(pageResult, "designOrderFinish.htm")}
|
||||
</div>
|
||||
</div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,105 @@
|
||||
<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 refundReason=Z("#refundReason").val();
|
||||
var data = Z("#imgData").text()
|
||||
if (Z.Validates.isEmpty(data))
|
||||
{
|
||||
Z.alert("请添加顾客退款截图!")
|
||||
return;
|
||||
}
|
||||
var designId =${designId};
|
||||
Z.confirm("退款后此订单将取消,确认退款?", function(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDesignOrderRefund");
|
||||
ajax.addParam(data);
|
||||
ajax.addParam(designId);
|
||||
ajax.addParam(refundReason);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("提交成功", function(){parent.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
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()}
|
||||
<div style="display:none" id="imgData"></div>
|
||||
<div style="display:flex">
|
||||
<label style="width:10%;margin:auto">退款原因:</label>
|
||||
<select id="refundReason" class="z-select" data-role="z-select" data-class="${zmr_color_class}" style="width:90%">
|
||||
<#for item : list>
|
||||
<option value="${item.getId()}">${item.getTitle()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</div>
|
||||
<div style="maxWidth:50px;border:1px #999 solid;margin-top:5px">
|
||||
<div id="imgSrc" >
|
||||
</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="designOrderRefund" onclick="doSubmit();">确认退款</button>
|
||||
<button class="z-button z-red" onclick="doCancel();">清空截图</button>
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
${zhiqim_manager_content_end()}
|
||||
</html>
|
||||
@@ -0,0 +1,122 @@
|
||||
${request.getValidateScript()}
|
||||
<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>
|
||||
<div style="color:red;border-bottom:ridge;font-size:20px;padding: 10px;">
|
||||
<div class="ico">
|
||||
<span style="font-size: 20px;margin-left: 5px;">!</span>
|
||||
</div>
|
||||
  当前订单状态:请求退款
|
||||
</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}"/>
|
||||
</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>
|
||||
<button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
|
||||
</div>
|
||||
@@ -0,0 +1,85 @@
|
||||
<#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>
|
||||
</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>
|
||||
<button type="button" class="z-button z-w90" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
|
||||
</div>
|
||||
@@ -0,0 +1,48 @@
|
||||
<script>
|
||||
function doDesignOrderStop(form)
|
||||
{//暂停设计
|
||||
var selectId = form.selectId.value;
|
||||
var reason = form.reason.value;
|
||||
if(Z.V.isEmptyBlank(reason))
|
||||
{
|
||||
Z.alert("请输入暂停原因");
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDesignOrderStop");
|
||||
ajax.addParam('${designId}');
|
||||
ajax.addParam(selectId);
|
||||
ajax.addParam(reason);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("暂停成功",function(){parent.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("designOrderStop", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="javascript:void(0);" onsubmit="doDesignOrderStop(this);">
|
||||
<input name="billId" value="${bill.getBillid()}" type="hidden">
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
<tr class="z-h40" bgcolor="#f3fdfc">
|
||||
<td width="25%">暂停选项:</td>
|
||||
<td width="*">
|
||||
<select name="selectId" class="z-select ${zmr_color_class} z-w300">
|
||||
<option value="0">补全资料</option>
|
||||
<option value="1">联系不上</option-->
|
||||
</select> <font color=red> *</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40" bgcolor=${trColor}>
|
||||
<td>暂停原因:</td>
|
||||
<td><textarea name="reason" id="reason" style="width:70%;height:60px;" maxlength="200"></textarea></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" id="designOrderStop" class="z-button ${zmr_color_class} z-large z-w100">提交</button></td>
|
||||
</tr>
|
||||
</tabale>
|
||||
</form>
|
||||
@@ -0,0 +1,129 @@
|
||||
${Styles.htmlOverflowHidden()}
|
||||
${Scripts.src("/zinc/js/global_2019010801.js")}
|
||||
${yangcai_calc_Left_width_height(400, 70)}
|
||||
<style>
|
||||
.search-box{ border:1px solid #d3d3d3; margin:0 10px 0 0; width:210px; float:left; border-radius:20px; padding:0 14px; background:#fff;}
|
||||
.search-box span{ float:left; line-height:32px; color:#282c2f;}
|
||||
.search-box input{ border:none; box-shadow:none; width:130px; height:32px; padding:0 0 0 10px; line-height:32px;}
|
||||
.search-box select{ float:right; width:100px;}
|
||||
.design-order{ background: #fff;}
|
||||
.clear:after{content:'';display:block;clear:both;height:0;overflow:hidden;visibility:hidden;}
|
||||
.clear{zoom:1;}
|
||||
.z-select{ height:32px; padding:0;}
|
||||
.z-dropdown>.z-default{ color:#999;}
|
||||
.z-dropdown{ border:none; }
|
||||
.z-dropdown>i{ padding:4px 0 0 0;}
|
||||
.z-dropdown.z-blue.z-active, .z-dropdown.z-blue>.z-list{ border:none;}
|
||||
.z-operater{ padding:4px 4px;}
|
||||
.z-text-ellipsis {text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline; }
|
||||
.z-floater .z-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
min-width: 30px;
|
||||
min-height: 25px;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #c6c6c6;
|
||||
line-height: 25px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
}
|
||||
.z-table.z-bordered>thead>tr>th,.z-table.z-bordered>thead>tr>td,.z-table.z-bordered>tbody>tr>th,.z-table.z-bordered>tbody>tr>td{
|
||||
border:none; border-bottom: 1px solid #e4e4e4; font-size:13px; color:#999; height:52px;
|
||||
}
|
||||
.z-table.z-bordered{ border:none;}
|
||||
.z-bd-r{ border:none;}
|
||||
.z-tabnav-main>nav li{ border-right:none; font-size:15px; height:50px; line-height:50px;}
|
||||
.z-tabnav-main.z-blue>nav li.z-active { color:#28a3ef; background: #fff; position: relative; font-weight: bold; }
|
||||
.z-tabnav-main.z-blue>nav li.z-active:hover{ background: #fff;}
|
||||
.z-tabnav-main.z-blue>nav li.z-active::before{content:''; bottom:0; left:50%; margin:0 0 0 -18px; position: absolute; width:36px; height:2px; background:#28a3ef;}
|
||||
.screen{ background: #e4e5ea; height:70px; padding:20px 0 0 24px; box-sizing: border-box;}
|
||||
.z-tabnav-main{ border:none;}
|
||||
.btn-search{ border-radius:32px; height:32px; float:left; margin:0 10px 0 0;}
|
||||
.z-text-left td{ color:#363940!important; font-weight: bold;}
|
||||
.z-button.z-red { background: #1681f5; border: 1px solid #1681f5;}
|
||||
.z-readonly{ border:none!important; background: #edeeef!important;}
|
||||
.z-text-red{color:#1681f5;}
|
||||
.z-red:hover{ background: #1681f5!important;}
|
||||
.schedule a{ color:#999;}
|
||||
.color-orange{ color:#ff6600;}
|
||||
.schedule a p{ line-height:28px;}
|
||||
.goDetail{ cursor: pointer; height:30px; background:#1182fc; color:#fff!important; font-size:12px; width:70px; border-radius:4px; line-height:30px; display:block; text-align: center;}
|
||||
</style>
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
refreshEffectiveTime();
|
||||
Z.timer(10000, -1, null, refreshEffectiveTime);
|
||||
|
||||
var height=Z("#operation").offsetHeight();
|
||||
|
||||
if(height>55){
|
||||
Z("#fixedSpan").style("margin-top: -30px;");
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
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+"&flag=0";
|
||||
dialog.width = 500;
|
||||
dialog.height = 300;
|
||||
dialog.execute();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<#var data="data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,FristThumFile,TbzFile"/>
|
||||
<#var addRule="addRule=CustomFile"/>
|
||||
<#var delRule="delRule=CustomFile"/>
|
||||
${zhiqim_manager_breadcrumb("未完成订单")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<div class="design-order clear">
|
||||
<#-- 导航栏 -->
|
||||
<div class="z-tabnav-main z-blue">
|
||||
<nav>
|
||||
<ul>
|
||||
|
||||
|
||||
|
||||
<#for item : catList>
|
||||
<li onclick="Z.L.href('designStandardList.htm?reasonId=${item.getStandardId()}', attaFileList);">${item.getStandardTitle()}</li>
|
||||
</#for>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 左侧功能 -->
|
||||
<div class="z-overflow-y-auto z-overflow-x-hidden z-relative-left" style="width:100%;">
|
||||
|
||||
<#-- 查询条件 -->
|
||||
|
||||
|
||||
|
||||
|
||||
<#-- 分页列表-->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
${zhiqim_manager_content_end()}
|
||||
<div class="z-overflow-auto z-bd-r" style="width:100%;height: 800px">
|
||||
<iframe name="attaFileList" src="designStandardList.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,101 @@
|
||||
<#def designatedPath="/designStandardDetails.htm"/>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
var contentElement = document.getElementById("content");
|
||||
var contentElement1 = document.getElementById("editor-container");
|
||||
var editButton = document.getElementById("edit-button");
|
||||
var content1 = '${content}';
|
||||
if (!content1) {
|
||||
// content 为空
|
||||
}else{
|
||||
|
||||
document.getElementById('editor-container').innerHTML = content1;
|
||||
}
|
||||
|
||||
|
||||
// 当点击编辑按钮时,将内容设置为可编辑状态
|
||||
editButton.addEventListener("click", function() {
|
||||
console.log(content1);
|
||||
|
||||
contentElement1.contentEditable = true;
|
||||
contentElement1.focus();
|
||||
});
|
||||
|
||||
|
||||
|
||||
var saveButton = document.getElementById("save-button");
|
||||
saveButton.addEventListener("click", async function() {
|
||||
var containerasd = document.getElementById("editor-container");
|
||||
var imgElements = containerasd.getElementsByTagName("img");
|
||||
for (var i = 0; i < imgElements.length; i++) {
|
||||
await new Promise((resolve, reject) => {
|
||||
(function(index) {
|
||||
var src = imgElements[index].src;
|
||||
console.log(index);
|
||||
// 在这里对src进行重新赋值
|
||||
|
||||
|
||||
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("designtypeImge");
|
||||
ajax.addParam("designId", ${reasonId});
|
||||
ajax.addParam("content", encodeURIComponent(src));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(responseText) {
|
||||
imgElements[index].src = responseText;
|
||||
console.log(index);
|
||||
resolve();
|
||||
});
|
||||
ajax.execute();
|
||||
console.log(index);
|
||||
})(i);
|
||||
});
|
||||
}
|
||||
// 在这里执行保存操作,比如将内容发送到服务器进行保存
|
||||
nextMethod();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function nextMethod() {
|
||||
|
||||
var html = document.getElementById("editor-container").innerHTML;
|
||||
console.log(html);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("designtype");
|
||||
ajax.addParam("designId", ${reasonId});
|
||||
ajax.addParam("content", encodeURIComponent(html));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("设计类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
|
||||
<div id="editor-container">
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
||||
.ql-tooltip {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,245 @@
|
||||
|
||||
<script>
|
||||
var catMap = new Z.HashMap();
|
||||
var list = Z.J.toObject('${catList}');
|
||||
Z.onload(function(){
|
||||
Z.each(list, function(item, i){
|
||||
catMap.put(Z.S.toString(item.reasonId), item)
|
||||
})
|
||||
});
|
||||
|
||||
function toAdd(type)
|
||||
{
|
||||
if ((type != 1 && type != 0))
|
||||
{
|
||||
Z.alert("未知添加类型");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var isCat = type == 1;
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="addForm" action="javascript:void(0)">';
|
||||
content += '<input name="isStandardType" type="hidden" value="'+isCat+'">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
if (isCat)
|
||||
{//添加分类
|
||||
height = 120;
|
||||
content += ' <tr>';
|
||||
content += ' <td>规范分类 :</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
content += ' <tr>';
|
||||
content += ' <td>规范分类 :</td>';
|
||||
content += ' <td>';
|
||||
content += ' <select name="standardParent" class="z-select z-w200" data-role="z-select" data-class="z-blue">';
|
||||
Z.each(list, function(item, i)
|
||||
{
|
||||
content += ' <option value="'+item.standardId+'">'+item.standardTitle+'</option>';
|
||||
})
|
||||
content += ' </select>';
|
||||
content += ' </td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>规范项 :</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
}
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doSave(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'addreason', title:'<span id="addreasonTile"></span>', text:'<div id="addreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#addreasonContent").htmlc(content);
|
||||
Z("#addreasonTile").htmlc("添加原因预录");
|
||||
}
|
||||
|
||||
function doSave(form)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("insert");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"添加成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function doModify(reasonId, parentId, text)
|
||||
{//修改
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="modifyForm" action="javascript:void(0)">';
|
||||
content += '<input name="standardId" type="hidden" value="'+reasonId+'">';
|
||||
content += '<input name="isStandardType" type="hidden" value="false">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
content += ' <tr>';
|
||||
content += ' <td>类型分类 :</td>';
|
||||
content += ' <td>';
|
||||
content += ' <select name="standardParent" class="z-select z-w200" data-role="z-select-search" data-class="z-blue">';
|
||||
Z.each(list, function(item, i)
|
||||
{
|
||||
content += ' <option value="'+item.standardId+'" '+(item.standardId == parentId ? 'selected' : '')+'>'+item.standardTitle+'</option>';
|
||||
});
|
||||
content += ' </select>';
|
||||
content += ' </td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>标题 :</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" value="'+(text ? text : '')+'" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doUpdate(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'modifyreason', title:'<span id="modifyreasonTile"></span>', text:'<div id="modifyreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#modifyreasonContent").htmlc(content);
|
||||
Z("#modifyreasonTile").htmlc("添加原因预录");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function doModifys(reasonId, parentId, text)
|
||||
{//修改
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="modifyForm" action="javascript:void(0)">';
|
||||
content += '<input name="standardId" type="hidden" value="'+reasonId+'">';
|
||||
content += '<input name="isStandardType" type="hidden" value="false">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>类型:</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" value="'+(text ? text : '')+'" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doUpdate(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'modifyreason', title:'<span id="modifyreasonTile"></span>', text:'<div id="modifyreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#modifyreasonContent").htmlc(content);
|
||||
Z("#modifyreasonTile").htmlc("添加原因预录");
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doUpdate(form)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("update");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"更新成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
|
||||
parent.location.reload();
|
||||
});
|
||||
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function doDelete(reasonId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("beforeDelete");
|
||||
ajax.addParam("reasonId",reasonId);
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"更新成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading("removeReason", '<i class="z-font z-delete"></i>正在移除',{disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doReasonDelete(reasonId){
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.CheckBackReasonAction");
|
||||
ajax.setMethodName("delete");
|
||||
ajax.addParam("reasonId",reasonId);
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"移除成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading("removeReason", '<i class="z-font z-delete"></i>正在移除',{disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function showEditor(designId)
|
||||
{
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "行为规范";
|
||||
dialog.url = "/designStandardDetails.htm?reasonId=" + designId;
|
||||
dialog.width = 1100;
|
||||
dialog.height = 700;
|
||||
dialog.execute();
|
||||
}
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
|
||||
|
||||
<#-- 列表 -->
|
||||
${Htmls.toCallFrame()}
|
||||
|
||||
<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="10%">序号</td>
|
||||
<td width="*">标题</td>
|
||||
<td width="220">创建时间</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 27, "暂时没有数据")}
|
||||
<#for item : reasonList>
|
||||
<tr ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${item_index+1}</td>
|
||||
<td id="item_${item.getStandardId()}" onclick="showEditor('${item.getStandardId()}')">${item.getStandardTitle()}</td>
|
||||
<td id="item_${item.getStandardId()}">${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
<#if Validates.isEmpty(reasonList) || reasonList.size() == 0>
|
||||
<tr bgcolor="">
|
||||
<td colspan="3">暂时没有数据信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
</table>
|
||||
</div>
|
||||
${zhiqim_manager_paging(pageResult, "/designStandardList.htm")}
|
||||
</div>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,427 @@
|
||||
${zhiqim_manager_content()}
|
||||
${Scripts.src(zhiqim.js)}
|
||||
${Scripts.src(zhiqim_uploadlarge.js)}
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
//考试状态
|
||||
var status = ${initialStatus};
|
||||
if(status == 10 ){
|
||||
doChangeStep(2)
|
||||
}else if(status == 20){
|
||||
doChangeStep(3)
|
||||
}else if(status == 30){
|
||||
doChangeStep(4)
|
||||
}else if(status == 40){
|
||||
doChangeStep(4)
|
||||
}else {
|
||||
doChangeStep(1)
|
||||
}
|
||||
|
||||
//初始化上传组件
|
||||
initUploader("FUpload_Desgin","DesginFile","${desginPath}");
|
||||
initUploader("FUpload_End","EndFile","${endPath}");
|
||||
});
|
||||
|
||||
//上传设计文件
|
||||
function initUploader(elem,fileType,path)
|
||||
{
|
||||
var questionsId = document.getElementById("questionsId").value;
|
||||
var upload = new Z.UploadLarge();
|
||||
upload.elem = elem;
|
||||
upload.showResult = false;
|
||||
upload.setFileDir(path);
|
||||
upload.fileCopy = true;
|
||||
upload.onSelected = function(fileName,FileType){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("QuestionsFilePresenter");
|
||||
ajax.setMethodName("doCheckFileName");
|
||||
ajax.addParam(fileName);
|
||||
ajax.addParam(fileType);
|
||||
ajax.execute();
|
||||
this.setFileName(questionsId + "-" + fileName);
|
||||
};
|
||||
upload.onCompleted = function(fileId, fileName){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("QuestionsFilePresenter");
|
||||
ajax.setMethodName("uploadQuestionsFile");
|
||||
ajax.addParam(questionsId);
|
||||
ajax.addParam(fileId);
|
||||
ajax.addParam(fileType);
|
||||
ajax.setFailure(function(){Z.alert(this.responseText);});
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var items = obj.attaList;
|
||||
var html = "";
|
||||
Z("#"+fileType).html("");//清除历史数据
|
||||
for (var i=0;i<items.length;i++)
|
||||
{
|
||||
var obj = items[i];
|
||||
html += obj.fileName + " " +'<a id="attaId" onclick="doDelete('+ obj.attaId +');"><span style="color:#008bd2">删除</span></a>'+"<br/><br/>";
|
||||
}
|
||||
|
||||
Z("#"+fileType).htmlc(html);
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
};
|
||||
upload.execute();
|
||||
};
|
||||
|
||||
|
||||
function doChangeStep(step)
|
||||
{//1 表示问卷考核,2表示虚拟订单,3表示等待审核,4表示审核通过
|
||||
|
||||
if (!step)
|
||||
return;
|
||||
if (!Z.V.isInteger(step))
|
||||
return;
|
||||
|
||||
if (step == 1)
|
||||
{//切换步骤内容
|
||||
doUpdatePageCode(step);
|
||||
}
|
||||
else if (step == 2)
|
||||
{//切换步骤内容
|
||||
doUpdatePageCode(step);
|
||||
}
|
||||
else if (step == 3)
|
||||
{//切换步骤内容
|
||||
doUpdatePageCode(step);
|
||||
}
|
||||
else if (step == 4){
|
||||
doUpdatePageCode(step);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
//切换步骤内容
|
||||
function doUpdatePageCode(step)
|
||||
{
|
||||
//切换显示内容
|
||||
Z("div[id^='stepContent_']").hide();
|
||||
Z("div[id^='stepContent_"+step+"']").show();
|
||||
//显示步骤条
|
||||
step = step*1-1;
|
||||
var $step = Z("div.z-stepbar").children("nav");
|
||||
$step.removeClass("z-active");
|
||||
Z($step[step]).addClass("z-active");
|
||||
}
|
||||
|
||||
//移除截图
|
||||
function doRemoveImg()
|
||||
{
|
||||
Z("#saveImgPath").remove();
|
||||
}
|
||||
|
||||
//初始化监听考试截图
|
||||
(function(){
|
||||
var imgReader = function( item ){
|
||||
var blob = item.getAsFile(),
|
||||
reader = new FileReader();
|
||||
Z("#saveImgPath").remove();//删除历史图片
|
||||
// 读取文件后将其显示在网页中
|
||||
reader.onload = function(e){
|
||||
var img = new Image();
|
||||
var result = e.target.result;
|
||||
Z("#imgData").text(result);
|
||||
img.src = result;
|
||||
img.id = "saveImgPath";
|
||||
Z("#imgSrc").append(img);
|
||||
};
|
||||
// 读取文件
|
||||
reader.readAsDataURL(blob);
|
||||
};
|
||||
window.addEventListener( 'paste', function(e){
|
||||
// 添加到事件对象中的访问系统剪贴板的接口
|
||||
var clipboardData = e.clipboardData,
|
||||
i = 0,
|
||||
items, item, types;
|
||||
|
||||
if(clipboardData){
|
||||
items = clipboardData.items;
|
||||
if( !items ){
|
||||
return;
|
||||
}
|
||||
item = items[0];
|
||||
// 保存在剪贴板中的数据类型
|
||||
types = clipboardData.types || [];
|
||||
for( ; i < types.length; i++ ){
|
||||
if( types[i] === 'Files' ){
|
||||
item = items[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 判断是否为图片数据
|
||||
if( item && item.kind === 'file' && item.type.match(/^image\//i) ){
|
||||
imgReader( item );
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
//提交成绩图
|
||||
function doDraftSubmit()
|
||||
{
|
||||
var questionsId = document.getElementById("questionsId").value;
|
||||
var data = Z("#imgData").text()
|
||||
if (Z.Validates.isEmpty(data))
|
||||
{
|
||||
Z.alert("考试成绩截图为空")
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerTestPresenter");
|
||||
ajax.setMethodName("saveGrade");
|
||||
ajax.addParam(data);
|
||||
ajax.addParam(questionsId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.location.reload();});
|
||||
});
|
||||
ajax.setLoading("doDraftSubmit", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
//考试地址
|
||||
function doAssessSite(){
|
||||
Z.alert("暂时不需要去考试,请直接随意截图提交。");
|
||||
}
|
||||
|
||||
//提交审核
|
||||
function doSubmitAudit()
|
||||
{
|
||||
var questionsId = document.getElementById("questionsId").value;
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerTestPresenter");
|
||||
ajax.setMethodName("submitAudit");
|
||||
ajax.addParam(questionsId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success(("操作成功"),function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
//联系审核人
|
||||
function contectQQ(userQq)
|
||||
{
|
||||
if (!Z.V.isInteger(userQq))
|
||||
{
|
||||
Z.alert("QQ号不合法");
|
||||
return;
|
||||
}
|
||||
|
||||
Z("#openFrm").attr("src","tencent://message/?uin="+userQq);
|
||||
}
|
||||
|
||||
//重新考试
|
||||
function doRefreshAssess()
|
||||
{
|
||||
var questionsId = document.getElementById("questionsId").value;
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerTestPresenter");
|
||||
ajax.setMethodName("refreshAssess");
|
||||
ajax.addParam(questionsId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("申请重新考核成功", function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function downMaterialFile(attaId){
|
||||
if (Z.V.isEmpty(attaId))
|
||||
{
|
||||
Z.alert("请选择需要下载的素材");
|
||||
return ;
|
||||
}
|
||||
|
||||
var mainFrame = parent.parent.document.URL;
|
||||
var mainSrc = mainFrame.src;
|
||||
var prefix = Z.l.protocol + "//" + Z.l.host ;
|
||||
var element1 = document.createElement("a");
|
||||
element1.href = prefix+"/downQuestionsFile.htm?attaId=" + attaId;
|
||||
Z.L.href(prefix+"/downQuestionsFile.htm?attaId=" + attaId, zCallFrame);
|
||||
}
|
||||
|
||||
//删除文件
|
||||
function doDelete(attaId)
|
||||
{
|
||||
Z.confirm("您确定删除该文件吗?", function()
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignerTestPresenter");
|
||||
ajax.setMethodName("deleteFile");
|
||||
ajax.addParam(attaId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("删除成功!", function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.execute()});
|
||||
}
|
||||
|
||||
function showLargeImg()
|
||||
{
|
||||
var url="https://oss-89-taobao.oss-cn-shenzhen.aliyuncs.com/yangcai365_design/performance/questions_standard-1.png";
|
||||
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()-800;
|
||||
dialog.height = parent.Z.D.clientHeight()-200;
|
||||
dialog.execute();
|
||||
dialog.$background.remove();
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="z-pd10 z-px16 z-bg-white" style="padding-top:20px">
|
||||
<input id="questionsId" type="hidden" value="${orderQuestions.getQuestionsId()}">
|
||||
<!-- 默认步骤条效果 -->
|
||||
<div class="z-stepbar z-blue">
|
||||
<nav class="z-active">
|
||||
<span class="z-round z-white z-mg-r5">1</span><span>问卷考核</span>
|
||||
</nav>
|
||||
<nav onclick="">
|
||||
<span class="z-round z-white z-mg-r5">2</span><span>虚拟订单</span>
|
||||
</nav>
|
||||
<nav onclick="">
|
||||
<span class="z-round z-white z-mg-r5">3</span><span>等待审核</span>
|
||||
</nav>
|
||||
<nav onclick="">
|
||||
<span class="z-round z-white z-mg-r5">4</span><span>审核结果</span>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div id="stepContent_1">
|
||||
|
||||
<br/>
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white" style="width:1100px;">
|
||||
<tr>
|
||||
<td width="10%">开始理论考试</td>
|
||||
<td width="*"><button class="z-button z-large z-w120 ${zmr_color_class}" onclick="doAssessSite();">前往考试</button>
|
||||
<font style="color:red">说明:为了提高审核通过率,请提交80分以上的截图,否则审核将不通过</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">考试成绩截图</td>
|
||||
<td width="*" height="550">完成考试成绩截图后,直接<font style="color:red"> CTRL+V </font>粘贴即可
|
||||
<div style="display:none" id="imgData"></div>
|
||||
<div id="imgSrc"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="z-text-center">
|
||||
<button class="z-button z-large z-red" onclick="doRemoveImg();"><i class="z-font z-delete"></i>删除截图</button>
|
||||
<button id="doDraftSubmit" class="z-button z-large z-blue" onclick="doDraftSubmit();"><i class="z-font z-save"></i>完成考试</button>
|
||||
<div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="stepContent_2">
|
||||
<br/>
|
||||
<form name="step2Form" action="javascript:void(0);" method="post" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white" style="width:1100px;">
|
||||
<tr>
|
||||
<td width="10%">设计要求</td>
|
||||
<td width="80%">${orderQuestions.getDesignRequirements()}</td>
|
||||
<td width="10%"><button type="button" class="z-button z-large z-blue z-w110 z-mg-t20 zi-mg-b20" onclick="showLargeImg()"><i class="z-font z-query"></i>审核标准</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">设计素材</td>
|
||||
<td colspan="2">
|
||||
<#for item : materialFilerAttaList>
|
||||
${item.getFileName()} <a href="javascript:downMaterialFile('${item.getAttaId()}')"><span style="color:#2483EB">下载</span></a><br/><br/>
|
||||
</#for>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">设计文件</td>
|
||||
<td width="80%" id="DesginFile">
|
||||
<#for item : desginFileAttaList>
|
||||
${item.getFileName()} <a id="attaId" onclick="doDelete(${item.getAttaId()});"><span style="color:#2483EB">删除</sapn></a><br/><br/>
|
||||
</#for>
|
||||
</td>
|
||||
<td width="10%"><button id="FUpload_Desgin" type="button" class="z-button z-large z-blue z-w110 z-mg-t20 zi-mg-b20"><i class="z-font z-upload"></i>上传文件</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">印刷文件<br/><font color="red"> pdf格式</font></td>
|
||||
<td width="80%" id="EndFile">
|
||||
<#for item : endFileAttaList>
|
||||
${item.getFileName()} <a id="attaId" onclick="doDelete(${item.getAttaId()});"><span style="color:#2483EB">删除</sapn></a><br/><br/>
|
||||
</#for>
|
||||
</td>
|
||||
<td width="10%"><button id="FUpload_End" type="button" class="z-button z-large z-blue z-w110 z-mg-t20 zi-mg-b20"><i class="z-font z-upload"></i>上传文件</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<div class="z-text-center">
|
||||
<button class="z-button z-large z-blue" onclick="doSubmitAudit();"><i class="z-font z-save"></i>提交审核</button>
|
||||
<div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div id="stepContent_3">
|
||||
<div style="margin-top:10px">
|
||||
</div>
|
||||
<div>
|
||||
<br/><br/>
|
||||
<p style="margin-top:10px">
|
||||
<div>
|
||||
<h3>审核中,请通过微信扫码联系审核人员确认相关入驻事宜</h3>
|
||||
</div>
|
||||
</p>
|
||||
<br/><br/>
|
||||
</div>
|
||||
<img style="width:15%;" src="/zinc/images/VXQRcode.png">
|
||||
</div>
|
||||
|
||||
<div id="stepContent_4">
|
||||
<#if initialStatus = 40>
|
||||
<div style="margin-top:10px">
|
||||
</div>
|
||||
<div>
|
||||
<br/><br/>
|
||||
<p style="margin-top:10px">
|
||||
<div>
|
||||
<h3><p style="color:#FF0000;font-weight:500">抱歉,审核未通过。未通过原因:${orderQuestions.getRemarks()}</p></h3>
|
||||
</div>
|
||||
</p>
|
||||
<h3>详情请通过微信扫码联系审核人员</h3>
|
||||
</div>
|
||||
<img style="width:15%;" src="/zinc/images/VXQRcode.png"> </br></br>
|
||||
<button id="doRefreshAssess" type="button" style="padding:7px;width:8%" class="z-button z-blue" onclick="doRefreshAssess();"><i class="z-font z-refresh"></i><font style="font-size:small">重新考核</font></button>
|
||||
<button id="showLargeImg" type="button" style="padding:7px;width:8%" class="z-button z-blue" onclick="showLargeImg();"><i class="z-font z-query"></i><font style="font-size:small">审核标准</font></button>
|
||||
</div>
|
||||
<#else>
|
||||
<div style="margin-top:10px">
|
||||
</div>
|
||||
<div>
|
||||
<br/><br/>
|
||||
<p style="margin-top:10px">
|
||||
<div>
|
||||
<h3 >恭喜你通过审核,请退出<span style="color:#FF0000">重新登录</span>设计平台,马上开始你的接单之旅吧!</h3>
|
||||
</div>
|
||||
</p>
|
||||
<br/><br/>
|
||||
</div>
|
||||
</div>
|
||||
</#if>
|
||||
</div>
|
||||
${zhiqim_manager_content_end()}
|
||||
<#-- 联系QQ弹窗框 -->
|
||||
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
|
||||
@@ -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> *</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>
|
||||
<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,352 @@
|
||||
${Scripts.src("/zinc/js/global_2019010801.js")}
|
||||
<style>
|
||||
.z-text-ellipsis {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
display: inline;
|
||||
}
|
||||
.z-floater .z-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
min-width: 30px;
|
||||
min-height: 25px;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #c6c6c6;
|
||||
line-height: 25px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
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);
|
||||
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 doSelfRetentDeal(){
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
if (Z.V.isEmpty(designId))
|
||||
{
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
}
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OrderPresenter");
|
||||
ajax.setMethodName("doSelfRetentDealBefore");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
<#var retentDealTime=CalculationUtil.retentDealDateTime(request)/>
|
||||
var retentDealDateTime =${retentDealTime};
|
||||
if(retentDealDateTime != ""){
|
||||
Z.confirm('您需要在'+retentDealDateTime+'小时内处理订单', function(){doSelfRetentDealInfo(designId)});
|
||||
}else{
|
||||
Z.alert("通知管理员设置滞留单处理时效");
|
||||
return;
|
||||
}
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doSelfRetentDealInfo(designId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OrderPresenter");
|
||||
ajax.setMethodName("doSelfRetentDeal");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){location.reload();});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doDesignOrderRefund()
|
||||
{//请求退款
|
||||
var designId = Z.FM.getChecked("designId");
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignOrderPresenter");
|
||||
ajax.setMethodName("doDesignOrderRefundValidate");
|
||||
ajax.addParam("designId", designId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
if(Z.V.isNotEmpty(this.responseText)){
|
||||
Z.confirm(this.responseText, function(){
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "退款订单: "+designId+" (截屏后粘贴(CTRL+V)到下方空白处)";
|
||||
dialog.url = "/designOrderRefund.htm?designId=" + designId;
|
||||
dialog.width = 600;
|
||||
dialog.height = 400;
|
||||
dialog.execute();
|
||||
});
|
||||
return;
|
||||
}
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "退款订单: "+designId+" (截屏后粘贴(CTRL+V)到下方空白处)";
|
||||
dialog.url = "/designOrderRefund.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>
|
||||
|
||||
${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.Location.href('designOrder.htm');">设计订单</li>
|
||||
<li onclick="Z.Location.href('draftOrder.htm');">初稿订单</li>
|
||||
<li class="z-active">滞留订单</li>
|
||||
<li onclick="Z.Location.href('draftOrderToDay.htm');">今日初稿订单</li>
|
||||
<li onclick="Z.Location.href('completeOrderDayStat.htm');">今日定稿统计</li>
|
||||
<li onclick="Z.Location.href('designOrderFinish.htm');">历史完成订单</li>
|
||||
<li onclick="Z.Location.href('fillOrder.htm');">补单列表</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 左侧功能 -->
|
||||
<#-- 查询条件 -->
|
||||
${zhiqim_manager_title("查询条件")}
|
||||
<form name="theForm" action="/myRetentionOrder.htm">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr class="z-h40">
|
||||
<td>订 单 号 :<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
|
||||
<td>产品类型:<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>责 任 人:
|
||||
<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 class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
|
||||
<tr>
|
||||
</tr class="z-h40">
|
||||
<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>
|
||||
<td>店铺名称:<select name="shopNick" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">全部</option>
|
||||
<#for item : shopNickList>
|
||||
<option value="${item}" <#if shopNick == item>selected</#if>>${item}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
<td>滞留时长:<select name="retentionTime" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">全部</option>
|
||||
<option value="1" <#if retentionTime == 1>selected</#if>>一个月以上</option>
|
||||
<option value="2" <#if retentionTime == 2>selected</#if>>两个月以上</option>
|
||||
<option value="3" <#if retentionTime == 3>selected</#if>>三个月以上</option>
|
||||
</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 class="z-w100p z-mg-t10 z-mg-b3">
|
||||
<button type="button" class="z-button z-mg-r6 ${zmr_color_class}" onclick="Global.openWangWang();"><img src="/zinc/images/wangwang.png">旺旺联系</button>
|
||||
|
||||
<#if ZmrPathRule.check(request, "doApplyRefund")>
|
||||
<span class="z-pointer z-text-ellipsis" data-role="z-tooltip" data-options="placement:top;top:5;align:center;border-color:#d3d3d3;width:80px;" data-text="取消设计">
|
||||
<button id="designOrderRefund" class="z-button z-blue z-mg-r10" onclick="doDesignOrderRefund();"><i class="z-font z-modify"></i>
|
||||
申请退款
|
||||
</button>
|
||||
</span>
|
||||
</#if>
|
||||
|
||||
<button id="quickContactBtn" type="button" class="z-button z-mg-t3 z-mg-r6 z-cyan" onclick="quickContact();"><i class="z-font z-add"></i>快捷联系人</button>
|
||||
<button class="z-button z-blue z-mg-r10" onclick="doProgressNote();"><i class="z-font z-setting"></i>进度备注</button>
|
||||
<button class="z-button z-orange z-mg-r10" onclick="doSelfRetentDeal();">自行处理</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="140">订单号</td>
|
||||
<td width="150">所属组织</td>
|
||||
<td width="100">稿件类型</td>
|
||||
<td width="130">旺旺号</td>
|
||||
<td width="120">店铺</td>
|
||||
<td width="110">设计师</td>
|
||||
<td width="90">创建时间</td>
|
||||
<td width="90">领单时间</td>
|
||||
<td width="110">订单状态</td>
|
||||
<td width="160">进度备注</td>
|
||||
<td width="*" style="min-width:220px">产品</td>
|
||||
<td width="80">订单金额</td>
|
||||
<td width="120">倒计时</td>
|
||||
<td width="80">印刷设计</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 12, "暂时没有滞留单")}
|
||||
<#for item : pageResult.list()>
|
||||
<#var isCountDown=CalculationUtil.retentDealCountDownCal(request,item.getDesignId())/>
|
||||
<input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
|
||||
<input id="userQq_${item.getDesignId()}" type="hidden" value="${item.getUserQq()}">
|
||||
<tr class="z-pointer <#if isCountDown == "">z-text-red</#if>" ${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()}
|
||||
<#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>${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>${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
|
||||
<td>${StatusConstants.getStatus(item.getStatus())}</td>
|
||||
<td>${progressNoteMap.get(item.getDesignId())}</td>
|
||||
<td>${item.getOrderText()}</td>
|
||||
<td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
|
||||
<td><#if isCountDown != "">${isCountDown}</#if></td>
|
||||
<td><#if item.isOnlyDesign()>仅设计<#else>设计印刷</#if></td>
|
||||
</tr>
|
||||
</#for>
|
||||
${zhiqim_manager_paging(pageResult, "/myRetentionOrder.htm")}
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
|
||||
<#-- 联系旺旺&联系QQ弹窗框 -->
|
||||
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
|
||||
@@ -0,0 +1,50 @@
|
||||
${zhiqim_manager_breadcrumb("待办")}
|
||||
${zhiqim_manager_content()}
|
||||
${sweet_alert_reuse_method()}
|
||||
<style>
|
||||
.goDetail{ cursor: pointer; height:30px; background:#1182fc; color:#fff!important; font-size:12px; width:70px; border-radius:4px; line-height:30px; display:block; text-align: center;}
|
||||
</style>
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-mg-t20 z-pd10 z-bg-white z-lh150p z-text-center">
|
||||
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="25%">待办状态</td>
|
||||
<td width="*">待办内容</td>
|
||||
<td width="15%">通知人</td>
|
||||
<td width="15%">待办创建时间</td>
|
||||
<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="goDetail" onclick="findInfo('${item.getDesignId()}+','+${item.getMessageType()}')">前往处理</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
${zhiqim_manager_tr_no_record(result, 10, "暂时没有公告")}
|
||||
</table>
|
||||
<table class="z-table z-bordered zi-bd-t-none z-bg-white">
|
||||
<tr class="z-h50">
|
||||
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlLink(result)}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
|
||||
<script>
|
||||
|
||||
function findInfo(id,MessageType){
|
||||
if(MessageType == 1){
|
||||
open("/allOrderDetail.htm?designId="+id+'&data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,FristThumFile,TbzFile&addRule=CustomFile&delRule=CustomFile');
|
||||
}else{
|
||||
alert("该待办已办结");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -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>
|
||||
<#if ZmrPathRule.check(request, "/orderTagList.htm")><li onclick="Z.L.href('orderTagList.htm');">订单标签</li></#if>
|
||||
<li onclick="Z.L.href('orderRefundList.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,168 @@
|
||||
${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>
|
||||
<#if ZmrPathRule.check(request, "/orderList.htm")>
|
||||
<li onclick="Z.L.href('orderList.htm');">订单列表</li></#if>
|
||||
<li onclick="Z.L.href('orderLogList.htm');">订单日志</li>
|
||||
<li onclick="Z.L.href('orderTagList.htm');">订单标签</li>
|
||||
<li class="z-active">退款订单列表</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,171 @@
|
||||
${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;
|
||||
|
||||
var prefix = Z.l.protocol + "//" + Z.l.host ;
|
||||
Z.L.href(prefix+"/downFile.htm?attaId=" + attaIds, zCallFrame);
|
||||
});
|
||||
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}"> -
|
||||
<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,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,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()} ${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>> ${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>
|
||||
<#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>> ${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>
|
||||
<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}"> -
|
||||
<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}"> -
|
||||
<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">订 单 号 :</td>
|
||||
<td width="160"><span>${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>${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>
|
||||
<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%">订 单 号 :<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}"> -
|
||||
<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">
|
||||
质检日期:
|
||||
<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}"> -
|
||||
<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,116 @@
|
||||
${Styles.htmlOverflowHidden()}
|
||||
${Scripts.src("/zinc/js/global_2019010801.js")}
|
||||
${yangcai_calc_Left_width_height(400, 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>
|
||||
<style>
|
||||
body{height:100%;}
|
||||
.receive-box{ background:#fff; padding:20px;}
|
||||
.z-table.z-bordered { border:none;}
|
||||
.z-table.z-bordered>thead>tr>th,.z-table.z-bordered>thead>tr>td,.z-table.z-bordered>tbody>tr>th,.z-table.z-bordered>tbody>tr>td{
|
||||
border:none; border-bottom: 1px solid #e4e4e4; font-size:13px; color:#999; height:52px;
|
||||
}
|
||||
.z-h40{ border-bottom:1px solid #000;}
|
||||
.search-box{ border:1px solid #d3d3d3; width:230px; float:left; border-radius:20px; padding:0 14px; margin:0 10px 0 0;}
|
||||
.search-box span{ float:left; line-height:32px; color:#282c2f;}
|
||||
.search-box select{ float:right; width:130px;}
|
||||
.z-select{ height:32px; padding:0;}
|
||||
.z-dropdown>.z-default{ color:#999;}
|
||||
.z-dropdown{ border:none; }
|
||||
.z-dropdown>i{ padding:4px 0 0 0;}
|
||||
.z-dropdown.z-blue.z-active, .z-dropdown.z-blue>.z-list{ border:none;}
|
||||
.mainbody{ height:calc(100% - 66px);; min-height:500px; overflow-y: scroll;}
|
||||
.mainbody .content{ float:none;}
|
||||
.z-text-left td{ color:#363940!important; font-weight: bold;}
|
||||
.z-h50 td{
|
||||
border-bottom: none!important;
|
||||
}
|
||||
.z-button.z-red{ background:#1681f5; border: 1px solid #1681f5;}
|
||||
.z-text-red{ color:#1681f5;}
|
||||
.btn-search{ height:34px; border-radius: 16px; padding:0 16px; min-width:80px;}
|
||||
.z-button .z-font{ font-size:13px;}
|
||||
.z-button.z-red:hover,.z-button.z-red:focus{background-color:#328dfc;}
|
||||
.z-readonly{ border:none!important; background: #edeeef!important;}
|
||||
.z-mg-r3{ margin-right:10px;}
|
||||
.receive-search{ padding:16px 0;}
|
||||
</style>
|
||||
|
||||
${zhiqim_manager_content()}
|
||||
<div class="receive-box">
|
||||
<div class=""><img src="/zinc/images/attention.jpg"></div>
|
||||
|
||||
<#-- 查询条件 -->
|
||||
<form name="theForm" action="receiveOrder.htm" method="post">
|
||||
<div class="receive-search">
|
||||
<div class="search-box">
|
||||
<span>产品类型</span>
|
||||
<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>
|
||||
</div>
|
||||
<button class="z-button z-blue btn-search"><i class="z-font z-query"></i>查询</button>
|
||||
</div>
|
||||
|
||||
</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" style=" padding:0 0 4px 0;">
|
||||
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" >
|
||||
<tr class="z-text-left z-h40" bgcolor="#f0f1f5" data-layoutCode="receiveOrder">
|
||||
<td width="50" style="padding:0 0 0 10px;">产品类型</td>
|
||||
<td width="60">订单号</td>
|
||||
<td width="200">产品信息</td>
|
||||
<td width="100">设计要求</td>
|
||||
<#if isShowCost == 1>
|
||||
<td width="50">设计佣金</td>
|
||||
</#if>
|
||||
|
||||
<td width="60">设计等级</td>
|
||||
<td width="70">下单时间</td>
|
||||
<td align="center" width="60">操作</td>
|
||||
</tr>
|
||||
<#if pageResult.size() == 0>
|
||||
${zhiqim_manager_no_record(8,"暂不存在抢单信息,或者当积分少于0的时候不允许抢单,请联系客服")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr align="left" class="z-h40 ">
|
||||
<td style="padding:0 0 0 10px;">${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
|
||||
<td>${item.getDesignId()}</td>
|
||||
<td>${item.getOrderText()}</td>
|
||||
<td>${item.getUserNotice()}</td>
|
||||
<#if isShowCost == 1>
|
||||
<td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
|
||||
</#if>
|
||||
|
||||
<td>${DraftConstants.get(item.getDraftType())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
|
||||
<td align="center"><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">订 单 号:${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">反馈人 :</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> 寄存</label>
|
||||
<label class="z-pd-l20"><input name="retentDealWay" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" > 退款</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> 较好</label>
|
||||
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" > 一般</label>
|
||||
<label class="z-pd-l20"><input name="retentFollowFlag" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="2" > 差</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">订 单 号:${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">反馈人 : ${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>> 寄存</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>> 退款</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>> 较好</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>> 一般</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>> 差</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,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>个
|
||||
成功:<strong id="uploadSuccessful" style="color: #5FB878;">0</strong>个
|
||||
失败:<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}"> -
|
||||
<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,userNotice,CustomFile,DesginFile,EndFile,WorkFile,FristThumFile,TbzFile"/>
|
||||
<#var addRule="addRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
|
||||
<#var delRule="delRule=CustomFile,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>
|
||||
Reference in New Issue
Block a user