From 4c68c89a140c300ac1da434d53e6cc2a1db873ed Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Sat, 5 Jul 2025 21:31:30 +0800 Subject: [PATCH] up --- src/views/away/index.vue | 131 ++++++++--- src/views/finance/paymentRegistrationList.vue | 211 +++++++++++------- 2 files changed, 225 insertions(+), 117 deletions(-) diff --git a/src/views/away/index.vue b/src/views/away/index.vue index c06440a..d3e9942 100644 --- a/src/views/away/index.vue +++ b/src/views/away/index.vue @@ -20,19 +20,26 @@ -
+
部门
-
- 状态 +
+ 数据类型 + + + +
+
+ 财务审核状态
-
开始时间 @@ -61,7 +68,7 @@
-
+
数据类型 + +
+
+ 部门 + + + +
+
+ 预算计划 + + + +
+
+ 财务确认状态 + +
+
+ 流转状态 + + + + + +
+
+ 创建日期 + + + +
+
+ +
+
+ +
+
+ +
+
- 关键字 - - - - 预算计划 - - - - 状态 - - 流转状态 - - - - - - 部门 - - - - - - @@ -155,7 +175,7 @@ >审核确认 - @@ -267,6 +287,13 @@ export default { [0, "流转中"], [1, "已办结"] ]), + flowStatusColor: new Map([ + [-2, "rgb(140, 140, 140)"], + [-1, "#dca550"], + [2, "rgb(96, 109, 241)"], + [0, "rgb(219, 122, 122)"], + [1, "rgb(147, 201, 134)"] + ]), pageIndex: 1, pageSize: 10, table: [ @@ -327,22 +354,31 @@ export default { prop: "type", width: 120, }, - { - prop: "status", - label: "状态", - width: 100, - formatter: (cell, data, value) => { - if (value === 0) return "待审核"; - else return "已审核"; - }, - }, { prop: 'fund_log_flow_links', label: '流程状态', - formatter: (cell, data, value) => { - return this.flowStatus.get(value.find(i => i.tag === 'pay')?.flow_status) + customFn:row => { + return ( + i.tag === 'pay')?.flow_status) + + }>{this.flowStatus.get(row.fund_log_flow_links.find(i => i.tag === 'pay')?.flow_status)}) } + + // formatter: (cell, data, value) => { + // return this.flowStatus.get(value.find(i => i.tag === 'pay')?.flow_status) + // } }, + { + prop: "status", + label: "财务确认状态", + width: 100, + customFn:row => { + return (row.status === 0) ? + (待审核) : + (已审核) + } + }, + { label: "次数", prop: "pay_count", @@ -415,7 +451,7 @@ export default { this.getBudgets(); }, doSearch() { - this.pageIndex = 0; + this.pageIndex = 1; this.getFundLogs(); }, confirmPlanForSearch() { @@ -575,4 +611,19 @@ export default { }; - +