lion 3 months ago
parent 2a233c2839
commit a182ec8056

@ -36,7 +36,9 @@
<!-- 已执行项目表格 --> <!-- 已执行项目表格 -->
<el-card class="table-container mb-4"> <el-card class="table-container mb-4">
<div class="section-title">已执行项目财务付款确认 <div class="section-title" style="display:flex;align-items:center;justify-content:space-between;">
<span>已执行项目财务付款确认</span>
<el-button type="primary" size="mini" @click="exportEnd"></el-button>
</div> </div>
<xy-table ref="xyTable" :list="endList" :table-item="table" :height="300"> <xy-table ref="xyTable" :list="endList" :table-item="table" :height="300">
<template v-slot:status> <template v-slot:status>
@ -66,7 +68,9 @@
<!-- 未执行完项目表格 --> <!-- 未执行完项目表格 -->
<el-card class="table-container"> <el-card class="table-container">
<div class="section-title">未执行完项目流程中/预算流转中 <div class="section-title" style="display:flex;align-items:center;justify-content:space-between;">
<span>未执行完项目流程中/预算流转中</span>
<el-button type="primary" size="mini" @click="exportPart"></el-button>
</div> </div>
<xy-table ref="xyTable" :list="partList" :table-item="table" :height="300"> <xy-table ref="xyTable" :list="partList" :table-item="table" :height="300">
<template v-slot:status> <template v-slot:status>
@ -112,6 +116,7 @@ import {
} from '@/api/departmentProgress' } from '@/api/departmentProgress'
// import detail from '../components/detail.vue' // import detail from '../components/detail.vue'
import ContractDetailDrawer from '@/components/contractIntegration/index.vue' import ContractDetailDrawer from '@/components/contractIntegration/index.vue'
import { getToken } from '@/utils/auth'
export default { export default {
name: 'DepartmentProgressDetail', name: 'DepartmentProgressDetail',
components: { components: {
@ -170,6 +175,7 @@ export default {
}, { }, {
prop: 'status', prop: 'status',
label: '当前状态', label: '当前状态',
export:'funds_count_text',
width: 120 width: 120
}] }]
} }
@ -199,13 +205,16 @@ export default {
this.getEndIndex(this.row.plan_department_id) this.getEndIndex(this.row.plan_department_id)
}, },
async getEndIndex(id) { async getEndIndex(id) {
const res = await endIndex({ const res = await endIndex({
department_id: id, department_id: id,
page: this.endSelect.page, page: this.endSelect.page,
page_size: this.endSelect.page_size page_size: this.endSelect.page_size
}) })
this.endList = res.list.data this.endList = res.list.data
this.endTotal = res.list.total this.endTotal = res.list.total
}, },
async getPartIndex(id) { async getPartIndex(id) {
const res = await partIndex({ const res = await partIndex({
@ -240,6 +249,18 @@ export default {
} else { } else {
return (num / 10000).toFixed(2) + '万元' // 1 return (num / 10000).toFixed(2) + '万元' // 1
} }
},
exportEnd() {
const name = this.row?(this.row.plan_department?this.row.plan_department.name:''):''
const file_name = name+'已执行项目(财务付款确认)'
const export_fields = 'export_fields[name]=项目名称&export_fields[department.name]=科室&export_fields[admin.name]=经办人&export_fields[money]=预算金额&export_fields[funds_count]=发起支付笔数&export_fields[contract_plan_act_sum]=已确认付款金额&export_fields[funds_count_text]=当前状态'
window.open(`${process.env.VUE_APP_BASE_API}/api/ht/contract/end-index?token=${getToken()}&is_export=1&page=1&page_size=999&department_id=${this.row.plan_department_id}&${export_fields}&file_name=${file_name}`, '_blank')
},
exportPart() {
const name = this.row?(this.row.plan_department?this.row.plan_department.name:''):''
const file_name = name+'未执行完项目'
const export_fields = 'export_fields[name]=项目名称&export_fields[department.name]=科室&export_fields[admin.name]=经办人&export_fields[money]=预算金额&export_fields[funds_count]=发起支付笔数&export_fields[contract_plan_act_sum]=已确认付款金额&export_fields[funds_count_text]=当前状态'
window.open(`${process.env.VUE_APP_BASE_API}/api/ht/contract/part-index?token=${getToken()}&is_export=1&page=1&page_size=999&department_id=${this.row.plan_department_id}&${export_fields}&file_name=${file_name}`, '_blank')
} }
} }
} }
@ -346,4 +367,4 @@ export default {
.detail-table { .detail-table {
font-size: 14px; font-size: 14px;
} }
</style> </style>
Loading…
Cancel
Save