| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- ${Scripts.src("/zinc/js/global_2019010801.js")}
- <script>
- //快捷联系人
- function quickContact()
- {
- var designId = Z.FM.getChecked("designId");
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("quickContact");
- ajax.addParam("designId", designId);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- var obj = Z.J.toObject(this.responseText);
- console.log(obj);
- var resultHtml = obj.resultHtml;
- if (!Z("#quickContact_dialog")[0])
- {
- var dialog = new Z.Dialog();
- dialog.title = '<span id="quickContact_title" class="z-bold"></span>';
- dialog.text = '<div id="quickContact_dialog"></div>';
- dialog.width = 1100;
- dialog.height = 520;
- dialog.shadow = false;
- dialog.execute();
- dialog.$background.remove();
- console.log(dialog)
- }
- Z("#quickContact_dialog").htmlc(resultHtml);
- Z("#quickContact_title").htmlc(Z("#title_content").html());
-
-
- });
- ajax.setLoading("quickContactBtn", '<i class="z-font z-add"></i>正在查询', {disabled:true});
- ajax.execute();
- }
- //快捷联系 发送短信
- function doContactMobile(mobile, defaultValue, orderId)
- {
- if (Z.V.isEmptyBlank(mobile))
- {
- Z.alert("无效手机号");
- return;
- }
- if (Z.V.isEmptyBlank(defaultValue))
- {
- defaultValue = '';
- }
- Z.prompt('发送短信至:'+mobile , defaultValue,function(value)
- {
- if (Z.V.isEmptyBlank(value))
- {
- Z.alert("短信内容不能为空", function()
- {
- doContactMobile(mobile, defaultValue);
- });
- }
- else
- {
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("doContactMobile");
- ajax.addParam("orderId", orderId);
- ajax.addParam("mobile", mobile);
- ajax.addParam("notes", value);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){Z.tips("发送成功");});
- ajax.execute();
- }
- },{type:'textarea'});
- }
- //查看历史退回
- function doHistoryBack(){
- var designId = Z.FM.getChecked("designId");
- var dialog = new Z.Dialog();
- dialog.title = "订单历史退回详情";
- dialog.url = "/historyBackDetails.htm?designId=" + designId;
- dialog.width = 1350;
- dialog.height = 400;
- dialog.execute();
- }
- //审核详情查看
- function doCheckDetail()
- {
- var designId = Z.FM.getChecked("designId");
- var dialog = new Z.Dialog();
- dialog.title = "审核详情";
- dialog.url = "/checkBackDetail.htm?designId=" + designId;
- dialog.width = 800;
- dialog.height = 500;
- dialog.execute();
- }
- </script>
- ${zhiqim_manager_breadcrumb("退回列表")}
- ${zhiqim_manager_content()}
- <#-- 导航 -->
- <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
- <nav>
- <ul>
- <#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckWait.htm');">待审订单</li></#if>
- <#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckFinish.htm');">已审订单</li></#if>
- <li class="z-active">退回列表</li>
- </ul>
- </nav>
- </div>
- <#-- 左侧功能 -->
- <#-- 查询条件 -->
- ${zhiqim_manager_title("查询条件")}
- <form name="theForm" action="/orderCheckBackList.htm">
- <table class="z-table z-bordered z-pd6 z-bg-white">
- <tr class="z-h40">
- <td>订 单 号 :<input name="designId" class="${zmr_color_class} z-input z-w180" value="${designId}" maxlength="64" placeholder="订单号"></td>
- <td>旺旺号:<input class="z-input ${zmr_color_class} z-w160" name="buyerNick" value="${buyerNick}" maxlength="32" placeholder="旺旺号"/></td>
- <td>设 计 师:
- <select name="designer" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <#for item : operatorList>
- <option value="${item.getOperatorCode()}" <#if item.getOperatorCode() == designer>selected</#if>>${item.getOperatorCode()}</option>
- </#for>
- </select>
- </td>
- <td>
- 退回时间:<input id="startDate" name="startDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startDate}"> -
- <input id="endDate" name="endDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
- </td>
- <tr>
- <tr class="z-h40" align="center">
- <td colspan="4"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
- </tr>
- </table>
- </form>
- <#-- 操作功能 -->
- <div class="z-w100p z-mg-t10 z-mg-b3">
- <button class="z-button z-blue z-mg-r10" onclick="doHistoryBack();"><i class="z-font z-query"></i>查看历史退回</button>
- <button class="z-button z-blue z-mg-r10" onclick="doCheckDetail();"><i class="z-font z-query"></i>退回原因查看</button>
- <button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></i>快捷联系人</button>
- </div>
- <#-- 列表 -->
- <table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center" style="height:auto;">
- <tr bgcolor="${zmr_thead_bgcolor}">
- <td width="40">选择</td>
- <td width="100">订单号</td>
- <td width="80">订单金额</td>
- <td width="90">定稿时间</td>
- <td width="100">退回时间</td>
- <td width="100">退回人</td>
- <td width="110">订单状态</td>
- <td width="250">产品</td>
- <td width="150">退回原因</td>
- <td width="40">退回次数</td>
- <td width="100">设计师</td>
- </tr>
- ${zhiqim_manager_tr_no_record(pageResult, 12, "暂时没有审核退回单")}
- <#for item : pageResult.list()>
- <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
- <tr class="z-pointer ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
- <td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
- <td>${item.getDesignId()}</td>
- <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
- <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
- <td>${Sqls.toDateTimeString(item.getCheckTime())}</td>
- <td>${item.getChecker()}</td>
- <td>${StatusConstants.getStatus(item.getStatus())}</td>
- <td align="left">${item.getOrderText()} </td>
- <td align="left">${item.getCheckBackReason()}</td>
- <td>${backCountMap.get(item.getDesignId())}</td>
- <td>${item.getDesigner()}</td>
- </tr>
- </#for>
- ${zhiqim_manager_paging(pageResult, "/orderCheckBackList.htm")}
- </table>
- ${zhiqim_manager_content_end()}
- <#-- 联系旺旺&联系QQ弹窗框 -->
- <iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
|