2 lines
4.5 KiB
JavaScript
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.34d7af4a.js";import{_ as te}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.4e1c0be7.js";import{a as oe}from"./index.31294648.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.82dd7095.js";import"./goodsList.52a766ec.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",wi
|