index-6b0dacb0.js 12 KB

1
  1. import{_ as Ee,__tla as Ne}from"./ContentWrap-96bb70ec.js";import{_ as Me,__tla as Ye}from"./index-58a94653.js";import{d as ze,y as Ae,e as Fe,r as u,u as Pe,x as He,b as Oe,a4 as je,o as n,c as _,f as l,A as o,B as i,a,C as c,F as d,R as v,a3 as M,a5 as ie,aD as Le,k as _e,D as w,v as Be,E as h,dz as Ke,aa as qe,ab as Je,Q as Qe,J as We,a9 as Xe,S as Ge,U as Ze,V as $e,I as ea,H as aa,K as ta,W as la,L as ra,M as oa,_ as na,__tla as sa}from"./index-f6fb8e95.js";import{E as ua,__tla as ia}from"./el-card-8db16709.js";import _a,{__tla as ca}from"./OrderDeliveryForm-7307036b.js";import da,{__tla as pa}from"./OrderUpdateRemarkForm-0cf39f14.js";import{m as ma,l as ya,n as fa,o as va,__tla as ha}from"./index-fb236505.js";import{a as ba,__tla as ga}from"./index-68a37cb4.js";import{g as ka,__tla as wa}from"./index-74af911b.js";import{e as xa,D as S,a as P,c as Va,__tla as Ia}from"./dict-c9a7f6a4.js";import{g as Ca,__tla as Ta}from"./index-8dc2d023.js";import Da,{__tla as Ua}from"./OrderIndex-ab93ebb3.js";import Ra,{__tla as Sa}from"./OrderUpdateAddressForm-7982d449.js";import{d as Ea}from"./download-20922b56.js";import{u as Na,__tla as Ma}from"./useMessage-3b767a67.js";import{__tla as Ya}from"./index-07a2f7ed.js";import{__tla as za}from"./Dialog-ac2b0e4e.js";import{__tla as Aa}from"./OrderBaseInfo-981b98a7.js";import{__tla as Fa}from"./SPuUploadImg-95101882.js";import{__tla as Pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8b438c45.js";import{__tla as Ha}from"./index-b76b57e5.js";import{__tla as Oa}from"./el-image-viewer-cfdb08a7.js";import{__tla as ja}from"./formatTime-ddd96ac8.js";import{__tla as La}from"./OrderProduct-0341fb86.js";import{__tla as Ba}from"./el-descriptions-item-60dd5c8e.js";import{__tla as Ka}from"./DictTag-81730a57.js";import"./color-6e929987.js";import{__tla as qa}from"./OrderComment-ac17d63d.js";import{__tla as Ja}from"./el-image-fefb4b54.js";import{__tla as Qa}from"./OrderService-eac9b7c6.js";import{__tla as Wa}from"./AfterSale-bb603685.js";import{__tla as Xa}from"./OrderLogistics-1e111dda.js";import{__tla as Ga}from"./el-timeline-item-4391c2d1.js";import{__tla as Za}from"./orderPay-22e0945b.js";import{__tla as $a}from"./OrderLogs-42ed4c92.js";import{__tla as et}from"./el-tree-select-25b2ed74.js";import{__tla as at}from"./index-690faa88.js";import"./tree-0af4953a.js";let ce,tt=Promise.all([(()=>{try{return Ne}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return sa}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 Sa}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 Ha}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return at}catch{}})()]).then(async()=>{let H,O,j,L,B,K,q,J,Q,W,X,G,Z;H={class:"search"},O={style:{"text-align":"right"},class:"search-input"},j={class:"searchMore"},L={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},q={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"}},X={class:"year"},G={key:0},Z=[(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=Na(),pe=Ae(),$=Fe(()=>pe.getMobile);function me(s){var t=new Date(s);return("0"+(t.getMonth()+1)).slice(-2)+"/"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)}const x=u(!1),ye=()=>{x.value=!x.value},fe=()=>{x.value=!1},p=b,ee=u(),{currentRoute:lt,push:ve}=Pe(),Y=u(!0),z=u(!1),ae=u(2),V=u([]),te=u(),r=u({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});He({queryParam:""}),u([{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 s=await ma(a(r));Ea.excel(s,"\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 s=await ya(a(r));s.list.forEach(t=>{t.showSetting=!1}),V.value=s.list,ae.value=s.total}finally{Y.value=!1,x.value=!1,le()}},I=async()=>{r.value.pageNo=1,await m()},be=()=>{var s;(s=te.value)==null||s.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=u(),ke=u(),we=u(),g=u([{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=s=>{r.value.status=s.paneName,m()},le=async()=>{const s=u({...r.value});let t;p.merchantId&&(s.value.merId=p.merchantId),p.userId?(s.value.userId=p.userId,t=await fa(s.value)):t=await va(s.value);for(let k in g.value)for(let E in t)try{g.value[k].type==E&&(g.value[k].count=t[E]),g.value[k].type===""&&(g.value[k].count=t[-1]+t[-2])}finally{continue}};let re=u([]);const Ve=u([]),Ie=u([]);return Oe(async()=>{await(async()=>{Y.value=!0;const s=await ka();re.value=s})(),await m(),await le(),Ve.value=await ba(),Ie.value=await Ca()}),(s,t)=>{const k=qe,E=Je,oe=Qe,C=We,ne=Xe,T=Ge,D=Ze,y=$e,Ce=ea,se=aa,ue=ta,Te=la,De=ua,Ue=Me,Re=Ee,Se=je("hasPermi");return n(),_(d,null,[l(Re,{class:"container"},{default:o(()=>[i("div",H,[a($)?M("",!0):(n(),c(E,{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(Le),onClick:ye},null,8,["icon"])]),_:1},8,["modelValue"])])]),_e(i("div",j,[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(S).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(S).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(S).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(S).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(ue,null,{default:o(()=>[l(se,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"])),[[Se,["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(ue,null,{default:o(()=>[(n(!0),_(d,null,v(a(V),(e,A)=>(n(),c(se,{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,N)=>{const F=R.id;$.value?ve({name:"TradeOrderMobileDetail",params:{id:F}}):ee.value.open(f,R,N)})("view",e,e.no)},{default:o(()=>{var f,R;return[i("div",L,[i("p",B,[(n(!0),_(d,null,v(e.items,(N,F)=>(n(),_("span",{key:N.id},[w(h(N.spuName),1),F<e.items.length-1&&e.items.length>1?(n(),_("span",K,"+")):M("",!0)]))),128))])]),i("div",q,[i("div",J,[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,Q)]),i("div",W,[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(S).TRADE_ORDER_STATUS,e.status))==null?void 0:R.label),1),i("p",null,h(e.user.nickname),1),i("p",null,[i("span",X,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,[...Z])):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};