|
|
|
|
@ -74,7 +74,7 @@ export default {
|
|
|
|
|
if (b == 0) {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
return (parseInt(a) / parseInt(b) * 100).toFixed(2)
|
|
|
|
|
return (Number(a) / Number(b) * 100).toFixed(2)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getList() {
|
|
|
|
|
@ -127,8 +127,8 @@ export default {
|
|
|
|
|
<div style="display: flex;flex-direction: column;">
|
|
|
|
|
<p class="split split__department" style="text-align: right;padding-right: 5px;">{
|
|
|
|
|
row.plan?.reduce((a, b) => {
|
|
|
|
|
return parseInt(a) + parseInt(b.money)
|
|
|
|
|
},0)
|
|
|
|
|
return Number(a) + Number(b.money)
|
|
|
|
|
},0).toFixed(2)
|
|
|
|
|
}</p>
|
|
|
|
|
{
|
|
|
|
|
row.plan?.map((i,index) => {
|
|
|
|
|
@ -166,8 +166,8 @@ export default {
|
|
|
|
|
<div style="display: flex;flex-direction: column;">
|
|
|
|
|
<p class="split split__department" style="text-align: right;padding-right: 5px;">{
|
|
|
|
|
row.plan?.reduce((a, b) => {
|
|
|
|
|
return parseInt(a) + parseInt(b.detail[z].plan_total)
|
|
|
|
|
},0)
|
|
|
|
|
return Number(a) + Number(b.detail[z].plan_total)
|
|
|
|
|
},0).toFixed(2)
|
|
|
|
|
}</p>
|
|
|
|
|
{
|
|
|
|
|
row.plan?.map((i,index) => {
|
|
|
|
|
@ -189,8 +189,8 @@ export default {
|
|
|
|
|
<div style="display: flex;flex-direction: column;">
|
|
|
|
|
<p class="split split__department" style="text-align: right;padding-right: 5px;">{
|
|
|
|
|
row.plan?.reduce((a, b) => {
|
|
|
|
|
return parseInt(a) + parseInt(b.detail[z].act_total)
|
|
|
|
|
},0)
|
|
|
|
|
return Number(a) + Number(b.detail[z].act_total)
|
|
|
|
|
},0).toFixed(2)
|
|
|
|
|
}</p>
|
|
|
|
|
{
|
|
|
|
|
row.plan?.map((i,index) => {
|
|
|
|
|
@ -212,9 +212,9 @@ export default {
|
|
|
|
|
<div style="display: flex;flex-direction: column;">
|
|
|
|
|
<p class="split split__department" style="text-align: right;padding-right: 5px;">{
|
|
|
|
|
this.percent(row.plan?.reduce((a, b) => {
|
|
|
|
|
return parseInt(a) + parseInt(b.detail[z].act_total)
|
|
|
|
|
return Number(a) + Number(b.detail[z].act_total)
|
|
|
|
|
},0),row.plan?.reduce((a, b) => {
|
|
|
|
|
return parseInt(a) + parseInt(b.detail[z].plan_total)
|
|
|
|
|
return Number(a) + Number(b.detail[z].plan_total)
|
|
|
|
|
},0))
|
|
|
|
|
}%</p>
|
|
|
|
|
{
|
|
|
|
|
@ -247,8 +247,8 @@ export default {
|
|
|
|
|
return (
|
|
|
|
|
<p class="split" style={{"text-align": "right","background":index%2===0?'#ff000012':''}}>{
|
|
|
|
|
i.detail?.reduce((a,b) => {
|
|
|
|
|
return a + parseInt(b.plan_total)
|
|
|
|
|
},0)
|
|
|
|
|
return a + Number(b.plan_total)
|
|
|
|
|
},0).toFixed(2)
|
|
|
|
|
}</p>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
|