1 |
- import{_ as je,__tla as He}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as Xe,__tla as Be}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{d as Je,X as Ke,J as We,r as d,u as Ge,e as Qe,k as Ze,P as $e,o as u,c as _,f as t,w as r,g as s,a,q as i,F as m,n as v,O as b,Q as ea,e4 as we,v as O,a3 as L,m as k,t as w,aR as aa,as as la,V as ta,W as ra,_ as oa,B as ua,U as na,x as sa,y as ia,z as _a,A as da,E as ca,i as pa,C as ma,aS as ya,p as va,j as fa,__tla as ha}from"./index-2eab2d23.js";import{E as ba,__tla as ka}from"./el-card-c558f0ec.js";import{E as ga,a as Va,b as Ca,__tla as wa}from"./el-dropdown-item-ca87bcd9.js";import Ea,{__tla as Ta}from"./OrderDeliveryForm-3dab7ade.js";import Ua,{__tla as Ia}from"./OrderUpdateRemarkForm-ce9d1287.js";import{k as xa,o as Sa,__tla as Da}from"./index-3562b2a3.js";import{a as Ra,__tla as Pa}from"./index-c2301e22.js";import{a as z,D as U,e as Ma,c as Na,__tla as Aa}from"./dict-1ad71b6f.js";import{g as qa,__tla as Ya}from"./index-e7451cd0.js";import{D as F,T as j}from"./constants-40f13f5e.js";import Oa,{__tla as za}from"./OrderIndex-fed0fbbb.js";import{_ as Fa,__tla as La}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-0c27f3cd.js";import{_ as ja}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ha}from"./index-cc63c3c4.js";import{__tla as Xa}from"./Dialog-c2716df6.js";import{__tla as Ba}from"./OrderBaseInfo-68af99b9.js";import{__tla as Ja}from"./SPuUploadImg-4b5016f1.js";import{__tla as Ka}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as Wa}from"./index-d3f876ab.js";import{__tla as Ga}from"./el-image-viewer-5d14bc77.js";import{__tla as Qa}from"./useMessage-171aa63e.js";import{__tla as Za}from"./formatTime-41155543.js";import{__tla as $a}from"./OrderProduct-c85eb4ea.js";import{__tla as el}from"./el-descriptions-item-fd42286f.js";import{__tla as al}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import"./color-6e929987.js";import{__tla as ll}from"./OrderComment-93146988.js";import{__tla as tl}from"./OrderService-43f76d05.js";import{__tla as rl}from"./AfterSale-82845424.js";import{__tla as ol}from"./OrderLogistics-f134236f.js";import{__tla as ul}from"./orderPay-1a00de1c.js";import{__tla as nl}from"./OrderLogs-f90217b6.js";import{__tla as sl}from"./el-timeline-item-eddfdd2c.js";import{__tla as il}from"./el-tree-select-4ae7c290.js";import{__tla as _l}from"./index-44a34f60.js";import"./tree-fd3a041e.js";let Ee,dl=Promise.all([(()=>{try{return He}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Qa}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 ol}catch{}})(),(()=>{try{return ul}catch{}})(),(()=>{try{return nl}catch{}})(),(()=>{try{return sl}catch{}})(),(()=>{try{return il}catch{}})(),(()=>{try{return _l}catch{}})()]).then(async()=>{let H,X,B,J,K,W,G,Q,Z,$,ee,ae,le;H={class:"search"},X={style:{"text-align":"right"},class:"search-input"},B={class:"searchMore"},J={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:""},W={key:0},G={style:{display:"flex","align-items":"center"}},Q={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-ba725437"),E=E(),fa(),E))(()=>s("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u8BA2\u5355",-1))],Ee=ja(Je({name:"TradeOrder",__name:"index",props:{merchantId:{type:Number,default:0},isDetail:{type:Boolean,default:!1}},setup(E){const Te=Ke(),te=We(()=>Te.getMobile);function Ue(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 I=d(!1);function re(n){x.value[n].showSetting=!0}function oe(n){x.value[n].showSetting=!1}const Ie=()=>{I.value=!I.value},xe=()=>{I.value=!1},P=E,ue=d(),{currentRoute:cl,push:Se}=Ge(),ne=d(!0),se=d(2),x=d([]),ie=d(),o=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}),S=Qe({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"}]),De=n=>{var l;(l=_e.value.filter(y=>y.value!==n))==null||l.forEach(y=>{o.value.hasOwnProperty(y.value)&&delete o.value[y.value]})},g=async()=>{ne.value=!0,P.merchantId&&(o.value.merchantId=P.merchantId);try{const n=await xa(a(o));n.list.forEach(l=>{l.showSetting=!1}),x.value=n.list,se.value=n.total}finally{ne.value=!1,I.value=!1,me()}},M=async()=>{o.value.pageNo=1,await g()},Re=()=>{var n;(n=ie.value)==null||n.resetFields(),o.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=>{o.value.status=n.paneName,g()},me=async()=>{const n=d({});P.merchantId&&(n.value.merId=P.merchantId);const l=await Sa(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 g(),await me(),ye.value=await Ra(),ve.value=await qa()}),(n,l)=>{const y=ta,N=ra,fe=oa,A=ua,he=na,V=sa,C=ia,f=_a,Me=da,be=ca,ke=pa,Ne=ma,Ae=ya,q=ga,qe=Va,Ye=Ca,Oe=ba,ze=Xe,Fe=je,Le=$e("hasPermi");return u(),_(m,null,[t(Fe,{class:"container"},{default:r(()=>[s("div",H,[a(te)?b("",!0):(u(),i(N,{key:0,modelValue:a(o).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(o).status=e),onTabClick:Pe,class:"parent-tabs"},{default:r(()=>[(u(!0),_(m,null,v(a(T),e=>(u(),i(y,{key:e.type,label:e.name+"("+e.count+")",name:e.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),s("div",X,[t(he,{modelValue:a(o).userNickname,"onUpdate:modelValue":l[1]||(l[1]=e=>a(o).userNickname=e),placeholder:"\u641C\u7D22\u5BA2\u6237\u540D\u79F0",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(we),onClick:Ie},null,8,["icon"])]),_:1},8,["modelValue"])])]),O(s("div",B,[t(Ne,{ref_key:"queryFormRef",ref:ie,inline:!0,model:a(o),class:"-mb-15px","label-width":"68px"},{default:r(()=>[t(f,{label:"\u8BA2\u5355\u72B6\u6001",prop:"status"},{default:r(()=>[t(C,{modelValue:a(o).status,"onUpdate:modelValue":l[2]||(l[2]=e=>a(o).status=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(z)(a(U).TRADE_ORDER_STATUS),e=>(u(),i(V,{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(C,{modelValue:a(o).payChannelCode,"onUpdate:modelValue":l[3]||(l[3]=e=>a(o).payChannelCode=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(Ma)(a(U).PAY_CHANNEL_CODE),e=>(u(),i(V,{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(o).createTime,"onUpdate:modelValue":l[4]||(l[4]=e=>a(o).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(C,{modelValue:a(o).terminal,"onUpdate:modelValue":l[5]||(l[5]=e=>a(o).terminal=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(z)(a(U).TERMINAL),e=>(u(),i(V,{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(C,{modelValue:a(o).type,"onUpdate:modelValue":l[6]||(l[6]=e=>a(o).type=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(z)(a(U).TRADE_ORDER_TYPE),e=>(u(),i(V,{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(C,{modelValue:a(o).deliveryType,"onUpdate:modelValue":l[7]||(l[7]=e=>a(o).deliveryType=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(z)(a(U).TRADE_DELIVERY_TYPE),e=>(u(),i(V,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(o).deliveryType===a(F).EXPRESS.type?(u(),i(f,{key:0,label:"\u5FEB\u9012\u516C\u53F8",prop:"logisticsId"},{default:r(()=>[t(C,{modelValue:a(o).logisticsId,"onUpdate:modelValue":l[8]||(l[8]=e=>a(o).logisticsId=e),clearable:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(ve),e=>(u(),i(V,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):b("",!0),a(o).deliveryType===a(F).PICK_UP.type?(u(),i(f,{key:1,label:"\u81EA\u63D0\u95E8\u5E97",prop:"pickUpStoreId"},{default:r(()=>[t(C,{modelValue:a(o).pickUpStoreId,"onUpdate:modelValue":l[9]||(l[9]=e=>a(o).pickUpStoreId=e),clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:r(()=>[(u(!0),_(m,null,v(a(ye),e=>(u(),i(V,{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(()=>[O(t(he,{modelValue:a(o)[a(S).queryParam],"onUpdate:modelValue":l[11]||(l[11]=e=>a(o)[a(S).queryParam]=e),type:a(S).queryParam==="userId"?"number":"text",clearable:"",placeholder:"\u8BF7\u8F93\u5165"},{prepend:r(()=>[t(C,{modelValue:a(S).queryParam,"onUpdate:modelValue":l[10]||(l[10]=e=>a(S).queryParam=e),class:"!w-110px",clearable:"",placeholder:"\u5168\u90E8",onChange:De},{default:r(()=>[(u(!0),_(m,null,v(a(_e),e=>(u(),i(V,{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(ke,null,{default:r(()=>[t(be,null,{default:r(()=>[t(f,null,{default:r(()=>[t(A,{onClick:xe},{default:r(()=>[k(" \u6536\u8D77 ")]),_:1}),t(A,{onClick:Re},{default:r(()=>[k(" \u91CD\u7F6E ")]),_:1}),t(A,{onClick:M,plain:"",type:"primary"},{default:r(()=>[t(fe,{class:"mr-5px",icon:"ep:search"}),k(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[L,a(I)]]),t(ke,null,{default:r(()=>[(u(!0),_(m,null,v(a(x),(e,D)=>(u(),i(be,{class:"card",key:D,span:7,xl:7,lg:7,md:24,sm:24,xs:24,onMouseover:R=>re(D),onMouseout:R=>oe(D)},{default:r(()=>[t(Oe,{onClick:R=>((Y,c,p)=>{const h=c.id;te.value?Se({name:"TradeOrderMobileDetail",params:{id:h}}):ue.value.open(Y,c,p)})("view",e,e.no)},{default:r(()=>{var Y;return[s("div",J,[s("p",K,[(u(!0),_(m,null,v(e.items,(c,p)=>(u(),_("span",{key:c.id},[k(w(c.spuName),1),p<e.items.length-1&&e.items.length>1?(u(),_("span",W,"+")):b("",!0)]))),128))]),E.merchantId?b("",!0):(u(),_("div",{key:0,class:"setting",onClick:l[13]||(l[13]=aa(()=>{},["stop"]))},[O((u(),i(Ye,{onCommand:l[12]||(l[12]=c=>n.handleCommand(c,n.row))},{dropdown:r(()=>[t(qe,{onMouseover:c=>re(D),onMouseout:c=>oe(D)},{default:r(()=>[e.deliveryType===a(F).EXPRESS.type&&e.status===a(j).UNDELIVERED.status?(u(),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(()=>[k("\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(()=>[k("\u5907\u6CE8")]),_:2},1032,["onClick"]),e.status===a(j).COMPLETED.status?(u(),i(q,{key:1,onClick:n.handleInvoice},{default:r(()=>[k("\u5F00\u53D1\u7968")]),_:1},8,["onClick"])):b("",!0),e.deliveryType===a(F).EXPRESS.type&&e.status===a(j).UNDELIVERED.status?(u(),i(q,{key:2,onClick:c=>{return p=e.id,h=e.receiverAreaName,ge=e.receiverMobile,Ve=e.receiverAreaId,Ce=e.receiverDetailAddress,void pe.value.open(p,h,ge,Ve,Ce);var p,h,ge,Ve,Ce}},{default:r(()=>[k("\u4FEE\u6539\u5730\u5740")]),_:2},1032,["onClick"])):b("",!0)]),_:2},1032,["onMouseover","onMouseout"])]),default:r(()=>[s("span",null,[O(t(Ae,{size:"20",color:"rgb(220 223 231)"},{default:r(()=>[t(a(we))]),_:2},1536),[[L,e.showSetting]])])]),_:2},1024)),[[Le,["trade:order:update"]]])]))]),s("div",G,[s("div",Q,[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((Y=a(Na)(a(U).TRADE_ORDER_STATUS,e.status))==null?void 0:Y.label),1),s("p",null,w(e.user.nickname),1),s("p",null,[s("span",ee,w((R=e.createTime,new Date(R).getFullYear()+"/")),1),k(w(Ue(e.createTime)),1)])])])];var R}),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(x).length==0?(u(),_("div",ae,le)):b("",!0),t(ze,{limit:a(o).pageSize,"onUpdate:limit":l[14]||(l[14]=e=>a(o).pageSize=e),page:a(o).pageNo,"onUpdate:page":l[15]||(l[15]=e=>a(o).pageNo=e),total:a(se),onPagination:g},null,8,["limit","page","total"])]),_:1}),t(Ea,{ref_key:"deliveryFormRef",ref:de,onSuccess:g},null,512),t(Ua,{ref_key:"updateRemarkForm",ref:ce,onSuccess:g},null,512),t(Fa,{ref_key:"updateAddressFormRef",ref:pe,onSuccess:g},null,512),t(Oa,{ref_key:"formRef",ref:ue,onSuccess:g},null,512)],64)}}}),[["__scopeId","data-v-ba725437"]])});export{dl as __tla,Ee as default};
|