1 |
- import{d as _a,r as n,e as oa,l as ca,Q as ia,o,c as f,f as t,w as l,a as e,F as x,q as P,v as s,x as m,a4 as na,n as w,at as G,g as T,t as y,ar as sa,B as ua,A as pa,y as ma,z as da,V as fa,j as ya,C as ha,D as va,E as ba,i as ga,G as xa,al as wa,H as ka,I as Ua,_ as Sa,__tla as Pa}from"./index-6d7b82ba.js";import{_ as Ia,__tla as Na}from"./index-a786614b.js";import{_ as Va,__tla as Da}from"./DictTag-300da1c0.js";import{E as Ta,__tla as qa}from"./el-image-afb9e567.js";import{__tla as Ca}from"./el-image-viewer-4a19ded4.js";import{_ as za,__tla as Ea}from"./ContentWrap-1ba5c8ca.js";import{o as Fa,l as Oa,__tla as Ra}from"./index-c52f3d88.js";import{a as Aa,__tla as Ya}from"./index-c4daa4a1.js";import{D as L,__tla as Ba}from"./dict-efb5f3b6.js";import{f as Ha,__tla as Ma}from"./formatter-832daf50.js";import{S as I,__tla as ja}from"./index-99f50d53.js";import{d as Ga,__tla as La}from"./formatTime-d24faf41.js";import{D as Qa}from"./constants-a3c69b57.js";import Ka,{__tla as Xa}from"./OrderPickUpForm-42efb960.js";import{__tla as Ja}from"./index-e37504b6.js";import"./color-6e929987.js";import{__tla as Wa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as Za}from"./el-card-1a4b93b1.js";import{__tla as $a}from"./CountTo-b178ea0a.js";import{__tla as ae}from"./Dialog-78181bae.js";import{__tla as ee}from"./index-03d684ef.js";import{__tla as te}from"./el-timeline-item-cf907363.js";import{__tla as le}from"./el-link-a8b71043.js";import{__tla as re}from"./el-descriptions-item-a49b1792.js";import{__tla as _e}from"./OrderUpdateRemarkForm-0226b445.js";import{__tla as oe}from"./OrderBaseInfo-345fb95a.js";import{__tla as ce}from"./SPuUploadImg-3b4ba08d.js";import{__tla as ie}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b2231227.js";import{__tla as ne}from"./index-8e19be94.js";import{__tla as se}from"./useMessage-be161634.js";import{__tla as ue}from"./OrderProduct-71517108.js";import{__tla as pe}from"./OrderDeliveryForm-fbb16216.js";import{__tla as me}from"./index-de7bf986.js";import{__tla as de}from"./OrderUpdateAddressForm-edaf4a4a.js";import{__tla as fe}from"./el-tree-select-23e10a37.js";import{__tla as ye}from"./index-427493d7.js";import"./tree-0af4953a.js";import{__tla as he}from"./OrderUpdatePriceForm-53f2a285.js";import{__tla as ve}from"./tagsView-e5f9218a.js";let Q,be=Promise.all([(()=>{try{return Pa}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return le}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ve}catch{}})()]).then(async()=>{let q,C;q={class:"mr-10px"},C={class:"flex flex-col flex-wrap gap-1"},Q=Sa(_a({name:"PickUpOrder",__name:"index",setup(ge){const p=n(!0),z=n(2),E=n([]),F=n(),O={pageNo:1,pageSize:10,createTime:void 0,deliveryType:Qa.PICK_UP.type,pickUpStoreId:void 0},r=n({...O}),h=oa({queryParam:"no"}),v=n(),R=n([{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"}]),K=u=>{var _;(_=R.value.filter(d=>d.value!==u))==null||_.forEach(d=>{r.value.hasOwnProperty(d.value)&&delete r.value[d.value]})},k=async()=>{p.value=!0;try{v.value=await Fa(e(r));const u=await Oa(e(r));E.value=u.list,z.value=u.total}finally{p.value=!1}},A=async()=>{r.value.pageNo=1,await k()},X=()=>{var u;(u=F.value)==null||u.resetFields(),r.value={...O},A()},N=n([]),Y=n(),J=()=>{Y.value.open()};return ca(()=>{k(),(async()=>N.value=await Aa())()}),(u,_)=>{const d=ua,U=pa,B=ma,H=da,W=fa,V=ya,D=ha,Z=va,M=za,S=ba,$=ga,c=xa,aa=Ta,ea=wa,j=Va,ta=ka,la=Ia,ra=ia("hasPermi"),b=Ua;return o(),f(x,null,[t(M,null,{default:l(()=>[t(Z,{ref_key:"queryFormRef",ref:F,inline:!0,model:e(r),class:"-mb-15px","label-width":"68px"},{default:l(()=>[t(U,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[t(d,{modelValue:e(r).createTime,"onUpdate:modelValue":_[0]||(_[0]=a=>e(r).createTime=a),"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:e(r).pickUpStoreId,"onUpdate:modelValue":_[1]||(_[1]=a=>e(r).pickUpStoreId=a),class:"!w-280px",clearable:"",multiple:"",placeholder:"\u5168\u90E8"},{default:l(()=>[(o(!0),f(x,null,P(e(N),a=>(o(),s(B,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(U,{label:"\u805A\u5408\u641C\u7D22"},{default:l(()=>[m(t(W,{modelValue:e(r)[e(h).queryParam],"onUpdate:modelValue":_[3]||(_[3]=a=>e(r)[e(h).queryParam]=a),class:"!w-280px",clearable:"",placeholder:"\u8BF7\u8F93\u5165",type:e(h).queryParam==="userId"?"number":"text"},{prepend:l(()=>[t(H,{modelValue:e(h).queryParam,"onUpdate:modelValue":_[2]||(_[2]=a=>e(h).queryParam=a),class:"!w-110px",placeholder:"\u5168\u90E8",onChange:K},{default:l(()=>[(o(!0),f(x,null,P(e(R),a=>(o(),s(B,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","type"]),[[na,!0]])]),_:1}),t(U,null,{default:l(()=>[t(D,{onClick:A},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:search"}),w(" \u641C\u7D22 ")]),_:1}),t(D,{onClick:X},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:refresh"}),w(" \u91CD\u7F6E ")]),_:1}),m((o(),s(D,{onClick:J,type:"success",plain:""},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:check"}),w(" \u6838\u9500 ")]),_:1})),[[ra,["trade:order:pick-up"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t($,{gutter:16,class:"summary"},{default:l(()=>[m((o(),s(S,{sm:6,xs:12},{default:l(()=>{var a;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:((a=e(v))==null?void 0:a.orderCount)||0},null,8,["value"])]}),_:1})),[[b,e(p)]]),m((o(),s(S,{sm:6,xs:12},{default:l(()=>{var a;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:e(G)(((a=e(v))==null?void 0:a.orderPayPrice)||0)},null,8,["value"])]}),_:1})),[[b,e(p)]]),m((o(),s(S,{sm:6,xs:12},{default:l(()=>{var a;return[t(I,{title:"\u9000\u6B3E\u5355\u6570",icon:"heroicons:receipt-refund","icon-color":"bg-yellow-100","icon-bg-color":"text-yellow-500",value:((a=e(v))==null?void 0:a.afterSaleCount)||0},null,8,["value"])]}),_:1})),[[b,e(p)]]),m((o(),s(S,{sm:6,xs:12},{default:l(()=>{var a;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:e(G)(((a=e(v))==null?void 0:a.afterSalePrice)||0)},null,8,["value"])]}),_:1})),[[b,e(p)]])]),_:1}),t(M,null,{default:l(()=>[m((o(),s(ta,{data:e(E)},{default:l(()=>[t(c,{label:"\u8BA2\u5355\u53F7",align:"center",prop:"no","min-width":"180"}),t(c,{label:"\u7528\u6237\u4FE1\u606F",align:"center",prop:"user.nickname","min-width":"80"}),t(c,{label:"\u63A8\u8350\u4EBA\u4FE1\u606F",align:"center",prop:"brokerageUser.nickname","min-width":"100"}),t(c,{label:"\u5546\u54C1\u4FE1\u606F",align:"center",prop:"spuName","min-width":"300"},{default:l(({row:a})=>[(o(!0),f(x,null,P(a.items,i=>(o(),f("div",{class:"flex items-center",key:i.id},[t(aa,{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,[(o(!0),f(x,null,P(i.properties,g=>(o(),s(ea,{key:g.propertyId,class:"mr-10px"},{default:l(()=>[w(y(g.propertyName)+": "+y(g.valueName),1)]),_:2},1024))),128)),T("span",null,y(e(sa)(i.price))+" \u5143 x "+y(i.count),1)])]))),128))]),_:1}),t(c,{label:"\u5B9E\u4ED8\u91D1\u989D(\u5143)",align:"center",prop:"payPrice","min-width":"110",formatter:e(Ha)},null,8,["formatter"]),t(c,{label:"\u6838\u9500\u5458",align:"center",prop:"storeStaffName","min-width":"70"}),t(c,{label:"\u6838\u9500\u95E8\u5E97",align:"center",prop:"pickUpStoreId","min-width":"80"},{default:l(({row:a})=>{var i;return[w(y((i=e(N).find(g=>g.id===a.pickUpStoreId))==null?void 0:i.name),1)]}),_:1}),t(c,{label:"\u652F\u4ED8\u72B6\u6001",align:"center",prop:"payStatus","min-width":"80"},{default:l(({row:a})=>[t(j,{type:e(L).INFRA_BOOLEAN_STRING,value:a.payStatus||!1},null,8,["type","value"])]),_:1}),t(c,{align:"center",label:"\u8BA2\u5355\u72B6\u6001",prop:"status",width:"120"},{default:l(({row:a})=>[t(j,{type:e(L).TRADE_ORDER_STATUS,value:a.status},null,8,["type","value"])]),_:1}),t(c,{label:"\u4E0B\u5355\u65F6\u95F4",align:"center",prop:"createTime","min-width":"170",formatter:e(Ga)},null,8,["formatter"])]),_:1},8,["data"])),[[b,e(p)]]),t(la,{limit:e(r).pageSize,"onUpdate:limit":_[4]||(_[4]=a=>e(r).pageSize=a),page:e(r).pageNo,"onUpdate:page":_[5]||(_[5]=a=>e(r).pageNo=a),total:e(z),onPagination:k},null,8,["limit","page","total"])]),_:1}),t(Ka,{ref_key:"pickUpForm",ref:Y,onSuccess:k},null,512)],64)}}}),[["__scopeId","data-v-f7448627"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/delivery/pickUpOrder/index.vue"]])});export{be as __tla,Q as default};
|