1 |
- import{R}from"./index-2a140774.js";import{w as S,X as g,Y as $,c as B,a as P,o as E,W as v,$ as t,m as l,Z as a,F as w,E as i,a4 as n,u as m,a6 as _,a5 as y,a0 as I,a1 as N}from"./vue-7f5e2b1b.js";import{A as V}from"./index-b7094f12.js";import{_ as Y}from"./_plugin-vue_export-helper-c27b6911.js";import"./ext-7719614a.js";import"./vue-router-e2815956.js";const q=["id"],M={__name:"ringProgress",props:["percent","idname"],setup(f){const u=f;return S(()=>u.percent,(o,p)=>{new R(u.idname,{height:100,width:100,autoFit:!1,percent:u.percent,color:["#5B8FF9","#E8EDF3"]}).render()}),(o,p)=>(g(),$("div",{id:u.idname},null,8,q))}};const c=f=>(I("data-v-c617c8ee"),f=f(),N(),f),A={class:"y-container mt-10"},C={class:"brderRight pd-10 flex"},T={style:{"font-size":"14px",color:"red"}},L={class:"info"},W=c(()=>t("small",null,"达成金额",-1)),X={class:"info"},Z=c(()=>t("small",null,"目标金额",-1)),j={class:"brderRight pd-10 flex"},G={style:{"font-size":"14px",color:"red"}},H={class:"info"},J=c(()=>t("small",null,"达成金额",-1)),K={class:"info"},O=c(()=>t("small",null,"目标金额",-1)),Q={class:"brderRight pd-10 flex"},U={style:{"font-size":"14px",color:"red"}},ee={class:"info"},te=c(()=>t("small",null,"达成金额",-1)),le={class:"info"},ae=c(()=>t("small",null,"目标金额",-1)),se={class:"y-container mt-10"},ne=c(()=>t("p",{class:"almm"},"一季度目标",-1)),oe={class:"y-container mt-10"},de=c(()=>t("p",{class:"almm"},"二季度目标",-1)),ie={class:"y-container mt-10"},ue=c(()=>t("p",{class:"almm"},"三季度目标",-1)),ce={class:"y-container"},re=c(()=>t("p",{class:"almm"},"四季度目标",-1)),_e={__name:"index",setup(f){const u=B(()=>{var h=new Date,x=h.getMonth()+1;return x>=1&&x<=3?1:x>=4&&x<=6?2:x>=7&&x<=9?3:4}),o=P({}),p=P([]),z=async()=>{const h=await V.requested({id:"20230110151902",content:{where:{year:new Date().getFullYear()}}});p.value=h.data,h.data.length>0?o.value=h.data[0]:o.value="none"};return E(()=>{z()}),(h,x)=>{const b=v("a-statistic"),D=v("a-col"),k=v("a-row"),d=v("a-table-column"),r=v("a-table-column-group"),F=v("a-table");return g(),$(w,null,[t("div",A,[l(k,{gutter:16},{default:a(()=>[l(D,{span:8},{default:a(()=>[t("div",C,[t("div",null,[l(b,{class:"mt-10",style:{cursor:"pointer"},title:"本月目标",value:o.value[`m${new Date().getMonth()+1}pl`],"value-style":{color:"#333"}},{suffix:a(()=>[i(" % "),t("small",T,n((o.value[`m${new Date().getMonth()+1}a`]-o.value[`m${new Date().getMonth()+1}l`]).toFixed(2)),1)]),_:1},8,["value"]),t("div",null,[t("div",L,[W,i(" "),t("small",null,n(o.value[`m${new Date().getMonth()+1}a`])+"万元",1)]),t("div",X,[Z,i(" "),t("small",null,n(o.value[`m${new Date().getMonth()+1}l`])+"万元",1)])])]),l(M,{idname:"ringProgress",percent:(o.value[`m${new Date().getMonth()+1}a`]/o.value[`m${new Date().getMonth()+1}l`]).toFixed(2)},null,8,["percent"])])]),_:1}),l(D,{span:8},{default:a(()=>[t("div",j,[t("div",null,[l(b,{class:"mt-10",style:{cursor:"pointer"},title:"本季目标",value:o.value[`s${m(u)}pl`],"value-style":{color:"#333"}},{suffix:a(()=>[i(" % "),t("small",G,n((o.value[`s${m(u)}a`]-o.value[`s${m(u)}l`]).toFixed(2)),1)]),_:1},8,["value"]),t("div",null,[t("div",H,[J,i(" "),t("small",null,n(o.value[`s${m(u)}a`])+"万元",1)]),t("div",K,[O,i(" "),t("small",null,n(o.value[`s${m(u)}l`])+"万元",1)])])]),l(M,{idname:"ringProgress2",percent:(o.value[`s${m(u)}a`]/o.value[`s${m(u)}l`]).toFixed(2)},null,8,["percent"])])]),_:1}),l(D,{span:8},{default:a(()=>[t("div",Q,[t("div",null,[l(b,{class:"mt-10",style:{cursor:"pointer"},title:"本年目标",value:o.value.y1pl,"value-style":{color:"#333"}},{suffix:a(()=>[i(" % "),t("small",U,n((o.value.y1a-o.value.y1l).toFixed(2)),1)]),_:1},8,["value"]),t("div",null,[t("div",ee,[te,i(" "),t("small",null,n(o.value.y1a)+"万元",1)]),t("div",le,[ae,i(" "),t("small",null,n(o.value.y1l)+"万元",1)])])]),l(M,{idname:"ringProgress3",percent:o.value.y1a/o.value.y1l},null,8,["percent"])])]),_:1})]),_:1})]),t("div",se,[ne,l(F,{"data-source":p.value,class:"ant-table-small mt-10",size:"small",pagination:!1,"row-class-name":(e,s)=>s%2===1?"table-striped":null,bordered:""},{default:a(()=>[l(r,null,{title:a(()=>[i("1季度(万元)")]),default:a(()=>[l(d,{title:"目标","data-index":"s1l"}),l(d,{title:"实际","data-index":"s1a"},{default:a(({record:e})=>[t("span",{style:_(e.s1a>e.s1l?{color:"red"}:{color:"green"})},n(e.s1a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率"},{default:a(({record:e})=>[t("span",null,n((e.s1a.toFixed(2)/e.s1l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,e=>l(r,{key:e},{title:a(()=>[i(n(`${e}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${e}l`},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${e}a`},{default:a(({record:s})=>[t("span",{style:_(s[`m${e}a`]>s[`m${e}l`]?{color:"red"}:{color:"green"})},n(s[`m${e}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率"},{default:a(({record:s})=>[t("span",null,n((s[`m${e}a`].toFixed(2)/s[`m${e}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])]),t("div",oe,[de,l(F,{"data-source":p.value,class:"ant-table-small mt-10",size:"small",pagination:!1,"row-class-name":(e,s)=>s%2===1?"table-striped":null,bordered:""},{default:a(()=>[l(r,null,{title:a(()=>[i("2季度(万元)")]),default:a(()=>[l(d,{title:"目标","data-index":"s2l",width:"100px"}),l(d,{title:"实际","data-index":"s2a",width:"100px"},{default:a(({record:e})=>[t("span",{style:_(e.s2a>e.s2l?{color:"red"}:{color:"green"})},n(e.s2a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:e})=>[t("span",null,n((e.s2a.toFixed(2)/e.s2l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,e=>l(r,{key:e},{title:a(()=>[i(n(`${e+3}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${e+3}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${e+3}a`,width:"100px"},{default:a(({record:s})=>[t("span",{style:_(s[`m${e+3}a`]>s[`m${e+3}l`]?{color:"red"}:{color:"green"})},n(s[`m${e+3}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:s})=>[t("span",null,n((s[`m${e+3}a`].toFixed(2)/s[`m${e+3}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])]),t("div",ie,[ue,l(F,{"data-source":p.value,class:"ant-table-small mt-10",size:"small",pagination:!1,"row-class-name":(e,s)=>s%2===1?"table-striped":null,bordered:""},{default:a(()=>[l(r,null,{title:a(()=>[i("3季度(万元)")]),default:a(()=>[l(d,{title:"目标","data-index":"s3l",width:"100px"}),l(d,{title:"实际","data-index":"s3a",width:"100px"},{default:a(({record:e})=>[t("span",{style:_(e.s3a>e.s3l?{color:"red"}:{color:"green"})},n(e.s3a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:e})=>[t("span",null,n((e.s3a.toFixed(2)/e.s3l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,e=>l(r,{key:e},{title:a(()=>[i(n(`${e+6}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${e+6}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${e+6}a`,width:"100px"},{default:a(({record:s})=>[t("span",{style:_(s[`m${e+6}a`]>s[`m${e+6}l`]?{color:"red"}:{color:"green"})},n(s[`m${e+6}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:s})=>[t("span",null,n((s[`m${e+6}a`].toFixed(2)/s[`m${e+6}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])]),t("div",ce,[re,l(F,{"data-source":p.value,class:"ant-table-small",size:"small",pagination:!1,"row-class-name":(e,s)=>s%2===1?"table-striped":null,bordered:""},{default:a(()=>[l(r,null,{title:a(()=>[i("4季度(万元)")]),default:a(()=>[l(d,{title:"目标","data-index":"s3l",width:"100px"}),l(d,{title:"实际","data-index":"s3a",width:"100px"},{default:a(({record:e})=>[t("span",{style:_(e.s4a>e.s4l?{color:"red"}:{color:"green"})},n(e.s4a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:e})=>[t("span",null,n((e.s4a.toFixed(2)/e.s4l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,e=>l(r,{key:e},{title:a(()=>[i(n(`${e+9}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${e+9}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${e+9}a`,width:"100px"},{default:a(({record:s})=>[t("span",{style:_(s[`m${e+9}a`]>s[`m${e+9}l`]?{color:"red"}:{color:"green"})},n(s[`m${e+9}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:s})=>[t("span",null,n((s[`m${e+9}a`]/s[`m${e+9}l`]*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])])],64)}}},ge=Y(_e,[["__scopeId","data-v-c617c8ee"]]);export{ge as default};
|