|
|
|
|
@ -276,7 +276,12 @@
|
|
|
|
|
style="margin-bottom: 10px; border: 0px; margin-top: 25px"
|
|
|
|
|
>
|
|
|
|
|
<div slot="content">
|
|
|
|
|
<xy-table :cell-style="nopayCellStyle" :height="300" :list="nopay" :table-item="nopayTable">
|
|
|
|
|
<xy-table
|
|
|
|
|
:cell-style="nopayCellStyle"
|
|
|
|
|
:height="300"
|
|
|
|
|
:list="nopay"
|
|
|
|
|
:table-item="nopayTable"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:btns> </template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</div>
|
|
|
|
|
@ -314,7 +319,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 280,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -338,7 +343,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
minWidth: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -352,6 +357,11 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "部门",
|
|
|
|
|
prop: "department.name",
|
|
|
|
|
width: 160,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
departmentTotal: [],
|
|
|
|
|
departmentTotalTable: [
|
|
|
|
|
@ -389,7 +399,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -449,7 +459,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -467,7 +477,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
width: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -527,7 +537,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
width: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -576,7 +586,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -594,7 +604,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
width: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -637,7 +647,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -655,7 +665,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
width: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -698,7 +708,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -716,7 +726,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
width: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -761,7 +771,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -779,7 +789,7 @@ export default {
|
|
|
|
|
prop: "supply",
|
|
|
|
|
label: "承包商/供货商",
|
|
|
|
|
width: 160,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "服务时间",
|
|
|
|
|
@ -822,7 +832,7 @@ export default {
|
|
|
|
|
prop: "name",
|
|
|
|
|
label: "合同名称",
|
|
|
|
|
width: 180,
|
|
|
|
|
align:"left"
|
|
|
|
|
align: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "money",
|
|
|
|
|
@ -1031,28 +1041,36 @@ export default {
|
|
|
|
|
.catch((error) => {});
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
nopayCellStyle ({row}) {
|
|
|
|
|
let per = ((((row.fund_log_total) / row.money) || 0) * 100)?.toFixed(2) || 0
|
|
|
|
|
let endDay = this.$moment(new Date()).diff(this.$moment(new Date(row.end_date)),'months')
|
|
|
|
|
nopayCellStyle({ row }) {
|
|
|
|
|
let per = ((row.fund_log_total / row.money || 0) * 100)?.toFixed(2) || 0;
|
|
|
|
|
let endDay = this.$moment(new Date()).diff(
|
|
|
|
|
this.$moment(new Date(row.end_date)),
|
|
|
|
|
"months"
|
|
|
|
|
);
|
|
|
|
|
if (per < 100 && endDay >= 6) {
|
|
|
|
|
return {
|
|
|
|
|
'background': '#ef6256ee',
|
|
|
|
|
'color': '#fff'
|
|
|
|
|
}
|
|
|
|
|
background: "#ef625688",
|
|
|
|
|
color: "#fff",
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
async getNopay() {
|
|
|
|
|
const res = await nopayTotal({
|
|
|
|
|
is_auth: 1,
|
|
|
|
|
//year: this.select.year
|
|
|
|
|
});
|
|
|
|
|
this.nopay = res.filter(i => i.momey != 0);
|
|
|
|
|
this.nopay = res
|
|
|
|
|
.filter((i) => i.momey != 0)
|
|
|
|
|
.sort((a, b) => {
|
|
|
|
|
return (
|
|
|
|
|
new Date(a.end_date).getTime() - new Date(b.end_date).getTime()
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
async getDepartmnetTotal() {
|
|
|
|
|
const res = await departmentTotal({
|
|
|
|
|
is_auth: 1,
|
|
|
|
|
year: this.select.year
|
|
|
|
|
year: this.select.year,
|
|
|
|
|
});
|
|
|
|
|
this.departmentTotal = res;
|
|
|
|
|
},
|
|
|
|
|
@ -1061,7 +1079,7 @@ export default {
|
|
|
|
|
this.select.year = e;
|
|
|
|
|
this.getStatistic();
|
|
|
|
|
this.getNopay();
|
|
|
|
|
this.getDepartmnetTotal()
|
|
|
|
|
this.getDepartmnetTotal();
|
|
|
|
|
},
|
|
|
|
|
async getStatistic() {
|
|
|
|
|
const res = await statistic(this.select);
|
|
|
|
|
|