1 |
- import{d as oe,r as c,f as _e,B as se,P as ie,o as _,c as f,i as t,w as l,a,F as w,k as P,l as n,C as m,a1 as ce,j as x,aq as B,g as T,t as y,dF as ne,I as ue,H as pe,D as me,G as de,U as fe,v as ye,J as he,K as ve,E as be,s as ge,L as we,ak as xe,M as ke,N as Ue,_ as Se,__tla as Pe}from"./index-afaf388d.js";import{_ as Ie,__tla as Ne}from"./index-89d02e79.js";import{_ as Ve,__tla as De}from"./DictTag-3a1a976c.js";import{E as Te,__tla as qe}from"./el-image-caa301d0.js";import{__tla as Ce}from"./el-image-viewer-9330e340.js";import{_ as Oe,__tla as Re}from"./ContentWrap-abe0694e.js";import{f as Ee,e as Fe,__tla as Ae}from"./index-dd26c185.js";import{a as Me,__tla as Ye}from"./index-c097d8cd.js";import{D as K,__tla as ze}from"./dict-0449a0a1.js";import{f as He,__tla as Ge}from"./formatter-c93873cc.js";import{S as I,__tla as je}from"./index-f9a5a83c.js";import{d as Be,__tla as Ke}from"./formatTime-42952e7f.js";import{D as Le}from"./constants-a1da293a.js";import Je,{__tla as Qe}from"./OrderPickUpForm-8d0fdda1.js";import{__tla as Xe}from"./index-0eed91e1.js";import"./color-6e929987.js";import{__tla as Ze}from"./el-card-9c18d881.js";import{__tla as We}from"./CountTo-aa54a5c3.js";import{__tla as $e}from"./Dialog-82c2009c.js";import{__tla as ea}from"./index-d0bdb0dd.js";import{__tla as aa}from"./el-timeline-item-9f306369.js";import{__tla as ta}from"./el-link-22fa86d2.js";import{__tla as la}from"./el-descriptions-item-fe161f2c.js";import{__tla as ra}from"./OrderUpdateRemarkForm-c1a641cd.js";import{__tla as oa}from"./useMessage-a290df31.js";import{__tla as _a}from"./OrderDeliveryForm-d41911d3.js";import{__tla as sa}from"./index-d9167f49.js";import{__tla as ia}from"./OrderUpdateAddressForm-d1db85f2.js";import{__tla as ca}from"./el-tree-select-190eecb6.js";import{__tla as na}from"./index-2e6c7954.js";import"./tree-0af4953a.js";import{__tla as ua}from"./OrderUpdatePriceForm-f63c6164.js";import{__tla as pa}from"./tagsView-ea7887b8.js";let L,ma=Promise.all([(()=>{try{return Pe}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})()]).then(async()=>{let q,C;q={class:"mr-10px"},C={class:"flex flex-col flex-wrap gap-1"},L=Se(oe({name:"PickUpOrder",__name:"index",setup(da){const p=c(!0),O=c(2),R=c([]),E=c(),F={pageNo:1,pageSize:10,createTime:void 0,deliveryType:Le.PICK_UP.type,pickUpStoreId:void 0},r=c({...F}),h=_e({queryParam:"no"}),v=c(),A=c([{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"}]),J=u=>{var o;(o=A.value.filter(d=>d.value!==u))==null||o.forEach(d=>{r.value.hasOwnProperty(d.value)&&delete r.value[d.value]})},k=async()=>{p.value=!0;try{v.value=await Ee(a(r));const u=await Fe(a(r));R.value=u.list,O.value=u.total}finally{p.value=!1}},M=async()=>{r.value.pageNo=1,await k()},Q=()=>{var u;(u=E.value)==null||u.resetFields(),r.value={...F},M()},N=c([]),Y=c(),X=()=>{Y.value.open()};return se(()=>{k(),(async()=>N.value=await Me())()}),(u,o)=>{const d=ue,U=pe,z=me,H=de,Z=fe,V=ye,D=he,W=ve,G=Oe,S=be,$=ge,s=we,ee=Te,ae=xe,j=Ve,te=ke,le=Ie,re=ie("hasPermi"),b=Ue;return _(),f(w,null,[t(G,null,{default:l(()=>[t(W,{ref_key:"queryFormRef",ref:E,inline:!0,model:a(r),class:"-mb-15px","label-width":"68px"},{default:l(()=>[t(U,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[t(d,{modelValue:a(r).createTime,"onUpdate:modelValue":o[0]||(o[0]=e=>a(r).createTime=e),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-280px","end-placeholder":"\u81EA\u5B9A\u4E49\u65F6\u95F4","start-placeholder":"\u81EA\u5B9A\u4E49\u65F6\u95F4",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),t(U,{label:"\u81EA\u63D0\u95E8\u5E97",prop:"pickUpStoreId"},{default:l(()=>[t(H,{modelValue:a(r).pickUpStoreId,"onUpdate:modelValue":o[1]||(o[1]=e=>a(r).pickUpStoreId=e),class:"!w-280px",clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:l(()=>[(_(!0),f(w,null,P(a(N),e=>(_(),n(z,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(U,{label:"\u805A\u5408\u641C\u7D22"},{default:l(()=>[m(t(Z,{modelValue:a(r)[a(h).queryParam],"onUpdate:modelValue":o[3]||(o[3]=e=>a(r)[a(h).queryParam]=e),class:"!w-280px",clearable:"",placeholder:"\u8BF7\u8F93\u5165",type:a(h).queryParam==="userId"?"number":"text"},{prepend:l(()=>[t(H,{modelValue:a(h).queryParam,"onUpdate:modelValue":o[2]||(o[2]=e=>a(h).queryParam=e),class:"!w-110px",placeholder:"\u5168\u90E8",onChange:J},{default:l(()=>[(_(!0),f(w,null,P(a(A),e=>(_(),n(z,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","type"]),[[ce,!0]])]),_:1}),t(U,null,{default:l(()=>[t(D,{onClick:M},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:search"}),x(" \u641C\u7D22 ")]),_:1}),t(D,{onClick:Q},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:refresh"}),x(" \u91CD\u7F6E ")]),_:1}),m((_(),n(D,{onClick:X,type:"success",plain:""},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:check"}),x(" \u6838\u9500 ")]),_:1})),[[re,["trade:order:pick-up"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t($,{gutter:16,class:"summary"},{default:l(()=>[m((_(),n(S,{sm:6,xs:12},{default:l(()=>{var e;return[t(I,{title:"\u8BA2\u5355\u6570\u91CF",icon:"icon-park-outline:transaction-order","icon-color":"bg-blue-100","icon-bg-color":"text-blue-500",value:((e=a(v))==null?void 0:e.orderCount)||0},null,8,["value"])]}),_:1})),[[b,a(p)]]),m((_(),n(S,{sm:6,xs:12},{default:l(()=>{var e;return[t(I,{title:"\u8BA2\u5355\u91D1\u989D",icon:"streamline:money-cash-file-dollar-common-money-currency-cash-file","icon-color":"bg-purple-100","icon-bg-color":"text-purple-500",prefix:"\uFFE5",decimals:2,value:a(B)(((e=a(v))==null?void 0:e.orderPayPrice)||0)},null,8,["value"])]}),_:1})),[[b,a(p)]]),m((_(),n(S,{sm:6,xs:12},{default:l(()=>{var e;return[t(I,{title:"\u9000\u6B3E\u5355\u6570",icon:"heroicons:receipt-refund","icon-color":"bg-yellow-100","icon-bg-color":"text-yellow-500",value:((e=a(v))==null?void 0:e.afterSaleCount)||0},null,8,["value"])]}),_:1})),[[b,a(p)]]),m((_(),n(S,{sm:6,xs:12},{default:l(()=>{var e;return[t(I,{title:"\u9000\u6B3E\u91D1\u989D",icon:"ri:refund-2-line","icon-color":"bg-green-100","icon-bg-color":"text-green-500",prefix:"\uFFE5",decimals:2,value:a(B)(((e=a(v))==null?void 0:e.afterSalePrice)||0)},null,8,["value"])]}),_:1})),[[b,a(p)]])]),_:1}),t(G,null,{default:l(()=>[m((_(),n(te,{data:a(R)},{default:l(()=>[t(s,{label:"\u8BA2\u5355\u53F7",align:"center",prop:"no","min-width":"180"}),t(s,{label:"\u7528\u6237\u4FE1\u606F",align:"center",prop:"user.nickname","min-width":"80"}),t(s,{label:"\u63A8\u8350\u4EBA\u4FE1\u606F",align:"center",prop:"brokerageUser.nickname","min-width":"100"}),t(s,{label:"\u5546\u54C1\u4FE1\u606F",align:"center",prop:"spuName","min-width":"300"},{default:l(({row:e})=>[(_(!0),f(w,null,P(e.items,i=>(_(),f("div",{class:"flex items-center",key:i.id},[t(ee,{src:i.picUrl,class:"mr-10px h-30px w-30px flex-shrink-0","preview-src-list":[i.picUrl],"preview-teleported":""},null,8,["src","preview-src-list"]),T("span",q,y(i.spuName),1),T("div",C,[(_(!0),f(w,null,P(i.properties,g=>(_(),n(ae,{key:g.propertyId,class:"mr-10px"},{default:l(()=>[x(y(g.propertyName)+": "+y(g.valueName),1)]),_:2},1024))),128)),T("span",null,y(a(ne)(i.price))+" \u5143 x "+y(i.count),1)])]))),128))]),_:1}),t(s,{label:"\u5B9E\u4ED8\u91D1\u989D(\u5143)",align:"center",prop:"payPrice","min-width":"110",formatter:a(He)},null,8,["formatter"]),t(s,{label:"\u6838\u9500\u5458",align:"center",prop:"storeStaffName","min-width":"70"}),t(s,{label:"\u6838\u9500\u95E8\u5E97",align:"center",prop:"pickUpStoreId","min-width":"80"},{default:l(({row:e})=>{var i;return[x(y((i=a(N).find(g=>g.id===e.pickUpStoreId))==null?void 0:i.name),1)]}),_:1}),t(s,{label:"\u652F\u4ED8\u72B6\u6001",align:"center",prop:"payStatus","min-width":"80"},{default:l(({row:e})=>[t(j,{type:a(K).INFRA_BOOLEAN_STRING,value:e.payStatus||!1},null,8,["type","value"])]),_:1}),t(s,{align:"center",label:"\u8BA2\u5355\u72B6\u6001",prop:"status",width:"120"},{default:l(({row:e})=>[t(j,{type:a(K).TRADE_ORDER_STATUS,value:e.status},null,8,["type","value"])]),_:1}),t(s,{label:"\u4E0B\u5355\u65F6\u95F4",align:"center",prop:"createTime","min-width":"170",formatter:a(Be)},null,8,["formatter"])]),_:1},8,["data"])),[[b,a(p)]]),t(le,{limit:a(r).pageSize,"onUpdate:limit":o[4]||(o[4]=e=>a(r).pageSize=e),page:a(r).pageNo,"onUpdate:page":o[5]||(o[5]=e=>a(r).pageNo=e),total:a(O),onPagination:k},null,8,["limit","page","total"])]),_:1}),t(Je,{ref_key:"pickUpForm",ref:Y,onSuccess:k},null,512)],64)}}}),[["__scopeId","data-v-f7448627"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/delivery/pickUpOrder/index.vue"]])});export{ma as __tla,L as default};
|