相关方培训新增需求

cmt1.0
liujun 2023-12-06 16:52:48 +08:00
parent 0422c83c25
commit 5c76e3a777
2 changed files with 8 additions and 19 deletions

View File

@ -20,13 +20,6 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="6">-->
<!-- <el-form-item label="申请状态">-->
<!-- <el-select v-model="AUDIT_STATUS" placeholder="请选择申请状态" clearable >-->
<!-- <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value" />-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="4"> <el-col :span="4">
<el-form-item label-width="10px"> <el-form-item label-width="10px">
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery"> <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
@ -65,7 +58,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="200"> <el-table-column label="操作" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button v-if="(row.AUDIT_STATUS === 1 || row.AUDIT_STATUS === 0 ) && (row.MANAGER_USER_ID == USER_ID && row.managerCount != row.USER_COUNT ) || (row.TERRITORIALITY_USER_ID == USER_ID && row.territorialityCount != row.USER_COUNT ) " type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAININGBATCH_ID)"></el-button> <el-button v-if="(row.AUDIT_STATUS === 1 || row.AUDIT_STATUS === 0 ) && (row.MANAGER_USER_ID === USER_ID && row.managerCount !== row.USER_COUNT ) || (row.TERRITORIALITY_USER_ID === USER_ID && row.territorialityCount !== row.USER_COUNT ) " type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAININGBATCH_ID)"></el-button>
<el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.TRAININGBATCH_ID)"></el-button> <el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.TRAININGBATCH_ID)"></el-button>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -9,12 +9,6 @@
width="60%"> width="60%">
<div class="level-title mt-20" style="display: flex;justify-content: space-between;"> <div class="level-title mt-20" style="display: flex;justify-content: space-between;">
<h1>申请信息</h1> <h1>申请信息</h1>
<!-- <span v-if="pd.AUDIT_STATUS === 0"></span>-->
<!-- <span v-if="pd.AUDIT_STATUS === 1"></span>-->
<!-- <span v-if="pd.AUDIT_STATUS === 2"></span>-->
<!-- <span v-if="pd.AUDIT_STATUS === 3"></span>-->
<!-- <span v-if="pd.AUDIT_STATUS === -1"></span>-->
<!-- <span v-if="pd.AUDIT_STATUS === -2"></span>-->
</div> </div>
<table class="table-ui" style="margin-bottom: 20px;"> <table class="table-ui" style="margin-bottom: 20px;">
<tr> <tr>
@ -79,7 +73,7 @@
size="mini" size="mini"
@click="getUserInfo(row)">电子合格证 @click="getUserInfo(row)">电子合格证
</el-button> </el-button>
<el-button v-if="(row.STATUS === 0 || row.STATUS === 1) && viewState ==='1' && ((row.MANAGER_USER_ID == USER_ID && row.MANAGER_STATE === 9 ) || (row.TERRITORIALITY_USER_ID == USER_ID && row.TERRITORIALITY_STATE === 9)) && row.SUPERVISION_STATE != 0 && row.MANAGER_STATE != 0 && row.TERRITORIALITY_STATE != 0" type="success" icon="el-icon-edit" size="mini" @click="examineShow(row)"></el-button> <el-button v-if="(row.STATUS === 0 || row.STATUS === 1) && viewState ==='1' && ((row.MANAGER_USER_ID === USER_ID && row.MANAGER_STATE === 9 && row.STEP_STATUS === '1' ) || (row.TERRITORIALITY_USER_ID === USER_ID && row.TERRITORIALITY_STATE === 9 && (row.STEP_STATUS === '0' || !row.STEP_STATUS))) && row.SUPERVISION_STATE != 0 && row.MANAGER_STATE != 0 && row.TERRITORIALITY_STATE != 0" type="success" icon="el-icon-edit" size="mini" @click="examineShow(row)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -251,9 +245,6 @@
<td>{{ item.REVIEW_TIME }}</td> <td>{{ item.REVIEW_TIME }}</td>
<th>有效期</th> <th>有效期</th>
<td colspan="3">{{ item.VALIDITY_TIME_START }} {{ item.VALIDITY_TIME_END }}</td> <td colspan="3">{{ item.VALIDITY_TIME_START }} {{ item.VALIDITY_TIME_END }}</td>
<!-- &lt;!&ndash; <td v-if="!userEntryForm.TRAIN_AREA"></td>&ndash;&gt;-->
<!-- &lt;!&ndash; <td v-else style="color: #04a9f5; cursor: pointer" @click="showQRCode(userEntryForm.USER_ID)"></td>&ndash;&gt;-->
</tr> </tr>
</table> </table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -423,6 +414,7 @@ export default {
this.form.USER_COUNT = this.pd.USER_COUNT this.form.USER_COUNT = this.pd.USER_COUNT
this.form.type = '2' this.form.type = '2'
this.form.USER_ID = row.USER_ID this.form.USER_ID = row.USER_ID
this.form.STEP_STATUS = row.STEP_STATUS
this.dialogVisible = true this.dialogVisible = true
}, },
// //
@ -438,7 +430,6 @@ export default {
return return
} }
} }
requestFN( requestFN(
'/flowTrain/approveUser', { ...this.form } '/flowTrain/approveUser', { ...this.form }
).then((data) => { ).then((data) => {
@ -524,6 +515,11 @@ export default {
!(row.SUPERVISION_STATE === 0 || row.MANAGER_STATE === 0 || row.TERRITORIALITY_STATE === 0)) { !(row.SUPERVISION_STATE === 0 || row.MANAGER_STATE === 0 || row.TERRITORIALITY_STATE === 0)) {
return '评审中' return '评审中'
} }
},
tableRowClassName({ row, rowIndex }) {
if (row.STEP_STATUS === '3') {
return 'warning-row'
}
} }
} }
} }