参会情况设置对接人

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