1 |
- import{_ as Ne,__tla as Re}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{_ as Me,__tla as Ye}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{d as Ae,y as Fe,e as Pe,r as s,u as ze,x as He,b as Oe,a3 as je,o as n,c as _,f as l,A as o,B as i,a,C as c,F as d,Q as v,a2 as M,a4 as ie,aC as Ke,k as _e,D as w,v as Le,E as h,dx as qe,a9 as Be,aa as Je,_ as Qe,J as We,a8 as Ge,R as Xe,S as Ze,U as $e,I as ea,H as aa,K as ta,V as la,L as ra,M as oa,__tla as na}from"./index-a9d538d5.js";import{E as ua,__tla as sa}from"./el-card-0ea446a3.js";import ia,{__tla as _a}from"./OrderDeliveryForm-fb4aa2d2.js";import ca,{__tla as da}from"./OrderUpdateRemarkForm-a000a94d.js";import{m as pa,l as ma,n as ya,o as fa,__tla as va}from"./index-6451d5a2.js";import{a as ha,__tla as ba}from"./index-0d33d3c5.js";import{g as ga,__tla as ka}from"./index-95f2e02a.js";import{e as wa,D as E,a as z,c as xa,__tla as Va}from"./dict-0e53af99.js";import{g as Ia,__tla as Ca}from"./index-ad8df48e.js";import Ta,{__tla as Da}from"./OrderIndex-c01c0121.js";import{_ as Ua,__tla as Sa}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-86d7c521.js";import{d as Ea}from"./download-20922b56.js";import{u as Na,__tla as Ra}from"./useMessage-d5cbbfad.js";import{_ as Ma}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ya}from"./index-95ad39b3.js";import{__tla as Aa}from"./Dialog-f354f369.js";import{__tla as Fa}from"./OrderBaseInfo-d4c8b67f.js";import{__tla as Pa}from"./SPuUploadImg-40b4a494.js";import{__tla as za}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-7f19656e.js";import{__tla as Ha}from"./index-ab25a150.js";import{__tla as Oa}from"./el-image-viewer-2e77a3e7.js";import{__tla as ja}from"./formatTime-8985a9d0.js";import{__tla as Ka}from"./OrderProduct-6c9a8b4b.js";import{__tla as La}from"./el-descriptions-item-fc5f9080.js";import{__tla as qa}from"./DictTag.vue_vue_type_script_lang-9e4dd0a0.js";import"./color-6e929987.js";import{__tla as Ba}from"./OrderComment-bf80345a.js";import{__tla as Ja}from"./el-image-2dadd73e.js";import{__tla as Qa}from"./OrderService-90439530.js";import{__tla as Wa}from"./AfterSale-dbddf774.js";import{__tla as Ga}from"./OrderLogistics-b0f2f4ff.js";import{__tla as Xa}from"./el-timeline-item-f8774d6b.js";import{__tla as Za}from"./orderPay-61fc6ba7.js";import{__tla as $a}from"./OrderLogs-8efcb6a4.js";import{__tla as et}from"./el-tree-select-ca2609f2.js";import{__tla as at}from"./index-d4926972.js";import"./tree-fd3a041e.js";let ce,tt=Promise.all([(()=>{try{return Re}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}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-1182e465"),b=b(),oa(),b))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],ce=Ma(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=Fe(),$=Pe(()=>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}=ze(),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 pa(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 ma(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 ya(u.value)):t=await fa(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 ga();re.value=u})(),await m(),await le(),Ve.value=await ha(),Ie.value=await Ia()}),(u,t)=>{const k=Be,N=Je,oe=Qe,C=We,ne=Ge,T=Xe,D=Ze,y=$e,Ce=ea,ue=aa,se=ta,Te=la,De=ua,Ue=Me,Se=Ne,Ee=je("hasPermi");return n(),_(d,null,[l(Se,{class:"container"},{default:o(()=>[i("div",H,[a($)?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(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(wa)(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(z)(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(z)(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(z)(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(A)},{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),[[Le,a(x)]]),l(se,null,{default:o(()=>[(n(!0),_(d,null,v(a(V),(e,F)=>(n(),c(ue,{class:"card",key:F,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:U=>function(f){V.value[f].showSetting=!0}(F),onMouseout:U=>function(f){V.value[f].showSetting=!1}(F)},{default:o(()=>[l(De,{onClick:U=>((f,S,R)=>{const P=S.id;$.value?ve({name:"TradeOrderMobileDetail",params:{id:P}}):ee.value.open(f,S,R)})("view",e,e.no)},{default:o(()=>{var f,S;return[i("div",K,[i("p",L,[(n(!0),_(d,null,v(e.items,(R,P)=>(n(),_("span",{key:R.id},[w(h(R.spuName),1),P<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((S=a(xa)(a(E).TRADE_ORDER_STATUS,e.status))==null?void 0:S.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(ia,{ref_key:"deliveryFormRef",ref:ge,onSuccess:m},null,512),l(ca,{ref_key:"updateRemarkForm",ref:ke,onSuccess:m},null,512),l(Ua,{ref_key:"updateAddressFormRef",ref:we,onSuccess:m},null,512),l(Ta,{ref_key:"formRef",ref:ee,onSuccess:m},null,512)],64)}}}),[["__scopeId","data-v-1182e465"]])});export{tt as __tla,ce as default};
|