From e24aada42c9b08a1f5b10c07f213a6ac90a6570a Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Thu, 27 Mar 2025 16:59:28 +0800
Subject: [PATCH] init
---
src/views/away/component/MultiExamine.vue | 46 ++++++++-----
src/views/away/index.vue | 83 ++++++++---------------
2 files changed, 56 insertions(+), 73 deletions(-)
diff --git a/src/views/away/component/MultiExamine.vue b/src/views/away/component/MultiExamine.vue
index e5270aa..b95384e 100644
--- a/src/views/away/component/MultiExamine.vue
+++ b/src/views/away/component/MultiExamine.vue
@@ -6,7 +6,9 @@
type="normal"
title="出差审批"
>
-
+
+
+
@@ -18,34 +20,38 @@ export default {
isShow: false,
table: [
{
- prop: '',
+ prop: 'plan',
label: '资金来源'
},
{
- prop: '',
- label: '年份'
+ prop: 'title',
+ label: '事由',
+ minWidth: 180,
+ align: 'left'
},
{
- prop: '',
- label: '科室'
+ prop: 'start_date',
+ label: '开始日期',
+ width: 120
},
{
- prop: '',
- label: '姓名'
+ prop: 'end_date',
+ label: '结束日期',
+ width: 120
},
{
- prop: '',
- label: '报销金额'
+ prop: 'flow_title',
+ label: '编号',
+ width: 140,
+ formatter: (row) => row.away_flow_links?.find(i => i.tag === "chuchaibaoxiao")?.flow_title
},
{
- prop: '',
- label: '日期区间'
- },
- {
- prop: '',
- label: '状态'
- },
- ]
+ prop: 'totalAmt',
+ label: '金额',
+ formatter: (row) => row.away_flow_links?.find(i => i.tag === "chuchaibaoxiao")?.flow_data?.totalAmt
+ }
+ ],
+ records: []
}
},
methods: {
@@ -55,6 +61,10 @@ export default {
hidden() {
this.isShow = false;
},
+ setRecords(records = []) {
+ this.records = records
+ console.log(this.records)
+ }
},
computed: {},
}
diff --git a/src/views/away/index.vue b/src/views/away/index.vue
index ebc6225..ac6e10a 100644
--- a/src/views/away/index.vue
+++ b/src/views/away/index.vue
@@ -20,16 +20,23 @@
+
+ 部门
+
+
+
开始时间
(select.start_year = $moment(e).format('YYYY-MM-DD'))"
+ @on-change="(e) => (select.search_start_date = $moment(e).format('YYYY-MM-DD'))"
>
@@ -38,12 +45,12 @@
结束时间
(select.end_year = $moment(e).format('YYYY-MM-DD'))"
+ @on-change="(e) => (select.search_end_date = $moment(e).format('YYYY-MM-DD'))"
>
@@ -92,7 +99,7 @@
-
+
@@ -269,6 +276,7 @@ import addAway from "@/views/away/component/addAway.vue"
import { index, destroy, save } from "@/api/away";
import {getToken} from "@/utils/auth";
import {flowStatusConfig} from "@/api/common";
+import {listdeptNoAuth} from "@/api/system/department";
export default {
components: {
@@ -287,14 +295,16 @@ export default {
top: 0,
left: 0,
},
+ departments: [],
select: {
keyword: '',
- start_year: "",
- end_year: "",
+ search_start_date: "",
+ search_end_date: "",
auth_type: 1,
page: 1,
page_size: 10,
- flow_link: []
+ flow_link: [],
+ department_id: '',
},
total: 0,
list: [],
@@ -317,7 +327,7 @@ export default {
type: 'selection',
width: 54,
reserveSelection: true,
- selectable: row => row.FLOWSTATUS.expense.isEnabled(),
+ selectable: row => row.FLOWSTATUS.expense.getStatus() === 1 && row.FLOWSTATUS.financial.getStatus() !== 2,
fixed: "left"
},
{
@@ -355,51 +365,6 @@ export default {
{
label: "流程状态",
multiHd: [
- // {
- // width: 100,
- // label: "用车",
- // customFn:row => {
- // if (!row.use_car) {
- // return (
- //
-
- // )
- // }
- // return (
- //
- // )
- // }
- // },
- // {
- // width: 100,
- // label: "市内补助",
- // customFn:row => {
- // if (!row.is_subsidize) {
- // return (
- //
-
- // )
- // }
- // return (
- //
- // )
- // }
- //
- // },
{
width: 100,
label: "出差审批",
@@ -472,6 +437,13 @@ export default {
}
},
methods: {
+ showMulti() {
+ this.$refs['MultiExamine'].setRecords(this.$refs['xyTable'].getSelection())
+ this.$refs['MultiExamine'].show()
+ },
+ async getDepartment() {
+ this.departments = (await listdeptNoAuth())?.data;
+ },
async getFlowConfig() {
try {
const res = await flowStatusConfig()
@@ -710,6 +682,7 @@ export default {
}
},
created() {
+ this.getDepartment();
this.getFlowConfig();
this.window.width = screen.availWidth * 0.95;
this.window.height = screen.availHeight * 0.95;