2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
import{U as R,x as Y,y as q,J as M,K as U,D as $,w as A,F as S,L as K}from"./element-plus.7e347b00.js";import"./index.390c2a09.js";import"./lodash.4e6d2a38.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.6620ffc9.js";import{a as j}from"./system_store.ea3e5c4d.js";import{_ as f}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.fb82621a.js";import{s as z}from"./shortcuts.7e7a323b.js";import{h as T}from"./moment.40bc58bf.js";import{d as w,r as m,Z as I,w as J,n as O,o as c,c as h,U as e,L as a,u as o,T as Z,a9 as G,K as H,j as C,R as g}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b0c09b66.js";import"./index.5c383401.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_cash_finance_flow.309e17b1.js";import"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.7ca96b18.js";import"./store_finance_flow.7c983d84.js";const Q=w({name:"storeCashFinanceFlowLists"}),Ie=w({...Q,setup(W){const u=m([]),r=I({store_id:"",start_time:"",end_time:""});J(()=>u.value,(s,t)=>{r.start_time=T(s[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(s[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const p=m(!1),b=m([]),N=(s="")=>{p.value=!0,j({name:s,page_size:50}).then(t=>{b.value=t.lists,setTimeout(()=>{p.value=!1},300)}).catch(t=>{setTimeout(()=>{p.value=!1},300)})},v=m(null),y=m(null),E=m(null),n=m("first"),i=s=>{s.paneName=="first"?v.value.getLists():s.paneName=="second"?y.value.getLists():s.paneName=="three"&&E.value.getLists()},V=()=>{r.store_id="",r.create_time="",i({paneName:n.value})};return O(()=>{i({paneName:n.value})}),(s,t)=>{const D=M,P=U,d=$,x=R,k=A,B=S,F=K,_=Y,L=q;return c(),h("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(B,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(P,{modelValue:o(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=l=>o(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:o(p),style:{width:"240px"},onChange:t[1]||(t[1]=l=>i({paneName:o(n)}))},{default:a(()=>[(c(!0),h(Z,null,G(o(b),l=>(c(),H(D,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(d,{label:"\u65F6\u95F4",prop:"create_time"},{default:a(()=>[e(x,{modelValue:o(u),"onUpdate:modelValue":t[2]||(t[2]=l=>C(u)?u.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:o(z),onChange:t[3]||(t[3]=l=>i({paneName:o(n)}))},null,8,["modelValue","shortcuts"])]),_:1}),e(d,null,{default:a(()=>[e(k,{type:"primary",onClick:t[4]||(t[4]=l=>i({paneName:o(n)}))},{default:a(()=>[g("\u67E5\u8BE2")]),_:1}),e(k,{onClick:V},{default:a(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(F,{class:"!border-none",shadow:"never"},{default:a(()=>[e(L,{modelValue:o(n),"onUpdate:modelValue":t[5]||(t[5]=l=>C(n)?n.value=l:null),class:"demo-tabs",onTabClick:i},{default:a(()=>[e(_,{label:"\u65E5\u8BA2\u5355",name:"first"},{default:a(()=>[e(f,{ref_key:"billTableRef1",ref:v,queryParams:o(r),type:"day"},null,8,["queryParams"])]),_:1}),e(_,{label:"\u5468\u8BA2\u5355",name:"second"},{default:a(()=>[e(f,{ref_key:"billTableRef2",ref:y,queryParams:o(r),type:"week"},null,8,["queryParams"])]),_:1}),e(_,{label:"\u6708\u8BA2\u5355",name:"three"},{default:a(()=>[e(f,{ref_key:"billTableRef3",ref:E,queryParams:o(r),type:"month"},null,8,["queryParams"])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ie as default};
|