1 |
- import{R}from"./index-8a863595.js";import{w as S,X as g,Y as $,c as B,a as P,o as E,W as v,a2 as e,m as a,Z as l,F as w,E as i,a0 as n,u as m,a7 as _,a6 as y,a3 as I,a4 as N}from"./vue-74beb2f3.js";import{_ as V,A as Y}from"./index-3887ab05.js";import"./ext-b20af233.js";import"./vue-router-d228e26b.js";const q=["id"],M={__name:"ringProgress",props:["percent","idname"],setup(h){const u=h;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=h=>(I("data-v-9105bac3"),h=h(),N(),h),A={class:"y-container mt-10"},C={class:"brderRight pd-10 flex"},T={style:{"font-size":"14px",color:"red"}},L={class:"info"},W=c(()=>e("small",null,"达成金额",-1)),X={class:"info"},Z=c(()=>e("small",null,"目标金额",-1)),j={class:"brderRight pd-10 flex"},G={style:{"font-size":"14px",color:"red"}},H={class:"info"},J=c(()=>e("small",null,"达成金额",-1)),K={class:"info"},O=c(()=>e("small",null,"目标金额",-1)),Q={class:"brderRight pd-10 flex"},U={style:{"font-size":"14px",color:"red"}},tt={class:"info"},et=c(()=>e("small",null,"达成金额",-1)),at={class:"info"},lt=c(()=>e("small",null,"目标金额",-1)),st={class:"y-container mt-10"},nt=c(()=>e("p",{class:"almm"},"一季度目标",-1)),ot={class:"y-container mt-10"},dt=c(()=>e("p",{class:"almm"},"二季度目标",-1)),it={class:"y-container mt-10"},ut=c(()=>e("p",{class:"almm"},"三季度目标",-1)),ct={class:"y-container"},rt=c(()=>e("p",{class:"almm"},"四季度目标",-1)),_t={__name:"index",setup(h){const u=B(()=>{var f=new Date,x=f.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 f=await Y.requested({id:"20230110151902",content:{where:{year:new Date().getFullYear()}}});p.value=f.data,f.data.length>0?o.value=f.data[0]:o.value="none"};return E(()=>{z()}),(f,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,[e("div",A,[a(k,{gutter:16},{default:l(()=>[a(D,{span:8},{default:l(()=>[e("div",C,[e("div",null,[a(b,{class:"mt-10",style:{cursor:"pointer"},title:"本月目标",value:o.value[`m${new Date().getMonth()+1}pl`],"value-style":{color:"#333"}},{suffix:l(()=>[i(" % "),e("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"]),e("div",null,[e("div",L,[W,i(" "),e("small",null,n(o.value[`m${new Date().getMonth()+1}a`])+"万元",1)]),e("div",X,[Z,i(" "),e("small",null,n(o.value[`m${new Date().getMonth()+1}l`])+"万元",1)])])]),a(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}),a(D,{span:8},{default:l(()=>[e("div",j,[e("div",null,[a(b,{class:"mt-10",style:{cursor:"pointer"},title:"本季目标",value:o.value[`s${m(u)}pl`],"value-style":{color:"#333"}},{suffix:l(()=>[i(" % "),e("small",G,n((o.value[`s${m(u)}a`]-o.value[`s${m(u)}l`]).toFixed(2)),1)]),_:1},8,["value"]),e("div",null,[e("div",H,[J,i(" "),e("small",null,n(o.value[`s${m(u)}a`])+"万元",1)]),e("div",K,[O,i(" "),e("small",null,n(o.value[`s${m(u)}l`])+"万元",1)])])]),a(M,{idname:"ringProgress2",percent:(o.value[`s${m(u)}a`]/o.value[`s${m(u)}l`]).toFixed(2)},null,8,["percent"])])]),_:1}),a(D,{span:8},{default:l(()=>[e("div",Q,[e("div",null,[a(b,{class:"mt-10",style:{cursor:"pointer"},title:"本年目标",value:o.value.y1pl,"value-style":{color:"#333"}},{suffix:l(()=>[i(" % "),e("small",U,n((o.value.y1a-o.value.y1l).toFixed(2)),1)]),_:1},8,["value"]),e("div",null,[e("div",tt,[et,i(" "),e("small",null,n(o.value.y1a)+"万元",1)]),e("div",at,[lt,i(" "),e("small",null,n(o.value.y1l)+"万元",1)])])]),a(M,{idname:"ringProgress3",percent:o.value.y1a/o.value.y1l},null,8,["percent"])])]),_:1})]),_:1})]),e("div",st,[nt,a(F,{"data-source":p.value,class:"ant-table-small mt-10",size:"small",pagination:!1,"row-class-name":(t,s)=>s%2===1?"table-striped":null,bordered:""},{default:l(()=>[a(r,null,{title:l(()=>[i("1季度(万元)")]),default:l(()=>[a(d,{title:"目标","data-index":"s1l"}),a(d,{title:"实际","data-index":"s1a"},{default:l(({record:t})=>[e("span",{style:_(t.s1a>t.s1l?{color:"red"}:{color:"green"})},n(t.s1a.toFixed(2)),5)]),_:1}),a(d,{title:"达成率"},{default:l(({record:t})=>[e("span",null,n((t.s1a.toFixed(2)/t.s1l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,t=>a(r,{key:t},{title:l(()=>[i(n(`${t}月(万元)`),1)]),default:l(()=>[a(d,{title:"目标","data-index":`m${t}l`},null,8,["data-index"]),a(d,{title:"实际","data-index":`m${t}a`},{default:l(({record:s})=>[e("span",{style:_(s[`m${t}a`]>s[`m${t}l`]?{color:"red"}:{color:"green"})},n(s[`m${t}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),a(d,{title:"达成率"},{default:l(({record:s})=>[e("span",null,n((s[`m${t}a`].toFixed(2)/s[`m${t}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])]),e("div",ot,[dt,a(F,{"data-source":p.value,class:"ant-table-small mt-10",size:"small",pagination:!1,"row-class-name":(t,s)=>s%2===1?"table-striped":null,bordered:""},{default:l(()=>[a(r,null,{title:l(()=>[i("2季度(万元)")]),default:l(()=>[a(d,{title:"目标","data-index":"s2l",width:"100px"}),a(d,{title:"实际","data-index":"s2a",width:"100px"},{default:l(({record:t})=>[e("span",{style:_(t.s2a>t.s2l?{color:"red"}:{color:"green"})},n(t.s2a.toFixed(2)),5)]),_:1}),a(d,{title:"达成率",width:"100px"},{default:l(({record:t})=>[e("span",null,n((t.s2a.toFixed(2)/t.s2l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,t=>a(r,{key:t},{title:l(()=>[i(n(`${t+3}月(万元)`),1)]),default:l(()=>[a(d,{title:"目标","data-index":`m${t+3}l`,width:"100px"},null,8,["data-index"]),a(d,{title:"实际","data-index":`m${t+3}a`,width:"100px"},{default:l(({record:s})=>[e("span",{style:_(s[`m${t+3}a`]>s[`m${t+3}l`]?{color:"red"}:{color:"green"})},n(s[`m${t+3}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),a(d,{title:"达成率",width:"100px"},{default:l(({record:s})=>[e("span",null,n((s[`m${t+3}a`].toFixed(2)/s[`m${t+3}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])]),e("div",it,[ut,a(F,{"data-source":p.value,class:"ant-table-small mt-10",size:"small",pagination:!1,"row-class-name":(t,s)=>s%2===1?"table-striped":null,bordered:""},{default:l(()=>[a(r,null,{title:l(()=>[i("3季度(万元)")]),default:l(()=>[a(d,{title:"目标","data-index":"s3l",width:"100px"}),a(d,{title:"实际","data-index":"s3a",width:"100px"},{default:l(({record:t})=>[e("span",{style:_(t.s3a>t.s3l?{color:"red"}:{color:"green"})},n(t.s3a.toFixed(2)),5)]),_:1}),a(d,{title:"达成率",width:"100px"},{default:l(({record:t})=>[e("span",null,n((t.s3a.toFixed(2)/t.s3l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,t=>a(r,{key:t},{title:l(()=>[i(n(`${t+6}月(万元)`),1)]),default:l(()=>[a(d,{title:"目标","data-index":`m${t+6}l`,width:"100px"},null,8,["data-index"]),a(d,{title:"实际","data-index":`m${t+6}a`,width:"100px"},{default:l(({record:s})=>[e("span",{style:_(s[`m${t+6}a`]>s[`m${t+6}l`]?{color:"red"}:{color:"green"})},n(s[`m${t+6}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),a(d,{title:"达成率",width:"100px"},{default:l(({record:s})=>[e("span",null,n((s[`m${t+6}a`].toFixed(2)/s[`m${t+6}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])]),e("div",ct,[rt,a(F,{"data-source":p.value,class:"ant-table-small",size:"small",pagination:!1,"row-class-name":(t,s)=>s%2===1?"table-striped":null,bordered:""},{default:l(()=>[a(r,null,{title:l(()=>[i("4季度(万元)")]),default:l(()=>[a(d,{title:"目标","data-index":"s3l",width:"100px"}),a(d,{title:"实际","data-index":"s3a",width:"100px"},{default:l(({record:t})=>[e("span",{style:_(t.s4a>t.s4l?{color:"red"}:{color:"green"})},n(t.s4a.toFixed(2)),5)]),_:1}),a(d,{title:"达成率",width:"100px"},{default:l(({record:t})=>[e("span",null,n((t.s4a.toFixed(2)/t.s4l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(g(),$(w,null,y(3,t=>a(r,{key:t},{title:l(()=>[i(n(`${t+9}月(万元)`),1)]),default:l(()=>[a(d,{title:"目标","data-index":`m${t+9}l`,width:"100px"},null,8,["data-index"]),a(d,{title:"实际","data-index":`m${t+9}a`,width:"100px"},{default:l(({record:s})=>[e("span",{style:_(s[`m${t+9}a`]>s[`m${t+9}l`]?{color:"red"}:{color:"green"})},n(s[`m${t+9}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),a(d,{title:"达成率",width:"100px"},{default:l(({record:s})=>[e("span",null,n((s[`m${t+9}a`]/s[`m${t+9}l`]*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])])],64)}}},vt=V(_t,[["__scopeId","data-v-9105bac3"]]);export{vt as default};
|