moreShopAdmin/build/admin/assets/index.c4e3ac0f.js

2 lines
5.3 KiB
JavaScript

import{_ as L,x as R,y as q,J as A,K as $,D as U,w as S,F as K,L as j}from"./element-plus.7b9d0c0d.js";import"./index.13a276ec.js";import"./lodash.9dc701ad.js";import"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.066683d1.js";import{a as z}from"./system_store.cf3d7565.js";import{_ as f}from"./billTable.vue_vue_type_script_setup_true_name_billTable_lang.b6d2d34b.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 n,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.7347fedc.js";import"./axios.4607972f.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.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.77baabca.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./store_cash_finance_flow.0e9f0305.js";import"./index.vue_vue_type_script_setup_true_lang.8b9de773.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.996b92e9.js";import"./store_finance_flow.b59b780f.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),v=i([]),T=(u="")=>{d.value=!0,z({name:u,page_size:50}).then(o=>{v.value=o.lists,setTimeout(()=>{d.value=!1},300)}).catch(o=>{setTimeout(()=>{d.value=!1},300)})},b=i(null),w=i(null),E=i(null),m=i("first"),p=u=>{u.paneName=="first"?b.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 N=A,V=$,c=U,P=L,y=S,Y=K,h=j,_=R,B=q;return D(),g("div",null,[a(h,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[a(Y,{class:"mb-[-16px]",model:n(s),inline:""},{default:r(()=>[a(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:r(()=>[a(V,{modelValue:n(s).store_id,"onUpdate:modelValue":o[0]||(o[0]=l=>n(s).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":T,loading:n(d),style:{width:"240px"},onChange:o[1]||(o[1]=l=>p({paneName:n(m)}))},{default:r(()=>[(D(!0),g(Z,null,G(n(v),l=>(D(),H(N,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),a(c,{label:"\u65F6\u95F4",prop:"create_time"},{default:r(()=>[a(P,{modelValue:n(e),"onUpdate:modelValue":o[2]||(o[2]=l=>k(e)?e.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:n(W),onChange:o[3]||(o[3]=l=>p({paneName:n(m)}))},null,8,["modelValue","shortcuts"])]),_:1}),a(c,null,{default:r(()=>[a(y,{type:"primary",onClick:o[4]||(o[4]=l=>p({paneName:n(m)}))},{default:r(()=>[x("\u67E5\u8BE2")]),_:1}),a(y,{onClick:M},{default:r(()=>[x("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(h,{class:"!border-none",shadow:"never"},{default:r(()=>[a(B,{modelValue:n(m),"onUpdate:modelValue":o[5]||(o[5]=l=>k(m)?m.value=l:null),class:"demo-tabs",onTabClick:p},{default:r(()=>[a(_,{label:"\u65E5\u8BA2\u5355",name:"first"},{default:r(()=>[a(f,{ref_key:"billTableRef1",ref:b,queryParams:n(s),type:"day"},null,8,["queryParams"])]),_:1}),a(_,{label:"\u5468\u8BA2\u5355",name:"second"},{default:r(()=>[a(f,{ref_key:"billTableRef2",ref:w,queryParams:n(s),type:"week"},null,8,["queryParams"])]),_:1}),a(_,{label:"\u6708\u8BA2\u5355",name:"three"},{default:r(()=>[a(f,{ref_key:"billTableRef3",ref:E,queryParams:n(s),type:"month"},null,8,["queryParams"])]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ke as default};