1 |
- import{d as oe,r as c,e as _e,q as se,M as ie,o as _,c as f,f as t,w as l,a,F as w,v as P,x as n,z as m,$ as ce,y as x,an as G,g as T,t as y,bh as ne,D as ue,C as pe,A as me,B as de,R as fe,j as ye,G as he,H as ve,E as be,i as ge,I as we,ah as xe,J as ke,K as Ue,_ as Se,__tla as Pe}from"./index-8dc1e40a.js";import{_ as Ie,__tla as Ne}from"./index-64aeaa78.js";import{_ as Ve,__tla as De}from"./DictTag-85aade2b.js";import{E as Te,__tla as Ce}from"./el-image-6a48e9f1.js";import{__tla as qe}from"./el-image-viewer-3b8905e6.js";import{_ as Re,__tla as Ee}from"./ContentWrap-0aca5216.js";import{f as ze,e as Oe,__tla as Ae}from"./index-cfc487d8.js";import{a as Fe,__tla as Me}from"./index-d023ec7d.js";import{D as K,__tla as He}from"./dict-f13a3c8f.js";import{f as Ye,__tla as je}from"./formatter-4b974afe.js";import{S as I,__tla as Be}from"./index-1e8cfe54.js";import{d as Ge,__tla as Ke}from"./formatTime-8a155b2e.js";import{D as $e}from"./constants-a1da293a.js";import Je,{__tla as Le}from"./OrderPickUpForm-05710b26.js";import{__tla as We}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as Xe}from"./el-card-18df90f0.js";import{__tla as Ze}from"./CountTo-1e1877a3.js";import{__tla as Qe}from"./Dialog-41802231.js";import{__tla as ea}from"./index-8f61a25d.js";import{__tla as aa}from"./el-timeline-item-16e40630.js";import{__tla as ta}from"./el-link-a41356f3.js";import{__tla as la}from"./el-descriptions-item-bf830d0d.js";import{__tla as ra}from"./OrderUpdateRemarkForm-2752853b.js";import{__tla as oa}from"./useMessage-7a27dd80.js";import{__tla as _a}from"./OrderDeliveryForm-ea98e29a.js";import{__tla as sa}from"./index-d527b348.js";import{__tla as ia}from"./OrderUpdateAddressForm-3c576c1e.js";import{__tla as ca}from"./el-tree-select-d82790d8.js";import{__tla as na}from"./index-fb53bc47.js";import"./tree-0af4953a.js";import{__tla as ua}from"./OrderUpdatePriceForm-f52ec200.js";import{__tla as pa}from"./tagsView-7673bb19.js";let $,ma=Promise.all([(()=>{try{return Pe}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return Qe}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 C,q;C={class:"mr-10px"},q={class:"flex flex-col flex-wrap gap-1"},$=Se(oe({name:"PickUpOrder",__name:"index",setup(da){const p=c(!0),R=c(2),E=c([]),z=c(),O={pageNo:1,pageSize:10,createTime:void 0,deliveryType:$e.PICK_UP.type,pickUpStoreId:void 0},r=c({...O}),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 ze(a(r));const u=await Oe(a(r));E.value=u.list,R.value=u.total}finally{p.value=!1}},F=async()=>{r.value.pageNo=1,await k()},L=()=>{var u;(u=z.value)==null||u.resetFields(),r.value={...O},F()},N=c([]),M=c(),W=()=>{M.value.open()};return se(()=>{k(),(async()=>N.value=await Fe())()}),(u,o)=>{const d=ue,U=pe,H=me,Y=de,X=fe,V=ye,D=he,Z=ve,j=Re,S=be,Q=ge,s=we,ee=Te,ae=xe,B=Ve,te=ke,le=Ie,re=ie("hasPermi"),b=Ue;return _(),f(w,null,[t(j,null,{default:l(()=>[t(Z,{ref_key:"queryFormRef",ref:z,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(Y,{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(H,{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(X,{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(Y,{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(H,{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:F},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:search"}),x(" \u641C\u7D22 ")]),_:1}),t(D,{onClick:L},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:refresh"}),x(" \u91CD\u7F6E ")]),_:1}),m((_(),n(D,{onClick:W,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(Q,{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(G)(((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(G)(((e=a(v))==null?void 0:e.afterSalePrice)||0)},null,8,["value"])]}),_:1})),[[b,a(p)]])]),_:1}),t(j,null,{default:l(()=>[m((_(),n(te,{data:a(E)},{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",C,y(i.spuName),1),T("div",q,[(_(!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(Ye)},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(B,{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(B,{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(Ge)},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(R),onPagination:k},null,8,["limit","page","total"])]),_:1}),t(Je,{ref_key:"pickUpForm",ref:M,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,$ as default};
|