参会情况设置对接人

This commit is contained in:
fengachen
2021-09-09 20:15:15 +08:00
parent a94d43bc3e
commit fbca58c6cb
2 changed files with 38 additions and 27 deletions
@@ -170,6 +170,7 @@
size="middle"
bordered
rowKey="id"
:scroll="{x:true}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@@ -264,71 +265,84 @@ export default {
title: '参会单位',
align: 'center',
dataIndex: 'companyName',
scopedSlots: {customRender: 'htmlSlot'}
scopedSlots: {customRender: 'htmlSlot'},
width: 180,
},
{
title: '参会人员',
align: 'center',
dataIndex: 'companyContactName',
width: 80,
},
{
title: '应收金额',
align: 'center',
dataIndex: 'amountReceivable'
dataIndex: 'amountReceivable',
width: 100,
},
{
title: '实收金额',
align: 'center',
dataIndex: 'paidAmount'
dataIndex: 'paidAmount',
width: 100,
},
{
title: '缴费方式',
align: 'center',
dataIndex: 'payMode_dictText'
dataIndex: 'payMode_dictText',
width: 100,
},
{
title: '是否签到',
align: 'center',
dataIndex: 'checkIn'
dataIndex: 'checkIn',
width: 100,
},
{
title: '打包',
align: 'center',
dataIndex: 'pack',
width: 80,
scopedSlots: {customRender: 'status-pack'}
},
{
title: '需要发票',
align: 'center',
dataIndex: 'needInvoice',
width: 80,
scopedSlots: {customRender: 'status-pack'}
},
{
title: '到账',
align: 'center',
width: 80,
dataIndex: 'inAccount',
scopedSlots: {customRender: 'status'}
},
{
title: '开票',
align: 'center',
width: 80,
dataIndex: 'makeInvoice',
scopedSlots: {customRender: 'status'}
},
{
title: '邮寄',
align: 'center',
width: 80,
dataIndex: 'mail',
scopedSlots: {customRender: 'status'}
},
{
title: '对接人',
align: 'center',
width: 100,
dataIndex: 'dockName'
},
{
title: '操作',
align: 'center',
fixed:'right',
scopedSlots: {customRender: 'action'}
},
],
@@ -446,15 +460,16 @@ export default {
this.$message.warn('请选择一条记录')
return
}
let flag = this.selectionRows.some(item => {
return item.meetingType !== 3
})
// let flag = this.selectionRows.some(item => {
// return item.meetingType !== 3
// })
let flag = this.currentMeetingInfo.meetingType !== '3'
if (flag) {
this.$message.warn('只有研讨会议才可设置对接人')
return
} else {
// 打开模态框
this.$refs.batchSetDockerModal.open()
this.$refs.batchSetDockerModal.open(this.selectedRowKeys)
}
},
/*
@@ -13,7 +13,7 @@
<a-col :xl="24" :sm="24">
<a-form-item label="会议对接人" :labelCol="labelCol" :wrapperCol="wrapperCol">
<select-principal placeholder="请选择会议对接人"
v-decorator="['directorId']"></select-principal>
v-decorator="['dockId',validatorRules.dockId]"></select-principal>
</a-form-item>
</a-col>
</a-row>
@@ -51,28 +51,23 @@ export default {
sm: {span: 18}
},
validatorRules: {
projectName: {
rules: [{required: true, message: '请输入会员项目'}],
validateTrigger: 'blur'
},
particularYear: {
rules: [{required: true, message: '请选择年份'}],
validateTrigger: ['change', 'blur']
},
directorId: {
rules: [{required: true, message: '请选择负责人'}],
validateTrigger: ['change', 'blur']
dockId: {
rules: [{required: true, message: '请选择会议对接人'}],
validateTrigger: ['change']
}
},
// 列表选择的key值
meetingSituationIds:[],
url: {
add: '/jero/memberProject/add',
edit: '/jero/memberProject/edit',
add: '/meeting/payMeetingSituation/addDock',
}
}
},
methods: {
open() {
open(meetingSituationIds) {
this.form.resetFields()
this.visible = true
this.meetingSituationIds = [...meetingSituationIds]
},
close() {
this.$emit('close')
@@ -81,11 +76,12 @@ export default {
handleOk() {
const that = this
// 触发表单验证
this.form.validateFields((err, values) => {
that.form.validateFields((err, values) => {
if (!err) {
let httpurl = ''
let httpurl = that.url.add
let method = 'post'
const formData = Object.assign(this.model, values)
const formData = Object.assign({}, values)
formData.meetingSituationIds = this.meetingSituationIds
console.log('表单提交数据', formData)
httpAction(httpurl, formData, method).then((res) => {
if (res.success) {