Files
income_payments_client/src/views/projectManagement/MemberUnitMaintenance.vue
T

297 lines
8.3 KiB
Vue

<template>
<a-card :bordered="false">
<!-- 标题区域-->
<div class="title">
<a-icon type="left" :style="{ fontSize: '22px' }" @click="backWorkingGroupProject"></a-icon>
<span class="title-text">{{ workingGroupProject }}</span>
</div>
<div class="divider"></div>
<!-- /标题区域-->
<!-- 工作组信息区域-->
<div class="work-group-detail">
<div class="work-group-detail-item work-group-detail-item-small" v-for="item in detailTitleList"
:key="item.title">
<div class="work-group-detail-item-title">{{ item.title }}:</div>
<div class="work-group-detail-item-content"></div>
</div>
<div class="work-group-detail-item">
<div class="work-group-detail-item-title">任务及目标:</div>
<div class="work-group-detail-item-content"></div>
</div>
<div class="work-group-detail-item">
<div class="work-group-detail-item-title">备注:</div>
<div class="work-group-detail-item-content"></div>
</div>
</div>
<!-- /工作组信息区域-->
<!-- 查询区域-->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="成员单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入成员单位" v-model="queryParam.workingGroupProject"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="来款年份" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-year-date style="width:100%" placeholder="请选择年份" v-model="queryParam.year"></j-year-date>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span class="table-page-search-submitButtons">
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
<a-button icon="reload" @click="searchReset">重置</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- /查询区域-->
<!-- 操作按钮区域-->
<div class="table-operator">
<a-button type="primary" icon="plus" @click="handleAdd">添加成员</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
@change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<a-button type="primary" icon="export" @click="handleExportXls('企业管理')">导出</a-button>
<a-button type="primary" icon="download" @click="downTemplate('企业管理导入模板')">下载模板</a-button>
<a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>
<a-button type="primary" @click="">设置收费通知</a-button>
</div>
<!-- /操作按钮区域-end-->
<!-- table表格区域-->
<div>
<a-table
ref="table"
size="middle"
bordered
rowKey="id"
:columns="columns"
:scroll="{x: 1500}"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"
class="j-table-force-nowrap">
<!-- 工作组名称-->
<!-- <template slot="projectName" slot-scope="text, record">-->
<!-- <div class="project-name" @click="goMemberUnitMaintenance(record)">{{ text }}</div>-->
<!-- </template>-->
<template slot="text" slot-scope="text,record">
<j-ellipsis :value="text" :length="20"></j-ellipsis>
</template>
<span slot="action" class="action-span-cell" slot-scope="text, record">
<a @click="goConferenceMaintenance(record)">会议维护</a>
<a @click="handleEdit(record)">编辑</a>
<a @click="handleDelete(record.id)">删除</a>
</span>
</a-table>
</div>
</a-card>
</template>
<script>
import { JeroListMixin } from '@/mixins/JeroListMixin'
import JYearDate from '@comp/jero/JYearDate'
export default {
name: 'MemberUnitMaintenance',
components: { JYearDate },
mixins: [JeroListMixin],
computed: {
importExcelUrl: function () {
return `${ window._CONFIG['domianURL'] }/${ this.url.importExcelUrl }`
},
},
data() {
return {
workingGroupProject: '',
workingGroupProjectId: '',
detailTitleList: [
{
title: '工作组项目名称',
fieldName: ''
}, {
title: '负责人A',
fieldName: ''
}, {
title: '负责人B',
fieldName: ''
}, {
title: '每年召开次数',
fieldName: ''
}, {
title: '运行周期',
fieldName: ''
}, {
title: '本年应收款A',
fieldName: ''
}, {
title: '收费通知号A',
fieldName: ''
}, {
title: '收费通知A',
fieldName: ''
}, {
title: '本年应收款B',
fieldName: ''
}, {
title: '收费通知号B',
fieldName: ''
}, {
title: '收费通知B',
fieldName: ''
}
],
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 10 }
},
url: {
list: '',
delete: '',
deleteBatch: '',
exportXlsUrl: '',
importExcelUrl: '',
downTemplateUrl: ''
},
columns: [
{
title: '序号',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
}, {
title: '成员单位',
align: 'center',
dataIndex: 'workingGroupProject',
scopedSlots: { customRender: 'projectName' }
}, {
title: '企业联系人',
align: 'center',
width: 180,
dataIndex: 'principalNameA'
}, {
title: '应收金额',
align: 'center',
dataIndex: '',
width: 180,
}, {
title: '实收金额',
align: 'center',
dataIndex: '',
width: 180,
}, {
title: '打包',
align: 'center',
width: 100,
dataIndex: 'packaging'
}, {
title: '需要发票',
align: 'center',
width: 100,
dataIndex: 'invoice',
scopedSlots: { customRender: 'icon' }
}, {
title: '到账',
align: 'center',
width: 100,
dataIndex: 'inAccount'
}, {
title: '开票',
align: 'center',
width: 100,
dataIndex: 'makeInvoice'
}, {
title: '邮寄',
align: 'center',
width: 100,
dataIndex: 'mail'
}, {
title: '操作',
dataIndex: 'action',
align: 'center',
fixed: 'right',
width: 180,
scopedSlots: { customRender: 'action' }
}
],
}
},
created() {
this.workingGroupProject = this.$route.query.workingGroupProject
this.workingGroupProjectId = this.$route.query.workingGroupProjectId
},
methods: {
backWorkingGroupProject() {
this.$router.push({
path: '/projectManagement/WorkingGroupProjectManagement'
})
}
}
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
.title {
&-text {
padding-left: 1rem;
font-size: 18px;
line-height: 22px;
}
}
.divider {
height: 1px;
background-color: #cccccc;
margin: 15px -24px;
}
.work-group-detail {
display: flex;
flex-wrap: wrap;
padding-bottom: 20px;
&-item-small {
width: 33.3% !important;
}
&-item {
display: flex;
padding: 5px 5px;
width: 100%;
&-title {
flex-shrink: 0;
color: #9e9e9e;
}
&-content {
padding-left: 5px;
word-break: break-all;
}
}
}
</style>