Files
ziqim/Yangcai365_design/manage/zview/order/myRetentionOrder.zml
T
2025-02-20 14:58:55 +08:00

352 lines
14 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
${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>订&nbsp;单&nbsp;号&nbsp;<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>责&nbsp;任&nbsp;人:
<select name="designer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
<option value="">全部</option>
<#for item : operatorList>
<option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
</#for>
</select>
</td>
<td>旺旺号:<input 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>