first commit

This commit is contained in:
2025-02-20 14:58:55 +08:00
parent 687bda5ead
commit d7be84fac6
1158 changed files with 127232 additions and 0 deletions
@@ -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>