moreShopAdmin/build/admin/assets/index.12437529.js

2 lines
6.1 KiB
JavaScript

import{_ as J,$ as Q,J as Z,K as G,D as H,w as W,F as X,L as ee,M as te,b as oe,N as ae,O as le}from"./element-plus.7b9d0c0d.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.8b9de773.js";import{u as ne}from"./usePaging.6a6670f9.js";import{u as re}from"./useDictOptions.1e75c240.js";import{d as ue}from"./store_cash_finance_flow.cb166a87.js";import"./lodash.9dc701ad.js";import"./index.887947f5.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.ceb16909.js";import{a as me}from"./system_store.5adf4f9f.js";import{h}from"./moment.40bc58bf.js";import{d as V,s as pe,r as c,Z as ce,ap as de,o as r,c as F,U as t,L as a,u as l,T as _e,a9 as fe,K as m,j as Y,R as d,M as x,a as M,Q as ve,n as he}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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.013e8025.js";import"./index.eff6b85b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.186ff5bf.js";import"./index.9741e8de.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";const De={key:1},Ee={class:"flex mt-4 justify-end"},we=V({name:"storeCashFinanceFlowLists"}),ft=V({...we,setup(ge){const B=[{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]}}],D=pe(),E=c(!1),u=c([new Date,new Date]),i=ce({store_id:"",start_time:h(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:h(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"}),T=()=>{u.value[0]&&u.value[1]?(i.start_time=h(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",i.end_time=h(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(i.start_time="",i.end_time=""),_()},L=c([]),S=s=>{L.value=s.map(({id:e})=>e)},{dictData:N}=re(""),{pager:p,getLists:_,resetParams:P,resetPage:C}=ne({fetchFun:ue,params:i}),R=async s=>{var e,v;E.value=!0,await he(),(e=D.value)==null||e.open("edit"),(v=D.value)==null||v.setFormData(s)};_();const f=c(!1),b=c([]),$=(s="")=>{f.value=!0,me({name:s,page_size:50}).then(e=>{b.value=e.lists,setTimeout(()=>{f.value=!1},300)}).catch(e=>{setTimeout(()=>{f.value=!1},300)})};return(s,e)=>{const v=Z,A=G,w=H,U=J,g=W,I=X,k=ee,n=te,j=oe,y=Q,K=ae,O=se,q=de("perms"),z=le;return r(),F("div",null,[t(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(I,{class:"mb-[-16px]",model:l(i),inline:""},{default:a(()=>[t(w,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[t(A,{modelValue:l(i).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>l(i).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:l(f),style:{width:"240px"},onChange:l(C)},{default:a(()=>[(r(!0),F(_e,null,fe(l(b),o=>(r(),m(v,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(w,{label:"\u65F6\u95F4\u8303\u56F4",prop:"create_time"},{default:a(()=>[t(U,{modelValue:l(u),"onUpdate:modelValue":e[1]||(e[1]=o=>Y(u)?u.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:B,onChange:T},null,8,["modelValue"])]),_:1}),t(w,null,{default:a(()=>[t(g,{type:"primary",onClick:l(C)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(g,{onClick:l(P)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),x((r(),m(k,{class:"!border-none",shadow:"never"},{default:a(()=>[M("div",null,[t(K,{data:l(p).lists,onSelectionChange:S},{default:a(()=>[t(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),t(n,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),t(n,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),t(n,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),t(n,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),t(n,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),t(n,{label:"\u56FE\u7247",prop:"file"},{default:a(({row:o})=>[o.file&&o.file!=0?(r(),m(j,{key:0,style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])):(r(),F("span",De,"\u5F85\u4E0A\u4F20"))]),_:1}),t(n,{label:"\u5907\u6CE8",prop:"remark"}),t(n,{label:"\u72B6\u6001",prop:"status"},{default:a(({row:o})=>[o.status==0?(r(),m(y,{key:0,type:"danger"},{default:a(()=>[d("\u5F85\u5904\u7406")]),_:1})):(r(),m(y,{key:1,type:"success"},{default:a(()=>[d("\u5DF2\u786E\u8BA4")]),_:1}))]),_:1}),t(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[x((r(),m(g,{type:"primary",link:"",onClick:Fe=>R(o)},{default:a(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[q,["store_cash_finance_flow.store_cash_finance_flow/edit"]]])]),_:1})]),_:1},8,["data"])]),M("div",Ee,[t(O,{modelValue:l(p),"onUpdate:modelValue":e[2]||(e[2]=o=>Y(p)?p.value=o:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:1})),[[z,l(p).loading]]),l(E)?(r(),m(ie,{key:0,ref_key:"editRef",ref:D,"dict-data":l(N),onSuccess:l(_),onClose:e[3]||(e[3]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):ve("",!0)])}}});export{ft as default};