【update】-工作组和起草组会议列表页上方新增一个‘批量审核’按钮
This commit is contained in:
@@ -343,7 +343,8 @@
|
|||||||
<a-button type="primary" @click="batchSetGuestsUploadFileFlag" v-has:[authorCode.guestsUploadFileFlag]="'attendance:guestsUploadFileFlag'">
|
<a-button type="primary" @click="batchSetGuestsUploadFileFlag" v-has:[authorCode.guestsUploadFileFlag]="'attendance:guestsUploadFileFlag'">
|
||||||
批量设置资料状态
|
批量设置资料状态
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="primary" @click="batchAuditSignUpFlag" v-has:[authorCode.auditSignUpInfo]="'attendance:auditSignUp'">
|
<!--20240703 只有工作组和起草组会议列表页上方新增一个‘批量审核’按钮-->
|
||||||
|
<a-button type="primary" @click="batchAuditSignUpFlag" v-if="meetingTypeValue + '' === MeetingTypeEnums.workGroup.value || meetingTypeValue + '' === MeetingTypeEnums.draftGroup.value" v-has:[authorCode.auditSignUpInfo]="'attendance:auditSignUp'">
|
||||||
批量审核报名信息
|
批量审核报名信息
|
||||||
</a-button>
|
</a-button>
|
||||||
<!--当会议费用为0不需要合并开票 -->
|
<!--当会议费用为0不需要合并开票 -->
|
||||||
@@ -487,7 +488,7 @@ import StatusSlot from '@comp/tools/StatusSlot'
|
|||||||
import PreviewFile from '@comp/jero/PreviewFile'
|
import PreviewFile from '@comp/jero/PreviewFile'
|
||||||
import JImageUpload from '@comp/jero/JImageUpload'
|
import JImageUpload from '@comp/jero/JImageUpload'
|
||||||
import SetGuessUploadFlagModal from './modules/SetGuessUploadFlagModal'
|
import SetGuessUploadFlagModal from './modules/SetGuessUploadFlagModal'
|
||||||
import { downloadFile, postAction } from '../../../api/manage'
|
import { downloadFile } from '../../../api/manage'
|
||||||
import WasicTopicData from './modules/wasicStaticData'
|
import WasicTopicData from './modules/wasicStaticData'
|
||||||
import { formatMoney } from '@/utils/formatMoney'
|
import { formatMoney } from '@/utils/formatMoney'
|
||||||
import {getPayConfirmList} from '@api/incomePaymentsApi'
|
import {getPayConfirmList} from '@api/incomePaymentsApi'
|
||||||
@@ -513,6 +514,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
MeetingTypeEnums,
|
||||||
description: '参会情况',
|
description: '参会情况',
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -836,9 +838,7 @@ export default {
|
|||||||
delete: '/meeting/workGroupMeetingSituation/delete',
|
delete: '/meeting/workGroupMeetingSituation/delete',
|
||||||
deleteBatch: '/meeting/workGroupMeetingSituation/deleteBatch',
|
deleteBatch: '/meeting/workGroupMeetingSituation/deleteBatch',
|
||||||
exportXlsUrl: '/meeting/workGroupMeetingSituation/exportXls',
|
exportXlsUrl: '/meeting/workGroupMeetingSituation/exportXls',
|
||||||
importExcelUrl: '/meeting/workGroupMeetingSituation/importExcel',
|
importExcelUrl: '/meeting/workGroupMeetingSituation/importExcel'
|
||||||
// 批量审核报名信息
|
|
||||||
checkSignUpBatch: '/meeting/workGroupMeetingSituation/checkRegister',
|
|
||||||
},
|
},
|
||||||
// 理事会的url
|
// 理事会的url
|
||||||
councilMeetingUrl: {
|
councilMeetingUrl: {
|
||||||
@@ -854,9 +854,7 @@ export default {
|
|||||||
delete: '/meeting/draftGroupMeetingSituation/delete',
|
delete: '/meeting/draftGroupMeetingSituation/delete',
|
||||||
deleteBatch: '/meeting/draftGroupMeetingSituation/deleteBatch',
|
deleteBatch: '/meeting/draftGroupMeetingSituation/deleteBatch',
|
||||||
exportXlsUrl: '/meeting/draftGroupMeetingSituation/exportXls',
|
exportXlsUrl: '/meeting/draftGroupMeetingSituation/exportXls',
|
||||||
importExcelUrl: '/meeting/draftGroupMeetingSituation/importExcel',
|
importExcelUrl: '/meeting/draftGroupMeetingSituation/importExcel'
|
||||||
// 批量审核报名信息
|
|
||||||
checkSignUpBatch: '/meeting/workGroupMeetingSituation/checkRegisterBatch',
|
|
||||||
},
|
},
|
||||||
// 海外会议的url
|
// 海外会议的url
|
||||||
overseasMeetingUrl: {
|
overseasMeetingUrl: {
|
||||||
@@ -1333,36 +1331,17 @@ export default {
|
|||||||
this.$message.warn('只有待审核信息才可批量审核报名信息')
|
this.$message.warn('只有待审核信息才可批量审核报名信息')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(2, flag)
|
|
||||||
const that = this
|
const that = this
|
||||||
let ids = ''
|
let ids = this.selectedRowKeys.join(',')
|
||||||
for (let a = 0; a < this.selectedRowKeys.length; a++) {
|
|
||||||
ids += this.selectedRowKeys[a] + ','
|
|
||||||
}
|
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: '确认审核',
|
title: '确认审核',
|
||||||
content: '是否确定批量审核报名信息?',
|
content: '是否确定批量审核报名信息?',
|
||||||
onOk: function () {
|
onOk: function () {
|
||||||
that.loading = true
|
that.$refs.auditModal.title = '审核报名信息'
|
||||||
if(!that.url.checkSignUpBatch) return
|
that.$refs.auditModal.open({ batch: true, ids }, true)
|
||||||
postAction(that.url.checkSignUpBatch, {ids: ids}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
that.$message.success(res.message)
|
|
||||||
that.loadData()
|
|
||||||
that.onClearSelected()
|
|
||||||
} else {
|
|
||||||
if (res.message.indexOf('<br/>') > -1) {
|
|
||||||
that.messageLineFeed('审核失败', res.message)
|
|
||||||
} else {
|
|
||||||
that.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.loading = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.$refs.setGuessUploadFlagModal.showBatch(this.selectedRowKeys)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
cancelText="关闭">
|
cancelText="关闭">
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<section class="check">
|
<section class="check" v-if="!batchCheckSignUp">
|
||||||
<h3>报名信息</h3>
|
<h3>报名信息</h3>
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
@@ -185,7 +185,9 @@ export default {
|
|||||||
// 审核凭证
|
// 审核凭证
|
||||||
check: '/meeting/workGroupMeetingSituation/check',
|
check: '/meeting/workGroupMeetingSituation/check',
|
||||||
// 审核报名信息
|
// 审核报名信息
|
||||||
checkSignUp: '/meeting/workGroupMeetingSituation/checkRegister'
|
checkSignUp: '/meeting/workGroupMeetingSituation/checkRegister',
|
||||||
|
// 批量审核报名信息
|
||||||
|
checkSignUpBatch: '/meeting/workGroupMeetingSituation/checkRegisterBatch',
|
||||||
},
|
},
|
||||||
// 分标委会议url
|
// 分标委会议url
|
||||||
committeeMeetingUrl: {
|
committeeMeetingUrl: {
|
||||||
@@ -220,12 +222,16 @@ export default {
|
|||||||
// 审核凭证
|
// 审核凭证
|
||||||
check: '/meeting/draftGroupMeetingSituation/check',
|
check: '/meeting/draftGroupMeetingSituation/check',
|
||||||
// 审核报名信息
|
// 审核报名信息
|
||||||
checkSignUp: '/meeting/draftGroupMeetingSituation/checkRegister'
|
checkSignUp: '/meeting/draftGroupMeetingSituation/checkRegister',
|
||||||
|
// 批量审核报名信息
|
||||||
|
checkSignUpBatch: '/meeting/draftGroupMeetingSituation/checkRegisterBatch',
|
||||||
},
|
},
|
||||||
// 审核结果选择
|
// 审核结果选择
|
||||||
checkBool: false,
|
checkBool: false,
|
||||||
// 是否是审核报名信息
|
// 是否是审核报名信息
|
||||||
checkSignBool: false,
|
checkSignBool: false,
|
||||||
|
// 是否批量 核查报名信息
|
||||||
|
batchCheckSignUp: false,
|
||||||
// 参会人id
|
// 参会人id
|
||||||
signUpPersonId: '',
|
signUpPersonId: '',
|
||||||
}
|
}
|
||||||
@@ -238,12 +244,23 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/*
|
||||||
|
* record- 审核参数
|
||||||
|
* signUp- 是否审核报名信息
|
||||||
|
* */
|
||||||
open(record, signUp) {
|
open(record, signUp) {
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
this.signUpPersonId = this.situationId ? this.situationId : record.id
|
|
||||||
// 控制行程信息显示 审核凭证不显示
|
// 控制行程信息显示 审核凭证不显示
|
||||||
this.checkSignBool = signUp || false
|
this.checkSignBool = signUp || false
|
||||||
let meetingType = this.meetingType ? this.meetingType+'' :this.$route.query.meetingType
|
let meetingType = this.meetingType ? this.meetingType+'' :this.$route.query.meetingType
|
||||||
|
this.signUpPersonId = this.situationId ? this.situationId : record.id
|
||||||
|
// 判断是否为工作组的批量审批功能,批量审批record 的参数 batch= true; ids 存储多条数据
|
||||||
|
if(signUp && record.batch && record.ids) {
|
||||||
|
this.model = Object.assign({}, record)
|
||||||
|
this.batchCheckSignUp = true
|
||||||
|
} else {
|
||||||
|
this.batchCheckSignUp = false
|
||||||
|
}
|
||||||
// 到账开票
|
// 到账开票
|
||||||
if(record.type && record.type === 'kp' ){
|
if(record.type && record.type === 'kp' ){
|
||||||
meetingType = record.meetingType + ''
|
meetingType = record.meetingType + ''
|
||||||
@@ -268,17 +285,24 @@ export default {
|
|||||||
this.form.validateFields((err, values) => {
|
this.form.validateFields((err, values) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
|
const formData = Object.assign({}, values)
|
||||||
let httpurl = ''
|
let httpurl = ''
|
||||||
if (that.checkSignBool) {
|
if (that.checkSignBool) {
|
||||||
// 审核报名信息的接口
|
if(this.batchCheckSignUp) {
|
||||||
httpurl = this.url.checkSignUp
|
// 批量 审核报名信息的接口
|
||||||
|
httpurl = this.url.checkSignUpBatch
|
||||||
|
formData.ids = this.model.ids
|
||||||
|
} else {
|
||||||
|
// 审核报名信息的接口
|
||||||
|
httpurl = this.url.checkSignUp
|
||||||
|
formData.id = this.model.id
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// 审核凭证的接口
|
// 审核凭证的接口
|
||||||
httpurl = this.url.check
|
httpurl = this.url.check
|
||||||
|
formData.id = this.model.id
|
||||||
}
|
}
|
||||||
let method = 'post'
|
let method = 'post'
|
||||||
const formData = Object.assign({}, values)
|
|
||||||
formData.id = this.model.id
|
|
||||||
httpAction(httpurl, formData, method).then((res) => {
|
httpAction(httpurl, formData, method).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
that.$message.success(res.message)
|
that.$message.success(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user