【update】-批量审核报名信息
This commit is contained in:
@@ -343,6 +343,9 @@
|
||||
<a-button type="primary" @click="batchSetGuestsUploadFileFlag" v-has:[authorCode.guestsUploadFileFlag]="'attendance:guestsUploadFileFlag'">
|
||||
批量设置资料状态
|
||||
</a-button>
|
||||
<a-button type="primary" @click="batchAuditSignUpFlag" v-has:[authorCode.auditSignUpInfo]="'attendance:auditSignUp'">
|
||||
批量审核报名信息
|
||||
</a-button>
|
||||
<!--当会议费用为0不需要合并开票 -->
|
||||
<!-- 变更将此功能添加到到账开票了 暂时注释 2021-09-16 -->
|
||||
<!-- <a-button type="primary" @click="batchInvoice" v-show="currentMeetingInfo.meetingCosts !== 0">合并开票</a-button>-->
|
||||
@@ -1309,7 +1312,26 @@ export default {
|
||||
this.authorCode = Object.assign({}, this.overseasMeetingCode)
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
// 批量审核报名信息,只有参会方式是嘉宾的可以设置
|
||||
// record.registerCheckResult === 0 的时候有审核信息
|
||||
batchAuditSignUpFlag() {
|
||||
console.log(1)
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warning('请选择一条记录!')
|
||||
return
|
||||
}
|
||||
// 判断record.registerCheckResult === 0 的时候有审核信息
|
||||
let flag = this.selectionRows.some(item => {
|
||||
return item.registerCheckResult !== 0
|
||||
})
|
||||
if(flag) {
|
||||
this.$message.warn('只有待审核信息才可批量审核报名信息')
|
||||
return
|
||||
}
|
||||
console.log(2, flag)
|
||||
// this.$refs.setGuessUploadFlagModal.showBatch(this.selectedRowKeys)
|
||||
},
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -51,6 +51,10 @@
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!-- 操作按钮区域-->
|
||||
<div class="table-operator">
|
||||
<a-button type="primary" @click="checkAll()">全选</a-button>
|
||||
</div>
|
||||
<a-table
|
||||
ref="table"
|
||||
size="middle"
|
||||
@@ -92,7 +96,8 @@ import {
|
||||
draftGroupPublishRemind
|
||||
} from '@api/incomePaymentsApi'
|
||||
import EmailErrorMsgModal from '@views/projectManagement/modules/EmailErrorMsgModal'
|
||||
import { judgeEmailStatus } from "../../../api/incomePaymentsApi";
|
||||
import { judgeEmailStatus } from '../../../api/incomePaymentsApi'
|
||||
import { getAction } from "../../../api/manage";
|
||||
|
||||
|
||||
export default {
|
||||
@@ -403,8 +408,31 @@ export default {
|
||||
this.needMail = (res.result || {}).templateType.indexOf(2) > -1
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
checkAll() {
|
||||
this.getAllData()
|
||||
},
|
||||
getAllData() {
|
||||
var params = this.getQueryParams()//查询条件
|
||||
params.pageNo = 1
|
||||
params.pageSize = -1
|
||||
this.loading = true
|
||||
getAction(this.url.list, params).then((res) => {
|
||||
if (res.success) {
|
||||
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||
let dataSource = res.result.records || res.result
|
||||
this.selectedRowKeys = dataSource.map(tt => tt.id)
|
||||
this.selectionRows = dataSource
|
||||
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||
}
|
||||
if (res.code === 510) {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
this.loading = false
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user