2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{U as Q,$ as Z,J as G,K as H,D as W,w as X,F as ee,L as te,M as oe,b as ae,N as le,O as se}from"./element-plus.ebe4edc1.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.311652af.js";import{u as re}from"./usePaging.6a6670f9.js";import{u as ue}from"./useDictOptions.b19b6c11.js";import{d as ie}from"./store_cash_finance_flow.d7f811a3.js";import"./lodash.9da25972.js";import"./index.97d0e487.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_storeCashFinanceFlowEdit_lang.ae50652a.js";import{a as pe}from"./system_store.53207144.js";import{h}from"./moment.40bc58bf.js";import{d as T,s as de,r as c,Z as ce,ap as _e,o as u,c as g,U as t,L as a,u as l,T as fe,a9 as ve,K as m,j as V,R as _,M as Y,a as B,Q as M,n as De}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.2abc406c.js";import"./axios.9e25675c.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.ae040c61.js";import"./color.130f7952.js";import"./clone.4a149bdb.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.e75c9f38.js";import"./vue-clipboard3.cacf014a.js";import"./clipboard.1f8f6543.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.375b8b4c.js";import"./index.16bffd29.js";import"./index.vue_vue_type_style_index_0_scoped_b8e715d9_lang.220569d0.js";import"./index.a00b7819.js";import"./index.53ec9cfa.js";import"./vuedraggable.d0c2add0.js";import"./vue.fcb68125.js";import"./sortablejs.430f5f4d.js";const he={key:1},Ee={class:"flex mt-4 justify-end"},we=T({name:"storeCashFinanceFlowLists"}),ft=T({...we,setup(Fe){const L=[{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=de(),w=c(!1),i=c([new Date,new Date]),n=ce({store_id:"",status:"",start_time:h(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:h(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"}),S=()=>{i.value[0]&&i.value[1]?(n.start_time=h(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",n.end_time=h(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(n.start_time="",n.end_time=""),f()},U=c([]),N=s=>{U.value=s.map(({id:e})=>e)},{dictData:P}=ue(""),{pager:d,getLists:f,resetParams:R,resetPage:C}=re({fetchFun:ie,params:n}),$=async s=>{var e,p;w.value=!0,await De(),(e=E.value)==null||e.open("edit"),(p=E.value)==null||p.setFormData(s)};f();const v=c(!1),b=c([]),A=(s="")=>{v.value=!0,pe({name:s,page_size:50}).then(e=>{b.value=e.lists,setTimeout(()=>{v.value=!1},300)}).catch(e=>{setTimeout(()=>{v.value=!1},300)})};return(s,e)=>{const p=G,k=H,D=W,I=Q,F=X,j=ee,y=te,r=oe,z=ae,x=Z,K=le,O=ne,q=_e("perms"),J=se;return u(),g("div",null,[t(y,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(j,{class:"mb-[-16px]",model:l(n),inline:""},{default:a(()=>[t(D,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[t(k,{modelValue:l(n).store_id,"onUpdate:modelValue":e[0]||(e[0]=o=>l(n).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":A,loading:l(v),style:{width:"240px"},onChange:l(C)},{default:a(()=>[(u(!0),g(fe,null,ve(l(b),o=>(u(),m(p,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),t(D,{label:"\u65F6\u95F4\u8303\u56F4",prop:"create_time"},{default:a(()=>[t(I,{modelValue:l(i),"onUpdate:modelValue":e[1]||(e[1]=o=>V(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:S},null,8,["modelValue"])]),_:1}),t(D,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[t(k,{modelValue:l(n).status,"onUpdate:modelValue":e[2]||(e[2]=o=>l(n).status=o),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",size:"large",style:{width:"240px"}},{default:a(()=>[t(p,{label:"\u5F85\u5904\u7406",value:"0"}),t(p,{label:"\u5DF2\u5B8C\u6210",value:"1"})]),_:1},8,["modelValue"])]),_:1}),t(D,null,{default:a(()=>[t(F,{type:"primary",onClick:l(C)},{default:a(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(F,{onClick:l(R)},{default:a(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Y((u(),m(y,{class:"!border-none",shadow:"never"},{default:a(()=>[B("div",null,[t(K,{data:l(d).lists,onSelectionChange:N},{default:a(()=>[t(r,{label:"ID",prop:"id","show-overflow-tooltip":""}),t(r,{label:"\u95E8\u5E97",prop:"store_name","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:a(({row:o})=>[o.file&&o.file!=0?(u(),m(z,{key:0,style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])):(u(),g("span",he,"\u5F85\u4E0A\u4F20"))]),_:1}),t(r,{label:"\u5907\u6CE8",prop:"remark"}),t(r,{label:"\u72B6\u6001",prop:"status"},{default:a(({row:o})=>[o.status==0?(u(),m(x,{key:0,type:"danger"},{default:a(()=>[_("\u5F85\u5904\u7406")]),_:1})):(u(),m(x,{key:1,type:"success"},{default:a(()=>[_("\u5DF2\u786E\u8BA4")]),_:1}))]),_:1}),t(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:o})=>[o.status==0?Y((u(),m(F,{key:0,type:"primary",link:"",onClick:ge=>$(o)},{default:a(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[q,["store_cash_finance_flow.store_cash_finance_flow/edit"]]]):M("",!0)]),_:1})]),_:1},8,["data"])]),B("div",Ee,[t(O,{modelValue:l(d),"onUpdate:modelValue":e[3]||(e[3]=o=>V(d)?d.value=o:null),onChange:l(f)},null,8,["modelValue","onChange"])])]),_:1})),[[J,l(d).loading]]),l(w)?(u(),m(me,{key:0,ref_key:"editRef",ref:E,"dict-data":l(P),onSuccess:l(f),onClose:e[4]||(e[4]=o=>w.value=!1)},null,8,["dict-data","onSuccess"])):M("",!0)])}}});export{ft as default};
|