| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- ${Styles.htmlOverflowHidden()}
- ${Scripts.src("/zinc/js/global_2019010801.js")}
- ${yangcai_calc_Left_width_height(400, 110)}
- <script>
- function doPassCheck()
- {//审核通过
- var designIds = Z.FM.getCheckBoxValue("designId");
- //var price = Z("#price_"+designIds).val();// Z.V.isAmount2R();
- //var text = Z("#text_"+designIds).val();// Z.V.isAmount2R();
- if (Z.V.isEmpty(designIds))
- {
- Z.alert("请选择订单");
- return;
- }
-
-
- var dialog = new Z.Dialog();
- dialog.title = "检查订单";
- dialog.url = "/doEditDesignPriceDZ.htm?designId=" + designIds;
- dialog.width = 600;
- dialog.height = 244;
- dialog.execute();
- }
- function editDesignPrice()
- {
-
- var designIds = Z.FM.getCheckBoxValue("designId");
- if (Z.V.isEmpty(designIds))
- {
- Z.alert("请选择订单");
- return;
- }
- Z.confirm("确认审核通过吗?", function(){
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("doPassCheck");
- ajax.addParam("designIds", designIds);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- Z.success("操作成功", function(){document.theFrom.submit()});
- window.top.location.reload();
- });
- ajax.execute();
- })
- }
- function downloads()
- {
- var designIds = Z.FM.getCheckBoxValue("designId");
- if (Z.V.isEmpty(designIds))
- {
- Z.alert("请选择订单");
- return;
- }
-
- var ajax = new Z.Ajax();
- ajax.setClassName("OrderPresenter");
- ajax.setMethodName("downloads");
- ajax.addParam("designIds", designIds);
- ajax.setFailureAlert();
- ajax.setSuccess(function(responseText){
- var idsArray = responseText.split(',');
- if(idsArray == ''){
- alert("所选文件为空")
- }
-
-
-
- for (let i = 0; i < idsArray.length; i++) {
- setTimeout(function() {
- var prefix = Z.l.protocol + "//" + Z.l.host ;
- window.location.href = prefix+"/downFile.htm?attaId="+idsArray[i]+"&zCallFrame=true";
- }, i * 1000);
- }
-
-
- });
- ajax.execute();
-
- }
- function showBackDialog()
- {//审核退回窗口
- var designId = Z.FM.getChecked("designId");
- var dialog = new Z.Dialog();
- dialog.title = "审核退回原因(截图粘贴在输入框下方)";
- dialog.url = "/orderCheckBackInfo.htm?designId=" + designId+"&src=printCheck";
- dialog.width = 800;
- dialog.height = 500;
- 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 = 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-add"></i>正在查询', {disabled:true});
- ajax.execute();
- }
- </script>
- <#var data="data=copy,userText,CustomFile,DesginFile,EndFile,WorkFile,TbzFile"/>
- <#var addRule="addRule=CustomFile,ThumFile,DesginFile,TbzFile"/>
- <#var delRule="delRule=CustomFile,ThumFile,DesginFile,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, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckFinish.htm');">已审订单</li></#if>
- <#if ZmrPathRule.check(request, "/orderCheckWait.htm")><li onclick="Z.L.href('/orderCheckBackList.htm');">退回列表</li></#if>
- </ul>
- </nav>
- </div>
- <#-- 左侧功能 -->
- <div id="left" class="z-overflow-auto z-overflow-x-hidden z-relative-left">
- <#-- 查询条件 -->
- ${zhiqim_manager_title("查询条件")}
- <form name="theFrom" id="theFrom" >
- <input type="hidden" name="page" value="${page}" >
- <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" 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 : typeList>
- <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
- </#for>
- </select>
- </td>
- <td width="*">
- 稿件类型:<select name="draftType" class="z-select z-w160" 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>
- </tr>
- <tr class="z-h40">
- <td> 旺 旺 号:<input name="buyerNick" class="${zmr_color_class} z-input z-w160" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
- <td>淘宝单号:<input name="tid" class="${zmr_color_class} z-input z-w180" value="${tid}" maxlength="64" placeholder="淘宝单号"></td>
- <td>
- 是否后工:<select name="afterNames" class="z-select z-w160" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部</option>
- <option value="true" <#if afterNames == "true">selected</#if>>是</option>
- <option value="false" <#if afterNames == "false">selected</#if>>否</option>
- </select>
- </td>
- </tr>
- <tr class="z-h40" >
- <td>
- 商户名称:<select name="merchantId" class="z-select z-w160" 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>
- <td width="30%"> 老系统订单号:<input name="designIdold" class="${zmr_color_class} z-input z-w160" value="${designIdold}" maxlength="50" placeholder="老系统订单号"></td>
-
- <td align="left" ><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, "/doCheckOrderPass.htm")><button type="button" class="z-button z-green" onclick="doPassCheck();"><i class="z-font z-success"></i>审核通过</button></#if>
- <#if ZmrPathRule.check(request, "/doCheckOrderReback.htm")><button type="button" class="z-button z-red" onclick="showBackDialog();"><i class="z-font z-return"></i>审核退回</button></#if>
- <button id="quickContactBtn" type="button" class="z-button z-purple" onclick="quickContact();"><i class="z-font z-share"></i>快捷联系人</button>
- <button id="downloadsBtn" type="button" class="z-button z-purple" onclick="downloads();"><i ></i>多选下载</button>
- </div>
-
- <#-- 列表 -->
- <div class="z-overflow-y-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:1400px">
- <tr bgcolor="${zmr_thead_bgcolor}">
- <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="80">商户<br/>稿件类型</td>
- <td width="60">订单金额</td>
- <td width="60">佣金</td>
- <td width="70">下单时间</td>
- <td width="70">定稿时间</td>
- <td width="60">状态</td>
- <td width="100">特殊工艺</td>
- <td width="240">产品描述</td>
- <td width="120">退回原因</td>
- </tr>
- ${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单信息")}
- <#for item : pageResult.list()>
- <input id="text_${item.getDesignId()}" type="hidden" value="${item.getOrderText()}">
- <input id="price_${item.getDesignId()}" type="hidden" value="${item.getDesignPrice()}">
- <input id="buyerNick_${item.getDesignId()}" type="hidden" value="${item.getBuyerNick()}">
- <tr class="z-pointer <#if Validates.isNotEmptyBlank(item.getPrepressBackReason())> z-text-red </#if>" ${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>
- ${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>${Global.get(DesignMerchantCache.class).getName(item.getMerchantId())}<br/>${DraftConstants.get(item.getDraftType())}</td>
- <td>${Amounts.toYuanMustRadix(item.getAmount())}</td>
- <td >${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
- <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
- <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
- <td>${StatusConstants.getStatus(item.getStatus())}</td>
- <td>${item.getPrintSpecial()}</td>
- <td align="left" >${item.getOrderText()} </td>
- <td align="left">${item.getCheckBackReason()}</td>
- </tr>
- </#for>
- </table>
- </div>
- ${zhiqim_manager_paging(pageResult, "orderCheckWait.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>
|