| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518 |
- <script src="https://oss-88-res.oss-cn-shenzhen.aliyuncs.com/static/js/jquery-3.4.1.min.js"></script>
- ${Scripts.src("/zinc/js/qrcode.min.js")}
- ${Styles.htmlOverflowHidden()}
- ${Scripts.src("/zinc/js/global_2019010801.js")}
- ${yangcai_calc_Left_width_height(414, 110)}
- <script>
- function doAssignDesigner()
- {//指定设计师
- var designId = Z.FM.getCheckBoxValue("designId");
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- var ajax = new Z.Ajax();
- ajax.setClassName("DesignOrderPresenter");
- ajax.setMethodName("doAssignABCheck");
- ajax.addParam("designId", designId);
- ajax.setFailure(function()
- {
- Z.failure(ajax.responseText, function(){parent.Z.Dialog.close();});
- });
- ajax.setSuccess(function(result)
- {
- if(result != '')
- {
- Z.confirm(result, function(){
- var dialog = new Z.Dialog();
- dialog.title = "指定设计师";
- dialog.url = "/assignDesigners.htm?designId=" + designId;
- dialog.width = 600;
- dialog.height = 220;
- dialog.execute();
- });
- }
- else
- {
- var dialog = new Z.Dialog();
- dialog.title = "指定设计师";
- dialog.url = "/assignDesigners.htm?designId=" + designId;
- dialog.width = 600;
- dialog.height = 220;
- dialog.execute();
- }
- });
- ajax.setLoading("assignDesigners", '正在操作', {disabled:true});
- ajax.execute();
- }
- function doDesignOrdertoERP(e)
- {//开启设计
- var url = "https://file.lingtao8.com/?tid="+e;
-
- var dialog = new Z.Dialog();
- dialog.title = "客户信息";
- dialog.url = url;
- dialog.width = 1000;
- dialog.height = 630;
- dialog.execute();
-
- }
- function doDesignCopiesr()
- {//设计份数修改
- var designId = Z.FM.getChecked("designId");
- var copies= Z("#userQqs_"+designId).val();
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
-
- var dialog = new Z.Dialog();
- dialog.title = "订单["+designId+"]设计份数修改";
- dialog.url = "/designCopiesr.htm?designId="+designId+"&copies="+copies;
- dialog.width = 310;
- dialog.height = 150;
- dialog.execute();
- }
- function doProgressNote(id)
- {//进度备注
- var designId =id
- if (Z.V.isEmpty(designId))
- {
- designId = Z.FM.getChecked("designId");
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- }
-
- var dialog = new Z.Dialog();
- dialog.title = "订单["+designId+"]进度备注";
- dialog.url = "/progressNote.htm?designId="+designId;
- dialog.width = 1000;
- dialog.height = 630;
- dialog.execute();
- }
- function quickContact()
- {//快捷联系
- var designId = Z.FM.getChecked("designId");
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("quickContact");
- ajax.addParam("designId", designId);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- var obj = Z.J.toObject(this.responseText);
- var resultHtml = obj.resultHtml;
- if (!Z("#quickContact_dialog")[0])
- {
- var dialog = new Z.Dialog();
- dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
- dialog.text = '<div id="quickContact_dialog"></div>';
- dialog.width = 750;
- dialog.height = 400;
- dialog.shadow = false;
- dialog.execute();
- dialog.$background.remove();
- console.log(dialog)
- }
- Z("#quickContact_dialog").htmlc(resultHtml);
- Z("#quickContact_title").htmlc(Z("#title_content").html());
-
-
- });
- ajax.setLoading("quickContactBtn", '<i class="z-font z-query"></i>正在查询', {disabled:true});
- ajax.execute();
- }
- //修改单价
- function doEditDesignPrice() {
- var designId = Z.FM.getChecked("designId");
- var designPrice = document.getElementById("designPrice_"+designId).value;
- var orderText = document.getElementById("orderText_"+designId).value;
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- var dialog = new Z.Dialog();
- dialog.title = "修改订单单价";
- dialog.url = "/doEditDesignPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
- dialog.width = 600;
- dialog.height = 244;
- dialog.execute();
- }
- //修改加急费
- function doEditUrgentPrice() {
- var designId = Z.FM.getChecked("designId");
- var designPrice = document.getElementById("urgentPrice_"+designId).value;
- var orderText = document.getElementById("orderText_"+designId).value;
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- var dialog = new Z.Dialog();
- dialog.title = "修改订单加急费";
- dialog.url = "/doEditUrgentPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
- dialog.width = 600;
- dialog.height = 244;
- dialog.execute();
- }
- //修改稿件类型
- function doEditDraftType(){
- var designId = Z.FM.getChecked("designId");
- var designPrice = document.getElementById("urgentPrice_"+designId).value;
- var orderText = document.getElementById("orderText_"+designId).value;
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- var dialog = new Z.Dialog();
- dialog.title = "修改订单稿件类型";
- dialog.url = "/doEditDraftType.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
- dialog.width = 600;
- dialog.height = 400;
- dialog.execute();
- }
- //修改订单绩效
- function doEditDesignOrder(){
- var designId = Z.FM.getChecked("designId");
- if(Z.V.isEmpty(designId)){
- Z.alert("请选择一条订单");
- return;
- }
- var dialog = new Z.Dialog();
- dialog.title = "修改订单["+designId+']';
- dialog.url = "/doEditDesignOrder.htm?designId=" + designId;
- dialog.width = 900;
- dialog.height = 400;
- dialog.execute();
-
- }
- //修改订单状态
- function doEditDraftType(designId){
- var orderText= Z("#orderText_"+designId).val();
- var status_= Z("#status_"+designId).val();
- var dialog = new Z.Dialog();
- dialog.title = "修改订单稿件类型";
- dialog.url = "/doEditStatus.htm?designId=" + designId +"&status_="+status_+"&orderText="+orderText;
- dialog.width = 600;
- dialog.height = 400;
- dialog.execute();
- }
- //审核详情查看
- function doCheckDetail()
- {
- var designId = Z.FM.getChecked("designId");
- var dialog = new Z.Dialog();
- dialog.title = "审核退回详情";
- dialog.url = "/checkBackDetail.htm?designId=" + designId;
- dialog.width = 800;
- dialog.height = 500;
- dialog.execute();
- }
- function doDesignPriceCalculate(){
- var designId = 0;
- if(Z.FM.getChecked("designId")){
- designId = Z.FM.getChecked("designId");
- }
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("designPriceCalculate");
- ajax.addParam(designId);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
- });
- ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
- ajax.execute();
- }
- function returnTk(){
- var designId = Z.FM.getChecked("designId");
- if(Z.V.isEmpty(designId)){
- Z.alert("请选择一条订单");
- return;
- }
-
- Z.confirm("确认重新启用此订单吗,如果重新启用将自动回退到请求退款前的状态,只能启用淘宝自动退款且已经取消的订单", function()
- {
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("returnTk");
- ajax.addParam(designId);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
- });
- ajax.setLoading("returnTk", '正在提交', {disabled:true});
- ajax.execute();
- }, {width:320});
- }
- function changeStatus(designId){
- var dialog = new Z.Dialog();
- dialog.title = "修改状态";
- dialog.url = "/changeStatus.htm?designId=" + designId;
- dialog.width = 800;
- dialog.height = 500;
- dialog.execute();
- }
- </script>
- <#var data="data=copy,userText,userNotice,CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
- <#var addRule="addRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
- <#var delRule="delRule=CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
- ${zhiqim_manager_breadcrumb("订单列表")}
- ${zhiqim_manager_content()}
- <#-- 导航 -->
- <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
- <nav>
- <ul>
- <li class="z-active">订单列表</li>
- <#if ZmrPathRule.check(request, "/orderLogList.htm")><li onclick="Z.L.href('orderLogList.htm');">订单日志</li></#if>
- <#if ZmrPathRule.check(request, "/orderRefundList.htm")><li onclick="Z.L.href('orderRefundList.htm');">退款订单列表</li></#if>
- <li onclick="Z.L.href('orderBacklog.htm');">待办列表</li>
- </ul>
- </nav>
- </div>
- <#-- 左侧功能 -->
- <div class="z-overflow-y-auto" style="width: 100% !important;height: 696px;">
- <#-- 查询条件 -->
- ${zhiqim_manager_title("查询条件")}
- <form action="orderList.htm" method="post">
- <table class="z-table z-bordered z-pd6 z-bg-white">
- <tr>
- <td width="30%">订单号:<input name="designId" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
- <td width="34%">产品类型:
- <select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <#for item : DesignTypeDao.list()>
- <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
- </#for>
- </select>
- </td>
- <td>
- 下单时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
- <input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
- </td>
- </tr>
- <tr class="z-h40">
- <td>旺旺号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
- <td>订单金额:<select name="amount" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <option value="10000" <#if amount == 10000>selected</#if>>100以上</option>
- <option value="30000" <#if amount == 30000>selected</#if>>300以上</option>
- <option value="50000" <#if amount == 50000>selected</#if>>500以上</option>
- <option value="100000" <#if amount == 100000>selected</#if>>1000以上</option>
- </select>
- </td>
- <td>
- 商户名称:<select name="merchantId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <#for item : Global.get(DesignMerchantCache.class).getList()>
- <option value="${item.getMerchantName()}" <#if merchantId == item.getMerchantId()>selected</#if>>${item.getMerchantName()}</option>
- </#for>
- </select>
- </td>
- </tr>
- <tr>
- <td>设计师:<input name="designer" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${designer}" maxlength="64" placeholder="设计师">
- </td>
- <td>
- 设计等级:<select name="draftType" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <#for item : DraftConstants.getList()>
- <#if item.value() != 4 >
- <option value="${item.value()}" <#if draftType == item.value()>selected</#if>>${item.desc()}</option>
- </#if>
- </#for>
- </select>
- </td>
- <td>
- 订单状态:<select name="orderStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <#for statusStr : StatusConstants.getOrderStatusList()>
- <#if statusStr.value() != StatusConstants.ORDER_62.value() && statusStr.value() != StatusConstants.ORDER_20.value()>
- <option value="${statusStr.value()}" <#if statusStr.value() == orderStatus>selected</#if>>${statusStr.desc()}</option>
- </#if>
- </#for>
- <option value="110" <#if orderStatus == 110>selected</#if>>未完成</option>
- <option value="120" <#if orderStatus == 120>selected</#if>>审稿退回</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>erp单号:<input name="tids" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${tids}" placeholder="erp单号">
- </td>
- <td>
-
- </td>
- <td>
-
- </td>
- </tr>
- <tr class="z-h40">
- <td colspan="3" align="center"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
- </tr>
- </table>
- </form>
-
- <#-- 操作功能 -->
- <div class="z-w100p z-mg-t10 z-mg-b3">
- <#if ZmrPathRule.check(request, "/assignDesigner.htm")><button type="button" class="z-button z-blue" onclick="doAssignDesigner();"><i class="z-font z-modify"></i>指定设计师</button></#if>
- <button type="button" class="z-button z-blue" onclick="doProgressNote();"><i class="z-font z-modify"></i>进度备注</button>
- <button class="z-button z-blue" onclick="doCheckDetail();"><i class="z-font z-query"></i>退回原因查看</button>
- <button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></i>快捷联系人</button>
- <#if ZmrPathRule.check(request, "/designCopiesr.htm")>
- <!--<button type="button" class="z-button z-blue" onclick="doDesignCopiesr();"><i class="z-font z-modify"></i>设计份数修改</button>
- <button id="doDesignPriceCalculate" type="button" class="z-button z-yellow" onclick="doDesignPriceCalculate();"><i class="z-font z-refresh"></i>重置佣金</button>
- <button id="doEditDesignPrice" type="button" class="z-button z-yellow" onclick="doEditDesignPrice();"><i class="z-font z-refresh"></i>修改佣金</button>
- <button id="doEditUrgentPrice" type="button" class="z-button z-yellow" onclick="doEditUrgentPrice();"><i class="z-font z-refresh"></i>修改加急费</button>-->
- <button id="doEditDesignOrder" type="button" class="z-button z-yellow" onclick="doEditDesignOrder();"><i class="z-font z-refresh"></i>修改绩效</button>
- </#if>
- <button id="returnTk" type="button" class="z-button z-green" onclick="returnTk();"><i class="z-font z-open"></i>启用订单</button>
- <!--<button id="changeStatus" type="button" class="z-button z-green" onclick="changeStatus();"><i class="z-font z-open"></i>修改状态</button>-->
- </div>
-
- <#-- 列表-->
- <div class="z-overflow-auto z-bd-r">
- <table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:100">
- <tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
- <td width="30"><input name="allDesignId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${pageResult.pageNo()}" onclick="Z.FM.doSelectCheckBox('designId', this.checked);"> 选择</td>
- <td width="100">订单号</td>
- <td width="200">备注</td>
- <td width="100">erp订单号</td>
- <td width="100">客户信息</td>
- <td width="70">店铺名称</td>
- <td width="100">旺旺号</td>
- <td width="70">设计类型<br/>产品类型</td>
- <td width="70">下单时间</td>
- <td width="60">订单金额</td>
-
- <td width="60">设计佣金<span data-role="z-tooltip" data-options="align:left;width:200px;" class="z-color-red" data-text="设计师完成订单后获取的费用"> *</span></td>
- <td width="70">设计师</td>
- <td width="60">订单状态</td>
- <td width="100">进度备注</td>
- <td width="35">领单方式</td>
- <td width="100">领单时间</td>
- <td width="100">定稿时间</td>
- <td width="100">审稿时间</td>
- <td width="80">审稿人</td>
- <td width="100">退单理由</td>
- </tr>
- ${zhiqim_manager_tr_no_record(pageResult, 27, "暂时没有数据")}
- <#for item : pageResult.list()>
- <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
- <input id="userQqs_${item.getDesignId()}" type="hidden" value="${item.getDesignCopies()}">
- <input id="status_${item.getDesignId()}" type="hidden" value="${item.getStatus()}">
- <input id="designPrice_${item.getDesignId()}" type="hidden" value="${Amounts.toYuan(item.getDesignPrice())}">
- <input id="urgentPrice_${item.getDesignId()}" type="hidden" value="${Amounts.toYuan(item.getUrgentPrice())}">
- <input id="orderText_${item.getDesignId()}" type="hidden" value="${item.getOrderText()}">
- <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()}>
- <!--<td><input name="designId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesignId()}" onclick="Z.L.href('attaFileList.htm?designId=${item.getDesignId()}&${data}&${addRule}&${delRule}', attaFileList);"></td>-->
- <td><input name="designId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
- <td>${item.getDesignId()}
- <#if Validates.isNotEmpty(item.getCheckBackReason()) && item.getStatus() lt 55 >
- <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="订单已被审稿驳回"> 驳 </span>
- <#elseif Validates.isNotEmpty(item.getDraftBackReason()) && item.getStatus() lt 55 >
- <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="订单已被审稿驳回"> 驳 </span>
- <#elseif Validates.isNotEmpty(item.getEndBackReason()) && item.getStatus() lt 55 >
- <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="订单已被审稿驳回"> 驳 </span>
- </#if>
- <#if item.isChange()>
- <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="改稿订单"> 改 </span>
- </#if>
- <#if item.isBack()>
- <span style="color: red;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="打回订单"> 回 </span>
- </#if>
- <#if item.getIsOldUser() gt 0>
- <span style="color: #9D24D7;font-size:16px;font-weight: bold" data-role="z-tooltip" data-options="placement:right;align:bottom;arrow:false;" data-text="老用户订单"> 老 </span>
- </#if>
- </td>
- <td>${item.getOrderText()}</td>
- <td>${item.getTids()}</td>
- <td align="center">
- <span class="z-button z-blue" onclick="doDesignOrdertoERP('${item.getTids()}')">查看</span>
- </td>
- <td>${item.getShopNick()}</td>
- <td>${item.getBuyerNick()}</td>
- <td><#if item.isOnlyDesign()>
- 仅设计
- <#else>印刷设计</#if>
- <br/>${Global.get(DesignTypeCache.class).getName(item.getTypeId())}
- </td>
- <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
- <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
- <td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
- <td>${item.getDesigner()}</td>
- <td onclick="changeStatus('${item.getDesignId()}')">${StatusConstants.getStatus(item.getStatus())}</td>
- <td>${progressNoteMap.get(item.getDesignId())}</td>
- <td>
- <#if item.getReceiveType() == 0>抢单</#if>
- <#if item.getReceiveType() == 1>派单</#if>
- <#if item.getReceiveType() == 2>指定</#if>
- </td>
- <td>${Sqls.toDateTimeString(item.getDesignReceiveTime())}</td>
- <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
- <td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
- <td>${item.getChecker()}</td>
-
- <td>${item.getReturnReason()}</td>
- </tr>
- </#for>
- </table>
- </div>
- ${zhiqim_manager_paging(pageResult, "/orderList.htm")}
- </div>
- ${zhiqim_manager_content_end()}
- <#--右侧文件信息-->
- <#--<div class="z-fixed z-pd10 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:400px;z-index:50;">
- <iframe name="attaFileList" src="attaFileList.htm?${data}&${addRule}&${delRule}" frameborder="0" scrolling="auto" height="100%" width="100%"></iframe>
- </div> -->
- <#-- 联系旺旺&联系QQ弹窗框 -->
- <iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
|