2 lines
6.8 KiB
JavaScript
2 lines
6.8 KiB
JavaScript
|
import{U as G,$ as H,J as W,K as X,D as ee,w as te,F as oe,L as ae,M as le,b as se,N as ne,O as re}from"./element-plus.a63a26dd.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.692a1b19.js";import{u as pe}from"./usePaging.6a6670f9.js";import{u as me}from"./useDictOptions.5e70e33d.js";import{d as M}from"./store_cash_finance_flow.38fe9323.js";import"./lodash.2473fc51.js";import"./index.1aee185b.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.a259d1f9.js";import{a as ce}from"./system_store.0fa5aed6.js";import{h as D}from"./moment.40bc58bf.js";import{d as L,s as _e,r as c,Z as fe,i as ve,ap as he,o as u,c as g,U as t,L as l,u as a,T as De,a9 as Ee,K as p,j as V,R as _,M as Y,a as B,Q as T,n as we}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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.de7b2359.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.bec542dd.js";import"./index.2a334487.js";import"./index.2abac841.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";const Fe={key:1},ge={class:"flex mt-4 justify-end"},be=L({name:"storeCashFinanceFlowLists"}),Et=L({...be,setup(Ce){const S=[{text:"\u8FD1\u4E00\u5468",value:()=>{const s=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,s]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,s]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const s=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,s]}}],E=_e(),w=c(!1),i=c([new Date,new Date]),n=fe({store_id:"",status:"",start_time:D(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:D(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"}),U=()=>{i.value[0]&&i.value[1]?(n.start_time=D(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",n.end_time=D(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(n.start_time="",n.end_time=""),f()},$=c([]),z=s=>{$.value=s.map(({id:e})=>e)},{dictData:N}=me(""),{pager:m,getLists:f,resetParams:P,resetPage:b}=pe({fetchFun:M,params:n}),R=async s=>{var e,d;w.value=!0,await we(),(e=E.value)==null||e.open("edit"),(d=E.value)==null||d.setFormData(s)};ve(()=>{f()});const v=c(!1),C=c([]),A=(s="")=>{v.value=!0,ce({name:s,page_size:50}).then(e=>{C.value=e.lists,setTimeout(()=>{v.value=!1},300)}).catch(e=>{setTimeout(()=>{v.value=!1},300)})};return(s,e)=>{const d=W,k=X,h=ee,I=G,F=te,j=ie,K=oe,y=ae,r=le,O=se,x=H,q=ne,J=ue,Q=he("perms"),Z=re;return u(),g("div",null,[t(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(K,{class:"mb-[-16px]",model:a(n),inline:""},{default:l(()=>[t(h,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[t(k,{modelValue:a(n).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>a(n).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":A,loading:a(v),style:{width:"240px"},onChange:a(b)},{default:l(()=>[(u(!0),g(De,null,Ee(a(C),o=>(u(),p(d,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(h,{label:"\u65F6\u95F4\u8303\u56F4",p
|