1 |
- import{_ as Ee,__tla as Ne}from"./ContentWrap-83998678.js";import{_ as Me,__tla as Ye}from"./index-ed6c67a8.js";import{d as Ae,y as Pe,e as ze,r as s,u as Fe,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 Ke,k as _e,D as w,v as Le,E as h,dA as qe,aa as Be,ab as Je,Q as Qe,J as We,a9 as Ge,S as Xe,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 ua}from"./index-286756b9.js";import{E as sa,__tla as ia}from"./el-card-d3d5a654.js";import _a,{__tla as ca}from"./OrderDeliveryForm-60d6bcc7.js";import da,{__tla as pa}from"./OrderUpdateRemarkForm-8c75adee.js";import{m as ma,l as ya,n as fa,o as va,__tla as ha}from"./index-c6443726.js";import{a as ba,__tla as ga}from"./index-8ef49778.js";import{h as ka,__tla as wa}from"./index-75b1e1db.js";import{e as xa,D as S,a as F,c as Va,__tla as Ia}from"./dict-82dca549.js";import{g as Ca,__tla as Ta}from"./index-c052d10f.js";import Da,{__tla as Ua}from"./OrderIndex-ff11ff08.js";import Ra,{__tla as Sa}from"./OrderUpdateAddressForm-d29ca649.js";import{d as Ea}from"./download-20922b56.js";import{u as Na,__tla as Ma}from"./useMessage-084b1e70.js";import{__tla as Ya}from"./index-fb47c94c.js";import{__tla as Aa}from"./Dialog-4c2de357.js";import{__tla as Pa}from"./OrderBaseInfo-b63ed52f.js";import{__tla as za}from"./SPuUploadImg-895192f9.js";import{__tla as Fa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6643271d.js";import{__tla as Ha}from"./index-5a40c383.js";import{__tla as Oa}from"./el-image-viewer-e0e5d3be.js";import{__tla as ja}from"./formatTime-83e416ef.js";import{__tla as Ka}from"./OrderProduct-871687c2.js";import{__tla as La}from"./el-descriptions-item-63e151c1.js";import{__tla as qa}from"./DictTag-f72b04ca.js";import"./color-6e929987.js";import{__tla as Ba}from"./OrderComment-2e3f3e1c.js";import{__tla as Ja}from"./el-image-73c105b7.js";import{__tla as Qa}from"./OrderService-028614b5.js";import{__tla as Wa}from"./AfterSale-df64e0f3.js";import{__tla as Ga}from"./OrderLogistics-c786cb92.js";import{__tla as Xa}from"./el-timeline-item-c7efc654.js";import{__tla as Za}from"./orderPay-c931a0d7.js";import{__tla as $a}from"./OrderLogs-9ca79943.js";import{__tla as et}from"./el-tree-select-7a83bfa8.js";import{__tla as at}from"./index-bb0e31fe.js";import"./tree-0af4953a.js";let ce,tt=Promise.all([(()=>{try{return Ne}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 Sa}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}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{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return at}catch{}})()]).then(async()=>{let H,O,j,K,L,q,B,J,Q,W,G,X,Z;H={class:"search"},O={style:{"text-align":"right"},class:"search-input"},j={class:"searchMore"},K={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:""},q={key:0},B={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"}},G={class:"year"},X={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(Ae({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=Pe(),$=ze(()=>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}=Fe(),Y=s(!0),A=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});He({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(),A.value=!0;const u=await ma(a(r));Ea.excel(u,"\u8BA2\u5355\u8BE6\u7EC6.xls")}catch{}finally{A.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 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=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=Be,E=Je,oe=Qe,C=We,ne=Ge,T=Xe,D=Ze,y=$e,Ce=ea,ue=aa,se=ta,Te=la,De=sa,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(Ke),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(F)(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(F)(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(F)(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(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(A)},{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),[[Le,a(x)]]),l(se,null,{default:o(()=>[(n(!0),_(d,null,v(a(V),(e,P)=>(n(),c(ue,{class:"card",key:P,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:U=>function(f){V.value[f].showSetting=!0}(P),onMouseout:U=>function(f){V.value[f].showSetting=!1}(P)},{default:o(()=>[l(De,{onClick:U=>((f,R,N)=>{const z=R.id;$.value?ve({name:"TradeOrderMobileDetail",params:{id:z}}):ee.value.open(f,R,N)})("view",e,e.no)},{default:o(()=>{var f,R;return[i("div",K,[i("p",L,[(n(!0),_(d,null,v(e.items,(N,z)=>(n(),_("span",{key:N.id},[w(h(N.spuName),1),z<e.items.length-1&&e.items.length>1?(n(),_("span",q,"+")):M("",!0)]))),128))])]),i("div",B,[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(qe)(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",G,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",X,[...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};
|