|
@@ -53,16 +53,6 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
-<!-- <el-form-item label="申请类型" prop="applyType">-->
|
|
|
-<!-- <el-select v-model="queryParams.applyType" placeholder="请选择申请类型" clearable>-->
|
|
|
-<!-- <el-option-->
|
|
|
-<!-- v-for="dict in dict.type.apply_type"-->
|
|
|
-<!-- :key="dict.value"-->
|
|
|
-<!-- :label="dict.label"-->
|
|
|
-<!-- :value="dict.value"-->
|
|
|
-<!-- />-->
|
|
|
-<!-- </el-select>-->
|
|
|
-<!-- </el-form-item>-->
|
|
|
<el-form-item label="审核状态" prop="reviewState">
|
|
|
<el-select v-model="queryParams.reviewState" placeholder="请选择审核状态" clearable>
|
|
|
<el-option
|
|
@@ -80,16 +70,6 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
-<!-- <el-col :span="1.5">-->
|
|
|
-<!-- <el-button-->
|
|
|
-<!-- type="primary"-->
|
|
|
-<!-- plain-->
|
|
|
-<!-- icon="el-icon-plus"-->
|
|
|
-<!-- size="mini"-->
|
|
|
-<!-- @click="handleAdd"-->
|
|
|
-<!-- >新增-->
|
|
|
-<!-- </el-button>-->
|
|
|
-<!-- </el-col>-->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="success"
|
|
@@ -114,6 +94,40 @@
|
|
|
>删除
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-button
|
|
|
+ :disabled="multiple"
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ icon="el-icon-check"
|
|
|
+ size="mini"
|
|
|
+ @click="batchPass"
|
|
|
+ >批量审核通过
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ :disabled="multiple"
|
|
|
+ plain
|
|
|
+ icon="el-icon-check"
|
|
|
+ size="mini"
|
|
|
+ @click="batchReject"
|
|
|
+ >批量审核不通过
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ plain
|
|
|
+ icon="el-icon-delete"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleDelete"
|
|
|
+ v-hasPermi="['cp:apply:del']"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -128,12 +142,14 @@
|
|
|
</el-row>
|
|
|
|
|
|
<el-table v-loading="loading" :data="usrApplyList" @selection-change="handleSelectionChange" style="width: 100%">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column type="selection" width="55" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="编号" align="center" prop="id" width="100" fixed />
|
|
|
<el-table-column label="参会人" align="center" prop="usrName" width="100" fixed />
|
|
|
<el-table-column label="联系电话" align="center" prop="tel" width="120" fixed />
|
|
|
- <el-table-column label="参会人单位" align="center" prop="orgUnitName" width="150" fixed show-overflow-tooltip/>
|
|
|
- <el-table-column label="参会人职务" align="center" prop="uniLevel" width="150" fixed/>
|
|
|
- <el-table-column label="邮箱信息" align="center" prop="email" width="100"/>
|
|
|
+ <el-table-column label="参会人单位" align="center" prop="orgUnitName" width="150" fixed show-overflow-tooltip />
|
|
|
+ <el-table-column label="参会人职务" align="center" prop="uniLevel" width="150" fixed />
|
|
|
+ <el-table-column label="邮箱信息" align="center" prop="email" width="100" />
|
|
|
<el-table-column label="参会人角色" align="center" prop="usrType" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.met_usr_type" :value="scope.row.usrType" />
|
|
@@ -149,25 +165,38 @@
|
|
|
<dict-tag :options="dict.type.apply_type" :value="scope.row.applyType" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="审核状态" align="center" prop="reviewState" width="100">
|
|
|
+ <el-table-column label="审核状态" align="center" prop="reviewState" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.review_state" :value="scope.row.reviewState" />
|
|
|
+ <div style="display: flex;align-items: center; justify-content: center;">
|
|
|
+ <i
|
|
|
+ :style="{
|
|
|
+ color: REVIEW_STATUS[scope.row.reviewState].color,
|
|
|
+ width: '10px',
|
|
|
+ height: '10px',
|
|
|
+ borderRadius: '10px',
|
|
|
+ background: REVIEW_STATUS[scope.row.reviewState].color,
|
|
|
+ marginRight: '5px'
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ <dict-tag :options="dict.type.review_state" :value="scope.row.reviewState" />
|
|
|
+ </div>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="审核信息" align="center" prop="reviewMsg" width="150" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="审核信息" align="center" prop="reviewMsg" width="150" show-overflow-tooltip />
|
|
|
<el-table-column label="与会内容" align="center" prop="contentTitle" width="150" />
|
|
|
<el-table-column label="来程方式" align="center" prop="wayComing" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.tfc_type" :value="scope.row.wayComing"/>
|
|
|
+ <dict-tag :options="dict.type.tfc_type" :value="scope.row.wayComing" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="来程信息" align="center" prop="comInfo" width="150"/>
|
|
|
+ <el-table-column label="来程信息" align="center" prop="comInfo" width="150" />
|
|
|
<el-table-column label="返程方式" align="center" prop="wayBack" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.tfc_type" :value="scope.row.wayBack"/>
|
|
|
+ <dict-tag :options="dict.type.tfc_type" :value="scope.row.wayBack" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="返程信息" align="center" prop="backInfo" width="150"/>
|
|
|
+ <el-table-column label="返程信息" align="center" prop="backInfo" width="150" />
|
|
|
<el-table-column label="备注" align="center" prop="remark" width="150" show-overflow-tooltip />
|
|
|
<el-table-column label="创建时间" align="center" prop="updateTime" width="80">
|
|
|
</el-table-column>
|
|
@@ -277,7 +306,8 @@
|
|
|
v-for="dict in dict.type.tfc_type"
|
|
|
:key="dict.value"
|
|
|
:label="dict.value"
|
|
|
- >{{dict.label}}</el-radio>
|
|
|
+ >{{ dict.label }}
|
|
|
+ </el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车次/航班/高速公路出入口" prop="comInfo">
|
|
@@ -289,7 +319,8 @@
|
|
|
v-for="dict in dict.type.tfc_type"
|
|
|
:key="dict.value"
|
|
|
:label="dict.value"
|
|
|
- >{{dict.label}}</el-radio>
|
|
|
+ >{{ dict.label }}
|
|
|
+ </el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车次/航班/高速公路出入口" prop="backInfo">
|
|
@@ -403,15 +434,44 @@
|
|
|
<el-button @click="rejectCancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="批量拒绝用户参会申请" :visible.sync="openBatcheReject" width="700px" append-to-body>
|
|
|
+ <el-form ref="rejectForm" :model="form" :rules="rules" label-width="120px">
|
|
|
+ <el-form-item label="审核状态" prop="reviewState">
|
|
|
+ <el-radio-group v-model="form.reviewState" :disabled="true">
|
|
|
+ <el-radio
|
|
|
+ v-for="dict in dict.type.review_state"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.value"
|
|
|
+ >{{ dict.label }}
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="审核信息" prop="reviewMsg">
|
|
|
+ <el-input v-model="form.reviewMsg" type="textarea" rows="3" placeholder="审核信息" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="rejectByIds">确 定</el-button>
|
|
|
+ <el-button @click="rejectCancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { addUsrApply, delUsrApply, getUsrApply, listUsrApply, rejectUsrApply, updateUsrApply } from '@/api/cp/usrApply';
|
|
|
+import {
|
|
|
+ addUsrApply, delUsrApply, getUsrApply, listUsrApply, passByIds, rejectByIds, rejectUsrApply, updateUsrApply,
|
|
|
+} from '@/api/cp/usrApply';
|
|
|
+import { REVIEW_STATUS } from '@/utils/EnumConst';
|
|
|
|
|
|
export default {
|
|
|
name: 'UsrApply',
|
|
|
- dicts: ['apply_type', 'conference_flag', 'review_state', 'met_usr_type',"tfc_type"],
|
|
|
+ computed: {
|
|
|
+ REVIEW_STATUS() {
|
|
|
+ return REVIEW_STATUS;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ dicts: ['apply_type', 'conference_flag', 'review_state', 'met_usr_type', 'tfc_type'],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -433,6 +493,7 @@ export default {
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
openReject: false,
|
|
|
+ openBatcheReject: false,
|
|
|
openDetail: false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
@@ -450,7 +511,7 @@ export default {
|
|
|
comInfo: null,
|
|
|
wayBack: null,
|
|
|
backInfo: null,
|
|
|
- remark: null
|
|
|
+ remark: null,
|
|
|
},
|
|
|
applyType: '',
|
|
|
// 表单参数
|
|
@@ -489,6 +550,7 @@ export default {
|
|
|
},
|
|
|
rejectCancel() {
|
|
|
this.openReject = false;
|
|
|
+ this.openBatcheReject = false;
|
|
|
this.reset();
|
|
|
},
|
|
|
|
|
@@ -618,13 +680,29 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除cps_usr_apply与会申请编号为"' + ids + '"的数据项?').then(function () {
|
|
|
+ this.$modal.confirm('是否确认删除与会申请编号为"' + ids + '"的数据项?').then(function () {
|
|
|
return delUsrApply(ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess('删除成功');
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
+ batchPass() {
|
|
|
+ passByIds(this.ids).then(response => {
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ batchReject() {
|
|
|
+ this.openBatcheReject = true;
|
|
|
+ this.form.reviewState = '1';
|
|
|
+ },
|
|
|
+ rejectByIds() {
|
|
|
+ const ids = this.ids;
|
|
|
+ rejectByIds(ids, this.form).then(response => {
|
|
|
+ this.getList();
|
|
|
+ this.openBatcheReject = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
this.download('cp/usrApply/export', {
|