index-f1b0ced4.js 12 KB

1
  1. import{_ as De,__tla as Ue}from"./ContentWrap-260746ab.js";import{_ as Re,__tla as Se}from"./index-e6a7fd1e.js";import{d as Ee,y as Ne,e as Me,r as s,u as ze,x as Pe,b as Ye,a4 as Ae,o as u,c as _,f as r,A as o,B as i,a,C as m,F as d,R as f,a3 as N,a5 as te,aD as Fe,k as le,D as V,v as Oe,E as b,dz as He,aa as Le,ab as Ke,Q as je,J as Be,a9 as qe,S as Je,U as Qe,V as We,I as Ge,K as Xe,W as Ze,H as $e,L as ea,M as aa,_ as ta,__tla as la}from"./index-54aa57d8.js";import{E as ra,__tla as oa}from"./el-card-e7d6628c.js";import ua,{__tla as na}from"./OrderDeliveryForm-4e622c17.js";import sa,{__tla as _a}from"./OrderUpdateRemarkForm-212fabc8.js";import{m as ia,l as ca,n as ma,o as da,__tla as pa}from"./index-e7a32376.js";import{a as ya,__tla as fa}from"./index-275b4fd1.js";import{g as va,__tla as ha}from"./index-692b7677.js";import{I as ba,__tla as ga}from"./ImageCard-dcb28e16.js";import{e as ka,D as S,a as Y,c as wa,__tla as Va}from"./dict-573b3b04.js";import{g as Ia,__tla as xa}from"./index-56fb6cd9.js";import Ca,{__tla as Ta}from"./OrderIndex-3b3412d8.js";import Da,{__tla as Ua}from"./OrderUpdateAddressForm-b11ab4ab.js";import{d as Ra}from"./download-20922b56.js";import{u as Sa,__tla as Ea}from"./useMessage-f56cafbb.js";import{__tla as Na}from"./index-254a9b5e.js";import{__tla as Ma}from"./Dialog-7bb778a5.js";import{__tla as za}from"./OrderBaseInfo-67083a3d.js";import{__tla as Pa}from"./SPuUploadImg-d377301f.js";import{__tla as Ya}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-03e554d4.js";import{__tla as Aa}from"./index-1a846221.js";import{__tla as Fa}from"./el-image-viewer-ec0edec4.js";import{__tla as Oa}from"./formatTime-e6197688.js";import{__tla as Ha}from"./OrderProduct-aad49434.js";import{__tla as La}from"./el-descriptions-item-347c85ca.js";import{__tla as Ka}from"./DictTag-638f5ebc.js";import"./color-6e929987.js";import{__tla as ja}from"./OrderComment-bf0937e1.js";import{__tla as Ba}from"./el-image-94dad5a7.js";import{__tla as qa}from"./OrderService-67ce9c1a.js";import{__tla as Ja}from"./AfterSale-255a48ee.js";import{__tla as Qa}from"./OrderLogistics-2e3f5f16.js";import{__tla as Wa}from"./el-timeline-item-24fd452f.js";import{__tla as Ga}from"./orderPay-aa418693.js";import{__tla as Xa}from"./OrderLogs-f38fe170.js";import{__tla as Za}from"./el-tree-select-20b2a9f3.js";import{__tla as $a}from"./index-b75a8e96.js";import"./tree-0af4953a.js";let re,et=Promise.all([(()=>{try{return Ue}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{let A,F,O,H,L,K,j,B,q;A={class:"search"},F={style:{"text-align":"right"},class:"search-input"},O={class:"searchMore"},H={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},L={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},K={key:0},j={class:"year"},B={key:0},q=[(g=>(ea("data-v-03623e2e"),g=g(),aa(),g))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],re=ta(Ee({name:"TradeOrder",__name:"index",props:{merchantId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1},userId:{type:Number,default:void 0}},setup(g){const oe=Sa(),ue=Ne(),J=Me(()=>ue.getMobile);function ne(n){var t=new Date(n);return("0"+(t.getMonth()+1)).slice(-2)+"/"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)}const I=s(!1),se=()=>{I.value=!I.value},_e=()=>{I.value=!1},p=g,Q=s(),{currentRoute:at,push:ie}=ze(),M=s(!0),z=s(!1),W=s(2),x=s([]),G=s(),l=s({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,shopId:void 0});Pe({queryParam:""}),s([{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"}]);const ce=async()=>{try{await oe.exportConfirm(),z.value=!0;const n=await ia(a(l));Ra.excel(n,"\u8BA2\u5355\u8BE6\u7EC6.xls")}catch{}finally{z.value=!1}},y=async()=>{M.value=!0,p.merchantId&&(l.value.merchantId=p.merchantId),p.userId&&(l.value.userId=p.userId);try{const n=await ca(a(l));n.list.forEach(t=>{t.showSetting=!1}),x.value=n.list,W.value=n.total}finally{M.value=!1,I.value=!1,X()}},C=async()=>{l.value.pageNo=1,await y()},me=()=>{var n;(n=G.value)==null||n.resetFields(),l.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,shopId:void 0},C()},de=s(),pe=s(),ye=s(),k=s([{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}]),fe=n=>{l.value.status=n.paneName,y()},X=async()=>{const n=s({...l.value});let t;p.merchantId&&(n.value.merId=p.merchantId),p.userId?(n.value.userId=p.userId,t=await ma(n.value)):t=await da(n.value);for(let w in k.value)for(let E in t)try{k.value[w].type==E&&(k.value[w].count=t[E]),k.value[w].type===""&&(k.value[w].count=t[-1]+t[-2])}finally{continue}};let Z=s([]);const ve=s([]),he=s([]);return Ye(async()=>{await(async()=>{M.value=!0;const n=await va();Z.value=n})(),await y(),await X(),ve.value=await ya(),he.value=await Ia()}),(n,t)=>{const w=Le,E=Ke,$=je,T=Be,ee=qe,D=Je,U=Qe,v=We,be=Ge,ae=Xe,ge=Ze,ke=ra,we=$e,Ve=Re,Ie=De,xe=Ae("hasPermi");return u(),_(d,null,[r(Ie,{class:"container"},{default:o(()=>[i("div",A,[a(J)?N("",!0):(u(),m(E,{key:0,modelValue:a(l).status,"onUpdate:modelValue":t[0]||(t[0]=e=>a(l).status=e),onTabClick:fe,class:"parent-tabs"},{default:o(()=>[(u(!0),_(d,null,f(a(k),e=>(u(),m(w,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),i("div",F,[r(ee,{modelValue:a(l).no,"onUpdate:modelValue":t[1]||(t[1]=e=>a(l).no=e),placeholder:"\u8BA2\u5355\u53F7",onKeyup:te(C,["enter"])},{suffix:o(()=>[r($,{class:"mr-5px",icon:"ep:search",onClick:C,style:{cursor:"pointer"}})]),append:o(()=>[r(T,{icon:a(Fe),onClick:se},null,8,["icon"])]),_:1},8,["modelValue"])])]),le(i("div",O,[r(ge,{ref_key:"queryFormRef",ref:G,inline:!0,model:a(l),class:"-mb-15px","label-width":"80px"},{default:o(()=>[g.merchantId?N("",!0):(u(),m(v,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(U,{modelValue:a(l).shopId,"onUpdate:modelValue":t[2]||(t[2]=e=>a(l).shopId=e),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(u(!0),_(d,null,f(a(Z),e=>(u(),m(D,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(v,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"payChannelCode"},{default:o(()=>[r(U,{modelValue:a(l).payChannelCode,"onUpdate:modelValue":t[3]||(t[3]=e=>a(l).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,f(a(ka)(a(S).PAY_CHANNEL_CODE),e=>(u(),m(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(v,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(be,{modelValue:a(l).createTime,"onUpdate:modelValue":t[4]||(t[4]=e=>a(l).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}),r(v,{label:"\u8BA2\u5355\u6765\u6E90",prop:"terminal"},{default:o(()=>[r(U,{modelValue:a(l).terminal,"onUpdate:modelValue":t[5]||(t[5]=e=>a(l).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,f(a(Y)(a(S).TERMINAL),e=>(u(),m(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(v,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"type"},{default:o(()=>[r(U,{modelValue:a(l).type,"onUpdate:modelValue":t[6]||(t[6]=e=>a(l).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,f(a(Y)(a(S).TRADE_ORDER_TYPE),e=>(u(),m(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(v,{label:"\u914D\u9001\u65B9\u5F0F",prop:"deliveryType"},{default:o(()=>[r(U,{modelValue:a(l).deliveryType,"onUpdate:modelValue":t[7]||(t[7]=e=>a(l).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,f(a(Y)(a(S).TRADE_DELIVERY_TYPE),e=>(u(),m(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(v,{label:"\u7528\u6237\u540D\u79F0",prop:"deliveryType"},{default:o(()=>[r(ee,{modelValue:a(l).userNickname,"onUpdate:modelValue":t[8]||(t[8]=e=>a(l).userNickname=e),placeholder:"\u8BF7\u8F93\u5165",onKeyup:te(C,["enter"])},null,8,["modelValue"])]),_:1}),r(ae,{class:"pb-20px flex justify-end"},{default:o(()=>[le((u(),m(T,{type:"success",plain:"",onClick:ce,loading:a(z)},{default:o(()=>[V(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[xe,["trade:order:export"]]]),r(T,{onClick:_e},{default:o(()=>[V(" \u6536\u8D77 ")]),_:1}),r(T,{onClick:me},{default:o(()=>[V(" \u91CD\u7F6E ")]),_:1}),r(T,{onClick:C,plain:"",type:"primary"},{default:o(()=>[r($,{class:"mr-5px",icon:"ep:search"}),V(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Oe,a(I)]]),r(ae,null,{default:o(()=>[(u(!0),_(d,null,f(a(x),(e,P)=>(u(),m(we,{class:"card",key:P,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:R=>function(c){x.value[c].showSetting=!0}(P),onMouseout:R=>function(c){x.value[c].showSetting=!1}(P)},{default:o(()=>[r(ke,{onClick:R=>((c,h,Ce)=>{const Te=h.id;J.value?ie({name:"TradeOrderMobileDetail",params:{id:Te}}):Q.value.open(c,h,Ce)})("view",e,e.no)},{default:o(()=>{var R;return[i("div",H,[i("p",L,[(u(!0),_(d,null,f(e.items,(c,h)=>(u(),_("span",{key:c.id},[V(b(c.spuName),1),h<e.items.length-1&&e.items.length>1?(u(),_("span",K,"+")):N("",!0)]))),128))])]),r(ba,{url:e.items&&((R=e.items[0])==null?void 0:R.picUrl),width:206,height:116},{label:o(()=>{var h;return[i("p",null,"\xA5"+b(a(He)(e.totalPrice)),1),i("p",null,b(e.no),1),i("p",null,b((h=a(wa)(a(S).TRADE_ORDER_STATUS,e.status))==null?void 0:h.label),1),i("p",null,b(e.user.nickname),1),i("p",null,[i("span",j,b((c=e.createTime,new Date(c).getFullYear()+"/")),1),V(b(ne(e.createTime)),1)])];var c}),_:2},1032,["url"])]}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(x).length==0?(u(),_("div",B,[...q])):N("",!0),r(Ve,{limit:a(l).pageSize,"onUpdate:limit":t[9]||(t[9]=e=>a(l).pageSize=e),page:a(l).pageNo,"onUpdate:page":t[10]||(t[10]=e=>a(l).pageNo=e),total:a(W),onPagination:y},null,8,["limit","page","total"])]),_:1}),r(ua,{ref_key:"deliveryFormRef",ref:de,onSuccess:y},null,512),r(sa,{ref_key:"updateRemarkForm",ref:pe,onSuccess:y},null,512),r(Da,{ref_key:"updateAddressFormRef",ref:ye,onSuccess:y},null,512),r(Ca,{ref_key:"formRef",ref:Q,onSuccess:y},null,512)],64)}}}),[["__scopeId","data-v-03623e2e"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/index.vue"]])});export{et as __tla,re as default};