index-9e175965.js 12 KB

1
  1. import{_ as De,__tla as Ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{_ as Ne,__tla as Re}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{d as Se,y as Ee,e as Me,r as s,u as Ye,x as Ae,b as Fe,a3 as Pe,o as u,c as _,f as r,B as o,C as i,a,A as m,F as p,R as f,D as E,a4 as te,aC as ze,k as le,E as I,v as Oe,G as b,dx as Le,a9 as He,aa as Ke,_ as je,K as qe,a8 as Be,S as Ge,U as Je,V as We,J as Qe,L as Xe,W as Ze,I as $e,M as ea,N as aa,__tla as ta}from"./index-e8bff8cb.js";import{E as la,__tla as ra}from"./el-card-f9558d99.js";import oa,{__tla as ua}from"./OrderDeliveryForm-ff48efbc.js";import na,{__tla as sa}from"./OrderUpdateRemarkForm-2d292e26.js";import{m as _a,l as ia,n as ca,o as ma,__tla as pa}from"./index-5d2c0183.js";import{a as da,__tla as ya}from"./index-07cea16b.js";import{g as fa,__tla as va}from"./index-dc2d6a93.js";import{I as ha,__tla as ba}from"./ImageCard-5f2b8ac2.js";import{e as ga,D as R,a as F,c as ka,__tla as Va}from"./dict-4a54e490.js";import{g as Ia,__tla as wa}from"./index-60b1aeef.js";import Ca,{__tla as xa}from"./OrderIndex-6f7a18c7.js";import{_ as Ta,__tla as Da}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-5579f57c.js";import{d as Ua}from"./download-20922b56.js";import{u as Na,__tla as Ra}from"./useMessage-de42a595.js";import{_ as Sa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ea}from"./index-35928fe5.js";import{__tla as Ma}from"./Dialog-4d17ac25.js";import{__tla as Ya}from"./OrderBaseInfo-028fc8d4.js";import{__tla as Aa}from"./SPuUploadImg-792a299f.js";import{__tla as Fa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-1394f284.js";import{__tla as Pa}from"./index-32ca9885.js";import{__tla as za}from"./el-image-viewer-aab7739e.js";import{__tla as Oa}from"./formatTime-4fdd5566.js";import{__tla as La}from"./OrderProduct-0584792c.js";import{__tla as Ha}from"./el-descriptions-item-d429ad13.js";import{__tla as Ka}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import"./color-6e929987.js";import{__tla as ja}from"./OrderComment-1acc8e01.js";import{__tla as qa}from"./el-image-7cacfc0f.js";import{__tla as Ba}from"./OrderService-4fe557ad.js";import{__tla as Ga}from"./AfterSale-ca4a39ce.js";import{__tla as Ja}from"./OrderLogistics-b150e884.js";import{__tla as Wa}from"./el-timeline-item-06d19d31.js";import{__tla as Qa}from"./orderPay-89f2a1e8.js";import{__tla as Xa}from"./OrderLogs-f58bb2be.js";import{__tla as Za}from"./el-tree-select-d9ced475.js";import{__tla as $a}from"./index-4bde5d87.js";import"./tree-0af4953a.js";let re,et=Promise.all([(()=>{try{return Ue}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{let P,z,O,L,H,K,j,q,B;P={class:"search"},z={style:{"text-align":"right"},class:"search-input"},O={class:"searchMore"},L={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},H={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},K={key:0},j={class:"year"},q={key:0},B=[(g=>(ea("data-v-1c593b49"),g=g(),aa(),g))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],re=Sa(Se({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=Na(),ue=Ee(),G=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 w=s(!1),se=()=>{w.value=!w.value},_e=()=>{w.value=!1},d=g,J=s(),{currentRoute:at,push:ie}=Ye(),M=s(!0),Y=s(!1),W=s(2),C=s([]),Q=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});Ae({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(),Y.value=!0;const n=await _a(a(l));Ua.excel(n,"\u8BA2\u5355\u8BE6\u7EC6.xls")}catch{}finally{Y.value=!1}},y=async()=>{M.value=!0,d.merchantId&&(l.value.merchantId=d.merchantId),d.userId&&(l.value.userId=d.userId);try{const n=await ia(a(l));n.list.forEach(t=>{t.showSetting=!1}),C.value=n.list,W.value=n.total}finally{M.value=!1,w.value=!1,X()}},x=async()=>{l.value.pageNo=1,await y()},me=()=>{var n;(n=Q.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},x()},pe=s(),de=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;d.merchantId&&(n.value.merId=d.merchantId),d.userId?(n.value.userId=d.userId,t=await ca(n.value)):t=await ma(n.value);for(let V in k.value)for(let S in t)try{k.value[V].type==S&&(k.value[V].count=t[S]),k.value[V].type===""&&(k.value[V].count=t[-1]+t[-2])}finally{continue}};let Z=s([]);const ve=s([]),he=s([]);return Fe(async()=>{await(async()=>{M.value=!0;const n=await fa();Z.value=n})(),await y(),await X(),ve.value=await da(),he.value=await Ia()}),(n,t)=>{const V=He,S=Ke,$=je,T=qe,ee=Be,D=Ge,U=Je,v=We,be=Qe,ae=Xe,ge=Ze,ke=la,Ve=$e,Ie=Ne,we=De,Ce=Pe("hasPermi");return u(),_(p,null,[r(we,{class:"container"},{default:o(()=>[i("div",P,[a(G)?E("",!0):(u(),m(S,{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),_(p,null,f(a(k),e=>(u(),m(V,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),i("div",z,[r(ee,{modelValue:a(l).no,"onUpdate:modelValue":t[1]||(t[1]=e=>a(l).no=e),placeholder:"\u8BA2\u5355\u53F7",onKeyup:te(x,["enter"])},{suffix:o(()=>[r($,{class:"mr-5px",icon:"ep:search",onClick:x,style:{cursor:"pointer"}})]),append:o(()=>[r(T,{icon:a(ze),onClick:se},null,8,["icon"])]),_:1},8,["modelValue"])])]),le(i("div",O,[r(ge,{ref_key:"queryFormRef",ref:Q,inline:!0,model:a(l),class:"-mb-15px","label-width":"80px"},{default:o(()=>[g.merchantId?E("",!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),_(p,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),_(p,null,f(a(ga)(a(R).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),_(p,null,f(a(F)(a(R).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),_(p,null,f(a(F)(a(R).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),_(p,null,f(a(F)(a(R).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(x,["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(Y)},{default:o(()=>[I(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[Ce,["trade:order:export"]]]),r(T,{onClick:_e},{default:o(()=>[I(" \u6536\u8D77 ")]),_:1}),r(T,{onClick:me},{default:o(()=>[I(" \u91CD\u7F6E ")]),_:1}),r(T,{onClick:x,plain:"",type:"primary"},{default:o(()=>[r($,{class:"mr-5px",icon:"ep:search"}),I(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Oe,a(w)]]),r(ae,null,{default:o(()=>[(u(!0),_(p,null,f(a(C),(e,A)=>(u(),m(Ve,{class:"card",key:A,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:N=>function(c){C.value[c].showSetting=!0}(A),onMouseout:N=>function(c){C.value[c].showSetting=!1}(A)},{default:o(()=>[r(ke,{onClick:N=>((c,h,xe)=>{const Te=h.id;G.value?ie({name:"TradeOrderMobileDetail",params:{id:Te}}):J.value.open(c,h,xe)})("view",e,e.no)},{default:o(()=>{var N;return[i("div",L,[i("p",H,[(u(!0),_(p,null,f(e.items,(c,h)=>(u(),_("span",{key:c.id},[I(b(c.spuName),1),h<e.items.length-1&&e.items.length>1?(u(),_("span",K,"+")):E("",!0)]))),128))])]),r(ha,{url:e.items&&((N=e.items[0])==null?void 0:N.picUrl),width:206,height:116},{label:o(()=>{var h;return[i("p",null,"\xA5"+b(a(Le)(e.totalPrice)),1),i("p",null,b(e.no),1),i("p",null,b((h=a(ka)(a(R).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),I(b(ne(e.createTime)),1)])];var c}),_:2},1032,["url"])]}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(C).length==0?(u(),_("div",q,B)):E("",!0),r(Ie,{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(oa,{ref_key:"deliveryFormRef",ref:pe,onSuccess:y},null,512),r(na,{ref_key:"updateRemarkForm",ref:de,onSuccess:y},null,512),r(Ta,{ref_key:"updateAddressFormRef",ref:ye,onSuccess:y},null,512),r(Ca,{ref_key:"formRef",ref:J,onSuccess:y},null,512)],64)}}}),[["__scopeId","data-v-1c593b49"]])});export{et as __tla,re as default};