2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
|
import{S as L,x as R,y as q,J as A,K as S,D as U,w as $,F as K,L as j}from"./element-plus.78e68aed.js";import"./index.49b211ae.js";import"./lodash.60201f64.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.6ccfd8c5.js";import{a as z}from"./system_store.09c222e2.js";import{_ as f}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.0361a7d5.js";import{h as F}from"./moment.40bc58bf.js";import{d as C,r as i,Z as I,w as J,n as O,o as D,c as g,U as a,L as r,u as l,T as Z,a9 as G,K as H,j as k,R as x}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.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.af6a9f5a.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_cash_finance_flow.77796b09.js";import"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.d3b8fa80.js";import"./store_finance_flow.363cd186.js";const Q=[{text:"\u4ECA\u5929",value:()=>{const t=new Date;return[new Date,t]}},{text:"\u6628\u5929",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-1),t.setDate(t.getDate()-1),[e,t]}},{text:"\u6700\u8FD17\u5929",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,t]}},{text:"\u6700\u8FD130\u5929",value:()=>{const t=new Date,e=new Date;return e.setDate(e.getDate()-30),[e,t]}},{text:"\u4E0A\u6708",value:()=>{const t=new Date,e=new Date;return e.setMonth(e.getMonth()-1),e.setDate(1),t.setDate(0),[e,t]}},{text:"\u672C\u6708",value:()=>{const t=new Date,e=new Date;return e.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}},{text:"\u672C\u5E74",value:()=>{const t=new Date,e=new Date;return e.setMonth(0),e.setDate(1),t.setFullYear(t.getFullYear()+1),t.setMonth(0),t.setDate(0),[e,t]}}],W=Q,X=C({name:"storeCashFinanceFlowLists"}),Ke=C({...X,setup(t){const e=i([]),s=I({store_id:"",start_time:"",end_time:""});J(()=>e.value,(u,o)=>{s.start_time=F(u[0]).format("YYYY-MM-DD")+" 00:00:00",s.end_time=F(u[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const d=i(!1),b=i([]),T=(u="")=>{d.value=!0,z({name:u,page_size:50}).then(o=>{b.value=o.lists,setTimeout(()=>{d.value=!1},300)}).catch(o=>{setTimeout(()=>{d.value=!1},300)})},v=i(null),w=i(null),E=i(null),m=i("first"),p=u=>{u.paneName=="first"?v.value.getLists():u.paneName=="second"?w.value.getLists():u.paneName=="three"&&E.value.getLists()},M=()=>{s.store_id="",s.create_time="",p({paneName:m.value})};return O(()=>{p({paneName:m.value})}),(u,o)=>{const V=A,N=S,c=U,P=L,h=$,Y=K,y=j,_=R,B=q;return D(),g("div",null,[a(y,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[a(Y,{class:"mb-[-16px]",model:l(s),inline:""},{default:r(()=>[a(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:r(()=>[a(N,{modelValue:l(s).store_id,"onUpdate:modelValue":o[0]||(o[0]=n=>l(s).store_id=n),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":T,loading:l(d),style:{width:"240px"},onChange:o[1]||(o[1]=n=>p({paneName:l(m)}))},{default:r(()=>[(D(!0),g(Z,null,G(l(b),n=>(D(),H(V,{key:n.id,label:n.name,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),a(c,{label:"\u65F6\u95F4",prop:"create_t
|