multiStoreAdmin/build/store/assets/index.237d9217.js

2 lines
4.5 KiB
JavaScript

import{Y as S,_ as j,$ as q,x as A,y as O,D as W,w as z,F as G,I as H,L as J,M as K,N as Q}from"./element-plus.0a93cab1.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.3863431c.js";import{u as Z}from"./usePaging.d25ebf19.js";import{b as ee}from"./store_finance_flow.88563a53.js";import{_ as te}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.bbe2bf87.js";import{a as oe}from"./index.f0edef73.js";import{d as F,r as m,a0 as ae,o as b,c as le,W as e,O as t,T as u,P as ne,u as p,M as h,a as y,U as D,j as se,S as re,n as ue}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.7aed2c51.js";import"./goodsList.d0c6c1b7.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const ie={class:"mt-4"},me={class:"flex mt-4 justify-end"},pe=F({name:"manageProjectLists"}),Xe=F({...pe,setup(de){const k=oe().userInfo,d=m(1),s=m(null),_=m(!1),E=m(null),a=ae({type:1,start_time:"",end_time:"",store_id:k.store_id}),{pager:i,getLists:c,resetParams:x,resetPage:V}=Z({fetchFun:ee,params:a}),B=()=>{var n;(n=s.value)!=null&&n.length?(a.start_time=s.value[0]+" 00:00:00",a.end_time=s.value[1]+" 23:59:59"):(a.start_time="",a.end_time=""),V()},P=()=>{s.value=[],x()},T=n=>{a.type=d.value,c()},N=async n=>{n.type=a.type,_.value=!0,await ue(),E.value.open(n)};return c(),(n,l)=>{const R=S,w=W,C=j,f=z,L=q,U=G,g=H,v=A,Y=O,r=J,$=K,I=X,M=Q;return b(),le("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(U,{class:"mb-[-16px]",model:a,"label-width":"80px"},{default:t(()=>[e(L,null,{default:t(()=>[e(C,{span:6},{default:t(()=>[e(w,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:t(()=>[e(R,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=o=>s.value=o),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])]),_:1})]),_:1}),e(C,{span:6},{default:t(()=>[e(w,null,{default:t(()=>[e(f,{type:"primary",onClick:B},{default:t(()=>[u("\u67E5\u8BE2")]),_:1}),e(f,{onClick:P},{default:t(()=>[u("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ne((b(),h(g,{class:"!border-none",shadow:"never"},{default:t(()=>[e(Y,{modelValue:d.value,"onUpdate:modelValue":l[1]||(l[1]=o=>d.value=o),class:"demo-tabs",onTabChange:T},{default:t(()=>[e(v,{label:"\u65E5\u8D26\u5355",name:1}),e(v,{label:"\u5468\u8D26\u5355",name:2}),e(v,{label:"\u6708\u8D26\u5355",name:3})]),_:1},8,["modelValue"]),y("div",ie,[e($,{data:p(i).lists},{default:t(()=>[e(r,{label:"\u6807\u9898",prop:"financial_record_sn","show-overflow-tooltip":""},{default:t(({row:o})=>[u(D(a.type==1?"\u65E5\u8D26\u5355":a.type==2?"\u5468\u8D26\u5355":"\u6708\u8D26\u5355"),1)]),_:1}),e(r,{label:"\u65E5\u671F",prop:"time","show-overflow-tooltip":""},{default:t(({row:o})=>[u(D(o.date),1)]),_:1}),e(r,{label:"\u6536\u5165\u91D1\u989D",prop:"income","show-overflow-tooltip":""}),e(r,{label:"\u652F\u51FA\u91D1\u989D",prop:"expenditure","show-overflow-tooltip":""}),e(r,{label:"\u95E8\u5E97\u5165\u8D26\u91D1\u989D",prop:"expenditure","show-overflow-tooltip":""},{default:t(({row:o})=>[u(D((+o.income-+o.expenditure).toFixed(2)),1)]),_:1}),e(r,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:o})=>[e(f,{onClick:_e=>N(o),link:"",type:"primary"},{default:t(()=>[u("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),y("div",me,[e(I,{modelValue:p(i),"onUpdate:modelValue":l[2]||(l[2]=o=>se(i)?i.value=o:null),onChange:p(c)},null,8,["modelValue","onChange"])])]),_:1})),[[M,p(i).loading]]),_.value?(b(),h(te,{key:0,ref_key:"detailRef",ref:E,onClose:l[3]||(l[3]=o=>_.value=!1)},null,512)):re("",!0)])}}});export{Xe as default};