index-ee7aacb7.js 14 KB

1
  1. import{_ as je,__tla as Xe}from"./ContentWrap-5f2f4872.js";import{_ as He,__tla as Ke}from"./index-51c17e69.js";import{d as Be,Y as Ge,K as Je,r as d,u as Qe,e as We,l as Ze,Q as $e,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 ea,e6 as Ce,x as Y,a4 as F,n as b,t as w,aT as aa,at as la,W as ta,X as ra,j as oa,C as ua,V as na,y as sa,z as ia,A as _a,B as da,E as ca,i as pa,D as ma,aU as ya,p as va,k as fa,_ as ha,__tla as ba}from"./index-e3afde76.js";import{E as ka,__tla as ga}from"./el-card-6198c22a.js";import{E as Va,a as Ca,b as wa,__tla as Ta}from"./el-dropdown-item-dc68b036.js";import Ea,{__tla as xa}from"./OrderDeliveryForm-cf46bf4d.js";import Ua,{__tla as Da}from"./OrderUpdateRemarkForm-7bd8bb40.js";import{k as Sa,o as Ra,__tla as Ia}from"./index-e23f4f5a.js";import{a as Pa,__tla as Ma}from"./index-66c1d6d2.js";import{a as q,D as E,e as Na,c as Aa,__tla as Ya}from"./dict-a141296d.js";import{g as qa,__tla as za}from"./index-53761b79.js";import{D as z,T as O}from"./constants-40f13f5e.js";import Fa,{__tla as Oa}from"./OrderIndex-86f76841.js";import La,{__tla as ja}from"./OrderUpdateAddressForm-8318c4b6.js";import{__tla as Xa}from"./index-2d20a7ff.js";import{__tla as Ha}from"./Dialog-c20523c4.js";import{__tla as Ka}from"./OrderBaseInfo-67e66f49.js";import{__tla as Ba}from"./SPuUploadImg-9d6f3265.js";import{__tla as Ga}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb39998f.js";import{__tla as Ja}from"./index-15373756.js";import{__tla as Qa}from"./el-image-viewer-9d1c7d33.js";import{__tla as Wa}from"./useMessage-0b1b25bd.js";import{__tla as Za}from"./formatTime-cee700cd.js";import{__tla as $a}from"./OrderProduct-2deed209.js";import{__tla as el}from"./el-descriptions-item-10fdd34c.js";import{__tla as al}from"./DictTag-715a7ef1.js";import"./color-6e929987.js";import{__tla as ll}from"./OrderComment-fbbfce08.js";import{__tla as tl}from"./OrderService-9761e187.js";import{__tla as rl}from"./OrderAfterSale-2e4ef4a9.js";import{__tla as ol}from"./OrderLogistics-479e7c59.js";import{__tla as ul}from"./orderPay-f5696228.js";import{__tla as nl}from"./OrderLogs-c781ad31.js";import{__tla as sl}from"./el-timeline-item-ec61a442.js";import{__tla as il}from"./el-tree-select-58251b07.js";import{__tla as _l}from"./index-28a76ee4.js";import"./tree-0af4953a.js";let we,dl=Promise.all([(()=>{try{return Xe}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}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,X,H,K,B,G,J,Q,W,Z,$,ee,ae;L={class:"search"},j={style:{"text-align":"right"},class:"search-input"},X={class:"searchMore"},H={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},K={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=>(va("data-v-03623e2e"),I=I(),fa(),I))(()=>s("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],ae=Be({name:"TradeOrder",__name:"index",setup(I){const Te=Ge(),le=Je(()=>Te.getMobile);function Ee(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=d(!1);function te(n){U.value[n].showSetting=!0}function re(n){U.value[n].showSetting=!1}const xe=()=>{x.value=!x.value},Ue=()=>{x.value=!1},oe=d(),{currentRoute:cl,push:De}=Qe(),ue=d(!0),ne=d(2),U=d([]),se=d(),o=d({pageNo:1,pageSize:10,status:void 0,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=We({queryParam:""}),ie=d([{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"}]),Se=n=>{var l;(l=ie.value.filter(h=>h.value!==n))==null||l.forEach(h=>{o.value.hasOwnProperty(h.value)&&delete o.value[h.value]})},C=async()=>{ue.value=!0;try{const n=await Sa(a(o));n.list.forEach(l=>{l.showSetting=!1}),U.value=n.list,ne.value=n.total}finally{ue.value=!1,x.value=!1,pe()}},P=async()=>{o.value.pageNo=1,await C()},Re=()=>{var n;(n=se.value)==null||n.resetFields(),o.value={pageNo:1,pageSize:10,status:void 0,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()},_e=d(),de=d(),ce=d(),T=d([{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}]),Ie=n=>{o.value.status=n.paneName,C()},pe=async()=>{const n=await Ra();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}},me=d([]),ye=d([]);return Ze(async()=>{await C(),await pe(),me.value=await Pa(),ye.value=await qa()}),(n,l)=>{const h=ta,Pe=ra,ve=oa,M=ua,fe=na,k=sa,g=ia,v=_a,Me=da,he=ca,be=pa,Ne=ma,Ae=ya,N=Va,Ye=Ca,qe=wa,ze=ka,Fe=He,Oe=je,Le=$e("hasPermi");return u(),_(m,null,[t(Oe,{class:"container"},{default:r(()=>[s("div",L,[a(le)?V("",!0):(u(),i(Pe,{key:0,modelValue:a(o).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(o).status=e),onTabClick:Ie,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(fe,{modelValue:a(o).userNickname,"onUpdate:modelValue":l[1]||(l[1]=e=>a(o).userNickname=e),placeholder:"\u641C\u7D22\u5BA2\u6237\u540D\u79F0",onKeyup:ea(P,["enter"])},{suffix:r(()=>[t(ve,{class:"mr-5px",icon:"ep:search",onClick:P,style:{cursor:"pointer"}})]),append:r(()=>[t(M,{icon:a(Ce),onClick:xe},null,8,["icon"])]),_:1},8,["modelValue"])])]),Y(s("div",X,[t(Ne,{ref_key:"queryFormRef",ref:se,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(q)(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(Na)(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(Me,{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(q)(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(q)(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(q)(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(z).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(ye),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(z).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(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),t(v,{label:"\u805A\u5408\u641C\u7D22"},{default:r(()=>[Y(t(fe,{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:Se},{default:r(()=>[(u(!0),_(m,null,y(a(ie),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"]),[[F,!0]])]),_:1}),t(be,null,{default:r(()=>[t(he,null,{default:r(()=>[t(v,null,{default:r(()=>[t(M,{onClick:Ue},{default:r(()=>[b(" \u6536\u8D77 ")]),_:1}),t(M,{onClick:Re},{default:r(()=>[b(" \u91CD\u7F6E ")]),_:1}),t(M,{onClick:P,plain:"",type:"primary"},{default:r(()=>[t(ve,{class:"mr-5px",icon:"ep:search"}),b(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[F,a(x)]]),t(be,null,{default:r(()=>[(u(!0),_(m,null,y(a(U),(e,S)=>(u(),i(he,{class:"card",key:S,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:R=>te(S),onMouseout:R=>re(S)},{default:r(()=>[t(ze,{onClick:R=>((A,c,p)=>{const f=c.id;le.value?De({name:"TradeOrderMobileDetail",params:{id:f}}):oe.value.open(A,c,p)})("view",e,e.no)},{default:r(()=>{var A;return[s("div",H,[s("p",K,[(u(!0),_(m,null,y(e.items,(c,p)=>(u(),_("span",{key:c.id},[b(w(c.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]=aa(()=>{},["stop"]))},[Y((u(),i(qe,{onCommand:l[12]||(l[12]=c=>n.handleCommand(c,n.row))},{dropdown:r(()=>[t(Ye,{onMouseover:c=>te(S),onMouseout:c=>re(S)},{default:r(()=>[e.deliveryType===a(z).EXPRESS.type&&e.status===a(O).UNDELIVERED.status?(u(),i(N,{key:0,onClick:c=>{var f;return p=e.id,void((f=_e.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:c=>{var f;return p=e.id,e.remark,void((f=de.value)==null?void 0:f.open(p));var p}},{default:r(()=>[b("\u5907\u6CE8")]),_:2},1032,["onClick"]),e.status===a(O).COMPLETED.status?(u(),i(N,{key:1,onClick:n.handleInvoice},{default:r(()=>[b("\u5F00\u53D1\u7968")]),_:1},8,["onClick"])):V("",!0),e.deliveryType===a(z).EXPRESS.type&&e.status===a(O).UNDELIVERED.status?(u(),i(N,{key:2,onClick:c=>{return p=e.id,f=e.receiverAreaName,ke=e.receiverMobile,ge=e.receiverAreaId,Ve=e.receiverDetailAddress,void ce.value.open(p,f,ke,ge,Ve);var p,f,ke,ge,Ve}},{default:r(()=>[b("\u4FEE\u6539\u5730\u5740")]),_:2},1032,["onClick"])):V("",!0)]),_:2},1032,["onMouseover","onMouseout"])]),default:r(()=>[s("span",null,[Y(t(Ae,{size:"20",color:"rgb(220 223 231)"},{default:r(()=>[t(a(Ce))]),_:2},1536),[[F,e.showSetting]])])]),_:2},1024)),[[Le,["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(la)(e.payPrice)),1),s("p",null,w(e.no),1),s("p",null,w((A=a(Aa)(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(Ee(e.createTime)),1)])])])];var R}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(U).length==0?(u(),_("div",$,[...ee])):V("",!0),t(Fe,{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(ne),onPagination:C},null,8,["limit","page","total"])]),_:1}),t(Ea,{ref_key:"deliveryFormRef",ref:_e,onSuccess:C},null,512),t(Ua,{ref_key:"updateRemarkForm",ref:de,onSuccess:C},null,512),t(La,{ref_key:"updateAddressFormRef",ref:ce,onSuccess:n.getDetail},null,8,["onSuccess"]),t(Fa,{ref_key:"formRef",ref:oe,onSuccess:C},null,512)],64)}}}),we=ha(ae,[["__scopeId","data-v-03623e2e"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/index.vue"]])});export{dl as __tla,we as default};