收入合同关联会员项目

This commit is contained in:
fengachen
2021-09-18 14:13:00 +08:00
parent d5fb74423e
commit d160300db1
3 changed files with 66 additions and 25 deletions
@@ -9,11 +9,10 @@
cancelText="关闭"> cancelText="关闭">
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-tabs default-active-key="1" @change="callback"> <a-tabs v-model="activeKey" @change="callback">
<a-tab-pane key="1" tab="会员项目"> <a-tab-pane key="1" tab="会员项目">
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row> <a-row>
<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->
<!-- <a-form-item label="会员项目" :labelCol="labelCol" :wrapperCol="wrapperCol">--> <!-- <a-form-item label="会员项目" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
<!-- <a-input placeholder="请输入会员项目" v-model="queryParam.workingGroupProject"></a-input>--> <!-- <a-input placeholder="请输入会员项目" v-model="queryParam.workingGroupProject"></a-input>-->
@@ -56,7 +55,8 @@
class="j-table-force-nowrap"> class="j-table-force-nowrap">
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="18"></j-ellipsis> <j-ellipsis v-if="!!text" :value="text" :length="18"></j-ellipsis>
<span v-else></span>
</template> </template>
<!-- 打包、需要发票、到账、开票、邮寄状态--> <!-- 打包、需要发票、到账、开票、邮寄状态-->
@@ -89,7 +89,8 @@
class="j-table-force-nowrap"> class="j-table-force-nowrap">
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="18"></j-ellipsis> <j-ellipsis v-if="!!text" :value="text" :length="18"></j-ellipsis>
<span v-else></span>
</template> </template>
<!-- 打包、需要发票、到账、开票、邮寄状态--> <!-- 打包、需要发票、到账、开票、邮寄状态-->
@@ -153,17 +154,22 @@ export default {
title: '会员项目', title: '会员项目',
align: 'center', align: 'center',
dataIndex: 'projectName', dataIndex: 'projectName',
scopedSlots: {customRender: 'htmlSlot'} width: 200,
scopedSlots: {customRender: 'text'},
}, },
{ {
title: '负责人', title: '负责人',
align: 'center', align: 'center',
dataIndex: 'directorName' dataIndex: 'directorName',
scopedSlots: {customRender: 'text'},
width: 200,
}, },
{ {
title: '创建时间', title: '创建时间',
align: 'center', align: 'center',
dataIndex: 'createTime' dataIndex: 'createTime',
scopedSlots: {customRender: 'text'},
width: 200,
}, },
], ],
//标协会员表头 //标协会员表头
@@ -181,23 +187,22 @@ export default {
{ {
title: '项目名称', title: '项目名称',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'projectName',
width: 100, width: 200,
// scopedSlots: {customRender: 'text'}, scopedSlots: {customRender: 'text'},
}, },
{ {
title: '会员编号', title: '会员编号',
align: 'center', align: 'center',
dataIndex: 'memberNo', dataIndex: 'memberNo',
width: 160, width: 200,
scopedSlots: {customRender: 'text'}, scopedSlots: {customRender: 'text'},
}, },
{ {
title: '单位名称', title: '单位名称',
align: 'center', align: 'center',
dataIndex: 'companyName', dataIndex: 'companyName',
width: 160, width: 200,
scopedSlots: {customRender: 'text'}, scopedSlots: {customRender: 'text'},
}, },
{ {
@@ -205,18 +210,21 @@ export default {
align: 'center', align: 'center',
dataIndex: 'memberType_dictText', dataIndex: 'memberType_dictText',
width: 80, width: 80,
scopedSlots: {customRender: 'text'}
}, },
{ {
title: '会员性质', title: '会员性质',
align: 'center', align: 'center',
dataIndex: '', dataIndex: '',
width: 80, width: 80,
// scopedSlots: {customRender: 'text'}
}, },
{ {
title: '联系人', title: '联系人',
align: 'center', align: 'center',
dataIndex: 'liaisonMan', dataIndex: 'liaisonMan',
width: 80, width: 80,
scopedSlots: {customRender: 'text'}
}, },
{ {
title: '邮箱', title: '邮箱',
@@ -230,47 +238,49 @@ export default {
align: 'center', align: 'center',
dataIndex: 'phone', dataIndex: 'phone',
width: 80, width: 80,
scopedSlots: {customRender: 'text'}
}, },
{ {
title: '会员状态', title: '会员状态',
align: 'center', align: 'center',
dataIndex: 'memberStatus_dictText', dataIndex: 'memberStatus_dictText',
width: 80, width: 80,
scopedSlots: {customRender: 'text'}
}, },
{ {
title: '打包', title: '打包',
align: 'center', align: 'center',
dataIndex: 'pack', dataIndex: 'pack',
scopedSlots: {customRender: 'status-pack'}, scopedSlots: {customRender: 'status-pack'},
width: 60, width: 80,
}, },
{ {
title: '需要发票', title: '需要发票',
align: 'center', align: 'center',
dataIndex: 'invoiceRequirements', dataIndex: 'invoiceRequirements',
scopedSlots: {customRender: 'status-pack'}, scopedSlots: {customRender: 'status-pack'},
width: 60, width: 80,
}, },
{ {
title: '到账', title: '到账',
align: 'center', align: 'center',
dataIndex: 'inAccount', dataIndex: 'inAccount',
scopedSlots: {customRender: 'status'}, scopedSlots: {customRender: 'status'},
width: 60, width: 80,
}, },
{ {
title: '开票', title: '开票',
align: 'center', align: 'center',
dataIndex: 'makeInvoice', dataIndex: 'makeInvoice',
scopedSlots: {customRender: 'status'}, scopedSlots: {customRender: 'status'},
width: 60, width: 80,
}, },
{ {
title: '邮寄', title: '邮寄',
align: 'center', align: 'center',
dataIndex: 'mail', dataIndex: 'mail',
scopedSlots: {customRender: 'status'}, scopedSlots: {customRender: 'status'},
width: 60, width: 80,
} }
], ],
labelCol: { labelCol: {
@@ -282,15 +292,19 @@ export default {
sm: {span: 10} sm: {span: 10}
}, },
url: { url: {
list: '/jero/memberProject/page', list: '/jero/memberProject/queryListByCompany',
}, },
// 默认激活的tab页
activeKey:'1',
disableMixinCreated: true, disableMixinCreated: true,
// 项目类型 4-会员项目 5-标协会员 // 项目类型 4-会员项目 5-标协会员
projectType: 4, projectType: 4,
contractId: '', // 收入合同id contractId: '', // 收入合同id
// 打包状态 // 打包状态
pack: '', pack: '',
contractInfo:{} contractInfo:{},
// 企业id
companyId:''
} }
}, },
methods: { methods: {
@@ -300,6 +314,13 @@ export default {
// 保存合同id 与打包状态 // 保存合同id 与打包状态
this.contractId = record.id this.contractId = record.id
this.pack = record.pack this.pack = record.pack
// 保存企业id
this.companyId =record.signedCompany.id
this.filters = {
companyId:this.companyId,
contractId:this.contractId,
projectType:'4'
}
this.loadData() this.loadData()
this.visible = true this.visible = true
}, },
@@ -333,22 +354,24 @@ export default {
}) })
}, },
handleCancel() { handleCancel() {
this.activeKey = '1'
this.close() this.close()
}, },
/* /*
* 切换类型 * 切换类型
* */ * */
callback(val) { callback(val) {
this.activeKey =val
// 2是标协会员 // 2是标协会员
if (val === '2') { if (val === '2') {
this.projectType = 5 this.projectType = 5
this.url.list = '/member/tbMemberProjectSubitem/page' this.filters.projectType = '5'
this.loadData(1) this.loadData(1)
} }
// 1是会员项目 // 1是会员项目
if (val === '1') { if (val === '1') {
this.projectType = 5 this.projectType = 4
this.url.list = '/jero/memberProject/page' this.filters.projectType = '4'
this.loadData(1) this.loadData(1)
} }
}, },
@@ -78,8 +78,8 @@
@click="copy(signUpHerfUrl)">复制</i> @click="copy(signUpHerfUrl)">复制</i>
</a-col> </a-col>
<a-col :xxl="8" :xl="12" :sm="24"> <a-col :xxl="8" :xl="12" :sm="24">
<label>签到二维码:</label><img class="qr-code" :src="signInQRCode" alt="签到二维码"/><i class="copy primary-color" <label>签到二维码:</label><img class="qr-code" :src="signInQRCode" alt="签到二维码"/>
@click="copy(signUpHerfUrl)">复制</i> <!-- <i class="copy primary-color" @click="copy(signUpHerfUrl)">复制</i>-->
</a-col> </a-col>
<a-col :xxl="8" :xl="12" :sm="24"> <a-col :xxl="8" :xl="12" :sm="24">
<label>收款二维码:</label> <label>收款二维码:</label>
@@ -181,6 +181,24 @@ export default {
dataIndex: 'registerTime', dataIndex: 'registerTime',
scopedSlots: { customRender: 'text' }, scopedSlots: { customRender: 'text' },
}, },
{
title: '应收金额',
align: 'center',
dataIndex: 'amountReceivable',
scopedSlots: { customRender: 'text' },
},
{
title: '实收金额',
align: 'center',
dataIndex: 'paidAmount',
scopedSlots: { customRender: 'text' },
},
{
title: '注册时间',
align: 'center',
dataIndex: 'registerTime',
scopedSlots: { customRender: 'text' },
},
{ {
title: '打包', title: '打包',
align: 'center', align: 'center',