工作组

This commit is contained in:
zhaoxiao
2021-09-30 10:30:46 +08:00
parent 52583620d1
commit 4c0b98922e
7 changed files with 107 additions and 55 deletions
+6
View File
@@ -101,4 +101,10 @@
color: #08B6AF; color: #08B6AF;
background: rgba(8,182,175,0.10); background: rgba(8,182,175,0.10);
border: 1px solid #08b6af; border: 1px solid #08b6af;
}
//页面边距
.main-box {
min-width: 1100px;
margin: 12px 12px 0 12px;
} }
+1 -1
View File
@@ -22,7 +22,7 @@
<div class="table-item-content"> <div class="table-item-content">
<a-row> <a-row>
<a-col :span="tt.col" v-for="(tt, i) in columnData" :key="i"> <a-col :span="tt.col" v-for="(tt, i) in columnData" :key="i">
<slot :name="tt.scopedSlots" :record="item">{{ item[tt.dataIndex] }}</slot> <slot :name="tt.scopedSlots" :record="item" :text="item[tt.dataIndex]">{{ item[tt.dataIndex] }}</slot>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
+1
View File
@@ -342,6 +342,7 @@ export const JeroListMixin = {
/* 文件下载 */ /* 文件下载 */
// update--autor:lvdandan-----date:20200630------for:修改下载文件方法名uploadFile改为downloadFile------ // update--autor:lvdandan-----date:20200630------for:修改下载文件方法名uploadFile改为downloadFile------
downloadFile(text){ downloadFile(text){
console.log(text)
if(!text){ if(!text){
this.$message.warning('未知的文件') this.$message.warning('未知的文件')
return return
+13 -4
View File
@@ -1,5 +1,5 @@
<template> <template>
<div style="min-width: 1100px"> <div class="main-box">
<a-card :bordered="false"> <a-card :bordered="false">
<!--查询区域begin--> <!--查询区域begin-->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
@@ -23,7 +23,7 @@
<!-- 操作按钮区域--> <!-- 操作按钮区域-->
<div class="table-operator"> <div class="table-operator">
<a-button type="primary" @click="batchDistribute">批量下载</a-button> <a-button type="primary" @click="batchDownloadFile">批量下载</a-button>
</div> </div>
<!-- 操作按钮区域-end--> <!-- 操作按钮区域-end-->
@@ -53,7 +53,7 @@
</template> </template>
<span slot="action" class="action-span-cell" slot-scope="text, record" > <span slot="action" class="action-span-cell" slot-scope="text, record" >
<a @click="handleDistribute(record.id)">批量下载</a> <a @click="downloadFile(record)">下载</a>
</span> </span>
</a-table> </a-table>
</div> </div>
@@ -62,6 +62,7 @@
</template> </template>
<script> <script>
import { JeroListMixin } from '@/mixins/JeroListMixin' import { JeroListMixin } from '@/mixins/JeroListMixin'
import { downloadFile } from '@api/manage'
export default { export default {
name: 'DataDownload', name: 'DataDownload',
@@ -115,7 +116,15 @@ export default {
} }
} }
}, },
methods: {} methods: {
downloadFile(record) {
console.log(record.fileId, record.fileName)
downloadFile(`sys/common/download/${record.fileId}`, record.fileName)
},
batchDownloadFile() {
}
}
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
+45 -24
View File
@@ -1,5 +1,5 @@
<template> <template>
<div style="min-width: 1100px"> <div class="main-box">
<a-card :bordered="false"> <a-card :bordered="false">
<!--查询区域begin--> <!--查询区域begin-->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
@@ -7,19 +7,19 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="项目名称"> <a-form-item label="项目名称">
<a-input placeholder="请输入项目名称" v-model="queryParam.meetingName"></a-input> <a-input placeholder="请输入项目名称" v-model="queryParam.chargeProject"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票"> <a-form-item label="需要发票">
<j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票" <j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票"
v-model="queryParam.meetingType"></j-dict-select-tag> v-model="queryParam.needInvoice"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="打包项目"> <a-form-item label="打包项目">
<j-dict-select-tag dict-code="un" placeholder="请选择是否打包" <j-dict-select-tag dict-code="yn" placeholder="请选择是否打包"
v-model="queryParam.meetingType"></j-dict-select-tag> v-model="queryParam.pack"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -36,18 +36,34 @@
<!-- 表格区域--> <!-- 表格区域-->
<div> <div>
<project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange"> <a-spin :spinning="loading">
<!-- 打包、需要发票、到账、开票、邮寄--> <project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange">
<template v-slot:text="{record}"> <!-- 打包、需要发票、到账、开票、邮寄-->
<div @click="d(record)">{{ record.pack }}</div> <template v-slot:status="{record, text}">
</template> <div @click="d(record)">{{ text }}</div>
<!-- 项目名称--> </template>
<template v-slot:projectName="{record}"> <!-- 项目名称-->
<div @click="openDetailModal(record)" class="project-name"> <template v-slot:projectName="{record}">
{{ record.projectName }} <a-tooltip>
</div> <template slot="title">
</template> {{ record.chargeProject }}
</project-table> </template>
<div @click="openDetailModal(record)" class="project-name">
{{ record.chargeProject }}
</div>
</a-tooltip>
</template>
<!-- 需要tooltip的文本-->
<template v-slot:text="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}
</template>
{{ text }}
</a-tooltip>
</template>
</project-table>
</a-spin>
</div> </div>
<!-- 表格区域end--> <!-- 表格区域end-->
</a-card> </a-card>
@@ -69,55 +85,59 @@ export default {
columns: [ columns: [
{ {
title: '', title: '',
dataIndex: 'projectName', dataIndex: 'chargeProject',
scopedSlots: 'projectName', scopedSlots: 'projectName',
col: 3 col: 3
}, { }, {
title: '项目用途', title: '项目用途',
dataIndex: 'chargeUse_dictText', dataIndex: 'chargeUse_dictText',
scopedSlots: 'text',
col: 3 col: 3
}, { }, {
title: '应付金额', title: '应付金额',
dataIndex: 'receivableAmount', dataIndex: 'receivableAmount',
scopedSlots: 'text',
col: 3 col: 3
}, { }, {
title: '实付金额', title: '实付金额',
dataIndex: 'paidAmount', dataIndex: 'paidAmount',
scopedSlots: 'text',
col: 3 col: 3
}, { }, {
title: '负责人', title: '负责人',
dataIndex: 'principalName', dataIndex: 'principalName',
scopedSlots: 'text',
col: 2 col: 2
}, { }, {
title: '打包', title: '打包',
dataIndex: 'pack', dataIndex: 'pack',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
}, { }, {
title: '需要发票', title: '需要发票',
col: 2, col: 2,
dataIndex: 'needInvoice', dataIndex: 'needInvoice',
scopedSlots: 'text', scopedSlots: 'status',
slot: 'status' slot: 'status'
}, { }, {
title: '到账', title: '到账',
dataIndex: 'inAccount', dataIndex: 'inAccount',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
}, { }, {
title: '开票', title: '开票',
dataIndex: 'makeInvoice', dataIndex: 'makeInvoice',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
}, { }, {
title: '邮寄', title: '邮寄',
dataIndex: 'mail', dataIndex: 'mail',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
} }
], ],
url: { url: {
list: '' list: '/project/payCommonProject/queryCompanyPageList'
} }
} }
}, },
@@ -136,6 +156,7 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@import '~@assets/less/common.less'; @import '~@assets/less/common.less';
.project-name { .project-name {
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
@@ -1,5 +1,5 @@
<template> <template>
<div style="min-width: 1100px"> <div class="main-box">
<a-card :bordered="false"> <a-card :bordered="false">
<!--查询区域begin--> <!--查询区域begin-->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
@@ -38,7 +38,7 @@
</template> </template>
<!-- 跳转分标委会议--> <!-- 跳转分标委会议-->
<span slot="action" class="action-span-cell" slot-scope="text, record"> <span slot="action" class="action-span-cell" slot-scope="record">
<a-button type="primary">分标委会议<a-icon type="right"/></a-button> <a-button type="primary">分标委会议<a-icon type="right"/></a-button>
</span> </span>
</a-table> </a-table>
@@ -104,4 +104,5 @@ export default {
word-break: keep-all; word-break: keep-all;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
</style> </style>
+38 -24
View File
@@ -1,5 +1,5 @@
<template> <template>
<div style="min-width: 1100px"> <div class="main-box">
<a-card :bordered="false"> <a-card :bordered="false">
<!--查询区域begin--> <!--查询区域begin-->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
@@ -7,19 +7,19 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="项目名称"> <a-form-item label="项目名称">
<a-input placeholder="请输入项目名称" v-model="queryParam.meetingName"></a-input> <a-input placeholder="请输入项目名称" v-model="queryParam.chargeProject"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票"> <a-form-item label="需要发票">
<j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票" <j-dict-select-tag dict-code="invoice_type" placeholder="请选择需要发票"
v-model="queryParam.meetingType"></j-dict-select-tag> v-model="queryParam.needInvoice"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24"> <a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="打包项目"> <a-form-item label="打包项目">
<j-dict-select-tag dict-code="un" placeholder="请选择是否打包" <j-dict-select-tag dict-code="yn" placeholder="请选择是否打包"
v-model="queryParam.meetingType"></j-dict-select-tag> v-model="queryParam.pack"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -36,18 +36,29 @@
<!-- 表格区域--> <!-- 表格区域-->
<div> <div>
<project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange"> <a-spin :spinning="loading">
<!-- 打包、需要发票、到账、开票、邮寄--> <project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange">
<template v-slot:text="{record}"> <!-- 打包、需要发票、到账、开票、邮寄-->
<div @click="d(record)">{{ record.pack }}</div> <template v-slot:status="{record, text}">
</template> <div @click="d(record)">{{ text }}</div>
<!-- 项目名称--> </template>
<template v-slot:projectName="{record}"> <!-- 项目名称-->
<div @click="openDetailModal(record)" class="project-name"> <template v-slot:projectName="{record}">
{{ record.projectName }} <div @click="openDetailModal(record)" class="project-name">
</div> {{ record.chargeProject }}
</template> </div>
</project-table> </template>
<!-- 需要tooltip的文本-->
<template v-slot:text="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}
</template>
{{ text }}
</a-tooltip>
</template>
</project-table>
</a-spin>
</div> </div>
<!-- 表格区域end--> <!-- 表格区域end-->
@@ -70,20 +81,23 @@ export default {
columns: [ columns: [
{ {
title: '', title: '',
dataIndex: 'projectName', dataIndex: 'chargeProject',
scopedSlots: 'projectName', scopedSlots: 'projectName',
col: 4 col: 4
}, { }, {
title: '应付金额', title: '应付金额',
dataIndex: 'receivableAmount', dataIndex: 'receivableAmount',
scopedSlots: 'text',
col: 4 col: 4
}, { }, {
title: '实付金额', title: '实付金额',
dataIndex: 'paidAmount', dataIndex: 'paidAmount',
scopedSlots: 'text',
col: 3 col: 3
}, { }, {
title: '负责人', title: '负责人',
dataIndex: 'principalName', dataIndex: '',
scopedSlots: 'text',
col: 3 col: 3
}, { }, {
title: '打包', title: '打包',
@@ -94,27 +108,27 @@ export default {
title: '需要发票', title: '需要发票',
col: 2, col: 2,
dataIndex: 'needInvoice', dataIndex: 'needInvoice',
scopedSlots: 'text', scopedSlots: 'status',
slot: 'status' slot: 'status'
}, { }, {
title: '到账', title: '到账',
dataIndex: 'inAccount', dataIndex: 'inAccount',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
}, { }, {
title: '开票', title: '开票',
dataIndex: 'makeInvoice', dataIndex: 'makeInvoice',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
}, { }, {
title: '邮寄', title: '邮寄',
dataIndex: 'mail', dataIndex: 'mail',
scopedSlots: 'text', scopedSlots: 'status',
col: 2 col: 2
} }
], ],
url: { url: {
list: '' list: '/project/payWorkingGroupSubitem/queryCompanyPageList'
} }
} }
}, },