index-8730fb42.js 15 KB

1
  1. import{_ as je,__tla as He}from"./ContentWrap-7c73ab26.js";import{_ as Ke,__tla as Xe}from"./index-3118d255.js";import{d as Be,Y as Ge,K as Je,r as d,u as Qe,e as We,l as Ze,Q as $e,o,c as _,f as t,w as r,g as s,a,v as i,F as m,q as v,P as b,R as ea,dE as Ie,x as Y,a4 as L,n as g,t as w,aS as aa,at as la,W as ta,X as ra,j as ua,C as oa,V as na,y as sa,z as ia,A as _a,B as da,E as ca,i as pa,D as ma,aT as ya,p as va,k as fa,_ as ha,__tla as ba}from"./index-bd9277a1.js";import{E as ga,__tla as ka}from"./el-card-bc8cec83.js";import{E as Va,a as Ca,b as Ia,__tla as wa}from"./el-dropdown-item-868faedd.js";import Ea,{__tla as Ta}from"./OrderDeliveryForm-536af616.js";import xa,{__tla as Da}from"./OrderUpdateRemarkForm-39c4b294.js";import{k as Sa,l as Ua,m as Ra,__tla as Pa}from"./index-d2d7dbc2.js";import{a as Ma,__tla as Na}from"./index-dc2d3f8a.js";import{a as O,D as x,e as Aa,c as qa,__tla as za}from"./dict-4b2e9fd3.js";import{g as Ya,__tla as Oa}from"./index-279b10c2.js";import{D as F,T as j}from"./constants-40f13f5e.js";import Fa,{__tla as La}from"./OrderIndex-9a3534b0.js";import ja,{__tla as Ha}from"./OrderUpdateAddressForm-4fa6ff02.js";import{__tla as Ka}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as Xa}from"./index-49ecf2ef.js";import{__tla as Ba}from"./Dialog-eba103da.js";import{__tla as Ga}from"./OrderBaseInfo-4dc90c07.js";import{__tla as Ja}from"./SPuUploadImg-ee64a5a4.js";import{__tla as Qa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-24a8f241.js";import{__tla as Wa}from"./index-b80ba4d7.js";import{__tla as Za}from"./el-image-viewer-995341ab.js";import{__tla as $a}from"./useMessage-274788d4.js";import{__tla as el}from"./formatTime-8639ba1a.js";import{__tla as al}from"./OrderProduct-16ebad21.js";import{__tla as ll}from"./el-descriptions-item-2abce27d.js";import{__tla as tl}from"./DictTag-d6503fab.js";import"./color-6e929987.js";import{__tla as rl}from"./OrderComment-35318f71.js";import{__tla as ul}from"./el-image-c6b72263.js";import{__tla as ol}from"./OrderService-c2ccdc00.js";import{__tla as nl}from"./AfterSale-64e4ab75.js";import{__tla as sl}from"./index-51b8eed1.js";import{__tla as il}from"./OrderLogistics-19ecb255.js";import{__tla as _l}from"./orderPay-4e3b9e74.js";import{__tla as dl}from"./OrderLogs-58953007.js";import{__tla as cl}from"./el-timeline-item-ee30bc55.js";import{__tla as pl}from"./el-tree-select-9425e295.js";import{__tla as ml}from"./index-e83ed2f1.js";import"./tree-0af4953a.js";let we,yl=Promise.all([(()=>{try{return He}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return el}catch{}})(),(()=>{try{return al}catch{}})(),(()=>{try{return ll}catch{}})(),(()=>{try{return tl}catch{}})(),(()=>{try{return rl}catch{}})(),(()=>{try{return ul}catch{}})(),(()=>{try{return ol}catch{}})(),(()=>{try{return nl}catch{}})(),(()=>{try{return sl}catch{}})(),(()=>{try{return il}catch{}})(),(()=>{try{return _l}catch{}})(),(()=>{try{return dl}catch{}})(),(()=>{try{return cl}catch{}})(),(()=>{try{return pl}catch{}})(),(()=>{try{return ml}catch{}})()]).then(async()=>{let H,K,X,B,G,J,Q,W,Z,$,ee,ae,le;H={class:"search"},K={style:{"text-align":"right"},class:"search-input"},X={class:"searchMore"},B={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},G={style:{width:"95%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:""},J={key:0},Q={style:{display:"flex","align-items":"center"}},W={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"}},Z=["src"],$={style:{"line-height":"25px"}},ee={class:"year"},ae={key:0},le=[(E=>(va("data-v-03623e2e"),E=E(),fa(),E))(()=>s("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],we=ha(Be({name:"TradeOrder",__name:"index",props:{merchantId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1},userId:{type:Number,default:void 0}},setup(E){const Ee=Ge(),te=Je(()=>Ee.getMobile);function Te(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 D=d(!1);function re(n){S.value[n].showSetting=!0}function ue(n){S.value[n].showSetting=!1}const xe=()=>{D.value=!D.value},De=()=>{D.value=!1},k=E,oe=d(),{currentRoute:vl,push:Se}=Qe(),ne=d(!0),se=d(2),S=d([]),ie=d(),u=d({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}),U=We({queryParam:""}),_e=d([{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"}]),Ue=n=>{var l;(l=_e.value.filter(y=>y.value!==n))==null||l.forEach(y=>{u.value.hasOwnProperty(y.value)&&delete u.value[y.value]})},V=async()=>{ne.value=!0,k.merchantId&&(u.value.merchantId=k.merchantId),k.userId&&(u.value.userId=k.userId);try{const n=await Sa(a(u));n.list.forEach(l=>{l.showSetting=!1}),S.value=n.list,se.value=n.total}finally{ne.value=!1,D.value=!1,me()}},M=async()=>{u.value.pageNo=1,await V()},Re=()=>{var n;(n=ie.value)==null||n.resetFields(),u.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},M()},de=d(),ce=d(),pe=d(),T=d([{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}]),Pe=n=>{u.value.status=n.paneName,V()},me=async()=>{const n=d({});let l;k.merchantId&&(n.value.merId=k.merchantId),k.userId?(n.value.userId=k.userId,l=await Ua(n.value.userId)):l=await Ra(n.value);for(let y in T.value)for(let N in l)try{T.value[y].type==N&&(T.value[y].count=l[N]),T.value[y].type===""&&(T.value[y].count=l[-1])}finally{continue}},ye=d([]),ve=d([]);return Ze(async()=>{await V(),await me(),ye.value=await Ma(),ve.value=await Ya()}),(n,l)=>{const y=ta,N=ra,fe=ua,A=oa,he=na,C=sa,I=ia,f=_a,Me=da,be=ca,ge=pa,Ne=ma,Ae=ya,q=Va,qe=Ca,ze=Ia,Ye=ga,Oe=Ke,Fe=je,Le=$e("hasPermi");return o(),_(m,null,[t(Fe,{class:"container"},{default:r(()=>[s("div",H,[a(te)?b("",!0):(o(),i(N,{key:0,modelValue:a(u).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(u).status=e),onTabClick:Pe,class:"parent-tabs"},{default:r(()=>[(o(!0),_(m,null,v(a(T),e=>(o(),i(y,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),s("div",K,[t(he,{modelValue:a(u).no,"onUpdate:modelValue":l[1]||(l[1]=e=>a(u).no=e),placeholder:"\u8BA2\u5355\u53F7",onKeyup:ea(M,["enter"])},{suffix:r(()=>[t(fe,{class:"mr-5px",icon:"ep:search",onClick:M,style:{cursor:"pointer"}})]),append:r(()=>[t(A,{icon:a(Ie),onClick:xe},null,8,["icon"])]),_:1},8,["modelValue"])])]),Y(s("div",X,[t(Ne,{ref_key:"queryFormRef",ref:ie,inline:!0,model:a(u),class:"-mb-15px","label-width":"68px"},{default:r(()=>[t(f,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status"},{default:r(()=>[t(I,{modelValue:a(u).status,"onUpdate:modelValue":l[2]||(l[2]=e=>a(u).status=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(O)(a(x).TRADE_ORDER_STATUS),e=>(o(),i(C,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(f,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"payChannelCode"},{default:r(()=>[t(I,{modelValue:a(u).payChannelCode,"onUpdate:modelValue":l[3]||(l[3]=e=>a(u).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(Aa)(a(x).PAY_CHANNEL_CODE),e=>(o(),i(C,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[t(Me,{modelValue:a(u).createTime,"onUpdate:modelValue":l[4]||(l[4]=e=>a(u).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}),t(f,{label:"\u8BA2\u5355\u6765\u6E90",prop:"terminal"},{default:r(()=>[t(I,{modelValue:a(u).terminal,"onUpdate:modelValue":l[5]||(l[5]=e=>a(u).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(O)(a(x).TERMINAL),e=>(o(),i(C,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(f,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"type"},{default:r(()=>[t(I,{modelValue:a(u).type,"onUpdate:modelValue":l[6]||(l[6]=e=>a(u).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(O)(a(x).TRADE_ORDER_TYPE),e=>(o(),i(C,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(f,{label:"\u914D\u9001\u65B9\u5F0F",prop:"deliveryType"},{default:r(()=>[t(I,{modelValue:a(u).deliveryType,"onUpdate:modelValue":l[7]||(l[7]=e=>a(u).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(O)(a(x).TRADE_DELIVERY_TYPE),e=>(o(),i(C,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(u).deliveryType===a(F).EXPRESS.type?(o(),i(f,{key:0,label:"\u5FEB\u9012\u516C\u53F8",prop:"logisticsId"},{default:r(()=>[t(I,{modelValue:a(u).logisticsId,"onUpdate:modelValue":l[8]||(l[8]=e=>a(u).logisticsId=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(ve),e=>(o(),i(C,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):b("",!0),a(u).deliveryType===a(F).PICK_UP.type?(o(),i(f,{key:1,label:"\u81EA\u63D0\u95E8\u5E97",prop:"pickUpStoreId"},{default:r(()=>[t(I,{modelValue:a(u).pickUpStoreId,"onUpdate:modelValue":l[9]||(l[9]=e=>a(u).pickUpStoreId=e),clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(o(!0),_(m,null,v(a(ye),e=>(o(),i(C,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):b("",!0),t(f,{label:"\u805A\u5408\u641C\u7D22"},{default:r(()=>[Y(t(he,{modelValue:a(u)[a(U).queryParam],"onUpdate:modelValue":l[11]||(l[11]=e=>a(u)[a(U).queryParam]=e),type:a(U).queryParam==="userId"?"number":"text",clearable:"",placeholder:"\u8BF7\u8F93\u5165"},{prepend:r(()=>[t(I,{modelValue:a(U).queryParam,"onUpdate:modelValue":l[10]||(l[10]=e=>a(U).queryParam=e),class:"!w-110px",clearable:"",placeholder:"\u5168\u90E8",onChange:Ue},{default:r(()=>[(o(!0),_(m,null,v(a(_e),e=>(o(),i(C,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","type"]),[[L,!0]])]),_:1}),t(ge,null,{default:r(()=>[t(be,null,{default:r(()=>[t(f,null,{default:r(()=>[t(A,{onClick:De},{default:r(()=>[g(" \u6536\u8D77 ")]),_:1}),t(A,{onClick:Re},{default:r(()=>[g(" \u91CD\u7F6E ")]),_:1}),t(A,{onClick:M,plain:"",type:"primary"},{default:r(()=>[t(fe,{class:"mr-5px",icon:"ep:search"}),g(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[L,a(D)]]),t(ge,null,{default:r(()=>[(o(!0),_(m,null,v(a(S),(e,R)=>(o(),i(be,{class:"card",key:R,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:P=>re(R),onMouseout:P=>ue(R)},{default:r(()=>[t(Ye,{onClick:P=>((z,c,p)=>{const h=c.id;te.value?Se({name:"TradeOrderMobileDetail",params:{id:h}}):oe.value.open(z,c,p)})("view",e,e.no)},{default:r(()=>{var z;return[s("div",B,[s("p",G,[(o(!0),_(m,null,v(e.items,(c,p)=>(o(),_("span",{key:c.id},[g(w(c.spuName),1),p<e.items.length-1&&e.items.length>1?(o(),_("span",J,"+")):b("",!0)]))),128))]),E.merchantId?b("",!0):(o(),_("div",{key:0,class:"setting",onClick:l[13]||(l[13]=aa(()=>{},["stop"]))},[Y((o(),i(ze,{onCommand:l[12]||(l[12]=c=>n.handleCommand(c,n.row))},{dropdown:r(()=>[t(qe,{onMouseover:c=>re(R),onMouseout:c=>ue(R)},{default:r(()=>[e.deliveryType===a(F).EXPRESS.type&&e.status===a(j).UNDELIVERED.status?(o(),i(q,{key:0,onClick:c=>{var h;return p=e.id,void((h=de.value)==null?void 0:h.open("\u8BA2\u5355\u5217\u8868",p));var p}},{default:r(()=>[g("\u53D1\u8D27")]),_:2},1032,["onClick"])):b("",!0),t(q,{onClick:c=>{var h;return p=e.id,e.remark,void((h=ce.value)==null?void 0:h.open(p));var p}},{default:r(()=>[g("\u5907\u6CE8")]),_:2},1032,["onClick"]),e.status===a(j).COMPLETED.status?(o(),i(q,{key:1,onClick:n.handleInvoice},{default:r(()=>[g("\u5F00\u53D1\u7968")]),_:1},8,["onClick"])):b("",!0),e.deliveryType===a(F).EXPRESS.type&&e.status===a(j).UNDELIVERED.status?(o(),i(q,{key:2,onClick:c=>{return p=e.id,h=e.receiverAreaName,ke=e.receiverMobile,Ve=e.receiverAreaId,Ce=e.receiverDetailAddress,void pe.value.open(p,h,ke,Ve,Ce);var p,h,ke,Ve,Ce}},{default:r(()=>[g("\u4FEE\u6539\u5730\u5740")]),_:2},1032,["onClick"])):b("",!0)]),_:2},1032,["onMouseover","onMouseout"])]),default:r(()=>[s("span",null,[Y(t(Ae,{size:"20",color:"rgb(220 223 231)"},{default:r(()=>[t(a(Ie))]),_:2},1536),[[L,e.showSetting]])])]),_:2},1024)),[[Le,["trade:order:update"]]])]))]),s("div",Q,[s("div",W,[s("img",{src:e.items[0].picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,Z)]),s("div",$,[s("p",null,"\xA5"+w(a(la)(e.payPrice)),1),s("p",null,w(e.no),1),s("p",null,w((z=a(qa)(a(x).TRADE_ORDER_STATUS,e.status))==null?void 0:z.label),1),s("p",null,w(e.user.nickname),1),s("p",null,[s("span",ee,w((P=e.createTime,new Date(P).getFullYear()+"/")),1),g(w(Te(e.createTime)),1)])])])];var P}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(S).length==0?(o(),_("div",ae,[...le])):b("",!0),t(Oe,{limit:a(u).pageSize,"onUpdate:limit":l[14]||(l[14]=e=>a(u).pageSize=e),page:a(u).pageNo,"onUpdate:page":l[15]||(l[15]=e=>a(u).pageNo=e),total:a(se),onPagination:V},null,8,["limit","page","total"])]),_:1}),t(Ea,{ref_key:"deliveryFormRef",ref:de,onSuccess:V},null,512),t(xa,{ref_key:"updateRemarkForm",ref:ce,onSuccess:V},null,512),t(ja,{ref_key:"updateAddressFormRef",ref:pe,onSuccess:V},null,512),t(Fa,{ref_key:"formRef",ref:oe,onSuccess:V},null,512)],64)}}}),[["__scopeId","data-v-03623e2e"],["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/mall/trade/order/index.vue"]])});export{yl as __tla,we as default};