| 1 |
- import{R as E}from"./index-26e49f8e.js";import{w as I,X as f,Y as v,c as q,a as D,o as N,W as m,$ as e,m as l,Z as a,F as w,E as i,a4 as s,u as x,a6 as c,a5 as y,a0 as T,a1 as V}from"./vue-904e9482.js";import{A as k}from"./index-abf064a2.js";import{_ as Y}from"./_plugin-vue_export-helper-c27b6911.js";import"./ext-942bf6ca.js";import"./vue-router-e129cfde.js";const A=["id"],M={__name:"ringProgress",props:["percent","idname"],setup(h){const u=h;return I(()=>u.percent,(o,g)=>{new E(u.idname,{height:100,width:100,autoFit:!1,percent:u.percent,color:["#5B8FF9","#E8EDF3"]}).render()}),(o,g)=>(f(),v("div",{id:u.idname},null,8,A))}};const $=h=>(T("data-v-d4271176"),h=h(),V(),h),C={class:"y-container mt-10"},L={class:"brderRight pd-10 flex"},W={style:{"font-size":"14px",color:"red"}},X={class:"info"},Z=$(()=>e("small",null,"达成金额",-1)),j={class:"info"},G=$(()=>e("small",null,"目标金额",-1)),H={class:"brderRight pd-10 flex"},J={style:{"font-size":"14px",color:"red"}},K={class:"info"},O=$(()=>e("small",null,"达成金额",-1)),Q={class:"info"},U=$(()=>e("small",null,"目标金额",-1)),tt={class:"brderRight pd-10 flex"},et={style:{"font-size":"14px",color:"red"}},lt={class:"info"},at=$(()=>e("small",null,"达成金额",-1)),st={class:"info"},nt=$(()=>e("small",null,"目标金额",-1)),ot={class:"y-container"},dt={__name:"index",setup(h){const u=q(()=>{var _=new Date,p=_.getMonth()+1;return p>=1&&p<=3?1:p>=4&&p<=6?2:p>=7&&p<=9?3:4}),o=D({}),g=D([]),P=async()=>{const _=await k.requested({id:"20231018103203",content:{}});g.value=_.data,console.log(_.data,"---"),_.data.length>0?o.value=_.data[0]:o.value="none"},z=D([]),R=async()=>{const _=await k.requested({id:"20231018103303",content:{}});g.value=_.data,console.log(_.data,"---2"),z.value=_.data};return N(()=>{P(),R()}),(_,p)=>{const F=m("a-statistic"),b=m("a-col"),S=m("a-row"),d=m("a-table-column"),r=m("a-table-column-group"),B=m("a-table");return f(),v(w,null,[e("div",C,[l(S,{gutter:16},{default:a(()=>[l(b,{span:8},{default:a(()=>[e("div",L,[e("div",null,[l(F,{class:"mt-10",style:{cursor:"pointer"},title:"本月目标",value:o.value[`m${new Date().getMonth()+1}a`]/o.value[`m${new Date().getMonth()+1}l`]*100,"value-style":{color:"#333"}},{suffix:a(()=>[i(" % "),e("small",W,s(o.value[`m${new Date().getMonth()+1}a`]-o.value[`m${new Date().getMonth()+1}l`]),1)]),_:1},8,["value"]),e("div",null,[e("div",X,[Z,i(" "),e("small",null,s(o.value[`m${new Date().getMonth()+1}a`])+"万元",1)]),e("div",j,[G,i(" "),e("small",null,s(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`]},null,8,["percent"])])]),_:1}),l(b,{span:8},{default:a(()=>[e("div",H,[e("div",null,[l(F,{class:"mt-10",style:{cursor:"pointer"},title:"本季目标",value:o.value[`s${x(u)}a`]/o.value[`s${x(u)}l`]*100,"value-style":{color:"#333"}},{suffix:a(()=>[i(" % "),e("small",J,s(o.value[`s${x(u)}a`]-o.value[`s${x(u)}l`]),1)]),_:1},8,["value"]),e("div",null,[e("div",K,[O,i(" "),e("small",null,s(o.value[`s${x(u)}a`])+"万元",1)]),e("div",Q,[U,i(" "),e("small",null,s(o.value[`s${x(u)}l`])+"万元",1)])])]),l(M,{idname:"ringProgress2",percent:o.value[`s${x(u)}a`]/o.value[`s${x(u)}l`]},null,8,["percent"])])]),_:1}),l(b,{span:8},{default:a(()=>[e("div",tt,[e("div",null,[l(F,{class:"mt-10",style:{cursor:"pointer"},title:"本年目标",value:o.value.y1a/o.value.y1l%100,"value-style":{color:"#333"}},{suffix:a(()=>[i(" % "),e("small",et,s(o.value.y1a-o.value.y1l),1)]),_:1},8,["value"]),e("div",null,[e("div",lt,[at,i(" "),e("small",null,s(o.value.y1a),1)]),e("div",st,[nt,i(" "),e("small",null,s(o.value.y1l),1)])])]),l(M,{idname:"ringProgress3",percent:o.value.y1a/o.value.y1l},null,8,["percent"])])]),_:1})]),_:1})]),e("div",ot,[l(B,{"data-source":g.value,scroll:{y:"100%"},class:"ant-table-small",size:"small","row-class-name":(t,n)=>n%2===1?"table-striped":null,bordered:""},{default:a(()=>[l(d,{title:"营销区域","data-index":"areaname",width:"200px"}),l(r,null,{title:a(()=>[i("年度(万元)")]),default:a(()=>[l(d,{title:"目标","data-index":"y1l",width:"100px"}),l(d,{title:"实际","data-index":"y1a",width:"100px"},{default:a(({record:t})=>[e("span",{style:c(t.y1a>t.y1l?{color:"red"}:{color:"green"})},s(t.y1a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:t})=>[e("span",null,s((t.y1a.toFixed(2)/t.y1l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),l(r,null,{title:a(()=>[i("1季度(万元)")]),default:a(()=>[l(d,{title:"目标","data-index":"s1l",width:"100px"}),l(d,{title:"实际","data-index":"s1a",width:"100px"},{default:a(({record:t})=>[e("span",{style:c(t.s1a>t.s1l?{color:"red"}:{color:"green"})},s(t.s1a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:t})=>[e("span",null,s((t.s1a.toFixed(2)/t.s1l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(f(),v(w,null,y(3,t=>l(r,{key:t},{title:a(()=>[i(s(`${t}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${t}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${t}a`,width:"100px"},{default:a(({record:n})=>[e("span",{style:c(n[`m${t}a`]>n[`m${t}l`]?{color:"red"}:{color:"green"})},s(n[`m${t}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:n})=>[e("span",null,s((n[`m${t}a`].toFixed(2)/n[`m${t}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64)),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:t})=>[e("span",{style:c(t.s2a>t.s2l?{color:"red"}:{color:"green"})},s(t.s2a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:t})=>[e("span",null,s((t.s2a.toFixed(2)/t.s2l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(f(),v(w,null,y(3,t=>l(r,{key:t},{title:a(()=>[i(s(`${t+3}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${t+3}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${t+3}a`,width:"100px"},{default:a(({record:n})=>[e("span",{style:c(n[`m${t+3}a`]>n[`m${t+3}l`]?{color:"red"}:{color:"green"})},s(n[`m${t+3}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:n})=>[e("span",null,s((n[`m${t+3}a`].toFixed(2)/n[`m${t+3}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64)),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:t})=>[e("span",{style:c(t.s3a>t.s3l?{color:"red"}:{color:"green"})},s(t.s3a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:t})=>[e("span",null,s((t.s3a.toFixed(2)/t.s3l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(f(),v(w,null,y(3,t=>l(r,{key:t},{title:a(()=>[i(s(`${t+6}月(万元)`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${t+6}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${t+6}a`,width:"100px"},{default:a(({record:n})=>[e("span",{style:c(n[`m${t+6}a`]>n[`m${t+6}l`]?{color:"red"}:{color:"green"})},s(n[`m${t+6}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:n})=>[e("span",null,s((n[`m${t+6}a`].toFixed(2)/n[`m${t+6}l`].toFixed(2)*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64)),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:t})=>[e("span",{style:c(t.s4a>t.s4l?{color:"red"}:{color:"green"})},s(t.s4a.toFixed(2)),5)]),_:1}),l(d,{title:"达成率",width:"100px"},{default:a(({record:t})=>[e("span",null,s((t.s4a.toFixed(2)/t.s4l.toFixed(2)*100).toFixed(2))+" % ",1)]),_:1})]),_:1}),(f(),v(w,null,y(3,t=>l(r,{key:t},{title:a(()=>[i(s(`${t+9}月`),1)]),default:a(()=>[l(d,{title:"目标","data-index":`m${t+9}l`,width:"100px"},null,8,["data-index"]),l(d,{title:"实际","data-index":`m${t+9}a`,width:"100px"},{default:a(({record:n})=>[e("span",{style:c(n[`m${t+9}a`]>n[`m${t+9}l`]?{color:"red"}:{color:"green"})},s(n[`m${t+9}a`].toFixed(2)),5)]),_:2},1032,["data-index"]),l(d,{title:"达成率",width:"100px"},{default:a(({record:n})=>[e("span",null,s((n[`m${t+9}a`]/n[`m${t+9}l`]*100).toFixed(2))+" % ",1)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["data-source","row-class-name"])])],64)}}},pt=Y(dt,[["__scopeId","data-v-d4271176"]]);export{pt as default};
|