|
|
|
|
@ -46,6 +46,7 @@
|
|
|
|
|
@click="
|
|
|
|
|
() => {
|
|
|
|
|
$refs['addPlanEvaluate'].type = 1;
|
|
|
|
|
$refs['addPlanEvaluate'].setPlan(scope.row);
|
|
|
|
|
$refs['addPlanEvaluate'].setPlanId(scope.row.id);
|
|
|
|
|
$refs['addPlanEvaluate'].show();
|
|
|
|
|
}
|
|
|
|
|
@ -60,6 +61,7 @@
|
|
|
|
|
@click="
|
|
|
|
|
() => {
|
|
|
|
|
$refs['addPlanEvaluate'].type = 2;
|
|
|
|
|
$refs['addPlanEvaluate'].setPlan(scope.row);
|
|
|
|
|
$refs['addPlanEvaluate'].setPlanId(scope.row.id);
|
|
|
|
|
$refs['addPlanEvaluate'].show();
|
|
|
|
|
}
|
|
|
|
|
@ -67,47 +69,6 @@
|
|
|
|
|
>
|
|
|
|
|
年末目标
|
|
|
|
|
</Button>
|
|
|
|
|
<el-popover placement="left" width="200" trigger="click">
|
|
|
|
|
<div style="margin-bottom: 15px;">确认年中自评确认?</div>
|
|
|
|
|
<div style="margin-top:15px; display: flex;justify-content: flex-end;">
|
|
|
|
|
<Button @click="" type="primary" ghost size="small">确认</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<Button
|
|
|
|
|
slot="reference"
|
|
|
|
|
size="small"
|
|
|
|
|
type="primary"
|
|
|
|
|
class="slot-btns-item"
|
|
|
|
|
style="margin-right: 5px;"
|
|
|
|
|
@click="
|
|
|
|
|
() => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
年中确认
|
|
|
|
|
</Button>
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
<el-popover placement="left" width="200" trigger="click">
|
|
|
|
|
<div style="margin-bottom: 15px;">确认年末自评确认?</div>
|
|
|
|
|
<div style="margin-top:15px; display: flex;justify-content: flex-end;">
|
|
|
|
|
<Button @click="" type="primary" ghost size="small">确认</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<Button
|
|
|
|
|
style="margin-right: 5px;"
|
|
|
|
|
slot="reference"
|
|
|
|
|
size="small"
|
|
|
|
|
type="primary"
|
|
|
|
|
class="slot-btns-item"
|
|
|
|
|
@click="
|
|
|
|
|
() => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
年末确认
|
|
|
|
|
</Button>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -128,7 +89,7 @@
|
|
|
|
|
}" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<addEvaluate ref="addEvaluate" @refresh="getList"></addEvaluate>
|
|
|
|
|
|
|
|
|
|
<addPlanEvaluate ref="addPlanEvaluate"></addPlanEvaluate>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -138,12 +99,11 @@ import { getBudget, editorBudget } from "@/api/budget/budget";
|
|
|
|
|
import { index, destroy } from "@/api/achievements/evaluate";
|
|
|
|
|
import { deepCopy, moneyFormatter, parseTime } from '@/utils'
|
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
import addEvaluate from '@/views/achievements/components/addEvaluate.vue'
|
|
|
|
|
import addPlanEvaluate from '@/views/achievements/components/addPlanEvaluate.vue'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
addPlanEvaluate, addEvaluate
|
|
|
|
|
addPlanEvaluate
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
@ -175,16 +135,26 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '年中自评',
|
|
|
|
|
prop: 'year_midst',
|
|
|
|
|
prop: 'year_midst_status',
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return value ? "" : "待完成"
|
|
|
|
|
let map = new Map([
|
|
|
|
|
[0,'待完成'],
|
|
|
|
|
[1,'已完成'],
|
|
|
|
|
[2,'已确认']
|
|
|
|
|
])
|
|
|
|
|
return map.get(value)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '年末自评',
|
|
|
|
|
prop: 'year_end',
|
|
|
|
|
prop: 'year_end_status',
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return value ? "" : "待完成"
|
|
|
|
|
let map = new Map([
|
|
|
|
|
[0,'待完成'],
|
|
|
|
|
[1,'已完成'],
|
|
|
|
|
[2,'已确认']
|
|
|
|
|
])
|
|
|
|
|
return map.get(value)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -246,11 +216,12 @@ export default {
|
|
|
|
|
async getList() {
|
|
|
|
|
const res = await getBudget(this.select);
|
|
|
|
|
this.list = res.list.data;
|
|
|
|
|
this.total = res.list.total
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
edit(row, key) {
|
|
|
|
|
let rowCopy = deepCopy(row)
|
|
|
|
|
row[key] = 2
|
|
|
|
|
rowCopy[key] = 2
|
|
|
|
|
editorBudget(rowCopy).then(res => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
|