2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{V as J,a0 as W,N as X,O as ee,D as te,C as oe,w as ae,F as le,K as se,G as ne,b as re,H as ue,I as ie}from"./element-plus.8e273e86.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.fd925c92.js";import{u as de}from"./usePaging.f8c888e4.js";import{u as ce}from"./useDictOptions.0dd5e671.js";import{d as x}from"./store_cash_finance_flow.15d7159b.js";import"./lodash.4e6d2a38.js";import"./index.91315c44.js";import{_ as _e}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.f5e44136.js";import{a as fe}from"./system_store.205c69d8.js";import{h as E}from"./moment.40bc58bf.js";import{d as S,s as ve,r as _,Z as De,i as Ee,ap as he,o as u,c as g,U as t,L as l,u as a,T as we,a9 as Fe,K as p,j as Y,R as f,M as B,a as M,Q as T,n as ge}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.2d5cf0a7.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./picker.f5cc8bd6.js";import"./index.7596567c.js";import"./index.fb4305ae.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";const be={key:1},Ce={class:"flex mt-4 justify-end"},ke=S({name:"storeCashFinanceFlowLists"}),Ct=S({...ke,setup(ye){const L=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,n]}}],h=ve(),w=_(!1),i=_([new Date,new Date]),s=De({store_id:"",status:"",cash_price:"",start_time:E(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:E(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"}),U=()=>{i.value==null||i.value==""?(s.start_time="",s.end_time=""):(s.start_time=E(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",s.end_time=E(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"),v()},z=_([]),I=n=>{z.value=n.map(({id:e})=>e)},{dictData:N}=ce(""),{pager:m,getLists:v,resetParams:P,resetPage:b}=de({fetchFun:x,params:s}),R=async n=>{var e,d;w.value=!0,await ge(),(e=h.value)==null||e.open("edit"),(d=h.value)==null||d.setFormData(n)};Ee(()=>{v()});const D=_(!1),C=_([]),$=(n="")=>{D.value=!0,fe({name:n,page_size:50}).then(e=>{C.value=e.lists,setTimeout(()=>{D.value=!1},300)}).catch(e=>{setTimeout(()=>{D.value=!1},300)})};return(n,e)=>{const d=X,k=ee,c=te,A=oe,j=J,F=ae,K=me,O=le,y=se,r=ne,q=re,V=W,G=ue,H=pe,Q=he("perms"),Z=ie;return u(),g("div",null,[t(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[t(O,{class:"mb-[-16px]",model:a(s),inline:""},{default:l(()=>[t(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[t(k,{modelValue:a(s).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>a(s).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":$,loading:a(D),style:{width:"240px"},onChange:a(b)},{default:l(()=>[(u(!0),g(we,null,Fe(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(c,{label:"\u91D1\u989D",prop:"cash_price"},{default:l(()=>[t(A,{modelValue:a(s).cash_price,"onUpdate:modelValue":e[1]||(e[1]=o=>a(s).cash_price=o)},null,8,["modelValue"])]),_:1}),t(c,{label:"\u65F6\u95F4\u8303\u56F4",prop:"create_time"},{default:l(()=>[t(j,{modelValue:a(i),"onUpdate:modelValue":e[2]||(e[2]=o=>Y(i)?i.value=o:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:L,onChange:U},null,8,["modelValue"])]),_:1}),t(c,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[t(k,{modelValue:a(s).status,"onUpdate:modelValue":e[3]||(e[3]=o=>a(s).status=o),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",size:"large",style:{width:"240px"}},{default:l(()=>[t(d,{label:"\u5F85\u5904\u7406",value:"0"}),t(d,{label:"\u5DF2\u5B8C\u6210",value:"1"})]),_:1},8,["modelValue"])]),_:1}),t(c,null,{default:l(()=>[t(F,{type:"primary",onClick:a(b)},{default:l(()=>e[6]||(e[6]=[f("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(F,{onClick:a(P)},{default:l(()=>e[7]||(e[7]=[f("\u91CD\u7F6E")])),_:1},8,["onClick"]),t(K,{class:"ml-2.5","fetch-fun":a(x),params:a(s),"page-size":a(m).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),B((u(),p(y,{class:"!border-none",shadow:"never"},{default:l(()=>[M("div",null,[t(G,{data:a(m).lists,onSelectionChange:I},{default:l(()=>[t(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),t(r,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),t(r,{label:"\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(r,{label:"\u4EA4\u6613\u91D1\u989D",prop:"cash_price","show-overflow-tooltip":""}),t(r,{label:"\u5E94\u6536\u91D1\u989D",prop:"receivable","show-overflow-tooltip":""}),t(r,{label:"\u5B9E\u6536\u91D1\u989D",prop:"receipts","show-overflow-tooltip":""}),t(r,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),t(r,{label:"\u56FE\u7247",prop:"file"},{default:l(({row:o})=>[o.file&&o.file!=0?(u(),p(q,{key:0,style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])):(u(),g("span",be,"\u5F85\u4E0A\u4F20"))]),_:1}),t(r,{label:"\u5907\u6CE8",prop:"remark"}),t(r,{label:"\u72B6\u6001",prop:"status"},{default:l(({row:o})=>[o.status==0?(u(),p(V,{key:0,type:"danger"},{default:l(()=>e[8]||(e[8]=[f("\u5F85\u5904\u7406")])),_:1})):(u(),p(V,{key:1,type:"success"},{default:l(()=>e[9]||(e[9]=[f("\u5DF2\u786E\u8BA4")])),_:1}))]),_:1}),t(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[o.status==0?B((u(),p(F,{key:0,type:"primary",link:"",onClick:Ve=>R(o)},{default:l(()=>e[10]||(e[10]=[f(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[Q,["store_cash_finance_flow.store_cash_finance_flow/edit"]]]):T("",!0)]),_:1})]),_:1},8,["data"])]),M("div",Ce,[t(H,{modelValue:a(m),"onUpdate:modelValue":e[4]||(e[4]=o=>Y(m)?m.value=o:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,a(m).loading]]),a(w)?(u(),p(_e,{key:0,ref_key:"editRef",ref:h,"dict-data":a(N),onSuccess:a(v),onClose:e[5]||(e[5]=o=>w.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0)])}}});export{Ct as default};
|