import{Z as $,$ as j,a0 as O,F as q,D as z,R as G,S as J,w as Q,G as W,J as Z,M as H,N as K,O as X}from"./element-plus.ab0703f2.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as te}from"./usePaging.fff444fa.js";import{a as oe}from"./index.ae42b2c0.js";import{c as le}from"./store_finance_flow.1740f3bb.js";import{h as ae}from"./goodsList.34b32919.js";import{d as C,$ as ne,r as i,o as p,c,W as e,Q as t,u as l,j as F,F as se,a9 as re,P as v,U as E,R as ue,a as g,V as y}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const ie={key:0,class:"text-success"},pe={key:1,class:"text-danger"},me={class:"flex mt-4 justify-end"},de=C({name:"storeFinanceFlowLists"}),Xe=C({...de,setup(_e){const V=oe().userInfo,a=ne({keyword:"",start_time:"",end_time:"",order:"",staff_id:"",store_id:V.store_id}),r=i(null),k=()=>{r.value=[],x()},D=i([]),B=u=>{D.value=u.map(({id:n})=>n)},{pager:m,getLists:f,resetParams:x,resetPage:S}=te({fetchFun:le,params:a});f(),i(!1),i([]),i([]);const L=()=>{var u;(u=r.value)!=null&&u.length?(a.start_time=r.value[0]+" 00:00:00",a.end_time=r.value[1]+" 23:59:59"):(a.start_time="",a.end_time=""),S()},w=i([]);return(async()=>{let u=await ae({page_no:1,page_size:100});w.value=u.lists})(),(u,n)=>{const P=$,d=q,_=j,R=z,U=G,A=J,b=Q,I=O,N=W,h=Z,s=H,Y=K,M=ee,T=X;return p(),c("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:l(a),"label-width":"80px"},{default:t(()=>[e(I,null,{default:t(()=>[e(_,{span:6},{default:t(()=>[e(d,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:t(()=>[e(P,{modelValue:l(r),"onUpdate:modelValue":n[0]||(n[0]=o=>F(r)?r.value=o:null),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:6},{default:t(()=>[e(d,{label:"\u8BA2\u5355\u641C\u7D22"},{default:t(()=>[e(R,{modelValue:l(a).keyword,"onUpdate:modelValue":n[1]||(n[1]=o=>l(a).keyword=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA4\u6613\u5355\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:6},{default:t(()=>[e(d,{label:"\u5E97\u5458"},{default:t(()=>[e(A,{class:"flex-1",modelValue:l(a).staff_id,"onUpdate:modelValue":n[2]||(n[2]=o=>l(a).staff_id=o),placeholder:"\u8BF7\u9009\u62E9\u5E97\u5458"},{default:t(()=>[(p(!0),c(se,null,re(l(w),(o,fe)=>(p(),v(U,{label:o.staff_name,value:o.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(_,{span:6},{default:t(()=>[e(d,null,{default:t(()=>[e(b,{type:"primary",onClick:L},{default:t(()=>[E("\u67E5\u8BE2")]),_:1}),e(b,{onClick:k},{default:t(()=>[E("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ue((p(),v(h,{class:"!border-none",shadow:"never"},{default:t(()=>[g("div",null,[e(Y,{data:l(m).lists,onSelectionChange:B,"row-key":"id","tree-props":{children:"list"}},{default:t(()=>[e(s,{label:"ID",prop:"id","min-width":"100","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u5355\u53F7",prop:"order_sn","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","min-width":"120","show-overflow-tooltip":""}),e(s,{label:"\u91D1\u989D",prop:"number","min-width":"100","show-overflow-tooltip":""},{default:t(({row:o})=>[o.number>0?(p(),c("span",ie,y(o.number),1)):(p(),c("span",pe,y(o.number),1))]),_:1}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u7528\u6237",prop:"nickname","min-width":"80","show-overflow-tooltip":""}),e(s,{label:"\u6536\u76CA/\u6263\u9664",prop:"financial_type_name","show-overflow-tooltip":""}),e(s,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),g("div",me,[e(M,{modelValue:l(m),"onUpdate:modelValue":n[3]||(n[3]=o=>F(m)?m.value=o:null),onChange:l(f)},null,8,["modelValue","onChange"])])]),_:1})),[[T,l(m).loading]])])}}});export{Xe as default};