| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- ${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 doAssignDesigner()
- {//指定设计师
- var designId = Z.FM.getChecked("designId");
- if (Z.V.isEmpty(designId))
- {
- Z.alert("请选择一条订单");
- return;
- }
-
- var dialog = new Z.Dialog();
- dialog.title = "指定设计师";
- dialog.url = "/assignDesigner.htm?designId=" + designId;
- dialog.width = 600;
- dialog.height = 400;
- dialog.execute();
- }
- function doProcessMessage(){
- var designId = Z.FM.getChecked("designId");
- var id = Z("#id_"+designId).val();
-
- var ajax = new Z.Ajax();
- ajax.setClassName("MessagePresenter");
- ajax.setMethodName("doProcessMessage");
- ajax.addParam("id", id);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){Z.success("处理成功",function(){ location.reload(); });});
- ajax.execute();
- }
- </script>
- ${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="/manager/backLogWork.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>旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w180 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-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endDate}">
- </td>
- </tr>
- <tr>
- <td>
- 接收人: <select name="consumerCode" 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 consumerCode == item.getOperatorCode()>selected</#if>>${item.getOperatorCode()}</option>
- </#for>
- </select>
- </td>
- <td>
- 处理状态:<select name="consumerState" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <option value="0" <#if consumerState == 0>selected</#if>>未处理</option>
- <option value="1" <#if consumerState == 1>selected</#if>>已处理</option>
- </select>
- </td>
- <td>
- 催稿主题:<select name="topic" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <#for item : MessageThemeConstants.topicList>
- <option value="${item.value()}" <#if item.value() == topic>selected</#if>>${item.desc()}</option>
- </#for>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="1">催稿号:<input name="id" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${id}" maxlength="64" 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-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 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>
- <#if ZmrPathRule.check(request, "/assignDesigner.htm")><button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="doAssignDesigner();"><i class="z-font z-modify"></i>指定设计师</button></#if>
- <button type="button" class="z-button z-mg-t3 z-mg-r6 z-green" onclick="doProcessMessage();" id="doProcessMessage"><i class="z-font z-success"></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}">
- <td width="60">选择</td>
- <td width="120">催稿单号</td>
- <td width="130">订单号</td>
- <td width="140">旺旺号</td>
- <td width="150">主题</td>
- <td width="110">发送者</td>
- <td width="130">发送时间</td>
- <td width="320">消息内容</td>
- <td width="110">接收者</td>
- <td width="110">订单状态</td>
- <td width="110">处理状态</td>
- <td width="130">处理时间</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="id_${item.getDesignId()}" type="hidden" value="${item.getId()}">
- <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()} <#if item.getConsumerState() == 1>style="color:#AAAAAA"</#if>>
- <td><input name="designId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesignId()}"></td>
- <td onclick="Z.copy(Z.S.trim(Z(this).html()));Z.tips({text:'已复制催稿单号', width: 180});">${item.getId()}</td>
- <td><div onclick="Z.copy(Z.S.trim(Z(this).html()));Z.tips({text:'已复制订单号', width: 160});" style="display:inline;">${item.getDesignId()}</div>
- <#if ordMap.get(item.getDesignId()).getReDesignSrcId() gt 0><span style="color: red;font-size:16px;font-weight: bold"> 补 </span></#if>
- <#if ordMap.get(item.getDesignId()).isUrgent()><span style="color: red;font-size:16px;font-weight: bold"> 急 </span></#if>
- <#if ordMap.get(item.getDesignId()).isHighQualityOrder()><span style="color: red;font-size:16px;font-weight: bold"> 优 </span></#if>
- <#if ordMap.get(item.getDesignId()).getIsOldUser() gt 0><span style="color: #9D24D7;font-size:16px;font-weight: bold"> 老 </span></#if>
- <#if !(ordMap.get(item.getDesignId()).getAmount() lt 30000)><span style="color:#FF34B3;font-size:16px;font-weight: bold"> 大 </span></#if>
- <#if ordMap.get(item.getDesignId()).getShowRedMark() == 1><span><img src="/zinc/images/red_exclamation_mark.png" title="该订单已在淘宝退款"></span></#if>
- </td>
- <td>${item.getBuyerNick()}</td>
- <td>${MessageThemeConstants.getName(item.getTopic())}</td>
- <td>${item.getProductionCode()}</td>
- <td>${Sqls.toDateTimeString(item.getProductionTime())}</td>
- <td>${item.getMessageBody()}</td>
- <td>${item.getConsumerCode()}</td>
- <td>${StatusConstants.getStatus(ordMap.get(item.getDesignId()).getStatus())}</td>
- <td>
- <#if item.getConsumerState() == 0>
- <span class='z-pd3 z-color-white z-show-ib z-w80' style='border-radius:5px;background: #FF0000 ;'>未处理</span>
- <#elseif item.getConsumerState() == 1>
- <span class='z-pd3 z-color-white z-show-ib z-w80' style='border-radius:5px;background: #AAAAAA ;'>已处理</span>
- <#else></#if>
- </td>
- <td>${Sqls.toDateTimeString(item.getConsumerTime())}</td>
- <td>${item.getRemark()}</td>
- </tr>
- </#for>
- </table>
- </div>
- ${zhiqim_manager_paging(pageResult, "/manager/backLogWork.htm")}
- </div>
- ${zhiqim_manager_content_end()}
- <#-- 联系旺旺&联系QQ弹窗框 -->
- <iframe id="openFrm" class="z-hide" src="about:blank"></iframe>
|