1 |
- import{_ as Le,__tla as je}from"./ContentWrap-0730b42c.js";import{_ as He,__tla as Ke}from"./index-98081839.js";import{d as Xe,Y as Be,K as Ge,r as c,u as Je,e as Qe,l as We,Q as Ze,o as u,c as _,f as t,w as r,g as s,a,v as i,F as m,q as y,P as V,R as $e,e6 as Ve,x as z,a4 as O,n as b,t as w,aS as ea,at as aa,W as la,X as ta,j as ra,C as oa,V as ua,y as na,z as sa,A as ia,B as _a,E as ca,i as da,D as pa,aT as ma,p as ya,k as va,_ as fa,__tla as ha}from"./index-8e30b17f.js";import{E as ba,__tla as ka}from"./el-card-70b4f66a.js";import{E as ga,a as Va,b as Ca,__tla as wa}from"./el-dropdown-item-45ed7482.js";import Ta,{__tla as Ea}from"./OrderDeliveryForm-241a173c.js";import xa,{__tla as Sa}from"./OrderUpdateRemarkForm-6df0f783.js";import{k as Da,o as Ua,__tla as Ra}from"./index-0befdeaa.js";import{a as Ia,__tla as Pa}from"./index-3d1b171f.js";import{a as Y,D as E,e as Ma,c as Na,__tla as Aa}from"./dict-500f7ec9.js";import{g as za,__tla as Ya}from"./index-f32eed3e.js";import{D as q,T as F}from"./constants-40f13f5e.js";import qa,{__tla as Oa}from"./OrderIndex-68d13b96.js";import Fa,{__tla as La}from"./OrderUpdateAddressForm-850352bb.js";import{__tla as ja}from"./ContentWrap.vue_vue_type_script_setup_true_lang-14d08aa7.js";import{__tla as Ha}from"./index-bcb8595f.js";import{__tla as Ka}from"./Dialog-9917188a.js";import{__tla as Xa}from"./OrderBaseInfo-a713cd11.js";import{__tla as Ba}from"./SPuUploadImg-d721f065.js";import{__tla as Ga}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f9173f05.js";import{__tla as Ja}from"./index-7d9ab767.js";import{__tla as Qa}from"./el-image-viewer-fb97741c.js";import{__tla as Wa}from"./useMessage-ee50bd51.js";import{__tla as Za}from"./formatTime-a0199d3b.js";import{__tla as $a}from"./OrderProduct-50e7d76f.js";import{__tla as el}from"./el-descriptions-item-f6ec8a1a.js";import{__tla as al}from"./DictTag-ffb0f028.js";import"./color-6e929987.js";import{__tla as ll}from"./OrderComment-ee7e6084.js";import{__tla as tl}from"./OrderService-01614529.js";import{__tla as rl}from"./OrderAfterSale-17f05670.js";import{__tla as ol}from"./OrderLogistics-4f82a167.js";import{__tla as ul}from"./orderPay-0658404d.js";import{__tla as nl}from"./OrderLogs-ef9400bb.js";import{__tla as sl}from"./el-timeline-item-f0b17797.js";import{__tla as il}from"./el-tree-select-3cd6acef.js";import{__tla as _l}from"./index-eb323ef8.js";import"./tree-0af4953a.js";let Ce,cl=Promise.all([(()=>{try{return je}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}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 ul}catch{}})(),(()=>{try{return nl}catch{}})(),(()=>{try{return sl}catch{}})(),(()=>{try{return il}catch{}})(),(()=>{try{return _l}catch{}})()]).then(async()=>{let L,j,H,K,X,B,G,J,Q,W,Z,$,ee;L={class:"search"},j={style:{"text-align":"right"},class:"search-input"},H={class:"searchMore"},K={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},X={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},B={key:0},G={style:{display:"flex","align-items":"center"}},J={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"}},Q=["src"],W={style:{"line-height":"25px"}},Z={class:"year"},$={key:0},ee=[(I=>(ya("data-v-03623e2e"),I=I(),va(),I))(()=>s("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],Ce=fa(Xe({name:"TradeOrder",__name:"index",setup(I){const we=Be(),ae=Ge(()=>we.getMobile);function Te(n){var l=new Date(n);return("0"+(l.getMonth()+1)).slice(-2)+"/"+("0"+l.getDate()).slice(-2)+" "+("0"+l.getHours()).slice(-2)+":"+("0"+l.getMinutes()).slice(-2)}const x=c(!1);function le(n){S.value[n].showSetting=!0}function te(n){S.value[n].showSetting=!1}const Ee=()=>{x.value=!x.value},xe=()=>{x.value=!1},re=c(),{currentRoute:dl,push:Se}=Je(),oe=c(!0),ue=c(2),S=c([]),ne=c(),o=c({pageNo:1,pageSize:10,status:"",payChannelCode:void 0,createTime:void 0,terminal:void 0,type:void 0,deliveryType:void 0,logisticsId:void 0,pickUpStoreId:void 0,pickUpVerifyCode:void 0}),D=Qe({queryParam:""}),se=c([{value:"no",label:"\u8BA2\u5355\u53F7"},{value:"userId",label:"\u7528\u6237UID"},{value:"userNickname",label:"\u7528\u6237\u6635\u79F0"},{value:"userMobile",label:"\u7528\u6237\u7535\u8BDD"}]),De=n=>{var l;(l=se.value.filter(h=>h.value!==n))==null||l.forEach(h=>{o.value.hasOwnProperty(h.value)&&delete o.value[h.value]})},C=async()=>{oe.value=!0;try{const n=await Da(a(o));n.list.forEach(l=>{l.showSetting=!1}),S.value=n.list,ue.value=n.total}finally{oe.value=!1,x.value=!1,de()}},P=async()=>{o.value.pageNo=1,await C()},Ue=()=>{var n;(n=ne.value)==null||n.resetFields(),o.value={pageNo:1,pageSize:10,status:"",payChannelCode:void 0,createTime:void 0,terminal:void 0,type:void 0,deliveryType:void 0,logisticsId:void 0,pickUpStoreId:void 0,pickUpVerifyCode:void 0},P()},ie=c(),_e=c(),ce=c(),T=c([{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}]),Re=n=>{o.value.status=n.paneName,C()},de=async()=>{const n=await Ua();for(let l in T.value)for(let h in n)try{T.value[l].type==h&&(T.value[l].count=n[h]),T.value[l].type===""&&(T.value[l].count=n[-1])}finally{continue}},pe=c([]),me=c([]);return We(async()=>{await C(),await de(),pe.value=await Ia(),me.value=await za()}),(n,l)=>{const h=la,Ie=ta,ye=ra,M=oa,ve=ua,k=na,g=sa,v=ia,Pe=_a,fe=ca,he=da,Me=pa,Ne=ma,N=ga,Ae=Va,ze=Ca,Ye=ba,qe=He,Oe=Le,Fe=Ze("hasPermi");return u(),_(m,null,[t(Oe,{class:"container"},{default:r(()=>[s("div",L,[a(ae)?V("",!0):(u(),i(Ie,{key:0,modelValue:a(o).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(o).status=e),onTabClick:Re,class:"parent-tabs"},{default:r(()=>[(u(!0),_(m,null,y(a(T),e=>(u(),i(h,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),s("div",j,[t(ve,{modelValue:a(o).userNickname,"onUpdate:modelValue":l[1]||(l[1]=e=>a(o).userNickname=e),placeholder:"\u641C\u7D22\u5BA2\u6237\u540D\u79F0",onKeyup:$e(P,["enter"])},{suffix:r(()=>[t(ye,{class:"mr-5px",icon:"ep:search",onClick:P,style:{cursor:"pointer"}})]),append:r(()=>[t(M,{icon:a(Ve),onClick:Ee},null,8,["icon"])]),_:1},8,["modelValue"])])]),z(s("div",H,[t(Me,{ref_key:"queryFormRef",ref:ne,inline:!0,model:a(o),class:"-mb-15px","label-width":"68px"},{default:r(()=>[t(v,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status"},{default:r(()=>[t(g,{modelValue:a(o).status,"onUpdate:modelValue":l[2]||(l[2]=e=>a(o).status=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(Y)(a(E).TRADE_ORDER_STATUS),e=>(u(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"payChannelCode"},{default:r(()=>[t(g,{modelValue:a(o).payChannelCode,"onUpdate:modelValue":l[3]||(l[3]=e=>a(o).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(Ma)(a(E).PAY_CHANNEL_CODE),e=>(u(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[t(Pe,{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(v,{label:"\u8BA2\u5355\u6765\u6E90",prop:"terminal"},{default:r(()=>[t(g,{modelValue:a(o).terminal,"onUpdate:modelValue":l[5]||(l[5]=e=>a(o).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(Y)(a(E).TERMINAL),e=>(u(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"type"},{default:r(()=>[t(g,{modelValue:a(o).type,"onUpdate:modelValue":l[6]||(l[6]=e=>a(o).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(Y)(a(E).TRADE_ORDER_TYPE),e=>(u(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,{label:"\u914D\u9001\u65B9\u5F0F",prop:"deliveryType"},{default:r(()=>[t(g,{modelValue:a(o).deliveryType,"onUpdate:modelValue":l[7]||(l[7]=e=>a(o).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(Y)(a(E).TRADE_DELIVERY_TYPE),e=>(u(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(o).deliveryType===a(q).EXPRESS.type?(u(),i(v,{key:0,label:"\u5FEB\u9012\u516C\u53F8",prop:"logisticsId"},{default:r(()=>[t(g,{modelValue:a(o).logisticsId,"onUpdate:modelValue":l[8]||(l[8]=e=>a(o).logisticsId=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(me),e=>(u(),i(k,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):V("",!0),a(o).deliveryType===a(q).PICK_UP.type?(u(),i(v,{key:1,label:"\u81EA\u63D0\u95E8\u5E97",prop:"pickUpStoreId"},{default:r(()=>[t(g,{modelValue:a(o).pickUpStoreId,"onUpdate:modelValue":l[9]||(l[9]=e=>a(o).pickUpStoreId=e),clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,y(a(pe),e=>(u(),i(k,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):V("",!0),t(v,{label:"\u805A\u5408\u641C\u7D22"},{default:r(()=>[z(t(ve,{modelValue:a(o)[a(D).queryParam],"onUpdate:modelValue":l[11]||(l[11]=e=>a(o)[a(D).queryParam]=e),type:a(D).queryParam==="userId"?"number":"text",clearable:"",placeholder:"\u8BF7\u8F93\u5165"},{prepend:r(()=>[t(g,{modelValue:a(D).queryParam,"onUpdate:modelValue":l[10]||(l[10]=e=>a(D).queryParam=e),class:"!w-110px",clearable:"",placeholder:"\u5168\u90E8",onChange:De},{default:r(()=>[(u(!0),_(m,null,y(a(se),e=>(u(),i(k,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","type"]),[[O,!0]])]),_:1}),t(he,null,{default:r(()=>[t(fe,null,{default:r(()=>[t(v,null,{default:r(()=>[t(M,{onClick:xe},{default:r(()=>[b(" \u6536\u8D77 ")]),_:1}),t(M,{onClick:Ue},{default:r(()=>[b(" \u91CD\u7F6E ")]),_:1}),t(M,{onClick:P,plain:"",type:"primary"},{default:r(()=>[t(ye,{class:"mr-5px",icon:"ep:search"}),b(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[O,a(x)]]),t(he,null,{default:r(()=>[(u(!0),_(m,null,y(a(S),(e,U)=>(u(),i(fe,{class:"card",key:U,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:R=>le(U),onMouseout:R=>te(U)},{default:r(()=>[t(Ye,{onClick:R=>((A,d,p)=>{const f=d.id;ae.value?Se({name:"TradeOrderMobileDetail",params:{id:f}}):re.value.open(A,d,p)})("view",e,e.no)},{default:r(()=>{var A;return[s("div",K,[s("p",X,[(u(!0),_(m,null,y(e.items,(d,p)=>(u(),_("span",{key:d.id},[b(w(d.spuName),1),p<e.items.length-1&&e.items.length>1?(u(),_("span",B,"+")):V("",!0)]))),128))]),s("div",{class:"setting",onClick:l[13]||(l[13]=ea(()=>{},["stop"]))},[z((u(),i(ze,{onCommand:l[12]||(l[12]=d=>n.handleCommand(d,n.row))},{dropdown:r(()=>[t(Ae,{onMouseover:d=>le(U),onMouseout:d=>te(U)},{default:r(()=>[e.deliveryType===a(q).EXPRESS.type&&e.status===a(F).UNDELIVERED.status?(u(),i(N,{key:0,onClick:d=>{var f;return p=e.id,void((f=ie.value)==null?void 0:f.open("\u8BA2\u5355\u5217\u8868",p));var p}},{default:r(()=>[b("\u53D1\u8D27")]),_:2},1032,["onClick"])):V("",!0),t(N,{onClick:d=>{var f;return p=e.id,e.remark,void((f=_e.value)==null?void 0:f.open(p));var p}},{default:r(()=>[b("\u5907\u6CE8")]),_:2},1032,["onClick"]),e.status===a(F).COMPLETED.status?(u(),i(N,{key:1,onClick:n.handleInvoice},{default:r(()=>[b("\u5F00\u53D1\u7968")]),_:1},8,["onClick"])):V("",!0),e.deliveryType===a(q).EXPRESS.type&&e.status===a(F).UNDELIVERED.status?(u(),i(N,{key:2,onClick:d=>{return p=e.id,f=e.receiverAreaName,be=e.receiverMobile,ke=e.receiverAreaId,ge=e.receiverDetailAddress,void ce.value.open(p,f,be,ke,ge);var p,f,be,ke,ge}},{default:r(()=>[b("\u4FEE\u6539\u5730\u5740")]),_:2},1032,["onClick"])):V("",!0)]),_:2},1032,["onMouseover","onMouseout"])]),default:r(()=>[s("span",null,[z(t(Ne,{size:"20",color:"rgb(220 223 231)"},{default:r(()=>[t(a(Ve))]),_:2},1536),[[O,e.showSetting]])])]),_:2},1024)),[[Fe,["trade:order:update"]]])])]),s("div",G,[s("div",J,[s("img",{src:e.items[0].picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,Q)]),s("div",W,[s("p",null,"\xA5"+w(a(aa)(e.payPrice)),1),s("p",null,w(e.no),1),s("p",null,w((A=a(Na)(a(E).TRADE_ORDER_STATUS,e.status))==null?void 0:A.label),1),s("p",null,w(e.user.nickname),1),s("p",null,[s("span",Z,w((R=e.createTime,new Date(R).getFullYear()+"/")),1),b(w(Te(e.createTime)),1)])])])];var R}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(S).length==0?(u(),_("div",$,[...ee])):V("",!0),t(qe,{limit:a(o).pageSize,"onUpdate:limit":l[14]||(l[14]=e=>a(o).pageSize=e),page:a(o).pageNo,"onUpdate:page":l[15]||(l[15]=e=>a(o).pageNo=e),total:a(ue),onPagination:C},null,8,["limit","page","total"])]),_:1}),t(Ta,{ref_key:"deliveryFormRef",ref:ie,onSuccess:C},null,512),t(xa,{ref_key:"updateRemarkForm",ref:_e,onSuccess:C},null,512),t(Fa,{ref_key:"updateAddressFormRef",ref:ce,onSuccess:n.getDetail},null,8,["onSuccess"]),t(qa,{ref_key:"formRef",ref:re,onSuccess:C},null,512)],64)}}}),[["__scopeId","data-v-03623e2e"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/index.vue"]])});export{cl as __tla,Ce as default};
|