1 |
- import{d as _a,r as i,e as oa,k as ca,P as sa,o,c as f,f as t,w as l,a as e,F as w,n as S,q as n,v as m,a3 as ia,m as x,as as K,g as q,t as y,aq as na,A as ua,z as pa,x as ma,y as da,U as fa,_ as ya,B as ha,C as va,E as ba,i as ga,D as wa,ak as xa,G as ka,H as Ua,__tla as Pa}from"./index-2eab2d23.js";import{_ as Sa,__tla as Ia}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as Na,__tla as Va}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{E as Ta,__tla as qa}from"./el-image-2171f3ff.js";import{__tla as Da}from"./el-image-viewer-5d14bc77.js";import{_ as Ca,__tla as Ea}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{l as Ra,k as Aa,__tla as Fa}from"./index-3562b2a3.js";import{a as Oa,__tla as za}from"./index-c2301e22.js";import{D as j,__tla as Ha}from"./dict-1ad71b6f.js";import{f as Ma,__tla as Ya}from"./formatter-bf00f7bd.js";import{_ as I,__tla as Ba}from"./index.vue_vue_type_script_setup_true_lang-a2d6bcc1.js";import{d as Ga,__tla as Ka}from"./formatTime-41155543.js";import{D as ja}from"./constants-40f13f5e.js";import{_ as Ja,__tla as La}from"./OrderPickUpForm.vue_vue_type_script_setup_true_lang-e3c371c8.js";import{_ as $a}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Qa}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Wa}from"./el-card-c558f0ec.js";import{__tla as Xa}from"./CountTo.vue_vue_type_script_setup_true_lang-5e8c5f08.js";import{__tla as Za}from"./Dialog-c2716df6.js";import{__tla as ae}from"./index-2d6e72ea.js";import{__tla as ee}from"./el-timeline-item-eddfdd2c.js";import{__tla as te}from"./el-link-f0d278a2.js";import{__tla as le}from"./el-descriptions-item-fd42286f.js";import{__tla as re}from"./OrderUpdateRemarkForm-ce9d1287.js";import{__tla as _e}from"./OrderBaseInfo-68af99b9.js";import{__tla as oe}from"./SPuUploadImg-4b5016f1.js";import{__tla as ce}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as se}from"./index-d3f876ab.js";import{__tla as ie}from"./useMessage-171aa63e.js";import{__tla as ne}from"./OrderProduct-c85eb4ea.js";import{__tla as ue}from"./OrderDeliveryForm-3dab7ade.js";import{__tla as pe}from"./index-e7451cd0.js";import{__tla as me}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-0c27f3cd.js";import{__tla as de}from"./el-tree-select-4ae7c290.js";import{__tla as fe}from"./index-44a34f60.js";import"./tree-fd3a041e.js";import{__tla as ye}from"./OrderUpdatePriceForm.vue_vue_type_script_setup_true_lang-f868abb0.js";import{__tla as he}from"./tagsView-fd4f3d23.js";let J,ve=Promise.all([(()=>{try{return Pa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}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 se}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ne}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{}})()]).then(async()=>{let D,C;D={class:"mr-10px"},C={class:"flex flex-col flex-wrap gap-1"},J=$a(_a({name:"PickUpOrder",__name:"index",setup(be){const p=i(!0),E=i(2),R=i([]),A=i(),F={pageNo:1,pageSize:10,createTime:void 0,deliveryType:ja.PICK_UP.type,pickUpStoreId:void 0},r=i({...F}),h=oa({queryParam:"no"}),v=i(),O=i([{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"}]),L=u=>{var _;(_=O.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 Ra(e(r));const u=await Aa(e(r));R.value=u.list,E.value=u.total}finally{p.value=!1}},z=async()=>{r.value.pageNo=1,await k()},$=()=>{var u;(u=A.value)==null||u.resetFields(),r.value={...F},z()},N=i([]),H=i(),Q=()=>{H.value.open()};return ca(()=>{k(),(async()=>N.value=await Oa())()}),(u,_)=>{const d=ua,U=pa,M=ma,Y=da,W=fa,V=ya,T=ha,X=va,B=Ca,P=ba,Z=ga,c=wa,aa=Ta,ea=xa,G=Na,ta=ka,la=Sa,ra=sa("hasPermi"),b=Ua;return o(),f(w,null,[t(B,null,{default:l(()=>[t(X,{ref_key:"queryFormRef",ref:A,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(Y,{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(w,null,S(e(N),a=>(o(),n(M,{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(Y,{modelValue:e(h).queryParam,"onUpdate:modelValue":_[2]||(_[2]=a=>e(h).queryParam=a),class:"!w-110px",placeholder:"\u5168\u90E8",onChange:L},{default:l(()=>[(o(!0),f(w,null,S(e(O),a=>(o(),n(M,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","type"]),[[ia,!0]])]),_:1}),t(U,null,{default:l(()=>[t(T,{onClick:z},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:search"}),x(" \u641C\u7D22 ")]),_:1}),t(T,{onClick:$},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:refresh"}),x(" \u91CD\u7F6E ")]),_:1}),m((o(),n(T,{onClick:Q,type:"success",plain:""},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:check"}),x(" \u6838\u9500 ")]),_:1})),[[ra,["trade:order:pick-up"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t(Z,{gutter:16,class:"summary"},{default:l(()=>[m((o(),n(P,{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(),n(P,{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(K)(((a=e(v))==null?void 0:a.orderPayPrice)||0)},null,8,["value"])]}),_:1})),[[b,e(p)]]),m((o(),n(P,{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(),n(P,{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(K)(((a=e(v))==null?void 0:a.afterSalePrice)||0)},null,8,["value"])]}),_:1})),[[b,e(p)]])]),_:1}),t(B,null,{default:l(()=>[m((o(),n(ta,{data:e(R)},{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(w,null,S(a.items,s=>(o(),f("div",{class:"flex items-center",key:s.id},[t(aa,{src:s.picUrl,class:"mr-10px h-30px w-30px flex-shrink-0","preview-src-list":[s.picUrl],"preview-teleported":""},null,8,["src","preview-src-list"]),q("span",D,y(s.spuName),1),q("div",C,[(o(!0),f(w,null,S(s.properties,g=>(o(),n(ea,{key:g.propertyId,class:"mr-10px"},{default:l(()=>[x(y(g.propertyName)+": "+y(g.valueName),1)]),_:2},1024))),128)),q("span",null,y(e(na)(s.price))+" \u5143 x "+y(s.count),1)])]))),128))]),_:1}),t(c,{label:"\u5B9E\u4ED8\u91D1\u989D(\u5143)",align:"center",prop:"payPrice","min-width":"110",formatter:e(Ma)},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 s;return[x(y((s=e(N).find(g=>g.id===a.pickUpStoreId))==null?void 0:s.name),1)]}),_:1}),t(c,{label:"\u652F\u4ED8\u72B6\u6001",align:"center",prop:"payStatus","min-width":"80"},{default:l(({row:a})=>[t(G,{type:e(j).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(G,{type:e(j).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(E),onPagination:k},null,8,["limit","page","total"])]),_:1}),t(Ja,{ref_key:"pickUpForm",ref:H,onSuccess:k},null,512)],64)}}}),[["__scopeId","data-v-595344c7"]])});export{ve as __tla,J as default};
|