index-4f890943.js 12 KB

1
  1. import{_ as De,__tla as Ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{_ as Se,__tla as Ee}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{d as Ne,y as Re,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,A as o,B as i,a,C as m,F as p,Q as f,a2 as R,a4 as te,aC as ze,k as le,D as I,v as He,E as b,dx as Oe,a9 as Ke,aa as Le,_ as je,J as qe,a8 as Be,R as Je,S as Qe,U as We,I as Ge,K as Xe,V as Ze,H as $e,L as ea,M as aa,__tla as ta}from"./index-6e0fa573.js";import{E as la,__tla as ra}from"./el-card-f999e23d.js";import oa,{__tla as ua}from"./OrderDeliveryForm-7f30244e.js";import na,{__tla as sa}from"./OrderUpdateRemarkForm-64f2437f.js";import{m as _a,l as ia,n as ca,o as ma,__tla as pa}from"./index-01fa4814.js";import{a as da,__tla as ya}from"./index-78726269.js";import{g as fa,__tla as va}from"./index-41b6ecec.js";import{I as ha,__tla as ba}from"./ImageCard-2e4257de.js";import{e as ga,D as E,a as F,c as ka,__tla as Va}from"./dict-33efee75.js";import{g as Ia,__tla as wa}from"./index-11c9c073.js";import Ca,{__tla as xa}from"./OrderIndex-c6d60d21.js";import{_ as Ta,__tla as Da}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-583684a0.js";import{d as Ua}from"./download-20922b56.js";import{u as Sa,__tla as Ea}from"./useMessage-7f978edc.js";import{_ as Na}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ra}from"./index-99c4720b.js";import{__tla as Ma}from"./Dialog-a16029e3.js";import{__tla as Ya}from"./OrderBaseInfo-e42799cd.js";import{__tla as Aa}from"./SPuUploadImg-57a4a7e3.js";import{__tla as Fa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-16273a08.js";import{__tla as Pa}from"./index-f34352a4.js";import{__tla as za}from"./el-image-viewer-bd37a3c0.js";import{__tla as Ha}from"./formatTime-4408999b.js";import{__tla as Oa}from"./OrderProduct-ce1993b2.js";import{__tla as Ka}from"./el-descriptions-item-868c8d3f.js";import{__tla as La}from"./DictTag.vue_vue_type_script_lang-66c5118d.js";import"./color-6e929987.js";import{__tla as ja}from"./OrderComment-86c3eeaa.js";import{__tla as qa}from"./el-image-f27c893c.js";import{__tla as Ba}from"./OrderService-e49219cd.js";import{__tla as Ja}from"./AfterSale-4b581e1f.js";import{__tla as Qa}from"./OrderLogistics-760b1d53.js";import{__tla as Wa}from"./el-timeline-item-248613ef.js";import{__tla as Ga}from"./orderPay-0146c20f.js";import{__tla as Xa}from"./OrderLogs-49a307fc.js";import{__tla as Za}from"./el-tree-select-490c6b16.js";import{__tla as $a}from"./index-be0d2849.js";import"./tree-0af4953a.js";let re,et=Promise.all([(()=>{try{return Ue}catch{}})(),(()=>{try{return Ee}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 Ea}catch{}})(),(()=>{try{return Ra}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 Ha}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return ja}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{}})()]).then(async()=>{let P,z,H,O,K,L,j,q,B;P={class:"search"},z={style:{"text-align":"right"},class:"search-input"},H={class:"searchMore"},O={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},K={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},L={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=Na(Ne({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=Sa(),ue=Re(),J=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,Q=s(),{currentRoute:at,push:ie}=Ye(),M=s(!0),Y=s(!1),W=s(2),C=s([]),G=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=G.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 N in t)try{k.value[V].type==N&&(k.value[V].count=t[N]),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=Ke,N=Le,$=je,T=qe,ee=Be,D=Je,U=Qe,v=We,be=Ge,ae=Xe,ge=Ze,ke=la,Ve=$e,Ie=Se,we=De,Ce=Pe("hasPermi");return u(),_(p,null,[r(we,{class:"container"},{default:o(()=>[i("div",P,[a(J)?R("",!0):(u(),m(N,{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",H,[r(ge,{ref_key:"queryFormRef",ref:G,inline:!0,model:a(l),class:"-mb-15px","label-width":"80px"},{default:o(()=>[g.merchantId?R("",!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(E).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(E).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(E).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(E).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),[[He,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:S=>function(c){C.value[c].showSetting=!0}(A),onMouseout:S=>function(c){C.value[c].showSetting=!1}(A)},{default:o(()=>[r(ke,{onClick:S=>((c,h,xe)=>{const Te=h.id;J.value?ie({name:"TradeOrderMobileDetail",params:{id:Te}}):Q.value.open(c,h,xe)})("view",e,e.no)},{default:o(()=>{var S;return[i("div",O,[i("p",K,[(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",L,"+")):R("",!0)]))),128))])]),r(ha,{url:e.items&&((S=e.items[0])==null?void 0:S.picUrl),width:206,height:116},{label:o(()=>{var h;return[i("p",null,"\xA5"+b(a(Oe)(e.totalPrice)),1),i("p",null,b(e.no),1),i("p",null,b((h=a(ka)(a(E).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)):R("",!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:Q,onSuccess:y},null,512)],64)}}}),[["__scopeId","data-v-1c593b49"]])});export{et as __tla,re as default};