diff --git a/src/views/incomePayments/meetManage/Attendance.vue b/src/views/incomePayments/meetManage/Attendance.vue
index 22f6431..54c66ab 100644
--- a/src/views/incomePayments/meetManage/Attendance.vue
+++ b/src/views/incomePayments/meetManage/Attendance.vue
@@ -112,7 +112,7 @@
-
@@ -250,6 +250,7 @@ export default {
data() {
return {
description: '参会情况',
+
columns: [
{
title: '序号',
@@ -346,6 +347,7 @@ export default {
scopedSlots: {customRender: 'action'}
},
],
+ disableMixinCreated:true,
url: {
list: '/meeting/payMeetingSituation/page',
delete: '/meeting/payMeetingSituation/delete',
@@ -371,6 +373,8 @@ export default {
this.meetingType = this.generateMeetingType(this.currentMeetingInfo.meetingType)
}
})
+ this.filters.meetingId = this.$route.query.id
+ this.loadData(1)
},
computed: {
// 标协会议类型
@@ -418,7 +422,8 @@ export default {
this.$router.push({
path: '/incomePayments/meetManage/SignUpInfoEdit',
query: {
- id:record.id
+ id:record.id,
+ meetingType: this.currentMeetingInfo.meetingType,
}
})
},
diff --git a/src/views/incomePayments/meetManage/OtherMeetingForm.vue b/src/views/incomePayments/meetManage/OtherMeetingForm.vue
index 2aa670f..8502cce 100644
--- a/src/views/incomePayments/meetManage/OtherMeetingForm.vue
+++ b/src/views/incomePayments/meetManage/OtherMeetingForm.vue
@@ -31,6 +31,7 @@
缴费信息
-
+
汇款
@@ -140,6 +141,8 @@ export default {
},
// 缴费方式为打包
payModeBool:false,
+ // 回显的邮寄联系人
+ selectPostPerson:null,
validatorRules: {
postContactId: {
rules: [{required: true, message: '请选择邮寄联系人'}],
@@ -161,6 +164,7 @@ export default {
identifyType(val){
if(val !== 2){
this.payModeBool = false
+ console.log(val)
return val
}
}
@@ -205,6 +209,34 @@ export default {
}else {
this.payModeBool = false
}
+ },
+ /*
+ * 编辑回显值
+ * */
+ setFormVal(record){
+ console.log('record============',record)
+ // 回显邮寄联系人
+ this.selectPostPerson = {
+ id:record.postContactTemporaryId,
+ name:record.postContactName
+ }
+ this.$nextTick(() => {
+ // 身份类型是嘉宾 内部企业只渲染 住店 抵达时间 离开时间
+ this.form.setFieldsValue(pick(record,
+ 'checkInHotel',
+ 'arrivalTime',
+ 'departureTime',
+ 'arrivalTime',
+ 'departureTime',
+ 'postContactId',
+ 'postContactAddress',
+ 'payMode',
+ 'needInvoice',
+ 'paymentRecord'
+ ))
+ })
+
+
},
addContactsOk() {
}
diff --git a/src/views/incomePayments/meetManage/SignUpInfoEdit.vue b/src/views/incomePayments/meetManage/SignUpInfoEdit.vue
index 9c2d10e..5f9f682 100644
--- a/src/views/incomePayments/meetManage/SignUpInfoEdit.vue
+++ b/src/views/incomePayments/meetManage/SignUpInfoEdit.vue
@@ -22,6 +22,7 @@
placeholder="请选择参会人"
v-decorator="['companyContactId',validatorRules.companyContactId]"
:maxLength='50'
+ :init-contacts="selectPerson"
@change="changeContact"
ref="selectMailContacts"
@ok="addContactsOk">
@@ -196,11 +197,13 @@ export default {
identifyType: null,
// 嘉宾类型
guestType: null,
+ // 姓名的回显
+ selectPerson:null,
// 会议类型
meetingType: '',
url:{
add:'/meeting/payMeetingSituation/add',
- edit:''
+ edit:'/meeting/payMeetingSituation/edit'
}
}
},
@@ -208,9 +211,9 @@ export default {
this.meetingType = this.$route.query.meetingType
if(this.$route.query.id){
// 通过id获取参会人信息
- getSingUpUserInfo({id:this.$route.query}).then(res => {
+ getSingUpUserInfo({id:this.$route.query.id}).then(res => {
if(res.success){
- console.log(res.result)
+ this.edit(res.result)
}
})
}
@@ -221,6 +224,55 @@ export default {
this.$refs.selectContacts.getContactsList()
},
/*
+ * 编辑
+ * */
+ edit(record){
+ this.form.resetFields()
+ this.model = Object.assign({},record)
+ console.log(this.model)
+ // 设置编辑的显示隐藏状态
+ this.identifyType = this.model.identity
+ this.guestType = this.model.guestType ? this.model.guestType : null
+ // 参会单位回显
+ this.model.companyId = {
+ id:this.model.companyId,
+ companyName:this.model.companyName
+ }
+ // 参会人回显
+ this.selectedCompany = this.model.companyId
+ this.selectPerson = {
+ id:this.model.companyContactTemporaryId,
+ name:this.model.companyContactName
+ }
+
+ console.log(this.$refs.formother,'=====================')
+
+ //国际研讨会的嘉宾编辑回显值
+ this.$nextTick(() => {
+ // 普通会议的编辑回显值
+ if(this.$refs.formother){
+ this.$refs.formother.setFormVal(this.model)
+ }
+ //国际研讨会的嘉宾前三个的编辑回显值
+ if(this.$refs.seminarVipForm){
+ this.$refs.seminarVipForm.setFormVal(this.model)
+ }
+ // 国际研讨会合作伙伴的回显
+ if(this.$refs.seminarPartnerForm){
+ this.$refs.seminarPartnerForm.setFormVal(this.model)
+ }
+ this.form.setFieldsValue(pick(this.model,
+ 'companyId',
+ 'companyContactId',
+ 'phone',
+ 'email',
+ 'post',
+ 'identity',
+ 'guestType'
+ ))
+ })
+ },
+ /*
* 确定
* */
handleOk() {
diff --git a/src/views/incomePayments/meetManage/modules/SeminarPartnerForm.vue b/src/views/incomePayments/meetManage/modules/SeminarPartnerForm.vue
index 41d0c8a..775de18 100644
--- a/src/views/incomePayments/meetManage/modules/SeminarPartnerForm.vue
+++ b/src/views/incomePayments/meetManage/modules/SeminarPartnerForm.vue
@@ -30,6 +30,7 @@