工作组

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;
background: rgba(8,182,175,0.10);
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">
<a-row>
<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-row>
</div>
+1
View File
@@ -342,6 +342,7 @@ export const JeroListMixin = {
/* 文件下载 */
// update--autor:lvdandan-----date:20200630------for:修改下载文件方法名uploadFile改为downloadFile------
downloadFile(text){
console.log(text)
if(!text){
this.$message.warning('未知的文件')
return
+13 -4
View File
@@ -1,5 +1,5 @@
<template>
<div style="min-width: 1100px">
<div class="main-box">
<a-card :bordered="false">
<!--查询区域begin-->
<div class="table-page-search-wrapper">
@@ -23,7 +23,7 @@
<!-- 操作按钮区域-->
<div class="table-operator">
<a-button type="primary" @click="batchDistribute">批量下载</a-button>
<a-button type="primary" @click="batchDownloadFile">批量下载</a-button>
</div>
<!-- 操作按钮区域-end-->
@@ -53,7 +53,7 @@
</template>
<span slot="action" class="action-span-cell" slot-scope="text, record" >
<a @click="handleDistribute(record.id)">批量下载</a>
<a @click="downloadFile(record)">下载</a>
</span>
</a-table>
</div>
@@ -62,6 +62,7 @@
</template>
<script>
import { JeroListMixin } from '@/mixins/JeroListMixin'
import { downloadFile } from '@api/manage'
export default {
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>
<style scoped lang="less">
+45 -24
View File
@@ -1,5 +1,5 @@
<template>
<div style="min-width: 1100px">
<div class="main-box">
<a-card :bordered="false">
<!--查询区域begin-->
<div class="table-page-search-wrapper">
@@ -7,19 +7,19 @@
<a-row :gutter="24">
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<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-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票">
<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-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="打包项目">
<j-dict-select-tag dict-code="un" placeholder="请选择是否打包"
v-model="queryParam.meetingType"></j-dict-select-tag>
<j-dict-select-tag dict-code="yn" placeholder="请选择是否打包"
v-model="queryParam.pack"></j-dict-select-tag>
</a-form-item>
</a-col>
@@ -36,18 +36,34 @@
<!-- 表格区域-->
<div>
<project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange">
<!-- 打包需要发票到账开票邮寄-->
<template v-slot:text="{record}">
<div @click="d(record)">{{ record.pack }}</div>
</template>
<!-- 项目名称-->
<template v-slot:projectName="{record}">
<div @click="openDetailModal(record)" class="project-name">
{{ record.projectName }}
</div>
</template>
</project-table>
<a-spin :spinning="loading">
<project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange">
<!-- 打包需要发票到账开票邮寄-->
<template v-slot:status="{record, text}">
<div @click="d(record)">{{ text }}</div>
</template>
<!-- 项目名称-->
<template v-slot:projectName="{record}">
<a-tooltip>
<template slot="title">
{{ record.chargeProject }}
</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>
<!-- 表格区域end-->
</a-card>
@@ -69,55 +85,59 @@ export default {
columns: [
{
title: '',
dataIndex: 'projectName',
dataIndex: 'chargeProject',
scopedSlots: 'projectName',
col: 3
}, {
title: '项目用途',
dataIndex: 'chargeUse_dictText',
scopedSlots: 'text',
col: 3
}, {
title: '应付金额',
dataIndex: 'receivableAmount',
scopedSlots: 'text',
col: 3
}, {
title: '实付金额',
dataIndex: 'paidAmount',
scopedSlots: 'text',
col: 3
}, {
title: '负责人',
dataIndex: 'principalName',
scopedSlots: 'text',
col: 2
}, {
title: '打包',
dataIndex: 'pack',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}, {
title: '需要发票',
col: 2,
dataIndex: 'needInvoice',
scopedSlots: 'text',
scopedSlots: 'status',
slot: 'status'
}, {
title: '到账',
dataIndex: 'inAccount',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}, {
title: '开票',
dataIndex: 'makeInvoice',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}, {
title: '邮寄',
dataIndex: 'mail',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}
],
url: {
list: ''
list: '/project/payCommonProject/queryCompanyPageList'
}
}
},
@@ -136,6 +156,7 @@ export default {
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
.project-name {
cursor: pointer;
font-size: 16px;
@@ -1,5 +1,5 @@
<template>
<div style="min-width: 1100px">
<div class="main-box">
<a-card :bordered="false">
<!--查询区域begin-->
<div class="table-page-search-wrapper">
@@ -38,7 +38,7 @@
</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>
</span>
</a-table>
@@ -104,4 +104,5 @@ export default {
word-break: keep-all;
text-overflow: ellipsis;
}
</style>
+38 -24
View File
@@ -1,5 +1,5 @@
<template>
<div style="min-width: 1100px">
<div class="main-box">
<a-card :bordered="false">
<!--查询区域begin-->
<div class="table-page-search-wrapper">
@@ -7,19 +7,19 @@
<a-row :gutter="24">
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<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-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="需要发票">
<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-col>
<a-col :xl="6" :lg="8" :md="8" :sm="24">
<a-form-item label="打包项目">
<j-dict-select-tag dict-code="un" placeholder="请选择是否打包"
v-model="queryParam.meetingType"></j-dict-select-tag>
<j-dict-select-tag dict-code="yn" placeholder="请选择是否打包"
v-model="queryParam.pack"></j-dict-select-tag>
</a-form-item>
</a-col>
@@ -36,18 +36,29 @@
<!-- 表格区域-->
<div>
<project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange">
<!-- 打包需要发票到账开票邮寄-->
<template v-slot:text="{record}">
<div @click="d(record)">{{ record.pack }}</div>
</template>
<!-- 项目名称-->
<template v-slot:projectName="{record}">
<div @click="openDetailModal(record)" class="project-name">
{{ record.projectName }}
</div>
</template>
</project-table>
<a-spin :spinning="loading">
<project-table :column-data="columns" :table-data="dataSource" @change="handlePageChange">
<!-- 打包需要发票到账开票邮寄-->
<template v-slot:status="{record, text}">
<div @click="d(record)">{{ text }}</div>
</template>
<!-- 项目名称-->
<template v-slot:projectName="{record}">
<div @click="openDetailModal(record)" class="project-name">
{{ record.chargeProject }}
</div>
</template>
<!-- 需要tooltip的文本-->
<template v-slot:text="{record,text}">
<a-tooltip>
<template slot="title">
{{ text }}
</template>
{{ text }}
</a-tooltip>
</template>
</project-table>
</a-spin>
</div>
<!-- 表格区域end-->
@@ -70,20 +81,23 @@ export default {
columns: [
{
title: '',
dataIndex: 'projectName',
dataIndex: 'chargeProject',
scopedSlots: 'projectName',
col: 4
}, {
title: '应付金额',
dataIndex: 'receivableAmount',
scopedSlots: 'text',
col: 4
}, {
title: '实付金额',
dataIndex: 'paidAmount',
scopedSlots: 'text',
col: 3
}, {
title: '负责人',
dataIndex: 'principalName',
dataIndex: '',
scopedSlots: 'text',
col: 3
}, {
title: '打包',
@@ -94,27 +108,27 @@ export default {
title: '需要发票',
col: 2,
dataIndex: 'needInvoice',
scopedSlots: 'text',
scopedSlots: 'status',
slot: 'status'
}, {
title: '到账',
dataIndex: 'inAccount',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}, {
title: '开票',
dataIndex: 'makeInvoice',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}, {
title: '邮寄',
dataIndex: 'mail',
scopedSlots: 'text',
scopedSlots: 'status',
col: 2
}
],
url: {
list: ''
list: '/project/payWorkingGroupSubitem/queryCompanyPageList'
}
}
},