2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
import{m as h,r as u,aT as x,w as L,n as R,bg as M,ag as $,ah as A,p as f,q as T,t,v as l,u as a,V as S,W as U,y as z,i as g,a2 as C,b3 as I,b4 as O,aX as W,ae as X,aY as j,b5 as G,bh as V}from"./.pnpm.1b0299fb.js";import"./index.689cfa31.js";import"./lodash.c3b66c05.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.87c2045a.js";import{a as H}from"./system_store.e6c50bcf.js";import{_ as c}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.db5321bb.js";import{s as J}from"./shortcuts.7e7a323b.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";import"./index.6c48d0ba.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";import"./store_cash_finance_flow.d623b7ca.js";import"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import"./usePaging.00aa976d.js";import"./useDictOptions.e9843f63.js";import"./store_finance_flow.07bcfa95.js";const K=h({name:"storeCashFinanceFlowLists"}),ce=h({...K,setup(Q){const i=u([]),s=x({store_id:"",start_time:"",end_time:""});L(()=>i.value,(n,e)=>{s.start_time=V(n[0]).format("YYYY-MM-DD")+" 00:00:00",s.end_time=V(n[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const d=u(!1),b=u([]),N=(n="")=>{d.value=!0,H({name:n,page_size:50}).then(e=>{b.value=e.lists,setTimeout(()=>{d.value=!1},300)}).catch(e=>{setTimeout(()=>{d.value=!1},300)})},v=u(null),y=u(null),E=u(null),r=u("first"),m=n=>{n.paneName=="first"?v.value.getLists():n.paneName=="second"?y.value.getLists():n.paneName=="three"&&E.value.getLists()},w=()=>{s.store_id="",s.create_time="",m({paneName:r.value})};return R(()=>{m({paneName:r.value})}),(n,e)=>{const P=I,B=O,p=W,D=M,k=X,Y=j,F=G,_=$,q=A;return f(),T("div",null,[t(F,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(Y,{class:"mb-[-16px]",model:a(s),inline:""},{default:l(()=>[t(p,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[t(B,{modelValue:a(s).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>a(s).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:a(d),style:{width:"240px"},onChange:e[1]||(e[1]=o=>m({paneName:a(r)}))},{default:l(()=>[(f(!0),T(S,null,U(a(b),o=>(f(),z(P,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),t(p,{label:"\u65F6\u95F4",prop:"create_time"},{default:l(()=>[t(D,{modelValue:a(i),"onUpdate:modelValue":e[2]||(e[2]=o=>g(i)?i.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:a(J),onChange:e[3]||(e[3]=o=>m({paneName:a(r)}))},null,8,["modelValue","shortcuts"])]),_:1}),t(p,null,{default:l(()=>[t(k,{type:"primary",onClick:e[4]||(e[4]=o=>m({paneName:a(r)}))},{default:l(()=>e[6]||(e[6]=[C("\u67E5\u8BE2")])),_:1}),t(k,{onClick:w},{default:l(()=>e[7]||(e[7]=[C("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(F,{class:"!border-none",shadow:"never"},{default:l(()=>[t(q,{modelValue:a(r),"onUpdate:modelValue":e[5]||(e[5]=o=>g(r)?r.value=o:null),class:"demo-tabs",onTabClick:m},{default:l(()=>[t(_,{label:"\u65E5\u8BA2\u5355",name:"first"},{default:l(()=>[t(c,{ref_key:"billTableRef1",ref:v,queryParams:a(s),type:"day"},null,8,["queryParams"])]),_:1}),t(_,{label:"\u5468\u8BA2\u5355",name:"second"},{default:l(()=>[t(c,{ref_key:"billTableRef2",ref:y,queryParams:a(s),type:"week"},null,8,["queryParams"])]),_:1}),t(_,{label:"\u6708\u8BA2\u5355",name:"three"},{default:l(()=>[t(c,{ref_key:"billTableRef3",ref:E,queryParams:a(s),type:"month"},null,8,["queryParams"])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{ce as default};
|