multiStoreAdmin/build/store/assets/index.738d5388.js

2 lines
4.4 KiB
JavaScript

import{Y as j,$ as S,a0 as I,x as q,y as A,D as O,w as W,F as z,I as G,L as H,M as J,N as K}from"./element-plus.a40e8d80.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.4ac5ccb7.js";import{u as X}from"./usePaging.d25ebf19.js";import{b as Z}from"./store_finance_flow.47b0debe.js";import{_ as ee}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.c915f74f.js";import{d as w,r as m,a0 as te,o as b,c as oe,W as e,O as o,T as u,P as ae,u as p,M as y,a as F,U as D,j as le,S as ne,n as se}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.b0c4f970.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";import"./index.25babf05.js";import"./goodsList.03aa23c8.js";const ue={class:"mt-4"},re={class:"flex mt-4 justify-end"},ie=w({name:"manageProjectLists"}),Ke=w({...ie,setup(me){const d=m(1),n=m(null),_=m(!1),E=m(null),a=te({type:1,start_time:"",end_time:""}),{pager:r,getLists:c,resetParams:k,resetPage:x}=X({fetchFun:Z,params:a}),V=()=>{n.value.length&&(a.start_time=n.value[0],a.end_time=n.value[1]),x()},B=()=>{n.value=[],k()},P=i=>{a.type=d.value,c()},T=async i=>{i.type=a.type,_.value=!0,await se(),E.value.open(i)};return c(),(i,l)=>{const $=j,C=O,h=S,f=W,N=I,R=z,g=G,v=q,L=A,s=H,Y=J,M=Q,U=K;return b(),oe("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(R,{class:"mb-[-16px]",model:a,"label-width":"80px"},{default:o(()=>[e(N,null,{default:o(()=>[e(h,{span:6},{default:o(()=>[e(C,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:o(()=>[e($,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=t=>n.value=t),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(h,{span:6},{default:o(()=>[e(C,null,{default:o(()=>[e(f,{type:"primary",onClick:V},{default:o(()=>[u("\u67E5\u8BE2")]),_:1}),e(f,{onClick:B},{default:o(()=>[u("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ae((b(),y(g,{class:"!border-none",shadow:"never"},{default:o(()=>[e(L,{modelValue:d.value,"onUpdate:modelValue":l[1]||(l[1]=t=>d.value=t),class:"demo-tabs",onTabChange:P},{default:o(()=>[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"]),F("div",ue,[e(Y,{data:p(r).lists},{default:o(()=>[e(s,{label:"\u6807\u9898",prop:"financial_record_sn","show-overflow-tooltip":""},{default:o(({row:t})=>[u(D(a.type==1?"\u65E5\u8D26\u5355":a.type==2?"\u5468\u8D26\u5355":"\u6708\u8D26\u5355"),1)]),_:1}),e(s,{label:"\u65E5\u671F",prop:"time","show-overflow-tooltip":""},{default:o(({row:t})=>[u(D(t.time?t.time:`\u7B2C${t.year}-${t.week}\u5468(${t.month}\u6708) `),1)]),_:1}),e(s,{label:"\u6536\u5165\u91D1\u989D",prop:"income","show-overflow-tooltip":""}),e(s,{label:"\u652F\u51FA\u91D1\u989D",prop:"expense","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u5165\u8D26\u91D1\u989D",prop:"expense","show-overflow-tooltip":""},{default:o(({row:t})=>[u(D((+t.income-+t.expense).toFixed(2)),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:t})=>[e(f,{onClick:pe=>T(t),link:"",type:"primary"},{default:o(()=>[u("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),F("div",re,[e(M,{modelValue:p(r),"onUpdate:modelValue":l[2]||(l[2]=t=>le(r)?r.value=t:null),onChange:p(c)},null,8,["modelValue","onChange"])])]),_:1})),[[U,p(r).loading]]),_.value?(b(),y(ee,{key:0,ref_key:"detailRef",ref:E,onClose:l[3]||(l[3]=t=>_.value=!1)},null,512)):ne("",!0)])}}});export{Ke as default};