moreShopAdmin/build/admin/assets/index.fffc4726.js
2025-03-26 17:47:04 +08:00

2 lines
5.4 KiB
JavaScript

import{V as O,N as j,O as q,D as K,C as R,w as $,F as G,K as H,G as Z,H as J,I as Q}from"./element-plus.8e273e86.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.dc11f5d9.js";import{u as ee}from"./usePaging.f8c888e4.js";import"./index.23ef5f03.js";import{e as F}from"./beforehand_order_cart_info.f6169cd1.js";import{a as oe}from"./system_store.2ac4da80.js";import{d as V,Z as te,r as c,i as le,af as ae,o as m,c as E,U as e,L as a,u as o,T as re,a9 as ne,K as w,j as C,R as f,M as se,a as g,S as ue}from"./@vue.76ce7aa3.js";import"./lodash.41b9567d.js";import{h as B}from"./moment.40bc58bf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.bfcf3e4f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";const ie={class:"mt-4"},pe={class:"flex mt-4 justify-end"},me=V({name:"beforehandOrderCartInfoLists"}),oo=V({...me,setup(de){const r=te({store_id:"",store_name:"",bhoid:"",start_time:"",end_time:""}),D=c([]),k=p=>{D.value=p.map(({id:t})=>t)},s=c([]),x=()=>{s.value[0]&&s.value[1]?(r.start_time=B(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=B(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),d()},{pager:u,getLists:d,resetParams:y,resetPage:L}=ee({fetchFun:F,params:r}),_=c([]),S=()=>{_.value.length>0||oe({page_size:50}).then(p=>{_.value=p.lists})};return le(()=>{d(),S()}),(p,t)=>{const Y=j,M=q,i=K,b=R,T=O,h=$,U=X,A=G,v=H,n=Z,I=ae("router-link"),P=J,z=W,N=Q;return m(),E("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(A,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(i,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id",class:"w-[260px]"},{default:a(()=>[e(M,{modelValue:o(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).store_id=l),filterable:"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22"},{default:a(()=>[(m(!0),E(re,null,ne(o(_),l=>(m(),w(Y,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(b,{class:"w-[280px]",modelValue:o(r).store_name,"onUpdate:modelValue":t[1]||(t[1]=l=>o(r).store_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BA2\u5355id",prop:"bhoid"},{default:a(()=>[e(b,{class:"w-[280px]",modelValue:o(r).bhoid,"onUpdate:modelValue":t[2]||(t[2]=l=>o(r).bhoid=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355id"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65E5\u671F",prop:"create_time"},{default:a(()=>[e(T,{modelValue:o(s),"onUpdate:modelValue":t[3]||(t[3]=l=>C(s)?s.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:x},null,8,["modelValue"])]),_:1}),e(i,null,{default:a(()=>[e(h,{type:"primary",onClick:o(L)},{default:a(()=>t[5]||(t[5]=[f("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(h,{onClick:o(y)},{default:a(()=>t[6]||(t[6]=[f("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(U,{class:"ml-2.5","fetch-fun":o(F),params:o(r),"page-size":o(u).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),se((m(),w(v,{class:"!border-none",shadow:"never"},{default:a(()=>[g("div",ie,[e(P,{data:o(u).lists,onSelectionChange:k},{default:a(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u8BA2\u5355id",prop:"bhoid","show-overflow-tooltip":""},{default:a(({row:l})=>[e(I,{class:"ml-4 text-[#63c869]",to:{path:"beforehand_order_details",query:{id:l.bhoid}}},{default:a(()=>[f(ue(l.bhoid),1)]),_:2},1032,["to"])]),_:1}),e(n,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(n,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(n,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(n,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(n,{label:"\u5355\u4EF7",prop:"price","show-overflow-tooltip":""}),e(n,{label:"\u603B\u4EF7",prop:"total_price","show-overflow-tooltip":""}),e(n,{label:"\u6570\u91CF",prop:"cart_num","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),g("div",pe,[e(z,{modelValue:o(u),"onUpdate:modelValue":t[4]||(t[4]=l=>C(u)?u.value=l:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[N,o(u).loading]])])}}});export{oo as default};