moreShopAdmin/dist/admin/assets/index.52defffa.js

2 lines
5.8 KiB
JavaScript
Raw Normal View History

2024-08-15 21:33:10 +08:00
import{U as Q,J as Z,K as G,D as H,w as W,F as X,L as ee,M as te,N as oe,O as ae}from"./element-plus.a63a26dd.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as se}from"./usePaging.6a6670f9.js";import{u as ne}from"./useDictOptions.52006ef3.js";import{a as re}from"./store_finance_flow.b310622b.js";import{a as ie}from"./system_store.c016e074.js";import{h as ue}from"./index.82a85bee.js";import{s as me}from"./shortcuts.7e7a323b.js";import{h as V}from"./moment.40bc58bf.js";import{d as Y,r as u,Z as pe,w as de,af as x,o as n,c as p,U as t,L as l,u as e,T as L,a9 as S,K as v,j as T,R as B,M as ce,a as M,S as U,Q as _e}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"./lodash.2473fc51.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";const fe={key:0,class:"text-success"},he={key:1,class:"text-danger"},ve={class:"flex mt-4 justify-end"},we=Y({name:"storeFinanceFlowLists"}),lt=Y({...we,setup(ge){const g=u(!1),r=pe({store_name:"",store_id:"",user_id:"",create_time:"",financial_type:3,financial_pm:1,start_time:"",end_time:""}),d=u([]);de(()=>d.value,(s,a)=>{r.start_time=V(s[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=V(s[1]).format("YYYY-MM-DD")+" 23:59:59"},{deep:!0});const N=u([]),P=s=>{N.value=s.map(({id:a})=>a)},{dictData:b}=ne(""),{pager:m,getLists:w,resetParams:R,resetPage:c}=se({fetchFun:re,params:r});w();const _=u(!1),F=u([]),$=(s="")=>{_.value=!0,ie({name:s,page_size:50}).then(a=>{F.value=a.lists,setTimeout(()=>{_.value=!1},300)}).catch(a=>{setTimeout(()=>{_.value=!1},300)})},f=u(!1),E=u([]),A=(s="")=>{f.value=!0,ue({nickname:s,page_size:50}).then(a=>{E.value=a.lists,setTimeout(()=>{f.value=!1},300)}).catch(a=>{setTimeout(()=>{f.value=!1},300)})};return(s,a)=>{const C=Z,D=G,h=H,I=Q,k=W,j=X,y=ee,i=te,z=oe,K=le,O=x("edit-popup"),q=x("details-popup"),J=ae;return n(),p("div",null,[t(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(j,{class:"mb-[-16px]",model:e(r),inline:""},{default:l(()=>[t(h,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[t(D,{modelValue:e(r).store_id,"onUpdate:modelValue":a[0]||(a[0]=o=>e(r).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:e(_),style:{width:"240px"},onChange:e(c)},{default:l(()=>[(n(!0),p(L,null,S(e(F),o=>(n(),v(C,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(h,{label:"\u7528\u6237",prop:"uid"},{default:l(()=>[t(D,{modelValue:e(r).user_id,"onUpdate:modelValue":a[1]||(a[1]=o=>e(r).user_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":A,loading:e(f),style:{width:"240px"},onChange:e(c)},{default:l(()=>[(n(!0),p(L,null,S(e(E),o=>(n(),v(C,{key:o.id,label:`${o.nickname} (ID:${o.id})`,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(h,{label:"\u65F6\u95F4",prop:"create_time"},{default:l(()=>[t(I,{modelValue:e(d),"onUpdate:modelValue":a[2]||(a[2]=o=>T(d)?d.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED