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.bbf57713.js";import"./lodash.60201f64.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.f2f6b73d.js";import{a as z}from"./system_store.e0560729.js";import{_ as f}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.ecd7f43f.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.e34f1810.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_cash_finance_flow.c995720b.js";import"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.6344d4d1.js";import"./store_finance_flow.1708df25.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_time"},{default:r(()=>[a(P,{modelValue:l(e),"onUpdate:modelValue":o[2]||(o[2]=n=>k(e)?e.value=n:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:l(W)},null,8,["modelValue","shortcuts"])]),_:1}),a(c,null,{default:r(()=>[a(h,{type:"primary",onClick:o[3]||(o[3]=n=>p({paneName:l(m)}))},{default:r(()=>[x("\u67E5\u8BE2")]),_:1}),a(h,{onClick:M},{default:r(()=>[x("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(y,{class:"!border-none",shadow:"never"},{default:r(()=>[a(B,{modelValue:l(m),"onUpdate:modelValue":o[4]||(o[4]=n=>k(m)?m.value=n:null),class:"demo-tabs",onTabClick:p},{default:r(()=>[a(_,{label:"\u65E5\u8BA2\u5355",name:"first"},{default:r(()=>[a(f,{ref_key:"billTableRef1",ref:v,queryParams:l(s),type:"day"},null,8,["queryParams"])]),_:1}),a(_,{label:"\u5468\u8BA2\u5355",name:"second"},{default:r(()=>[a(f,{ref_key:"billTableRef2",ref:w,queryParams:l(s),type:"week"},null,8,["queryParams"])]),_:1}),a(_,{label:"\u6708\u8BA2\u5355",name:"three"},{default:r(()=>[a(f,{ref_key:"billTableRef3",ref:E,queryParams:l(s),type:"month"},null,8,["queryParams"])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ke as default};
|