1 |
- import{d as _a,r as i,f as oa,z as ca,S as sa,o,c as f,i as t,w as l,a as e,F as w,C as P,j as n,D as m,a6 as ia,m as x,a_ as j,k as T,t as y,at as na,p as ua,I as pa,G as ma,H as da,X as fa,_ as ya,q as ha,J as va,E as ba,s as ga,K as wa,al as xa,L as ka,M as Ua,__tla as Sa}from"./index-1e808f2e.js";import{_ as Pa,__tla as Ia}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as Na,__tla as Va}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{E as Da,__tla as Ta}from"./el-image-263fb014.js";import{__tla as qa}from"./el-image-viewer-dddb6285.js";import{_ as Ca,__tla as Ea}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{o as Ra,c as za,__tla as Aa}from"./index-b776b94b.js";import{g as Fa,__tla as Oa}from"./index-cbf8a6e1.js";import{D as J,__tla as Ma}from"./dict-a31cb4ba.js";import{f as Ya,__tla as Ga}from"./formatter-55e90c25.js";import{_ as I,__tla as Ha}from"./index.vue_vue_type_script_setup_true_lang-ca7a6f97.js";import{d as La,__tla as ja}from"./formatTime-a348c3be.js";import{D as Ja}from"./constants-e43f22dd.js";import{_ as Ka,__tla as Ba}from"./OrderPickUpForm.vue_vue_type_script_setup_true_lang-5d1bba22.js";import{_ as Xa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as $a}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Qa}from"./el-card-03b3588b.js";import{__tla as Wa}from"./CountTo.vue_vue_type_script_setup_true_lang-cb3046c3.js";import{__tla as Za}from"./Dialog-f44f9d78.js";import{__tla as ae}from"./index-de23e0fa.js";import{__tla as ee}from"./el-timeline-item-cb959fb7.js";import{__tla as te}from"./el-link-1faa17b5.js";import{__tla as le}from"./el-descriptions-item-8d4be2e8.js";import{__tla as re}from"./OrderUpdateRemarkForm-25c20826.js";import{__tla as _e}from"./OrderBaseInfo-2d922922.js";import{__tla as oe}from"./SPuUploadImg-f0bd750f.js";import{__tla as ce}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as se}from"./index-b59955b6.js";import{__tla as ie}from"./useMessage-5f9e8917.js";import{__tla as ne}from"./OrderProduct-23a794a7.js";import{__tla as ue}from"./OrderDeliveryForm-c7f6abf5.js";import{__tla as pe}from"./index-57a3dfbf.js";import{__tla as me}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-58dc19dd.js";import{__tla as de}from"./el-tree-select-e8e05888.js";import{__tla as fe}from"./index-f40ed4f7.js";import"./tree-fd3a041e.js";import{__tla as ye}from"./OrderUpdatePriceForm.vue_vue_type_script_setup_true_lang-3fd23e50.js";import{__tla as he}from"./tagsView-1954bd1b.js";let K,ve=Promise.all([(()=>{try{return Sa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}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 q,C;q={class:"mr-10px"},C={class:"flex flex-col flex-wrap gap-1"},K=Xa(_a({name:"PickUpOrder",__name:"index",setup(be){const p=i(!0),E=i(2),R=i([]),z=i(),A={pageNo:1,pageSize:10,createTime:void 0,deliveryType:Ja.PICK_UP.type,pickUpStoreId:void 0},r=i({...A}),h=oa({queryParam:"no"}),v=i(),F=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"}]),B=u=>{var _;(_=F.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 za(e(r));R.value=u.list,E.value=u.total}finally{p.value=!1}},O=async()=>{r.value.pageNo=1,await k()},X=()=>{var u;(u=z.value)==null||u.resetFields(),r.value={...A},O()},N=i([]),M=i(),$=()=>{M.value.open()};return ca(()=>{k(),(async()=>N.value=await Fa())()}),(u,_)=>{const d=ua,U=pa,Y=ma,G=da,Q=fa,V=ya,D=ha,W=va,H=Ca,S=ba,Z=ga,c=wa,aa=Da,ea=xa,L=Na,ta=ka,la=Pa,ra=sa("hasPermi"),b=Ua;return o(),f(w,null,[t(H,null,{default:l(()=>[t(W,{ref_key:"queryFormRef",ref:z,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(G,{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,P(e(N),a=>(o(),n(Y,{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(Q,{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(G,{modelValue:e(h).queryParam,"onUpdate:modelValue":_[2]||(_[2]=a=>e(h).queryParam=a),class:"!w-110px",placeholder:"\u5168\u90E8",onChange:B},{default:l(()=>[(o(!0),f(w,null,P(e(F),a=>(o(),n(Y,{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(D,{onClick:O},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:search"}),x(" \u641C\u7D22 ")]),_:1}),t(D,{onClick:X},{default:l(()=>[t(V,{class:"mr-5px",icon:"ep:refresh"}),x(" \u91CD\u7F6E ")]),_:1}),m((o(),n(D,{onClick:$,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(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(),n(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(j)(((a=e(v))==null?void 0:a.orderPayPrice)||0)},null,8,["value"])]}),_:1})),[[b,e(p)]]),m((o(),n(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(),n(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(j)(((a=e(v))==null?void 0:a.afterSalePrice)||0)},null,8,["value"])]}),_:1})),[[b,e(p)]])]),_:1}),t(H,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,P(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"]),T("span",q,y(s.spuName),1),T("div",C,[(o(!0),f(w,null,P(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)),T("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(Ya)},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(L,{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(L,{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(La)},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(Ka,{ref_key:"pickUpForm",ref:M,onSuccess:k},null,512)],64)}}}),[["__scopeId","data-v-595344c7"]])});export{ve as __tla,K as default};
|