|
|
|
|
@ -57,7 +57,9 @@
|
|
|
|
|
width="260"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:default="scope">
|
|
|
|
|
<el-dropdown @command="command => {
|
|
|
|
|
<template v-if="!(scope.row.year_middle_audit > 0) || !(scope.row.year_end_audit > 0)">
|
|
|
|
|
<el-dropdown
|
|
|
|
|
@command="command => {
|
|
|
|
|
if (command === 'yearMiddle') {
|
|
|
|
|
$refs['addPlanEvaluate'].type = 1;
|
|
|
|
|
$refs['addPlanEvaluate'].setPlanId(scope.row.id);
|
|
|
|
|
@ -68,16 +70,19 @@
|
|
|
|
|
$refs['addPlanEvaluate'].show();
|
|
|
|
|
}
|
|
|
|
|
}">
|
|
|
|
|
<Button style="margin-left: 4px;" size="small" type="primary">
|
|
|
|
|
填报绩效指标<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</Button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="yearMiddle">填报年中绩效指标</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="yearEnd">填报年末绩效指标</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
<Button style="margin-left: 4px;" size="small" type="primary">
|
|
|
|
|
填报绩效指标<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</Button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="yearMiddle" v-if="!(scope.row.year_middle_audit > 0)">填报年中绩效指标</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="yearEnd" v-if="!(scope.row.year_end_audit > 0)">填报年末绩效指标</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<el-dropdown @command="command => {
|
|
|
|
|
<template v-if="!(scope.row.year_middle_audit > 0) || !(scope.row.year_end_audit > 0)">
|
|
|
|
|
<el-dropdown
|
|
|
|
|
@command="command => {
|
|
|
|
|
if (command === 'yearMiddle') {
|
|
|
|
|
$refs['addSelfEvaluationForm'].setId(scope.row.id);
|
|
|
|
|
$refs['addSelfEvaluationForm'].setType(1);
|
|
|
|
|
@ -88,18 +93,19 @@
|
|
|
|
|
$refs['addSelfEvaluationForm'].show();
|
|
|
|
|
}
|
|
|
|
|
}">
|
|
|
|
|
<Button style="margin-left: 4px;" size="small" type="primary">
|
|
|
|
|
填报自评表<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</Button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="yearMiddle">
|
|
|
|
|
<span :style="{'color': scope.row.year_middle_audit < 0 ? 'red' : '' }">填报年中自评表</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="yearEnd">
|
|
|
|
|
<span :style="{'color': scope.row.year_end_audit < 0 ? 'red' : '' }">填报年末自评表</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
<Button style="margin-left: 4px;" size="small" type="primary">
|
|
|
|
|
填报自评表<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</Button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="yearMiddle" v-if="!(scope.row.year_middle_audit > 0)">
|
|
|
|
|
<span :style="{'color': scope.row.year_middle_audit < 0 ? 'red' : '' }">填报年中自评表</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="yearEnd" v-if="!(scope.row.year_end_audit > 0)">
|
|
|
|
|
<span :style="{'color': scope.row.year_end_audit < 0 ? 'red' : '' }">填报年末自评表</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<el-dropdown @command="command => {
|
|
|
|
|
if (command === 'yearMiddle') {
|
|
|
|
|
@ -124,6 +130,22 @@
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.year_middle_audit === 0 || scope.row.year_end_audit === 0">
|
|
|
|
|
<el-dropdown @command="command => sendExamine(command,scope.row)">
|
|
|
|
|
<Button style="margin-left: 4px;" size="small" type="primary">
|
|
|
|
|
送审<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</Button>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="yearMiddle" v-if="scope.row.year_middle_audit === 0">
|
|
|
|
|
<span>送审年中绩效</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="yearEnd" v-if="scope.row.year_end_audit === 0">
|
|
|
|
|
<span>送审年末绩效</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -151,7 +173,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getBudget } from "@/api/budget/budget";
|
|
|
|
|
import { getBudget, editorBudget } from "@/api/budget/budget";
|
|
|
|
|
import { index, destroy } from "@/api/achievements/evaluate";
|
|
|
|
|
import { moneyFormatter, parseTime } from "@/utils";
|
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
@ -249,6 +271,112 @@ export default {
|
|
|
|
|
align: "left",
|
|
|
|
|
sortable: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "年中绩效审核状态",
|
|
|
|
|
multiHd: [
|
|
|
|
|
{
|
|
|
|
|
label: "部门负责人",
|
|
|
|
|
prop: "year_middle_audit",
|
|
|
|
|
customFn: row => {
|
|
|
|
|
const val = row.year_middle_audit
|
|
|
|
|
if (val === -1) {
|
|
|
|
|
return (<span style="color: red;">驳回</span>)
|
|
|
|
|
}
|
|
|
|
|
else if (val > 1 || val < -1) {
|
|
|
|
|
return (<span style="color: green;">通过</span>)
|
|
|
|
|
} else {
|
|
|
|
|
return '待审核'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "分管领导",
|
|
|
|
|
prop: "year_middle_audit",
|
|
|
|
|
customFn: row => {
|
|
|
|
|
const val = row.year_middle_audit
|
|
|
|
|
if (val === -2) {
|
|
|
|
|
return (<span style="color: red;">驳回</span>)
|
|
|
|
|
}
|
|
|
|
|
else if (val > 2 || val < -2) {
|
|
|
|
|
return (<span style="color: green;">通过</span>)
|
|
|
|
|
} else {
|
|
|
|
|
return '待审核'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "财务",
|
|
|
|
|
prop: "year_middle_audit",
|
|
|
|
|
customFn: row => {
|
|
|
|
|
const val = row.year_middle_audit
|
|
|
|
|
if (val === -3) {
|
|
|
|
|
return (<span style="color: red;">驳回</span>)
|
|
|
|
|
}
|
|
|
|
|
else if (val > 3) {
|
|
|
|
|
return (<span style="color: green;">通过</span>)
|
|
|
|
|
} else {
|
|
|
|
|
return '待审核'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 120
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "年末绩效审核状态",
|
|
|
|
|
multiHd: [
|
|
|
|
|
{
|
|
|
|
|
label: "部门负责人",
|
|
|
|
|
prop: "year_end_audit",
|
|
|
|
|
customFn: row => {
|
|
|
|
|
const val = row.year_end_audit
|
|
|
|
|
if (val === -1) {
|
|
|
|
|
return (<span style="color: red;">驳回</span>)
|
|
|
|
|
}
|
|
|
|
|
else if (val > 1 || val < -1) {
|
|
|
|
|
return (<span style="color: green;">通过</span>)
|
|
|
|
|
} else {
|
|
|
|
|
return '待审核'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "分管领导",
|
|
|
|
|
prop: "year_end_audit",
|
|
|
|
|
customFn: row => {
|
|
|
|
|
const val = row.year_end_audit
|
|
|
|
|
if (val === -2) {
|
|
|
|
|
return (<span style="color: red;">驳回</span>)
|
|
|
|
|
}
|
|
|
|
|
else if (val > 2 || val < -2) {
|
|
|
|
|
return (<span style="color: green;">通过</span>)
|
|
|
|
|
} else {
|
|
|
|
|
return '待审核'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "财务",
|
|
|
|
|
prop: "year_end_audit",
|
|
|
|
|
customFn: row => {
|
|
|
|
|
const val = row.year_end_audit
|
|
|
|
|
if (val === -3) {
|
|
|
|
|
return (<span style="color: red;">驳回</span>)
|
|
|
|
|
}
|
|
|
|
|
else if (val > 3) {
|
|
|
|
|
return (<span style="color: green;">通过</span>)
|
|
|
|
|
} else {
|
|
|
|
|
return '待审核'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 120
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "自评意见",
|
|
|
|
|
width: 100,
|
|
|
|
|
@ -271,6 +399,35 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
sendExamine (command, row) {
|
|
|
|
|
this.$confirm("确认要送审?","提示",{
|
|
|
|
|
}).then(_ => {
|
|
|
|
|
if (command === 'yearMiddle') {
|
|
|
|
|
editorBudget({
|
|
|
|
|
id: row.id,
|
|
|
|
|
year_middle_audit: 1
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "送审成功",
|
|
|
|
|
});
|
|
|
|
|
this.getList();
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
editorBudget({
|
|
|
|
|
id: row.id,
|
|
|
|
|
year_end_audit: 1
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "送审成功",
|
|
|
|
|
});
|
|
|
|
|
this.getList();
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getBudgetTypes() {
|
|
|
|
|
const res = await getparameter({
|
|
|
|
|
number: "money_way",
|
|
|
|
|
|