diff --git a/src/views/achievements/components/addPlanEvaluate.vue b/src/views/achievements/components/addPlanEvaluate.vue index b6fbabb..62d6c33 100644 --- a/src/views/achievements/components/addPlanEvaluate.vue +++ b/src/views/achievements/components/addPlanEvaluate.vue @@ -15,6 +15,36 @@ > + + +
确认年中自评确认?
+
+ +
+ +
+ + +
确认年末自评确认?
+
+ +
+ +
@@ -22,8 +52,9 @@ + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1cf8f59..9d96833 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,588 +1,696 @@ - @@ -128,7 +89,7 @@ }" /> - + @@ -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', diff --git a/src/views/inOut/expenseAccount.vue b/src/views/inOut/expenseAccount.vue index ed9d5c0..beec901 100644 --- a/src/views/inOut/expenseAccount.vue +++ b/src/views/inOut/expenseAccount.vue @@ -235,7 +235,7 @@ export default { page: 1, page_size: 10, start_created_at: "", - end_created_at: "", + end_created_at: undefined, start_plan_price: "", end_plan_price: "", department_id: "", @@ -277,21 +277,39 @@ export default { }, { prop: "money", - label: "报销金额(元)", + label: this.$route.path.split("_")[1] == 2 ? "报销金额(元)" : "支出金额(元)", width: 140, align: "right", }, { prop: "use_money_total", - label: "实际报销金额(元)", + label: this.$route.path.split("_")[1] == 2 ? "实际报销金额(元)" : "实际支出金额(元)", width: 140, align: "right", + customFn:row => { + let total = 0 + row.plans?.forEach(i => { + total += Number(i.money) || 0 + }) + return ( + { total } + ) + } }, { prop: "has_money_total", label: "已付金额", width: 140, align: "right", + customFn:row => { + let total = 0 + row.plans?.forEach(i => { + total += Number(i.end_money) || 0 + }) + return ( + { total } + ) + } }, { prop: "department.name",