index-4502a505.js 13 KB

1
  1. import{_ as Ce,__tla as Ue}from"./ContentWrap-1ba5c8ca.js";import{_ as De,__tla as Se}from"./index-a786614b.js";import{d as Ee,Y as Re,K as Me,r as s,u as Ne,e as Pe,l as Ae,o as u,c as _,f as r,w as o,g as i,a,v as c,F as d,q as p,P as w,R as Ye,dD as Fe,x as ze,n as D,a4 as je,t as g,at as Oe,W as He,X as Ke,j as qe,C as Be,V as Le,y as Xe,z as We,A as $e,B as Ge,E as Je,i as Qe,D as Ze,p as ea,k as aa,_ as la,__tla as ta}from"./index-6d7b82ba.js";import{E as ra,__tla as oa}from"./el-card-1a4b93b1.js";import ua,{__tla as na}from"./OrderDeliveryForm-fbb16216.js";import sa,{__tla as ia}from"./OrderUpdateRemarkForm-0226b445.js";import{l as _a,m as ca,n as da,__tla as pa}from"./index-c52f3d88.js";import{a as ma,__tla as ya}from"./index-c4daa4a1.js";import{h as fa,__tla as va}from"./index-abce4807.js";import{e as ha,D as S,a as F,c as ba,__tla as ga}from"./dict-efb5f3b6.js";import{g as ka,__tla as Ia}from"./index-de7bf986.js";import{D as ie}from"./constants-a3c69b57.js";import Va,{__tla as wa}from"./OrderIndex-d35aa2bc.js";import xa,{__tla as Ta}from"./OrderUpdateAddressForm-edaf4a4a.js";import{__tla as Ca}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as Ua}from"./index-e37504b6.js";import{__tla as Da}from"./Dialog-78181bae.js";import{__tla as Sa}from"./OrderBaseInfo-345fb95a.js";import{__tla as Ea}from"./SPuUploadImg-3b4ba08d.js";import{__tla as Ra}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b2231227.js";import{__tla as Ma}from"./index-8e19be94.js";import{__tla as Na}from"./el-image-viewer-4a19ded4.js";import{__tla as Pa}from"./useMessage-be161634.js";import{__tla as Aa}from"./formatTime-d24faf41.js";import{__tla as Ya}from"./OrderProduct-71517108.js";import{__tla as Fa}from"./el-descriptions-item-a49b1792.js";import{__tla as za}from"./DictTag-300da1c0.js";import"./color-6e929987.js";import{__tla as ja}from"./OrderComment-b4028e02.js";import{__tla as Oa}from"./el-image-afb9e567.js";import{__tla as Ha}from"./OrderService-e131d256.js";import{__tla as Ka}from"./AfterSale-2cc5199e.js";import{__tla as qa}from"./OrderLogistics-8dd9ea09.js";import{__tla as Ba}from"./el-timeline-item-cf907363.js";import{__tla as La}from"./orderPay-fe6d4003.js";import{__tla as Xa}from"./OrderLogs-c99bd582.js";import{__tla as Wa}from"./el-tree-select-23e10a37.js";import{__tla as $a}from"./index-427493d7.js";import"./tree-0af4953a.js";let _e,Ga=Promise.all([(()=>{try{return Ue}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{let z,j,O,H,K,q,B,L,X,W,$,G,J;z={class:"search"},j={style:{"text-align":"right"},class:"search-input"},O={class:"searchMore"},H={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:""},q={key:0},B={style:{display:"flex","align-items":"center"}},L={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"}},X=["src"],W={style:{"line-height":"25px"}},$={class:"year"},G={key:0},J=[(k=>(ea("data-v-03623e2e"),k=k(),aa(),k))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],_e=la(Ee({name:"TradeOrder",__name:"index",props:{merchantId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1},userId:{type:Number,default:void 0}},setup(k){const ce=Re(),Q=Me(()=>ce.getMobile);function de(n){var l=new Date(n);return("0"+(l.getMonth()+1)).slice(-2)+"/"+("0"+l.getDate()).slice(-2)+" "+("0"+l.getHours()).slice(-2)+":"+("0"+l.getMinutes()).slice(-2)}const x=s(!1),pe=()=>{x.value=!x.value},me=()=>{x.value=!1},y=k,Z=s(),{currentRoute:Ja,push:ye}=Ne(),P=s(!0),ee=s(2),T=s([]),ae=s(),t=s({pageNo:1,pageSize:10,status:"",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});Pe({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 f=async()=>{P.value=!0,y.merchantId&&(t.value.merchantId=y.merchantId),y.userId&&(t.value.userId=y.userId);try{const n=await _a(a(t));n.list.forEach(l=>{l.showSetting=!1}),T.value=n.list,ee.value=n.total}finally{P.value=!1,x.value=!1,le()}},E=async()=>{t.value.pageNo=1,await f()},fe=()=>{var n;(n=ae.value)==null||n.resetFields(),t.value={pageNo:1,pageSize:10,status:"",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},E()},ve=s(),he=s(),be=s(),I=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}]),ge=n=>{t.value.status=n.paneName,f()},le=async()=>{const n=s({...t.value});let l;y.merchantId&&(n.value.merId=y.merchantId),y.userId?(n.value.userId=y.userId,l=await ca(n.value)):l=await da(n.value);for(let V in I.value)for(let R in l)try{I.value[V].type==R&&(I.value[V].count=l[R]),I.value[V].type===""&&(I.value[V].count=l[-1])}finally{continue}};let te=s([]);const re=s([]),oe=s([]);return Ae(async()=>{await(async()=>{P.value=!0;const n=await fa();te.value=n})(),await f(),await le(),re.value=await ma(),oe.value=await ka()}),(n,l)=>{const V=He,R=Ke,ue=qe,M=Be,ke=Le,h=Xe,b=We,m=$e,Ie=Ge,ne=Je,se=Qe,Ve=Ze,we=ra,xe=De,Te=Ce;return u(),_(d,null,[r(Te,{class:"container"},{default:o(()=>[i("div",z,[a(Q)?w("",!0):(u(),c(R,{key:0,modelValue:a(t).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(t).status=e),onTabClick:ge,class:"parent-tabs"},{default:o(()=>[(u(!0),_(d,null,p(a(I),e=>(u(),c(V,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),i("div",j,[r(ke,{modelValue:a(t).no,"onUpdate:modelValue":l[1]||(l[1]=e=>a(t).no=e),placeholder:"\u8BA2\u5355\u53F7",onKeyup:Ye(E,["enter"])},{suffix:o(()=>[r(ue,{class:"mr-5px",icon:"ep:search",onClick:E,style:{cursor:"pointer"}})]),append:o(()=>[r(M,{icon:a(Fe),onClick:pe},null,8,["icon"])]),_:1},8,["modelValue"])])]),ze(i("div",O,[r(Ve,{ref_key:"queryFormRef",ref:ae,inline:!0,model:a(t),class:"-mb-15px","label-width":"68px"},{default:o(()=>[k.merchantId?w("",!0):(u(),c(m,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(b,{modelValue:a(t).shopId,"onUpdate:modelValue":l[2]||(l[2]=e=>a(t).shopId=e),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(u(!0),_(d,null,p(a(te),e=>(u(),c(h,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(m,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"payChannelCode"},{default:o(()=>[r(b,{modelValue:a(t).payChannelCode,"onUpdate:modelValue":l[3]||(l[3]=e=>a(t).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,p(a(ha)(a(S).PAY_CHANNEL_CODE),e=>(u(),c(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(m,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(Ie,{modelValue:a(t).createTime,"onUpdate:modelValue":l[4]||(l[4]=e=>a(t).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(m,{label:"\u8BA2\u5355\u6765\u6E90",prop:"terminal"},{default:o(()=>[r(b,{modelValue:a(t).terminal,"onUpdate:modelValue":l[5]||(l[5]=e=>a(t).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,p(a(F)(a(S).TERMINAL),e=>(u(),c(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(m,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"type"},{default:o(()=>[r(b,{modelValue:a(t).type,"onUpdate:modelValue":l[6]||(l[6]=e=>a(t).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,p(a(F)(a(S).TRADE_ORDER_TYPE),e=>(u(),c(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(m,{label:"\u914D\u9001\u65B9\u5F0F",prop:"deliveryType"},{default:o(()=>[r(b,{modelValue:a(t).deliveryType,"onUpdate:modelValue":l[7]||(l[7]=e=>a(t).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,p(a(F)(a(S).TRADE_DELIVERY_TYPE),e=>(u(),c(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(t).deliveryType===a(ie).EXPRESS.type?(u(),c(m,{key:1,label:"\u5FEB\u9012\u516C\u53F8",prop:"logisticsId"},{default:o(()=>[r(b,{modelValue:a(t).logisticsId,"onUpdate:modelValue":l[8]||(l[8]=e=>a(t).logisticsId=e),clearable:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,p(a(oe),e=>(u(),c(h,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):w("",!0),a(t).deliveryType===a(ie).PICK_UP.type?(u(),c(m,{key:2,label:"\u81EA\u63D0\u95E8\u5E97",prop:"pickUpStoreId"},{default:o(()=>[r(b,{modelValue:a(t).pickUpStoreId,"onUpdate:modelValue":l[9]||(l[9]=e=>a(t).pickUpStoreId=e),clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:o(()=>[(u(!0),_(d,null,p(a(re),e=>(u(),c(h,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):w("",!0),r(se,null,{default:o(()=>[r(ne,null,{default:o(()=>[r(m,null,{default:o(()=>[r(M,{onClick:me},{default:o(()=>[D(" \u6536\u8D77 ")]),_:1}),r(M,{onClick:fe},{default:o(()=>[D(" \u91CD\u7F6E ")]),_:1}),r(M,{onClick:E,plain:"",type:"primary"},{default:o(()=>[r(ue,{class:"mr-5px",icon:"ep:search"}),D(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[je,a(x)]]),r(se,null,{default:o(()=>[(u(!0),_(d,null,p(a(T),(e,A)=>(u(),c(ne,{class:"card",key:A,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:C=>function(v){T.value[v].showSetting=!0}(A),onMouseout:C=>function(v){T.value[v].showSetting=!1}(A)},{default:o(()=>[r(we,{onClick:C=>((v,U,N)=>{const Y=U.id;Q.value?ye({name:"TradeOrderMobileDetail",params:{id:Y}}):Z.value.open(v,U,N)})("view",e,e.no)},{default:o(()=>{var v,U;return[i("div",H,[i("p",K,[(u(!0),_(d,null,p(e.items,(N,Y)=>(u(),_("span",{key:N.id},[D(g(N.spuName),1),Y<e.items.length-1&&e.items.length>1?(u(),_("span",q,"+")):w("",!0)]))),128))])]),i("div",B,[i("div",L,[i("img",{src:e.items&&((v=e.items[0])==null?void 0:v.picUrl),style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,X)]),i("div",W,[i("p",null,"\xA5"+g(a(Oe)(e.payPrice)),1),i("p",null,g(e.no),1),i("p",null,g((U=a(ba)(a(S).TRADE_ORDER_STATUS,e.status))==null?void 0:U.label),1),i("p",null,g(e.user.nickname),1),i("p",null,[i("span",$,g((C=e.createTime,new Date(C).getFullYear()+"/")),1),D(g(de(e.createTime)),1)])])])];var C}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(T).length==0?(u(),_("div",G,[...J])):w("",!0),r(xe,{limit:a(t).pageSize,"onUpdate:limit":l[10]||(l[10]=e=>a(t).pageSize=e),page:a(t).pageNo,"onUpdate:page":l[11]||(l[11]=e=>a(t).pageNo=e),total:a(ee),onPagination:f},null,8,["limit","page","total"])]),_:1}),r(ua,{ref_key:"deliveryFormRef",ref:ve,onSuccess:f},null,512),r(sa,{ref_key:"updateRemarkForm",ref:he,onSuccess:f},null,512),r(xa,{ref_key:"updateAddressFormRef",ref:be,onSuccess:f},null,512),r(Va,{ref_key:"formRef",ref:Z,onSuccess:f},null,512)],64)}}}),[["__scopeId","data-v-03623e2e"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/index.vue"]])});export{Ga as __tla,_e as default};