1 |
- import{_ as Xe,__tla as Ge}from"./ContentWrap-9da801df.js";import{_ as Qe,__tla as Ze}from"./index-e6cd813f.js";import{d as $e,N as Be,b as Je,e as We,r as _,u as ea,z as aa,T as la,o as n,c as d,i as t,w as r,j as u,a,k as i,F as m,C as y,S as g,U as ta,dz as we,D as P,a7 as xe,l as f,t as E,b9 as ra,aZ as oa,Z as na,$ as sa,n as ua,s as ia,Y as _a,G as da,H as pa,I as ca,q as ma,E as ya,p as fa,J as va,aQ as ha,v as ba,x as ga,_ as ka,__tla as Ta}from"./index-2f799233.js";import{E as Ca,__tla as Ea}from"./el-card-c64c83d1.js";import{E as Va,a as wa,b as xa,__tla as Da}from"./el-dropdown-item-96448eb5.js";import Ua,{__tla as Ia}from"./OrderDeliveryForm-92525808.js";import Sa,{__tla as Ra}from"./OrderUpdateRemarkForm-cbe6a516.js";import{e as Ma,c as Na,f as Aa,__tla as Pa}from"./index-36dfbc52.js";import{g as Ya,__tla as za}from"./index-d1fbdf62.js";import{a as H,D,d as La,b as Oa,__tla as Fa}from"./dict-20c916e2.js";import{g as ja,__tla as qa}from"./index-d6a9bc38.js";import{D as Y,T as z}from"./constants-d55a3460.js";import Ha,{__tla as Ka}from"./OrderIndex-30acc9a9.js";import Xa,{__tla as Ga}from"./OrderUpdateAddressForm-1094c50a.js";import{d as Qa}from"./download-20922b56.js";import{u as Za,__tla as $a}from"./useMessage-e567ad40.js";import{__tla as Ba}from"./index-1c180a16.js";import{__tla as Ja}from"./Dialog-6fd39e06.js";import{__tla as Wa}from"./SPuUploadImg-121cd89e.js";import{__tla as el}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as al}from"./index-5f6db4a5.js";import{__tla as ll}from"./el-image-viewer-8e9e3571.js";import{__tla as tl}from"./OrderBaseInfo-3a3e160e.js";import{__tla as rl}from"./formatTime-2157894c.js";import{__tla as ol}from"./OrderProduct-fc3eaa5a.js";import{__tla as nl}from"./el-descriptions-item-0a78cef7.js";import{__tla as sl}from"./DictTag-ea4c6cc2.js";import"./color-6e929987.js";import{__tla as ul}from"./OrderComment-633e72f0.js";import{__tla as il}from"./el-image-4d26fa76.js";import{__tla as _l}from"./OrderService-8a5b7080.js";import{__tla as dl}from"./AfterSale-babc95d3.js";import{__tla as pl}from"./index-8cb2149a.js";import{__tla as cl}from"./OrderLogistics-fae4e907.js";import{__tla as ml}from"./el-timeline-item-e925b025.js";import{__tla as yl}from"./orderPay-738f0c41.js";import{__tla as fl}from"./OrderLogs-e2991d51.js";import{__tla as vl}from"./el-tree-select-ef4257fc.js";import{__tla as hl}from"./index-0f3b07dc.js";import"./tree-0af4953a.js";let De,bl=Promise.all([(()=>{try{return Ge}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return el}catch{}})(),(()=>{try{return al}catch{}})(),(()=>{try{return ll}catch{}})(),(()=>{try{return tl}catch{}})(),(()=>{try{return rl}catch{}})(),(()=>{try{return ol}catch{}})(),(()=>{try{return nl}catch{}})(),(()=>{try{return sl}catch{}})(),(()=>{try{return ul}catch{}})(),(()=>{try{return il}catch{}})(),(()=>{try{return _l}catch{}})(),(()=>{try{return dl}catch{}})(),(()=>{try{return pl}catch{}})(),(()=>{try{return cl}catch{}})(),(()=>{try{return ml}catch{}})(),(()=>{try{return yl}catch{}})(),(()=>{try{return fl}catch{}})(),(()=>{try{return vl}catch{}})(),(()=>{try{return hl}catch{}})()]).then(async()=>{let Q,Z,$,B,J,W,ee,ae,le,te,re,oe,ne;Q={class:"search"},Z={style:{"text-align":"right"},class:"search-input"},$={class:"searchMore"},B={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},J={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},W={key:0},ee={style:{display:"flex","align-items":"center"}},ae={style:{width:"206px",height:"116px","margin-right":"10px",border:"1px solid rgb(220, 223, 231)","border-radius":"5px",display:"flex","align-items":"center","justify-content":"center",overflow:"hidden"}},le=["src"],te={style:{"line-height":"25px"}},re={class:"year"},oe={key:0},ne=[(U=>(ba("data-v-03623e2e"),U=U(),ga(),U))(()=>u("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],De=ka($e({name:"TradeOrder",__name:"index",props:{merchantId:{type:Number,default:0},isDetail:{type:Boolean,default:!1},openType:{type:String,default:""}},setup(U){const se=Be(),Ue=Je(),ue=We(()=>Ue.getMobile),Ie=Za();function Se(s){var l=new Date(s);return("0"+(l.getMonth()+1)).slice(-2)+"/"+("0"+l.getDate()).slice(-2)+" "+("0"+l.getHours()).slice(-2)+":"+("0"+l.getMinutes()).slice(-2)}const I=_(!1);function ie(s){S.value[s].showSetting=!0}function _e(s){S.value[s].showSetting=!1}const Re=()=>{I.value=!I.value},Me=()=>{I.value=!1},V=U,de=_(),{push:pe}=ea(),ce=_(!0),K=_(!1),me=_(2),S=_([]),ye=_(),o=_({pageNo:1,pageSize:10,status:10,payChannelCode:void 0,createTime:void 0,terminal:void 0,type:void 0,deliveryType:void 0,logisticsId:void 0,pickUpStoreId:void 0,pickUpVerifyCode:void 0}),Ne=async()=>{try{await Ie.exportConfirm(),K.value=!0;const s=await Ma(a(o));Qa.excel(s,"\u8BA2\u5355\u8BE6\u7EC6.xls")}catch{}finally{K.value=!1}},v=async()=>{ce.value=!0,V.merchantId&&(o.value.merchantId=V.merchantId);try{const s=await Na(a(o));s.list.forEach(l=>{l.showSetting=!1}),S.value=s.list,me.value=s.total}finally{ce.value=!1,I.value=!1,be()}},L=async()=>{o.value.pageNo=1,await v()},Ae=()=>{var s;(s=ye.value)==null||s.resetFields(),o.value={pageNo:1,pageSize:10,status:10,payChannelCode:void 0,createTime:void 0,terminal:void 0,type:void 0,deliveryType:void 0,logisticsId:void 0,pickUpStoreId:void 0,pickUpVerifyCode:void 0},L()},fe=_(),ve=_(),he=_(),w=_([{name:"\u5168\u90E8",type:"",count:0},{name:"\u5F85\u652F\u4ED8",type:0,count:0},{name:"\u5F85\u53D1\u8D27",type:10,count:0},{name:"\u5DF2\u53D1\u8D27",type:20,count:0},{name:"\u5DF2\u5B8C\u6210",type:30,count:0},{name:"\u5DF2\u53D6\u6D88",type:40,count:0},{name:"\u552E\u540E\u9000\u6B3E\u6210\u529F",type:-2,count:0}]),Pe=s=>{o.value.status=s.paneName,v()},be=async()=>{const s=_({...o.value});V.merchantId&&(s.value.merId=V.merchantId);const l=await Aa(s.value);for(let x in w.value)for(let O in l)try{w.value[x].type==O&&(w.value[x].count=l[O]),w.value[x].type===""&&(w.value[x].count=l[-1]+l[-2])}finally{continue}},ge=_([]),ke=_([]);return aa(async()=>{V.openType=="tobedone"||se.query.openType=="tobedone"?(o.value.status=10,await v()):await v(),await be(),ge.value=await Ya(),ke.value=await ja()}),(s,l)=>{const x=na,O=sa,X=ua,R=ia,Ye=_a,k=da,T=pa,h=ca,ze=ma,Te=ya,Ce=fa,Le=va,Oe=ha,F=Va,Fe=wa,je=xa,qe=Ca,He=Qe,Ke=Xe,G=la("hasPermi");return n(),d(m,null,[t(Ke,{class:"container"},{default:r(()=>[u("div",Q,[a(ue)?g("",!0):(n(),i(O,{key:0,modelValue:a(o).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(o).status=e),onTabClick:Pe,class:"parent-tabs"},{default:r(()=>[(n(!0),d(m,null,y(a(w),e=>(n(),i(x,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),u("div",Z,[t(Ye,{modelValue:a(o).no,"onUpdate:modelValue":l[1]||(l[1]=e=>a(o).no=e),placeholder:"\u8BA2\u5355\u53F7",onKeyup:ta(L,["enter"])},{suffix:r(()=>[t(X,{class:"mr-5px",icon:"ep:search",onClick:L,style:{cursor:"pointer"}})]),append:r(()=>[t(R,{icon:a(we),onClick:Re},null,8,["icon"])]),_:1},8,["modelValue"])])]),P(u("div",$,[t(Le,{ref_key:"queryFormRef",ref:ye,inline:!0,model:a(o),class:"-mb-15px","label-width":"68px"},{default:r(()=>[t(h,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status"},{default:r(()=>[t(T,{modelValue:a(o).status,"onUpdate:modelValue":l[2]||(l[2]=e=>a(o).status=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(H)(a(D).TRADE_ORDER_STATUS),e=>(n(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(h,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"payChannelCode"},{default:r(()=>[t(T,{modelValue:a(o).payChannelCode,"onUpdate:modelValue":l[3]||(l[3]=e=>a(o).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(La)(a(D).PAY_CHANNEL_CODE),e=>(n(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(h,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[t(ze,{modelValue:a(o).createTime,"onUpdate:modelValue":l[4]||(l[4]=e=>a(o).createTime=e),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],"end-placeholder":"\u81EA\u5B9A\u4E49\u65F6\u95F4","start-placeholder":"\u81EA\u5B9A\u4E49\u65F6\u95F4",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss",style:{width:"auto"}},null,8,["modelValue","default-time"])]),_:1}),t(h,{label:"\u8BA2\u5355\u6765\u6E90",prop:"terminal"},{default:r(()=>[t(T,{modelValue:a(o).terminal,"onUpdate:modelValue":l[5]||(l[5]=e=>a(o).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(H)(a(D).TERMINAL),e=>(n(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(h,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"type"},{default:r(()=>[t(T,{modelValue:a(o).type,"onUpdate:modelValue":l[6]||(l[6]=e=>a(o).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(H)(a(D).TRADE_ORDER_TYPE),e=>(n(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(h,{label:"\u914D\u9001\u65B9\u5F0F",prop:"deliveryType"},{default:r(()=>[t(T,{modelValue:a(o).deliveryType,"onUpdate:modelValue":l[7]||(l[7]=e=>a(o).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(H)(a(D).TRADE_DELIVERY_TYPE),e=>(n(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(o).deliveryType===a(Y).EXPRESS.type?(n(),i(h,{key:0,label:"\u5FEB\u9012\u516C\u53F8",prop:"logisticsId"},{default:r(()=>[t(T,{modelValue:a(o).logisticsId,"onUpdate:modelValue":l[8]||(l[8]=e=>a(o).logisticsId=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(ke),e=>(n(),i(k,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):g("",!0),a(o).deliveryType===a(Y).PICK_UP.type?(n(),i(h,{key:1,label:"\u81EA\u63D0\u95E8\u5E97",prop:"pickUpStoreId"},{default:r(()=>[t(T,{modelValue:a(o).pickUpStoreId,"onUpdate:modelValue":l[9]||(l[9]=e=>a(o).pickUpStoreId=e),clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(n(!0),d(m,null,y(a(ge),e=>(n(),i(k,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):g("",!0),t(Ce,null,{default:r(()=>[t(Te,null,{default:r(()=>[t(h,null,{default:r(()=>[P((n(),i(R,{type:"success",plain:"",onClick:Ne,loading:a(K)},{default:r(()=>[t(X,{icon:"ep:download",class:"mr-5px"}),f(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[G,["trade:order:export"]]]),t(R,{onClick:Me},{default:r(()=>[f(" \u6536\u8D77 ")]),_:1}),t(R,{onClick:Ae},{default:r(()=>[f(" \u91CD\u7F6E ")]),_:1}),t(R,{onClick:L,plain:"",type:"primary"},{default:r(()=>[t(X,{class:"mr-5px",icon:"ep:search"}),f(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[xe,a(I)]]),t(Ce,null,{default:r(()=>[(n(!0),d(m,null,y(a(S),(e,M)=>(n(),i(Te,{class:"card",key:M,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:N=>ie(M),onMouseout:N=>_e(M)},{default:r(()=>[t(qe,{onClick:N=>((j,C,q)=>{const p=C.id,c=C.spuType;ue.value?V.openType=="tobedone"||se.query.openType=="tobedone"||C.status==z.UNDELIVERED.status?pe({name:"OrderMobileDeliveryForm",params:{id:p,spuType:c}}):pe({name:"TradeOrderMobileDetail",params:{id:p}}):de.value.open(j,C,q)})("view",e,e.no)},{default:r(()=>{var j,C,q;return[u("div",B,[u("p",J,[(n(!0),d(m,null,y(e.items,(p,c)=>(n(),d("span",{key:p.id},[f(E(p.spuName),1),c<e.items.length-1&&e.items.length>1?(n(),d("span",W,"+")):g("",!0)]))),128))]),P((n(),d("div",{class:"setting",onClick:l[11]||(l[11]=ra(()=>{},["stop"]))},[P((n(),i(je,{onCommand:l[10]||(l[10]=p=>s.handleCommand(p,s.row))},{dropdown:r(()=>[t(Fe,{onMouseover:p=>ie(M),onMouseout:p=>_e(M)},{default:r(()=>[e.deliveryType===a(Y).EXPRESS.type&&e.status===a(z).UNDELIVERED.status||e.deliveryType===a(Y).VIRTUAL_PRODUCT.type&&e.status===a(z).UNDELIVERED.status?(n(),i(F,{key:0,onClick:p=>{var A;return c=e.id,b=e.spuType,void((A=fe.value)==null?void 0:A.open("\u8BA2\u5355\u5217\u8868",c,b));var c,b}},{default:r(()=>[f(" \u53D1\u8D27")]),_:2},1032,["onClick"])):g("",!0),t(F,{onClick:p=>{var b;return c=e.id,e.remark,void((b=ve.value)==null?void 0:b.open(c));var c}},{default:r(()=>[f("\u5907\u6CE8")]),_:2},1032,["onClick"]),e.status===a(z).COMPLETED.status?(n(),i(F,{key:1,onClick:s.handleInvoice},{default:r(()=>[f("\u5F00\u53D1\u7968")]),_:1},8,["onClick"])):g("",!0),e.deliveryType===a(Y).EXPRESS.type&&e.status===a(z).UNDELIVERED.status?(n(),i(F,{key:2,onClick:p=>{return c=e.id,b=e.receiverAreaName,A=e.receiverMobile,Ee=e.receiverAreaId,Ve=e.receiverDetailAddress,void he.value.open(c,b,A,Ee,Ve);var c,b,A,Ee,Ve}},{default:r(()=>[f("\u4FEE\u6539\u5730\u5740")]),_:2},1032,["onClick"])):g("",!0)]),_:2},1032,["onMouseover","onMouseout"])]),default:r(()=>[u("span",null,[P(t(Oe,{size:"20",color:"rgb(220 223 231)"},{default:r(()=>[t(a(we))]),_:2},1536),[[xe,e.showSetting]])])]),_:2},1024)),[[G,["trade:order:update"]]])])),[[G,["trade:order:update"]]])]),u("div",ee,[u("div",ae,[u("img",{src:e.items&&((j=e==null?void 0:e.items[0])==null?void 0:j.picUrl),style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,le)]),u("div",te,[u("p",null,"\xA5"+E(a(oa)(e.payPrice||0)),1),u("p",null,E(e.no),1),u("p",null,E((C=a(Oa)(a(D).TRADE_ORDER_STATUS,e.status))==null?void 0:C.label),1),u("p",null,E((q=e==null?void 0:e.user)==null?void 0:q.nickname),1),u("p",null,[u("span",re,E((N=e.createTime,new Date(N).getFullYear()+"/")),1),f(E(Se(e.createTime)),1)])])])];var N}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(S).length==0?(n(),d("div",oe,[...ne])):g("",!0),t(He,{limit:a(o).pageSize,"onUpdate:limit":l[12]||(l[12]=e=>a(o).pageSize=e),page:a(o).pageNo,"onUpdate:page":l[13]||(l[13]=e=>a(o).pageNo=e),total:a(me),onPagination:v},null,8,["limit","page","total"])]),_:1}),t(Ua,{ref_key:"deliveryFormRef",ref:fe,onSuccess:v},null,512),t(Sa,{ref_key:"updateRemarkForm",ref:ve,onSuccess:v},null,512),t(Xa,{ref_key:"updateAddressFormRef",ref:he,onSuccess:v},null,512),t(Ha,{ref_key:"formRef",ref:de,onSuccess:v},null,512)],64)}}}),[["__scopeId","data-v-03623e2e"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/order/index.vue"]])});export{bl as __tla,De as default};
|