[bug]- 打开会议详情模态框前先核实是否是分标委成员还理事会成员
This commit is contained in:
@@ -599,7 +599,7 @@ import PreviewFile from '@comp/jero/PreviewFile'
|
||||
import FileTable from '@/views/MessagePage/modules/FileTable'
|
||||
import JEllipsis from '@comp/jero/JEllipsis'
|
||||
import { getMeetInfoById, queryCommonProjectById } from '@api/incomePaymentsApi'
|
||||
import { getSingUpUserInfo } from '@api/incomePaymentsApi'
|
||||
import { getSingUpUserInfo, checkMember } from '@api/incomePaymentsApi'
|
||||
import JImageUpload from '@comp/jero/JImageUpload'
|
||||
import '@/assets/less/TableExpand.less'
|
||||
import SignStep from './modules/SignStep'
|
||||
@@ -692,7 +692,7 @@ export default {
|
||||
// 显示更多的开票邮寄信息
|
||||
showMoreInfo: false,
|
||||
|
||||
// showDetailBool:true
|
||||
showDetailBool:true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -704,35 +704,48 @@ export default {
|
||||
return '女'
|
||||
}
|
||||
},
|
||||
// 是否显示文件查看
|
||||
showDetailBool(){
|
||||
//todo 增加判断,等后端接口开发完成后再做处理
|
||||
//先判断当前的会议类型,如果会议是分标委会议或者理事会会议 需要判断当前人是否是 分标委成员或者理事会成员,
|
||||
if(this.meetingInfo.meetingType === MeetingTypeEnums.committee.index || this.meetingInfo.meetingType === MeetingTypeEnums.council.index) {
|
||||
// 判断是否是成员,如果是成员返回true 否则进行下面的判断
|
||||
// if(this.judgeIsMember()) {
|
||||
// return true
|
||||
// }
|
||||
}
|
||||
if((this.situationInfo.checkResult == 1 && this.situationInfo.registerCheckResult == 1)){
|
||||
return true
|
||||
}else{
|
||||
return false
|
||||
}
|
||||
},
|
||||
// 收费二维码 src
|
||||
paymentQrCodeSrc() {
|
||||
return `${window._CONFIG['domianURL']}/sys/common/download/${this.model.paymentQrCode}`
|
||||
}
|
||||
|
||||
},
|
||||
watch: {
|
||||
model() {
|
||||
this.changeShowDetailBool()
|
||||
},
|
||||
situationInfo() {
|
||||
this.changeShowDetailBool()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 是否显示文件查看
|
||||
changeShowDetailBool(){
|
||||
//todo 增加判断,等后端接口开发完成后再做处理
|
||||
//先判断当前的会议类型,如果会议是分标委会议或者理事会会议 需要判断当前人是否是 分标委成员或者理事会成员,
|
||||
if (this.model.meetingType === MeetingTypeEnums.committee.index || this.model.meetingType === MeetingTypeEnums.council.index) {
|
||||
// 判断是否是成员,如果是成员返回true 否则进行下面的判断
|
||||
if (this.judgeIsMember()) {
|
||||
this.showDetailBool = true
|
||||
return
|
||||
}
|
||||
}
|
||||
if((this.situationInfo.checkResult == 1 && this.situationInfo.registerCheckResult == 1)){
|
||||
this.showDetailBool = true
|
||||
}else{
|
||||
this.showDetailBool = false
|
||||
}
|
||||
},
|
||||
// 判断是否是 分标委成员或者理事会成员
|
||||
judgeIsMember() {
|
||||
return new Promise(resolve => {
|
||||
getSingUpUserInfo().then(res => {
|
||||
const params = {
|
||||
meetingType: this.model.meetingType,
|
||||
meetingId: this.model.id,
|
||||
}
|
||||
checkMember(params).then(res => {
|
||||
if (res.success) {
|
||||
resolve(true)
|
||||
resolve(res.result)
|
||||
} else {
|
||||
resolve(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user