-
状态
+
+ 数据类型
+
+
+
+
+
+ 财务审核状态
-
开始时间
@@ -61,7 +68,7 @@
-
+
数据类型
-
+
-->
@@ -278,7 +285,7 @@
-
+
@@ -316,12 +323,12 @@ export default {
financialStatusList:[{
id:1,
name:'待确认'
+ },{
+ id:3,
+ name:'确认中'
},{
id:2,
name:'已确认'
- },{
- id:3,
- name:'部分确认'
}],
select: {
keyword: '',
@@ -330,9 +337,11 @@ export default {
auth_type: 1,
page: 1,
page_size: 10,
- flow_link: [],
+ // flow_link: [],
+ check_type:1,
department_id: '',
- financial_status:'1,3'
+ financial_status:/Finance/g.test(this.$route.path)?'1,3':'',
+
},
total: 0,
list: [],
@@ -436,27 +445,55 @@ export default {
width: 100,
label: "财务审核",
customFn:row => {
- return (row.FLOWSTATUS.financial.getStatus() === 2) ?
- (
已确认) :
- (
待审核)
+ if(row.financial_status===1){
+ return (
待确认1)
+ }else if(row.financial_status===3){
+ return (
确认中3)
+ }else if(row.financial_status===2){
+ return (
已确认2)
+ }else{
+
+ }
+ // return (row.FLOWSTATUS.financial.getStatus() === 2) ?
+ // (
已确认) :
+ // (
待审核)
+
+ // [-2, "rgb(140, 140, 140)"],
+ // [-1, "#dca550"],
+ // [2, "rgb(96, 109, 241)"],
+ // [0, "rgb(219, 122, 122)"],
+ // [1, "rgb(147, 201, 134)"]
+
+ // return (
+ // row.financial_status===1?(
待确认):
+ // (row.financial_status===3?(
确认中):
+ // (row.financial_status===2?(
已确认):'')
+ // )
+
+ // this.financialStatusList.map(i=>{
+ // if(i.id===row.financial_status){
+ // return (
{i.name})
+ // }
+ // })
+ // )
}
}
]
},
- {
- label: "状态",
- width: 160,
- prop: "financial_status",
- customFn:row => {
- return (
- this.financialStatusList.map(i=>{
- if(i.id===row.financial_status){
- return (
{i.name})
- }
- })
- )
- }
- },
+ // {
+ // label: "报销确认状态",
+ // width: 160,
+ // prop: "financial_status",
+ // customFn:row => {
+ // return (
+ // this.financialStatusList.map(i=>{
+ // if(i.id===row.financial_status){
+ // return (
{i.name})
+ // }
+ // })
+ // )
+ // }
+ // },
{
label: "创建日期",
width: 160,
@@ -602,6 +639,7 @@ export default {
},
async getList (isFirst) {
+
class Flow {
status = 0
executable = false
@@ -627,7 +665,11 @@ export default {
return this.executable && (this.status === 2 || this.status === "")
}
}
- const res = await index(this.select,!isFirst);
+ const res = await index({
+ ...this.select,
+ "flow_link[0][custom_model_id]":/Finance/g.test(this.$route.path)&&this.select.check_type===1?78:'',
+ "flow_link[0][flow_status]": /Finance/g.test(this.$route.path)&&this.select.check_type===1?1:''
+ },!isFirst);
delete this.select.id;
this.total = res.total;
this.list = res.data;
@@ -692,6 +734,18 @@ export default {
},
},
computed: {
+ canCheck(){
+ return [
+ {
+ value: 0,
+ label: '全部'
+ },
+ {
+ value: 1,
+ label: '可审核'
+ }
+ ]
+ },
auths() {
if (/Finance/g.test(this.$route.path)) {
return [
@@ -749,17 +803,20 @@ export default {
this.window.top = (window.screen.height - 30 - this.window.height) / 2;
this.window.left = (window.screen.width - 10 - this.window.width) / 2;
this.select.id = this.$route.query.awayId ?? '';
+ if (/Finance/g.test(this.$route.path)) {
+ this.select.auth_type = 0
+ this.select.check_type = 1
+ } else {
+ this.select.auth_type = 1
+ this.select.check_type = 0
+ }
this.getList(true)
window.onfocus = () => {
this.getList()
}
- if (/Finance/g.test(this.$route.path)) {
- this.select.auth_type = 0
- } else {
- this.select.auth_type = 1
- }
+
},
destroyed() {
window.onfocus = null;
diff --git a/src/views/finance/paymentRegistrationList.vue b/src/views/finance/paymentRegistrationList.vue
index c383b27..e6bf9e9 100644
--- a/src/views/finance/paymentRegistrationList.vue
+++ b/src/views/finance/paymentRegistrationList.vue
@@ -7,74 +7,94 @@
>
- 创建日期
-
- (selectDate = e)"
- >
-
+
+
+ 关键字
+
+
+
+
+
+ 部门
+
+
+
+
+
+ 预算计划
+
+
+
+
+
+ 财务确认状态
+
+
+
+ 流转状态
+
+
+
+
+
+
+
+ 创建日期
+
+ (selectDate = e)"
+ >
+
+
+
+ 查询
+
+
+ 重置
+
+
+ 导出
+
+
- 关键字
-
-
-
- 预算计划
-
-
-
- 状态
-
- 流转状态
-
-
-
-
-
- 部门
-
-
-
- 重置
- 查询
- 导出
@@ -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 {
};
-
+