multiStoreAdmin/dist/store/assets/index.f701ead1.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

2024-08-04 17:55:30 +08:00
import{Z as M,$ as S,a0 as q,x as A,y as G,F as J,w as O,G as Q,J as W,M as Z,N as z,O as H}from"./element-plus.ab0703f2.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as X}from"./usePaging.fff444fa.js";import{b as ee}from"./store_finance_flow.1740f3bb.js";import{_ as te}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.727ee68a.js";import{a as oe}from"./index.ae42b2c0.js";import{d as F,r as m,$ as ae,o as b,c as le,W as e,Q as t,U as u,R as ne,u as p,P as h,a as y,V as D,j as se,T as re,n as ue}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.2a3b95e2.js";import"./goodsList.34b32919.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.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}=X({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()},R=async n=>{n.type=a.type,_.value=!0,await ue(),E.value.open(n)};return c(),(n,l)=>{const N=M,w=J,C=S,f=O,$=q,U=Q,g=W,v=A,L=G,r=Z,Y=z,j=K,I=H;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($,null,{default:t(()=>[e(C,{span:6},{default:t(()=>[e(w,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:t(()=>[e(N,{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(L,{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(Y,{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)])