index-5a968257.js 12 KB

1
  1. import{_ as Ne,__tla as Se}from"./ContentWrap-60842994.js";import{_ as Me,__tla as Ye}from"./index-c425c88f.js";import{d as ze,Y as Ae,K as Fe,r as s,u as Pe,e as je,k as Oe,Q as He,o as n,c as _,f as l,w as o,g as i,a,v as c,F as d,q as v,P as M,R as ie,au as qe,x as _e,m as w,a4 as Be,t as h,a$ as Ke,W as Le,X as Qe,n as We,C as Xe,V as $e,y as Ge,z as Je,A as Ze,B as ea,E as aa,i as ta,D as la,p as ra,j as oa,_ as na,__tla as ua}from"./index-430b3151.js";import{E as sa,__tla as ia}from"./el-card-dee5b36b.js";import _a,{__tla as ca}from"./OrderDeliveryForm-61dad7d0.js";import da,{__tla as pa}from"./OrderUpdateRemarkForm-5aa72566.js";import{m as ma,l as ya,n as fa,o as va,__tla as ha}from"./index-72a4fbcc.js";import{a as ba,__tla as ga}from"./index-fb333ca6.js";import{h as ka,__tla as wa}from"./index-a205ae1b.js";import{e as xa,D as E,a as P,b as Va,__tla as Ia}from"./dict-603b6a58.js";import{g as Ca,__tla as Ta}from"./index-6024924b.js";import Da,{__tla as Ua}from"./OrderIndex-d222e5a5.js";import Ra,{__tla as Ea}from"./OrderUpdateAddressForm-9fee086a.js";import{d as Na}from"./download-20922b56.js";import{u as Sa,__tla as Ma}from"./useMessage-d226ba89.js";import{__tla as Ya}from"./index-555139e7.js";import{__tla as za}from"./Dialog-cd42c639.js";import{__tla as Aa}from"./OrderBaseInfo-27b8c7ef.js";import{__tla as Fa}from"./SPuUploadImg-e216b873.js";import{__tla as Pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f5de6f1b.js";import{__tla as ja}from"./index-255e3b1c.js";import{__tla as Oa}from"./el-image-viewer-467ebe35.js";import{__tla as Ha}from"./formatTime-00eecbb7.js";import{__tla as qa}from"./OrderProduct-e67aebc2.js";import{__tla as Ba}from"./el-descriptions-item-f31a472b.js";import{__tla as Ka}from"./DictTag-c94c3188.js";import"./color-6e929987.js";import{__tla as La}from"./OrderComment-033139c3.js";import{__tla as Qa}from"./el-image-c98b70f9.js";import{__tla as Wa}from"./OrderService-e4abfd9c.js";import{__tla as Xa}from"./AfterSale-5ff3e48a.js";import{__tla as $a}from"./OrderLogistics-2cdb393b.js";import{__tla as Ga}from"./el-timeline-item-96c4ad36.js";import{__tla as Ja}from"./orderPay-ac1634c7.js";import{__tla as Za}from"./OrderLogs-a86a0456.js";import{__tla as et}from"./el-tree-select-eb1ce80a.js";import{__tla as at}from"./index-8e25ba34.js";import"./tree-0af4953a.js";let ce,tt=Promise.all([(()=>{try{return Se}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return at}catch{}})()]).then(async()=>{let j,O,H,q,B,K,L,Q,W,X,$,G,J;j={class:"search"},O={style:{"text-align":"right"},class:"search-input"},H={class:"searchMore"},q={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},B={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},K={key:0},L={style:{display:"flex","align-items":"center"}},Q={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"}},W=["src"],X={style:{"line-height":"25px"}},$={class:"year"},G={key:0},J=[(b=>(ra("data-v-03623e2e"),b=b(),oa(),b))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],ce=na(ze({name:"TradeOrder",__name:"index",props:{merchantId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1},userId:{type:Number,default:void 0}},setup(b){const de=Sa(),pe=Ae(),Z=Fe(()=>pe.getMobile);function me(u){var t=new Date(u);return("0"+(t.getMonth()+1)).slice(-2)+"/"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)}const x=s(!1),ye=()=>{x.value=!x.value},fe=()=>{x.value=!1},p=b,ee=s(),{currentRoute:lt,push:ve}=Pe(),Y=s(!0),z=s(!1),ae=s(2),V=s([]),te=s(),r=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});je({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 he=async()=>{try{await de.exportConfirm(),z.value=!0;const u=await ma(a(r));Na.excel(u,"\u8BA2\u5355\u8BE6\u7EC6.xls")}catch{}finally{z.value=!1}},m=async()=>{Y.value=!0,p.merchantId&&(r.value.merchantId=p.merchantId),p.userId&&(r.value.userId=p.userId);try{const u=await ya(a(r));u.list.forEach(t=>{t.showSetting=!1}),V.value=u.list,ae.value=u.total}finally{Y.value=!1,x.value=!1,le()}},I=async()=>{r.value.pageNo=1,await m()},be=()=>{var u;(u=te.value)==null||u.resetFields(),r.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},I()},ge=s(),ke=s(),we=s(),g=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}]),xe=u=>{r.value.status=u.paneName,m()},le=async()=>{const u=s({...r.value});let t;p.merchantId&&(u.value.merId=p.merchantId),p.userId?(u.value.userId=p.userId,t=await fa(u.value)):t=await va(u.value);for(let k in g.value)for(let N in t)try{g.value[k].type==N&&(g.value[k].count=t[N]),g.value[k].type===""&&(g.value[k].count=t[-1]+t[-2])}finally{continue}};let re=s([]);const Ve=s([]),Ie=s([]);return Oe(async()=>{await(async()=>{Y.value=!0;const u=await ka();re.value=u})(),await m(),await le(),Ve.value=await ba(),Ie.value=await Ca()}),(u,t)=>{const k=Le,N=Qe,oe=We,C=Xe,ne=$e,T=Ge,D=Je,y=Ze,Ce=ea,ue=aa,se=ta,Te=la,De=sa,Ue=Me,Re=Ne,Ee=He("hasPermi");return n(),_(d,null,[l(Re,{class:"container"},{default:o(()=>[i("div",j,[a(Z)?M("",!0):(n(),c(N,{key:0,modelValue:a(r).status,"onUpdate:modelValue":t[0]||(t[0]=e=>a(r).status=e),onTabClick:xe,class:"parent-tabs"},{default:o(()=>[(n(!0),_(d,null,v(a(g),e=>(n(),c(k,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),i("div",O,[l(ne,{modelValue:a(r).no,"onUpdate:modelValue":t[1]||(t[1]=e=>a(r).no=e),placeholder:"\u8BA2\u5355\u53F7",onKeyup:ie(I,["enter"])},{suffix:o(()=>[l(oe,{class:"mr-5px",icon:"ep:search",onClick:I,style:{cursor:"pointer"}})]),append:o(()=>[l(C,{icon:a(qe),onClick:ye},null,8,["icon"])]),_:1},8,["modelValue"])])]),_e(i("div",H,[l(Te,{ref_key:"queryFormRef",ref:te,inline:!0,model:a(r),class:"-mb-15px","label-width":"68px"},{default:o(()=>[b.merchantId?M("",!0):(n(),c(y,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[l(D,{modelValue:a(r).shopId,"onUpdate:modelValue":t[2]||(t[2]=e=>a(r).shopId=e),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(n(!0),_(d,null,v(a(re),e=>(n(),c(T,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),l(y,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"payChannelCode"},{default:o(()=>[l(D,{modelValue:a(r).payChannelCode,"onUpdate:modelValue":t[3]||(t[3]=e=>a(r).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(n(!0),_(d,null,v(a(xa)(a(E).PAY_CHANNEL_CODE),e=>(n(),c(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[l(Ce,{modelValue:a(r).createTime,"onUpdate:modelValue":t[4]||(t[4]=e=>a(r).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}),l(y,{label:"\u8BA2\u5355\u6765\u6E90",prop:"terminal"},{default:o(()=>[l(D,{modelValue:a(r).terminal,"onUpdate:modelValue":t[5]||(t[5]=e=>a(r).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(n(!0),_(d,null,v(a(P)(a(E).TERMINAL),e=>(n(),c(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"type"},{default:o(()=>[l(D,{modelValue:a(r).type,"onUpdate:modelValue":t[6]||(t[6]=e=>a(r).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(n(!0),_(d,null,v(a(P)(a(E).TRADE_ORDER_TYPE),e=>(n(),c(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"\u914D\u9001\u65B9\u5F0F",prop:"deliveryType"},{default:o(()=>[l(D,{modelValue:a(r).deliveryType,"onUpdate:modelValue":t[7]||(t[7]=e=>a(r).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(n(!0),_(d,null,v(a(P)(a(E).TRADE_DELIVERY_TYPE),e=>(n(),c(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"\u7528\u6237\u540D\u79F0",prop:"deliveryType"},{default:o(()=>[l(ne,{modelValue:a(r).userNickname,"onUpdate:modelValue":t[8]||(t[8]=e=>a(r).userNickname=e),placeholder:"\u8BF7\u8F93\u5165",onKeyup:ie(I,["enter"])},null,8,["modelValue"])]),_:1}),l(se,null,{default:o(()=>[l(ue,null,{default:o(()=>[l(y,null,{default:o(()=>[_e((n(),c(C,{type:"success",plain:"",onClick:he,loading:a(z)},{default:o(()=>[w(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[Ee,["trade:order:export"]]]),l(C,{onClick:fe},{default:o(()=>[w(" \u6536\u8D77 ")]),_:1}),l(C,{onClick:be},{default:o(()=>[w(" \u91CD\u7F6E ")]),_:1}),l(C,{onClick:I,plain:"",type:"primary"},{default:o(()=>[l(oe,{class:"mr-5px",icon:"ep:search"}),w(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Be,a(x)]]),l(se,null,{default:o(()=>[(n(!0),_(d,null,v(a(V),(e,A)=>(n(),c(ue,{class:"card",key:A,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:U=>function(f){V.value[f].showSetting=!0}(A),onMouseout:U=>function(f){V.value[f].showSetting=!1}(A)},{default:o(()=>[l(De,{onClick:U=>((f,R,S)=>{const F=R.id;Z.value?ve({name:"TradeOrderMobileDetail",params:{id:F}}):ee.value.open(f,R,S)})("view",e,e.no)},{default:o(()=>{var f,R;return[i("div",q,[i("p",B,[(n(!0),_(d,null,v(e.items,(S,F)=>(n(),_("span",{key:S.id},[w(h(S.spuName),1),F<e.items.length-1&&e.items.length>1?(n(),_("span",K,"+")):M("",!0)]))),128))])]),i("div",L,[i("div",Q,[i("img",{src:e.items&&((f=e.items[0])==null?void 0:f.picUrl),style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,W)]),i("div",X,[i("p",null,"\xA5"+h(a(Ke)(e.payPrice)),1),i("p",null,h(e.no),1),i("p",null,h((R=a(Va)(a(E).TRADE_ORDER_STATUS,e.status))==null?void 0:R.label),1),i("p",null,h(e.user.nickname),1),i("p",null,[i("span",$,h((U=e.createTime,new Date(U).getFullYear()+"/")),1),w(h(me(e.createTime)),1)])])])];var U}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(V).length==0?(n(),_("div",G,[...J])):M("",!0),l(Ue,{limit:a(r).pageSize,"onUpdate:limit":t[9]||(t[9]=e=>a(r).pageSize=e),page:a(r).pageNo,"onUpdate:page":t[10]||(t[10]=e=>a(r).pageNo=e),total:a(ae),onPagination:m},null,8,["limit","page","total"])]),_:1}),l(_a,{ref_key:"deliveryFormRef",ref:ge,onSuccess:m},null,512),l(da,{ref_key:"updateRemarkForm",ref:ke,onSuccess:m},null,512),l(Ra,{ref_key:"updateAddressFormRef",ref:we,onSuccess:m},null,512),l(Da,{ref_key:"formRef",ref:ee,onSuccess:m},null,512)],64)}}}),[["__scopeId","data-v-03623e2e"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/index.vue"]])});export{tt as __tla,ce as default};