Merge remote-tracking branch 'origin/1212-八项作业迁移' into 1212-八项作业迁移
commit
b616481ccb
|
|
@ -84,7 +84,11 @@
|
||||||
{{ translate(row.STATE.toString(), statusList) }}
|
{{ translate(row.STATE.toString(), statusList) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="examineUserName" label="审核人" />
|
<el-table-column prop="examineUserName" label="审核人" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
{{ row.examineUserName || row.examineDeptName }}
|
||||||
|
</template>
|
||||||
|
</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 :disabled="row.STATE !='11'" type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID,'apply')">申请</el-button>-->
|
<!-- <el-button :disabled="row.STATE !='11'" type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID,'apply')">申请</el-button>-->
|
||||||
|
|
@ -178,7 +182,7 @@ export default {
|
||||||
{ id: '35', name: '(港股)安全监督部门待初审' },
|
{ id: '35', name: '(港股)安全监督部门待初审' },
|
||||||
{ id: '36', name: '安委会办公室待审批' },
|
{ id: '36', name: '安委会办公室待审批' },
|
||||||
{ id: '37', name: '安全总监待审批' },
|
{ id: '37', name: '安全总监待审批' },
|
||||||
{ id: '10', name: '延时动火' },
|
{ id: '10', name: '延时监火' },
|
||||||
{ id: '11', name: '归档' },
|
{ id: '11', name: '归档' },
|
||||||
{ id: '-1', name: '审核不通过' },
|
{ id: '-1', name: '审核不通过' },
|
||||||
{ id: '-2', name: '特级不通过' },
|
{ id: '-2', name: '特级不通过' },
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="相关方安全告知培训合格证" width="370px" destroy-on-close >
|
||||||
|
<vue-qr :text="qrCodeStr" :margin="0" :size="320" color-dark="#000" color-light="#fff"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
qrCodeStr: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.qrCodeStr = e.qrCodeStr
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,320 @@
|
||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:before-close="handleClose"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="培训申请"
|
||||||
|
width="60%">
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="TERRITORIALITY"
|
||||||
|
label="集团单位 "
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="jituanDanweiTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.TERRITORIALITY"
|
||||||
|
placeholder="请选择集团单位 "
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getUserList($event)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="TERRITORIALITY_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.TERRITORIALITY_USER_ID">
|
||||||
|
<el-option
|
||||||
|
v-for="item in companyUserList"
|
||||||
|
:key="item.USER_ID"
|
||||||
|
:label="item.NAME"
|
||||||
|
:value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="MANAGER"
|
||||||
|
label="主管部门"
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="treeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.MANAGER"
|
||||||
|
:disabled="true"
|
||||||
|
placeholder="请选择主管部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getmanagerUserList($event)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="MANAGER_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.MANAGER_USER_ID">
|
||||||
|
<el-option
|
||||||
|
v-for="item in managercompanyUserList"
|
||||||
|
:key="item.USER_ID"
|
||||||
|
:label="item.NAME"
|
||||||
|
:value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="SUPERVISION"
|
||||||
|
label="安监部门"
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="treeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.SUPERVISION"
|
||||||
|
:disabled="true"
|
||||||
|
placeholder="请选择安监部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="SUPERVISION_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.SUPERVISION_USER_ID">
|
||||||
|
<el-option v-for="item in userList" :key="item.USER_ID" :label="item.NAME" :value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="备注">
|
||||||
|
<el-input :rows="3" v-model="form.DESCR" type="textarea" placeholder="这里输入备注..."/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">取 消</el-button>
|
||||||
|
<el-button :loading="loading" type="primary" @click="save">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Treeselect
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
corpInfo: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
treeData: [],
|
||||||
|
companyTreeData: [],
|
||||||
|
corpinfo: {},
|
||||||
|
userList: [],
|
||||||
|
companyUserList: [],
|
||||||
|
managercompanyUserList: [],
|
||||||
|
jituanDanwei: '',
|
||||||
|
jituanDanweiTreeData: [],
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
form: {},
|
||||||
|
rules: {
|
||||||
|
// SUPERVISION: [{ required: true, message: '安监部门不能为空', trigger: 'blur' }],
|
||||||
|
SUPERVISION_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }],
|
||||||
|
MANAGER: [{ required: true, message: '主管部门不能为空', trigger: 'blur' }],
|
||||||
|
MANAGER_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }],
|
||||||
|
TERRITORIALITY: [{ required: true, message: '属地管理部门不能为空', trigger: 'blur' }],
|
||||||
|
TERRITORIALITY_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async init(e) {
|
||||||
|
if (e) {
|
||||||
|
this.users = e
|
||||||
|
}
|
||||||
|
this.visible = true
|
||||||
|
this.loading = false
|
||||||
|
this.form = {}
|
||||||
|
/**
|
||||||
|
* 获取相关方的 集团单位 corpinfo/getDataForEditByCorpInfoId
|
||||||
|
* 根据集团单位 找到 对应的 企业id
|
||||||
|
*/
|
||||||
|
await this.getCorpinfo()
|
||||||
|
},
|
||||||
|
getCorpinfo() {
|
||||||
|
requestFN(
|
||||||
|
'/corpinfo/getDataForEditByCorpInfoId',
|
||||||
|
{
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.corpinfo = data.pd
|
||||||
|
// 河港机械 jtdw002 1e6dbbe16004402f8d2c0e52afd9a676
|
||||||
|
// 河港港工 jtdw003 3a854eefa7894e06aaa1a2611bca80f6
|
||||||
|
// 河港检测 jtdw004 020578a4c1f04bc692ee25145c2efbe5
|
||||||
|
// 方宇物业 jtdw005 90966974de3c4b83aca6f8fd6432d5c2
|
||||||
|
|
||||||
|
if (data.pd.CORP_TYPE == 'jtdw002') {
|
||||||
|
this.jituanDanwei = '1e6dbbe16004402f8d2c0e52afd9a676'
|
||||||
|
}
|
||||||
|
if (data.pd.CORP_TYPE == 'jtdw003') {
|
||||||
|
this.jituanDanwei = '3a854eefa7894e06aaa1a2611bca80f6'
|
||||||
|
}
|
||||||
|
if (data.pd.CORP_TYPE == 'jtdw004') {
|
||||||
|
this.jituanDanwei = '020578a4c1f04bc692ee25145c2efbe5'
|
||||||
|
}
|
||||||
|
if (data.pd.CORP_TYPE == 'jtdw005') {
|
||||||
|
this.jituanDanwei = '90966974de3c4b83aca6f8fd6432d5c2'
|
||||||
|
}
|
||||||
|
this.getTreeData()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 获得部门树
|
||||||
|
getTreeData() {
|
||||||
|
requestFN(
|
||||||
|
'/regulatoryApi/department/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeData = JSON.parse(data.zTreeNodes)
|
||||||
|
// 必须指定【股份-安全监督部】
|
||||||
|
this.form.SUPERVISION = 'c31058273a2d40f9b83dd8e5ae3a723c'
|
||||||
|
this.form.MANAGER = this.corpinfo.MAIN_DEPARTMENT
|
||||||
|
this.getRegulatoryUserList(this.form.SUPERVISION)
|
||||||
|
this.getmanagerUserList(this.corpinfo.MAIN_DEPARTMENT)
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
|
||||||
|
if (this.jituanDanwei) {
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: this.jituanDanwei }
|
||||||
|
).then((data) => {
|
||||||
|
this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getRegulatoryUserList(DEPARTMENT_ID) {
|
||||||
|
requestFN(
|
||||||
|
'/regulatoryApi/user/listAll',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID,
|
||||||
|
ISASSESS: '1'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userList = data.userList
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 人员
|
||||||
|
getUserList({ id: DEPARTMENT_ID }) {
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/user/listAll',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.companyUserList = data.userList
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getmanagerUserList(DEPARTMENT_ID) {
|
||||||
|
requestFN(
|
||||||
|
'/regulatoryApi/user/listAll',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.managercompanyUserList = data.userList
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
save() {
|
||||||
|
this.$refs.form.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
this.loading = true
|
||||||
|
this.form.USER_COUNT = this.users.length
|
||||||
|
this.form.AUDIT_STATUS = 0
|
||||||
|
this.form.TYPE = 2
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/add',
|
||||||
|
{
|
||||||
|
...this.form,
|
||||||
|
users: this.users.join(',')
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
this.$message({
|
||||||
|
message: '申请成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
this.handleClose()
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('finish', '')
|
||||||
|
},
|
||||||
|
closeWindow() {
|
||||||
|
this.handleClose()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,240 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form label-width="130px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label="用户名">
|
||||||
|
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col v-if="false" :span="6">
|
||||||
|
<el-form-item label="培训状态">
|
||||||
|
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" 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="6">
|
||||||
|
<el-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="varList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column :selectable="handleSelectWithDifferentStatus" type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
||||||
|
<el-table-column prop="NAME" label="姓名" align="center"/>
|
||||||
|
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/>
|
||||||
|
<el-table-column label="操作" align="center" width="250">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">详情</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])">审批</el-button>
|
||||||
|
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)">电子合格证</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div>
|
||||||
|
<el-button v-if="false" type="primary" icon="el-icon-plus" @click="handleAdd">批量同意</el-button>
|
||||||
|
</div>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||||
|
</div>
|
||||||
|
<user ref="userInfo" append-to-body/>
|
||||||
|
<user-info ref="userInfos" append-to-body/>
|
||||||
|
<send-util ref="sendUtil" append-to-body @refresh="getList"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import apply from './apply'
|
||||||
|
import user from './user.vue'
|
||||||
|
import SendUtil from './sendUtil.vue'
|
||||||
|
import UserInfo from './userInfo.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { UserInfo, SendUtil, Pagination, apply, vueQr, user },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
QRCodeDialog: false,
|
||||||
|
qrcodeStr: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
specialUsersList: {},
|
||||||
|
detailForm: {},
|
||||||
|
userEntryForm: {},
|
||||||
|
imgUrl: '',
|
||||||
|
SUPERVISE_CORPINFO_ID: '',
|
||||||
|
wenhuachengduList: [], // 文化程度
|
||||||
|
postList: [], // 岗位名称
|
||||||
|
photosOfLevel: [], // 三级教育照片
|
||||||
|
trainRecordList: [], // 培训记录
|
||||||
|
contractFileList: [], // 合同文件
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
gongshangbaoxianFile: [],
|
||||||
|
userPhotoFile: [], // 头像
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
socialPhotoFile: [], // 身份证照片
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
varList: [],
|
||||||
|
KEYWORDS: '',
|
||||||
|
statusList: [{ value: 0, label: '未培训' }, { value: 1, label: '培训中' }, {
|
||||||
|
value: 2,
|
||||||
|
label: '已培训(合格)'
|
||||||
|
}, { value: 3, label: '已培训(不合格)' }, { value: 9, label: '申请中' }],
|
||||||
|
STATUS: '',
|
||||||
|
add: false, // 新增按钮
|
||||||
|
del: false, // 删除按钮
|
||||||
|
edit: false // 修改按钮
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDict()
|
||||||
|
this.getList()
|
||||||
|
this.hasButton()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleSelectWithDifferentStatus(row, rowIndex) {
|
||||||
|
if (row.STATUS === 0) {
|
||||||
|
// 不禁用
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
// 禁用
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getQuery() {
|
||||||
|
if (this.$refs.multipleTable) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.listQuery = {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
goKeyReset() {
|
||||||
|
this.KEYWORDS = ''
|
||||||
|
this.STATUS = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.listLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/userList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
STATUS: '1',
|
||||||
|
EMPLOY_FLAG: '1'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleShow(row) {
|
||||||
|
this.$refs.userInfos.init(row)
|
||||||
|
},
|
||||||
|
approve(row) {
|
||||||
|
this.$refs.sendUtil.init(row)
|
||||||
|
},
|
||||||
|
getUserInfo(row) {
|
||||||
|
this.$refs.userInfo.init(row)
|
||||||
|
},
|
||||||
|
handleAdd() {
|
||||||
|
const _selectData = this.$refs.multipleTable.selection
|
||||||
|
if (_selectData == null || _selectData.length == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '未勾选培训人员...',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
var users = []
|
||||||
|
_selectData.map(item => {
|
||||||
|
if (item.STATUS === 0) {
|
||||||
|
users.push(item.USER_ID)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if (users == null || users.length == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '勾选人员暂无法提交申请...',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
this.$refs.apply.init(users)
|
||||||
|
},
|
||||||
|
hasButton() {
|
||||||
|
var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel'
|
||||||
|
requestFN(
|
||||||
|
'/head/hasButton',
|
||||||
|
{
|
||||||
|
keys: keys, tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
if (data.result == 'success') {
|
||||||
|
this.add = data.trainingbatchfhadminadd // 增
|
||||||
|
this.del = data.trainingbatchfhadmindel // 删
|
||||||
|
this.edit = data.trainingbatchfhadminedit // 改
|
||||||
|
this.fromExcel = data.fromExcel // 从excel导入权限
|
||||||
|
this.toExcel = data.toExcel // 导出到excel权限
|
||||||
|
} else if (data.result == 'exception') {
|
||||||
|
// showException('按钮权限', data.exception)// 显示异常
|
||||||
|
console.info('按钮权限:', data.exception)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getDict: function() {
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
|
||||||
|
).then((data) => {
|
||||||
|
this.wenhuachengduList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
|
||||||
|
).then((data) => {
|
||||||
|
this.postList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="头像" width="370px" destroy-on-close >
|
||||||
|
<el-image :src="src"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
src: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.src = e.src
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,198 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-page-header content="申请记录" @back="goBack"/>
|
||||||
|
<el-form label-width="130px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="申请人员">
|
||||||
|
<el-input v-model="KEYWORDS" placeholder="请输入申请人员"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<Treeselect
|
||||||
|
:options="companyTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="MANAGER"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="属地管理部门">
|
||||||
|
<Treeselect
|
||||||
|
:options="companyTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="TERRITORIALITY"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="申请状态">
|
||||||
|
<el-select v-model="AUDIT_STATUS" placeholder="请选择申请状态" style="width: 100%;">
|
||||||
|
<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-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="CREATTIME" label="申请时间" align="center" />
|
||||||
|
<el-table-column prop="CREATOR" label="申请人员" align="center" />
|
||||||
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安监部门" align="center" />
|
||||||
|
<el-table-column prop="MANAGER_DEPT_NAME" label="主管部门" align="center" />
|
||||||
|
<el-table-column prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" align="center" />
|
||||||
|
<el-table-column prop="TRAIN_DATE" label="申请年份" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
{{ new Date(row.CREATTIME).getFullYear() }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="AUDIT_STATUS" label="申请状态" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.AUDIT_STATUS === 0">待审核</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 1">审核中</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 2">待培训</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 3">已完成</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="PASS_COUNT" label="审核通过人数" align="center" /> <!-- 已更新为申请状态中的审核通过人员数-->
|
||||||
|
<el-table-column prop="USER_COUNT" label="申请人数" align="center" />
|
||||||
|
<el-table-column label="操作" align="center" width="200">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<users ref="users"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
import users from './users'
|
||||||
|
export default {
|
||||||
|
components: { Pagination, Treeselect, users },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
varList: [],
|
||||||
|
treeData: [],
|
||||||
|
companyTreeData: [],
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
MANAGER: null,
|
||||||
|
TERRITORIALITY: null,
|
||||||
|
statusList: [{ value: 0, label: '待审核' }, { value: 1, label: '审核中' }, { value: 2, label: '待培训' }, { value: 3, label: '已完成' }],
|
||||||
|
AUDIT_STATUS: '',
|
||||||
|
KEYWORDS: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
this.getTreeData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getQuery() {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.listQuery = {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
goKeyReset() {
|
||||||
|
this.MANAGER = null
|
||||||
|
this.TERRITORIALITY = null
|
||||||
|
this.AUDIT_STATUS = ''
|
||||||
|
this.KEYWORDS = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.listLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
MANAGER: this.MANAGER,
|
||||||
|
TERRITORIALITY: this.TERRITORIALITY,
|
||||||
|
AUDIT_STATUS: this.AUDIT_STATUS,
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
TYPE: 2,
|
||||||
|
USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
console.log(this.varList)
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得部门树
|
||||||
|
getTreeData() {
|
||||||
|
requestFN(
|
||||||
|
'/regulatoryApi/department/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: this.$parent.SUPERVISE_CORPINFO_ID }
|
||||||
|
).then((data) => {
|
||||||
|
this.companyTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
handleShow(row) {
|
||||||
|
this.$refs.users.init(row)
|
||||||
|
},
|
||||||
|
goBack() {
|
||||||
|
this.$parent.activeName = 'List'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,71 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="审批" width="370px" destroy-on-close>
|
||||||
|
<el-form>
|
||||||
|
<el-form-item prop="TERRITORIALITY" label="是否通过 ">
|
||||||
|
<el-select v-model="value" placeholder="请选择">
|
||||||
|
<el-option label="是" value="1"/>
|
||||||
|
<el-option label="否" value="0"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">关 闭</el-button>
|
||||||
|
<el-button type="primary" @click="sendMessage()">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { Treeselect, vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
value: null,
|
||||||
|
heirloom: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.heirloom = JSON.stringify(e)
|
||||||
|
},
|
||||||
|
beforeClose() {
|
||||||
|
},
|
||||||
|
sendMessage(row) {
|
||||||
|
if (!this.value || this.value === '') {
|
||||||
|
this.$message.error('请选择是否通过')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
requestFN(
|
||||||
|
'/xgf/user/approve',
|
||||||
|
{
|
||||||
|
list: this.heirloom,
|
||||||
|
STATUS: this.value,
|
||||||
|
tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.$message.success('推送成功')
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refresh', '')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,250 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="相关方安全告知培训合格证" width="370px">
|
||||||
|
<div v-for="item in peopleList" :key="item.CLASS_INFO_ID" style="height: 220px">
|
||||||
|
<div class="bg_table">
|
||||||
|
<div class="title">相关方安全告知培训合格证</div>
|
||||||
|
<div class="red">{{ item.CLASS_NO }}</div>
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 120px">
|
||||||
|
<div class="text textone name">姓名</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 100px;">
|
||||||
|
<div class="text text1 tcenter">{{ item.NAME }}</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 86px">
|
||||||
|
<div class="text text2 tcenter">工种</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 148px;">
|
||||||
|
<div v-if="item.JOBS_TYPE" class="text tcenter ">{{ item.JOBS_TYPE }}</div>
|
||||||
|
<div v-else>暂无</div>
|
||||||
|
</td>
|
||||||
|
<td rowspan="4" style="width: 134px;">
|
||||||
|
<img v-if="!getShowPicture(item)" src="../../../../assets/images/peopleHead.png" alt="" style="width: 116px; height: 146px">
|
||||||
|
<img v-if="getShowPicture(item)" :src="config.fileUrl + item.PHOTO" alt="" style="width: 116px; height: 146px" @click="openPicture(config.fileUrl + item.PHOTO)">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">资质</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div v-if="item.CERTIFICATE" class="text">{{ item.CERTIFICATE }}</div>
|
||||||
|
<div v-else>暂无</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">培训时间</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.OPENING_TIME }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">有效期限</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.VALIDITY_PERIOD_END }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">所在单位</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.DEPARTMENT_NAME }}</div>
|
||||||
|
</td>
|
||||||
|
<td rowspan="3" style="padding-top: 6px" @click="click(config.messageUrl + '?CLASS_INFO_ID=' + item.CLASS_INFO_ID)">
|
||||||
|
<vue-qr :text="config.messageUrl + '?CLASS_INFO_ID=' + item.CLASS_INFO_ID" :margin="0" :size="110" color-dark="#000" color-light="#fff"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">身份证号</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.CARD_ID }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">手机</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.PHONE }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<QRCode ref="QRcode" append-to-body/>
|
||||||
|
<Picture ref="Picture" append-to-body/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import QRCode from './QRCode.vue'
|
||||||
|
import Picture from './picture.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { QRCode, Picture, vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
visible: false,
|
||||||
|
peopleList: [],
|
||||||
|
CLASS_MESSAGE_ID: '',
|
||||||
|
CLASS_INFO_ID: '',
|
||||||
|
USER_ID: '',
|
||||||
|
qrCodeStr: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
console.info(e)
|
||||||
|
if (e && e.CLASS_INFO_ID) {
|
||||||
|
this.CLASS_INFO_ID = e.CLASS_INFO_ID
|
||||||
|
}
|
||||||
|
if (e && e.CLASS_MESSAGE_ID) {
|
||||||
|
this.CLASS_MESSAGE_ID = e.CLASS_MESSAGE_ID
|
||||||
|
}
|
||||||
|
if (e && e.USER_ID) {
|
||||||
|
this.USER_ID = e.USER_ID
|
||||||
|
}
|
||||||
|
this.qrCodeStr = config.messageUrl + '?CLASS_INFO_ID=' + this.CLASS_INFO_ID
|
||||||
|
this.visible = true
|
||||||
|
this.getInfo()
|
||||||
|
},
|
||||||
|
getInfo() {
|
||||||
|
requestFN('/trainusers/getUserinfoList', {
|
||||||
|
CLASS_INFO_ID: this.CLASS_INFO_ID,
|
||||||
|
CLASS_MESSAGE_ID: this.CLASS_MESSAGE_ID,
|
||||||
|
USER_ID: this.USER_ID
|
||||||
|
})
|
||||||
|
.then((data) => {
|
||||||
|
this.peopleList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShowPicture(row) {
|
||||||
|
if (row.PHOTO && row.PHOTO !== '' && (row.PHOTO.indexOf('.jpg') >= 0 || row.PHOTO.indexOf('.png') >= 0 || row.PHOTO.indexOf('.jpeg') >= 0)) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
click(e) {
|
||||||
|
this.$refs.QRcode.init({ qrCodeStr: e })
|
||||||
|
},
|
||||||
|
openPicture(src) {
|
||||||
|
this.$refs.Picture.init({ src: src })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.name{
|
||||||
|
width: 120px;
|
||||||
|
overflow: hidden;//溢出隐藏
|
||||||
|
white-space: nowrap; // 强制一行显示
|
||||||
|
text-overflow: ellipsis;// 显示。。。省略号
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
width: 660px;
|
||||||
|
color: #ff0000;
|
||||||
|
margin-left: 34px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg_table {
|
||||||
|
background: url("../../../../assets/tablebg.jpg") no-repeat bottom center;
|
||||||
|
background-size: 100%;
|
||||||
|
width: 660px;
|
||||||
|
height: 430px;
|
||||||
|
border: 4px solid #453d3a;
|
||||||
|
transform: scale(0.5);
|
||||||
|
transform-origin: top left;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28px;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 34px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 590px;
|
||||||
|
color: #453d3a;
|
||||||
|
font-size: 20px;
|
||||||
|
margin: 34px;
|
||||||
|
text-align: left;
|
||||||
|
margin-top: 10px;
|
||||||
|
|
||||||
|
.tcenter {
|
||||||
|
text-align: center
|
||||||
|
}
|
||||||
|
|
||||||
|
.w60 {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w74 {
|
||||||
|
width: 148px
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
border: 2px solid #453d3a;
|
||||||
|
text-align: left;
|
||||||
|
height: 40px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.textone {
|
||||||
|
width: 80px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text1 {
|
||||||
|
width: 60px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text2 {
|
||||||
|
width: 50px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,409 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog
|
||||||
|
v-loading="loading"
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="查看"
|
||||||
|
width="80%">
|
||||||
|
<div class="information">
|
||||||
|
<el-scrollbar style="height: 550px;margin-bottom: 10px">
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<tr>
|
||||||
|
<th>照片</th>
|
||||||
|
<td>
|
||||||
|
<span v-if="imgUrl != ''">
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-else/>
|
||||||
|
</td>
|
||||||
|
<th>姓名</th>
|
||||||
|
<td>{{ userDetailForm.NAME }}</td>
|
||||||
|
<th>性别</th>
|
||||||
|
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>出生年月</th>
|
||||||
|
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
||||||
|
<th>年龄</th>
|
||||||
|
<td>{{ userDetailForm.AGE }}</td>
|
||||||
|
<th>手机号</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>身份证</th>
|
||||||
|
<td>{{ userDetailForm.CARD_ID }}</td>
|
||||||
|
<th>身份证照片</th>
|
||||||
|
<!--if条件不可删除-->
|
||||||
|
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in userCardIDPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>民族</th>
|
||||||
|
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
||||||
|
<th>婚姻状况</th>
|
||||||
|
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
||||||
|
<th>政治面貌</th>
|
||||||
|
<td>{{ userDetailForm.zzName }} {{
|
||||||
|
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
||||||
|
}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>户口所在地</th>
|
||||||
|
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
||||||
|
<th>现住址</th>
|
||||||
|
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
||||||
|
<th>联系电话</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>文化程度</th>
|
||||||
|
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
||||||
|
<th>岗位名称(工种)</th>
|
||||||
|
<td colspan="5">{{ userDetailForm.POST_ID }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳社保</th>
|
||||||
|
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in socialPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否参加三级安全培训</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="5">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in photosOfLevel"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳保险</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_BF) }}</td>
|
||||||
|
<th>是否特殊工种</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
||||||
|
<th>是否流动人员</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>培训记录</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="trainRecordList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="CLASS_NAME" label="班级名称" align="center"/>
|
||||||
|
<el-table-column prop="OPENING_TIME" label="开班时间" align="center"/>
|
||||||
|
<el-table-column prop="TRAINING_TYPE_NAME" label="培训类型" align="center"/>
|
||||||
|
<el-table-column prop="PLACE_NAME" label="培训地点" align="center"/>
|
||||||
|
<el-table-column label="培训有效期" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ formatDate(row.VALIDITY_PERIOD_START) }} 至 {{ formatDate(row.VALIDITY_PERIOD_END) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
||||||
|
<h1>特种作业人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 150px">证书名称</th>
|
||||||
|
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
||||||
|
<th style="width: 150px">作业类别</th>
|
||||||
|
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
||||||
|
<th style="width: 150px">操作项目</th>
|
||||||
|
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>特种作业证书编号</th>
|
||||||
|
<td>{{ item.SPECIAL_NUMBER }}</td>
|
||||||
|
<th>发证机关</th>
|
||||||
|
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>复审时间</th>
|
||||||
|
<td>{{ item.REVIEW_TIME }}</td>
|
||||||
|
<th>有效期</th>
|
||||||
|
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div v-if="applyList.length > 0" class="level-title mt-20">
|
||||||
|
<h1>申请信息</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
v-if="applyList.length > 0"
|
||||||
|
:data="applyList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="expand">
|
||||||
|
<template slot-scope="props">
|
||||||
|
<el-row>
|
||||||
|
<el-form label-position="left" inline class="demo-table-expand">
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="属地管理部门">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="审批人">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="审批结果">
|
||||||
|
<span v-if="props.row.TERRITORIALITY_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.TERRITORIALITY_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item v-if="false" label="审批意见">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<span>{{ props.row.MANAGER_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span>{{ props.row.MANAGER_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span v-if="props.row.MANAGER_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.MANAGER_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item label="审批意见">
|
||||||
|
<span>{{ props.row.MANAGER_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<span>{{ props.row.SUPERVISION_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span>{{ props.row.SUPERVISION_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span v-if="props.row.SUPERVISION_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.SUPERVISION_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item label="审批意见">
|
||||||
|
<span>{{ props.row.SUPERVISION_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
</el-row>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" align="center"/>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.TERRITORIALITY_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.TERRITORIALITY_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="MANAGER_DEPARTMENT_NAME" label="主管部门" align="center"/>
|
||||||
|
<el-table-column prop="MANAGER_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column prop="MANAGER_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.MANAGER_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.MANAGER_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安全监督部门" align="center"/>
|
||||||
|
<el-table-column prop="SUPERVISION_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column prop="SUPERVISION_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.SUPERVISION_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.SUPERVISION_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">取 消</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
imgUrl: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
trainRecordList: [],
|
||||||
|
photosOfLevel: [], // 三级教育照片
|
||||||
|
specialUsersList: {},
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
contractFileList: [],
|
||||||
|
socialPhotoFile: [],
|
||||||
|
gongshangbaoxianFile: [],
|
||||||
|
applyList: [],
|
||||||
|
loading: false,
|
||||||
|
heirloom: {},
|
||||||
|
config: config
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.heirloom = JSON.parse(JSON.stringify(e))
|
||||||
|
this.getUserInfoById(this.heirloom)
|
||||||
|
},
|
||||||
|
formatDate(date, column) {
|
||||||
|
if (date) {
|
||||||
|
return dateformat(date, 'YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getUserInfoById(row) {
|
||||||
|
this.loading = true
|
||||||
|
requestFN(
|
||||||
|
'/xgf/user/getInfo',
|
||||||
|
{
|
||||||
|
XGF_USER_ID: row.XGF_USER_ID,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
Object.assign(this.userDetailForm, data.info)
|
||||||
|
const picture = data.img
|
||||||
|
this.userPhotoFile = picture.userPhotoFile
|
||||||
|
if (this.userPhotoFile.length > 0) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
|
}
|
||||||
|
this.photosOfLevel = picture.photosOfLevel
|
||||||
|
this.specialUsersList = picture.specialUsers
|
||||||
|
this.insuranceFileList = picture.insuranceFile
|
||||||
|
this.contractFileList = picture.contractFile
|
||||||
|
this.userCardIDPhotoFile = picture.userCardIDPhotoFile
|
||||||
|
this.socialPhotoFile = picture.socialPhotoFile
|
||||||
|
this.gongshangbaoxianFile = picture.gongshangbaoxianFile
|
||||||
|
if (row.STATUS === '2') {
|
||||||
|
this.qrCodeStr = config.messageUrl + '?USER_ID=' + row.USER_ID
|
||||||
|
} else {
|
||||||
|
this.qrCodeStr = ''
|
||||||
|
}
|
||||||
|
this.trainRecordList = data.trainRecordList
|
||||||
|
this.applyList = data.applyList
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
formatLabel(value) {
|
||||||
|
if (value == '1') {
|
||||||
|
return '是'
|
||||||
|
} else if (value == '0') {
|
||||||
|
return '否'
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.information >>> .el-scrollbar__wrap {
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,513 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:before-close="handleClose"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="申请详情"
|
||||||
|
width="60%">
|
||||||
|
<div class="level-title mt-20" style="display: flex;justify-content: space-between;">
|
||||||
|
<h1>申请信息</h1>
|
||||||
|
</div>
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 17%">申请人</th>
|
||||||
|
<td style="width: 17%">{{ pd.CREATOR }}</td>
|
||||||
|
<th style="width: 17%">申请时间</th>
|
||||||
|
<td style="width: 17%">{{ pd.CREATTIME }}</td>
|
||||||
|
<th style="width: 17%">备注</th>
|
||||||
|
<td style="width: 15%">{{ pd.DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 30px">安监部门</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_DEPARTMENT_NAME }}</td>
|
||||||
|
<th style="width: 30px">审核人</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_USER_NAME }}</td>
|
||||||
|
<th style="width: 30px">审核时间</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>主管部门</th>
|
||||||
|
<td>{{ pd.MANAGER_DEPT_NAME }}</td>
|
||||||
|
<th>审核人</th>
|
||||||
|
<td>{{ pd.MANAGER_USER_NAME }}</td>
|
||||||
|
<th>审核时间</th>
|
||||||
|
<td>{{ pd.MANAGER_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>属地管理部门</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_DEPARTMENT_NAME }}</td>
|
||||||
|
<th>审核人</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_USER_NAME }}</td>
|
||||||
|
<th>审核时间</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr v-if="pd.AUDIT_DESCR">
|
||||||
|
<th>股份公司意见</th>
|
||||||
|
<td colspan="5">{{ pd.AUDIT_DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr v-if="pd.CORP_AUDIT_DESCR">
|
||||||
|
<th>分公司意见</th>
|
||||||
|
<td colspan="5">{{ pd.CORP_AUDIT_DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>申请人员列表</h1>
|
||||||
|
</div>
|
||||||
|
<el-table ref="multipleTable" :data="userList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="USERNAME" label="用户名" align="center" />
|
||||||
|
<el-table-column prop="NAME" label="姓名" align="center" />
|
||||||
|
<el-table-column prop="DEPARTMENT_NAME" label="部门" align="center" />
|
||||||
|
<el-table-column prop="STATE" label="审核状态" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-tag v-if="row.MANAGER_STATE === 0 || row.SUPERVISION_STATE === 0 || row.TERRITORIALITY_STATE === 0" type="danger">审核不通过</el-tag>
|
||||||
|
<el-tag v-else-if="row.MANAGER_STATE === 1 && row.SUPERVISION_STATE === 1 && row.TERRITORIALITY_STATE === 1" type="success">审核通过</el-tag>
|
||||||
|
<el-tag v-else type="success">待审核</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="200" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.USER_ID)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getUserList" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog
|
||||||
|
v-if="userInfoDialog"
|
||||||
|
:visible.sync="userInfoDialog"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="查看"
|
||||||
|
width="60%">
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<tr>
|
||||||
|
<th>照片</th>
|
||||||
|
<td>
|
||||||
|
<span v-if="imgUrl != ''">
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-else/>
|
||||||
|
</td>
|
||||||
|
<th>姓名</th>
|
||||||
|
<td>{{ userDetailForm.NAME }}</td>
|
||||||
|
<th>性别</th>
|
||||||
|
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>出生年月</th>
|
||||||
|
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
||||||
|
<th>年龄</th>
|
||||||
|
<td>{{ userDetailForm.AGE }}</td>
|
||||||
|
<th>手机号</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>身份证</th>
|
||||||
|
<td>{{ userDetailForm.CARD_ID }}</td>
|
||||||
|
<th>身份证照片</th>
|
||||||
|
<!--if条件不可删除-->
|
||||||
|
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in userCardIDPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>民族</th>
|
||||||
|
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
||||||
|
<th>婚姻状况</th>
|
||||||
|
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
||||||
|
<th>政治面貌</th>
|
||||||
|
<td>{{ userDetailForm.zzName }} {{
|
||||||
|
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
||||||
|
}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>户口所在地</th>
|
||||||
|
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
||||||
|
<th>现住址</th>
|
||||||
|
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
||||||
|
<th>联系电话</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>文化程度</th>
|
||||||
|
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
||||||
|
<th>岗位名称(工种)</th>
|
||||||
|
<td colspan="5">{{ userDetailForm.POST_ID }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳社保</th>
|
||||||
|
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in socialPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否参加三级安全培训</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="5">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in photosOfLevel"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳保险</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_BF) }}</td>
|
||||||
|
<th>是否特殊工种</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
||||||
|
<th>是否流动人员</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>培训记录</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="trainRecordList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="CLASS_NAME" label="班级名称" align="center"/>
|
||||||
|
<el-table-column prop="OPENING_TIME" label="开班时间" align="center"/>
|
||||||
|
<el-table-column prop="TRAINING_TYPE_NAME" label="培训类型" align="center"/>
|
||||||
|
<el-table-column prop="PLACE_NAME" label="培训地点" align="center"/>
|
||||||
|
<el-table-column label="培训有效期" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ formatDate(row.VALIDITY_PERIOD_START) }} 至 {{ formatDate(row.VALIDITY_PERIOD_END) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
||||||
|
<h1>特种作业人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 150px">证书名称</th>
|
||||||
|
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
||||||
|
<th style="width: 150px">作业类别</th>
|
||||||
|
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
||||||
|
<th style="width: 150px">操作项目</th>
|
||||||
|
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>特种作业证书编号</th>
|
||||||
|
<td>{{ item.SPECIAL_NUMBER }}</td>
|
||||||
|
<th>发证机关</th>
|
||||||
|
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>复审时间</th>
|
||||||
|
<td>{{ item.REVIEW_TIME }}</td>
|
||||||
|
<th>有效期</th>
|
||||||
|
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div
|
||||||
|
v-if="detailForm.SUPERVISION_STATE === 0 || detailForm.MANAGER_STATE === 0 || detailForm.TERRITORIALITY_STATE === 0"
|
||||||
|
class="level-title mt-20">
|
||||||
|
<h1>打回信息</h1>
|
||||||
|
</div>
|
||||||
|
<table
|
||||||
|
v-if="detailForm.SUPERVISION_STATE === 0 || detailForm.MANAGER_STATE === 0 || detailForm.TERRITORIALITY_STATE === 0"
|
||||||
|
class="table-ui"
|
||||||
|
style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th>打回人</th>
|
||||||
|
<td v-if="detailForm.SUPERVISION_STATE === 0">{{ detailForm.SUPERVISION_USER_NAME }}</td>
|
||||||
|
<td v-if="detailForm.MANAGER_STATE === 0">{{ detailForm.MANAGER_USER_NAME }}</td>
|
||||||
|
<td
|
||||||
|
v-if="detailForm.TERRITORIALITY_STATE === 0 && detailForm.MANAGER_USER_NAME !== detailForm.TERRITORIALITY_USER_NAME">
|
||||||
|
{{ detailForm.TERRITORIALITY_USER_NAME }}
|
||||||
|
</td>
|
||||||
|
<th>打回原由</th>
|
||||||
|
<td v-if="detailForm.SUPERVISION_STATE === 0">{{ detailForm.SUPERVISION_OPINION }}</td>
|
||||||
|
<td v-if="detailForm.MANAGER_STATE === 0">{{ detailForm.MANAGER_OPINION }}</td>
|
||||||
|
<td
|
||||||
|
v-if="detailForm.TERRITORIALITY_STATE === 0 && detailForm.MANAGER_USER_NAME !== detailForm.TERRITORIALITY_USER_NAME">
|
||||||
|
{{ detailForm.TERRITORIALITY_OPINION }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="userInfoDialog = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog :visible.sync="QRCodeDialog" title="查看二维码" width="680px" class="top-dialog">
|
||||||
|
<div class="table-qrcode" style="text-align: center;padding-top: 30px;">
|
||||||
|
<vue-qr :text="qrcodeStr" :margin="0" :size="300" color-dark="#000" color-light="#fff" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="QRCodeDialog = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Pagination,
|
||||||
|
vueQr
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
contractFileList: [], // 合同文件
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
userInfoDialog: false,
|
||||||
|
QRCodeDialog: false,
|
||||||
|
qrcodeStr: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
userEntryForm: {},
|
||||||
|
specialUsersList: {},
|
||||||
|
imgUrl: '',
|
||||||
|
wenhuachengduList: [], // 文化程度
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
postList: [], // 岗位名称
|
||||||
|
trainRecordList: [], // 培训记录
|
||||||
|
visible: false,
|
||||||
|
pd: {},
|
||||||
|
userList: [],
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
photosOfLevel: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formatDate(date, column) {
|
||||||
|
if (date) {
|
||||||
|
return dateformat(date, 'YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
init(e) {
|
||||||
|
if (e) {
|
||||||
|
this.pd = e
|
||||||
|
}
|
||||||
|
this.visible = true
|
||||||
|
this.userList = []
|
||||||
|
this.getDict()
|
||||||
|
this.getUserList()
|
||||||
|
},
|
||||||
|
// 获取数据字典数据
|
||||||
|
getDict: function() {
|
||||||
|
requestFN(
|
||||||
|
'/dictionaries/getLevels',
|
||||||
|
{
|
||||||
|
DICTIONARIES_ID: '1144b16d85f14b108ea7859e2be9d001'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.flowAreaList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
|
||||||
|
).then((data) => {
|
||||||
|
this.wenhuachengduList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
|
||||||
|
).then((data) => {
|
||||||
|
this.postList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 人员
|
||||||
|
getUserList() {
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/batchUserList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
TRAININGBATCH_ID: this.pd.TRAININGBATCH_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 二维码
|
||||||
|
showQRCode(id) {
|
||||||
|
this.QRCodeDialog = true
|
||||||
|
const arr = [{ USER_ID: id, CODE_TYPE: '1' }]
|
||||||
|
this.qrcodeStr = JSON.stringify(arr)
|
||||||
|
},
|
||||||
|
// 查看
|
||||||
|
async handleShow(USER_ID) {
|
||||||
|
await this.getUserInfoById(USER_ID)
|
||||||
|
await this.getOtherUserInfoById(USER_ID)
|
||||||
|
this.userInfoDialog = true
|
||||||
|
},
|
||||||
|
getUserInfoById(id) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
requestFN(
|
||||||
|
'/user/getFloatPersonDetailById',
|
||||||
|
{
|
||||||
|
USER_ID: id,
|
||||||
|
TRAININGBATCH_ID: this.pd.TRAININGBATCH_ID,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
||||||
|
this.userEntryForm = Object.assign(this.userEntryForm, data.eCard)
|
||||||
|
if (this.userDetailForm.PHOTO) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userDetailForm.PHOTO
|
||||||
|
}
|
||||||
|
this.trainRecordList = data.recordList
|
||||||
|
// this.insuranceFileList = data.insuranceFile
|
||||||
|
// this.contractFileList = data.contractFile
|
||||||
|
resolve()
|
||||||
|
}).catch((e) => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getOtherUserInfoById(id) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
requestFN(
|
||||||
|
'user/getDetailByUserIdAndCorpInfoId',
|
||||||
|
{
|
||||||
|
USER_ID: id,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
Object.assign(this.userDetailForm, data.pd)
|
||||||
|
this.userPhotoFile = data.userPhotoFile
|
||||||
|
if (this.userPhotoFile.length > 0) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
|
}
|
||||||
|
this.insuranceFileList = data.insuranceFile
|
||||||
|
this.specialUsersList = data.specialUsers
|
||||||
|
this.contractFileList = data.contractFile
|
||||||
|
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
||||||
|
this.socialPhotoFile = data.socialPhotoFile
|
||||||
|
this.gongshangbaoxianFile = data.gongshangbaoxianFile
|
||||||
|
resolve()
|
||||||
|
}).catch((e) => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 转换是否
|
||||||
|
formatLabel(value) {
|
||||||
|
if (value == '1') {
|
||||||
|
return '是'
|
||||||
|
} else if (value == '0') {
|
||||||
|
return '否'
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 转换字典数据
|
||||||
|
formatDictioariesLabel(value, type) {
|
||||||
|
var list = []
|
||||||
|
if (type == '0') {
|
||||||
|
list = this.wenhuachengduList
|
||||||
|
} else if (type == '1') {
|
||||||
|
list = this.postList
|
||||||
|
}
|
||||||
|
if (value) {
|
||||||
|
if (list.length > 0) {
|
||||||
|
var data = ''
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
const obj = list[i]
|
||||||
|
if (value == obj.BIANMA) {
|
||||||
|
data = obj.NAME
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return data
|
||||||
|
} else {
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
handleClose() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
closeWindow() {
|
||||||
|
this.handleClose()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
<template>
|
||||||
|
<component :is="activeName" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import List from './components/list'
|
||||||
|
import Record from './components/record'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
List: List,
|
||||||
|
Record: Record
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
activeName: 'List',
|
||||||
|
SUPERVISE_CORPINFO_ID: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="相关方安全告知培训合格证" width="370px" destroy-on-close >
|
||||||
|
<vue-qr :text="qrCodeStr" :margin="0" :size="320" color-dark="#000" color-light="#fff"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
qrCodeStr: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.qrCodeStr = e.qrCodeStr
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,311 @@
|
||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="培训申请"
|
||||||
|
width="60%">
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
|
<el-row v-if="false">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="TERRITORIALITY"
|
||||||
|
label="集团单位 "
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="jituanDanweiTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.TERRITORIALITY"
|
||||||
|
placeholder="请选择集团单位 "
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getUserList($event)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="TERRITORIALITY_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.TERRITORIALITY_USER_ID">
|
||||||
|
<el-option
|
||||||
|
v-for="item in companyUserList"
|
||||||
|
:key="item.USER_ID"
|
||||||
|
:label="item.NAME"
|
||||||
|
:value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="MANAGER"
|
||||||
|
label="主管部门"
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="treeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.MANAGER"
|
||||||
|
:disabled="true"
|
||||||
|
placeholder="请选择主管部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getmanagerUserList($event)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="MANAGER_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.MANAGER_USER_ID">
|
||||||
|
<el-option
|
||||||
|
v-for="item in managercompanyUserList"
|
||||||
|
:key="item.USER_ID"
|
||||||
|
:label="item.NAME"
|
||||||
|
:value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="SUPERVISION"
|
||||||
|
label="安监部门"
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="treeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.SUPERVISION"
|
||||||
|
:disabled="true"
|
||||||
|
placeholder="请选择安监部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="SUPERVISION_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.SUPERVISION_USER_ID">
|
||||||
|
<el-option v-for="item in userList" :key="item.USER_ID" :label="item.NAME" :value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="备注">
|
||||||
|
<el-input :rows="3" v-model="form.DESCR" type="textarea" placeholder="这里输入备注..."/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">取 消</el-button>
|
||||||
|
<el-button :loading="loading" type="primary" @click="save">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Treeselect
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
corpInfo: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
treeData: [],
|
||||||
|
companyTreeData: [],
|
||||||
|
corpinfo: {},
|
||||||
|
userList: [],
|
||||||
|
companyUserList: [],
|
||||||
|
managercompanyUserList: [],
|
||||||
|
jituanDanwei: '',
|
||||||
|
jituanDanweiTreeData: [],
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
form: {},
|
||||||
|
rules: {
|
||||||
|
SUPERVISION_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }],
|
||||||
|
MANAGER: [{ required: true, message: '主管部门不能为空', trigger: 'blur' }],
|
||||||
|
MANAGER_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }],
|
||||||
|
TERRITORIALITY: [{ required: true, message: '属地管理部门不能为空', trigger: 'blur' }],
|
||||||
|
TERRITORIALITY_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
if (e) {
|
||||||
|
this.users = e
|
||||||
|
}
|
||||||
|
// 判断是否有主管部门
|
||||||
|
for (let i; this.users.length > i; i++) {
|
||||||
|
if (!this.users[0].MAIN_DEPARTMENT_ID || this.users[0].MAIN_DEPARTMENT_ID === '') {
|
||||||
|
this.$message({
|
||||||
|
message: '系统未指定主管部门,请将完善相关方信息',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 判断主管部门是否一致
|
||||||
|
const warden = this.users[0].MAIN_DEPARTMENT_ID
|
||||||
|
for (let i; this.users.length > i; i++) {
|
||||||
|
if (warden !== this.users[i].MAIN_DEPARTMENT_ID) {
|
||||||
|
this.$message({
|
||||||
|
message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.visible = true
|
||||||
|
this.loading = false
|
||||||
|
requestFN(
|
||||||
|
'/openApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID, tm: new Date().getTime() }
|
||||||
|
).then((data) => {
|
||||||
|
this.form.MANAGER = this.users[0].MAIN_DEPARTMENT_ID
|
||||||
|
this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
this.getTreeData()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 获得部门树
|
||||||
|
getTreeData() {
|
||||||
|
requestFN(
|
||||||
|
'/openApi/corpDepartment/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeData = JSON.parse(data.zTreeNodes)
|
||||||
|
// 必须指定【股份-安全监督部】
|
||||||
|
this.form.SUPERVISION = 'c31058273a2d40f9b83dd8e5ae3a723c'
|
||||||
|
this.getRegulatoryUserList(this.form.SUPERVISION)
|
||||||
|
this.getmanagerUserList(this.form.MANAGER)
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
|
||||||
|
if (this.jituanDanwei) {
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: this.jituanDanwei }
|
||||||
|
).then((data) => {
|
||||||
|
this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getRegulatoryUserList(DEPARTMENT_ID) {
|
||||||
|
requestFN(
|
||||||
|
'/user/getRegUserInfo',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID,
|
||||||
|
ISASSESS: '1'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 人员
|
||||||
|
getUserList({ id: DEPARTMENT_ID }) {
|
||||||
|
requestFN(
|
||||||
|
'/user/listAll',
|
||||||
|
{ DEPARTMENT_ID: DEPARTMENT_ID }
|
||||||
|
).then((data) => {
|
||||||
|
this.companyUserList = data.userList
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getmanagerUserList(DEPARTMENT_ID) {
|
||||||
|
requestFN(
|
||||||
|
'/user/getRegUserInfo',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.managercompanyUserList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
save() {
|
||||||
|
this.$refs.form.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
this.loading = true
|
||||||
|
this.form.USER_COUNT = this.users.length
|
||||||
|
this.form.AUDIT_STATUS = 0
|
||||||
|
this.form.TYPE = 2
|
||||||
|
const userIds = this.users.map((item) => { return item.XGF_USER_ID })
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/add',
|
||||||
|
{
|
||||||
|
...this.form,
|
||||||
|
users: userIds.join(','),
|
||||||
|
BELONG_TO_CORP: this.users[0].BELONG_TO_CORP,
|
||||||
|
BELONG_TO_CORP_NAME: this.users[0].BELONG_TO_CORP_NAME
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
this.$message({
|
||||||
|
message: '申请成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
this.handleClose()
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refresh', '')
|
||||||
|
},
|
||||||
|
closeWindow() {
|
||||||
|
this.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,238 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form label-width="130px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label="用户名">
|
||||||
|
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col v-if="false" :span="6">
|
||||||
|
<el-form-item label="培训状态">
|
||||||
|
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" 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="6">
|
||||||
|
<el-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="varList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
:row-key="getRowKeys"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row
|
||||||
|
@selection-change="handleSelectionChange">
|
||||||
|
<el-table-column :reserve-selection="true" type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
||||||
|
<el-table-column prop="NAME" label="姓名" align="center"/>
|
||||||
|
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/>
|
||||||
|
<el-table-column label="操作" align="center" width="150">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">详情</el-button>
|
||||||
|
<el-button v-if="false" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])">审批</el-button>
|
||||||
|
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)">电子合格证</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">批量申请</el-button>
|
||||||
|
</div>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||||
|
</div>
|
||||||
|
<user ref="userInfo" append-to-body/>
|
||||||
|
<user-info ref="userInfos" append-to-body/>
|
||||||
|
<send-util ref="sendUtil" append-to-body @refresh="getList"/>
|
||||||
|
<apply ref="apply" append-to-body @refresh="getList"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import apply from './apply'
|
||||||
|
import user from './user.vue'
|
||||||
|
import SendUtil from './sendUtil.vue'
|
||||||
|
import UserInfo from './userInfo.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { UserInfo, SendUtil, Pagination, apply, vueQr, user },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
QRCodeDialog: false,
|
||||||
|
qrcodeStr: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
specialUsersList: {},
|
||||||
|
detailForm: {},
|
||||||
|
userEntryForm: {},
|
||||||
|
imgUrl: '',
|
||||||
|
SUPERVISE_CORPINFO_ID: '',
|
||||||
|
wenhuachengduList: [], // 文化程度
|
||||||
|
postList: [], // 岗位名称
|
||||||
|
photosOfLevel: [], // 三级教育照片
|
||||||
|
trainRecordList: [], // 培训记录
|
||||||
|
contractFileList: [], // 合同文件
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
gongshangbaoxianFile: [],
|
||||||
|
userPhotoFile: [], // 头像
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
socialPhotoFile: [], // 身份证照片
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
varList: [],
|
||||||
|
KEYWORDS: '',
|
||||||
|
statusList: [{ value: 0, label: '未培训' }, { value: 1, label: '培训中' }, {
|
||||||
|
value: 2,
|
||||||
|
label: '已培训(合格)'
|
||||||
|
}, { value: 3, label: '已培训(不合格)' }, { value: 9, label: '申请中' }],
|
||||||
|
STATUS: '',
|
||||||
|
add: false, // 新增按钮
|
||||||
|
del: false, // 删除按钮
|
||||||
|
edit: false, // 修改按钮
|
||||||
|
multipleSelection: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDict()
|
||||||
|
this.getList()
|
||||||
|
this.hasButton()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getQuery() {
|
||||||
|
if (this.$refs.multipleTable) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.listQuery = {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
goKeyReset() {
|
||||||
|
this.KEYWORDS = ''
|
||||||
|
this.STATUS = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.listLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/userList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
STATUS: '2',
|
||||||
|
EMPLOY_FLAG: '1',
|
||||||
|
STUDY_STATUS: '9'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleShow(row) {
|
||||||
|
this.$refs.userInfos.init(row)
|
||||||
|
},
|
||||||
|
approve(row) {
|
||||||
|
this.$refs.sendUtil.init(row)
|
||||||
|
},
|
||||||
|
getUserInfo(row) {
|
||||||
|
this.$refs.userInfo.init(row)
|
||||||
|
},
|
||||||
|
handleAdd() {
|
||||||
|
const _selectData = this.$refs.multipleTable.selection
|
||||||
|
if (_selectData == null || _selectData.length == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '未勾选培训人员...',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
let rule = ''
|
||||||
|
for (let i = 0; _selectData.length > i; i++) {
|
||||||
|
if (rule === '') {
|
||||||
|
rule = _selectData[i].MANAGER_DEPARTMENT_ID
|
||||||
|
} else {
|
||||||
|
if (rule !== _selectData[i].MANAGER_DEPARTMENT_ID) {
|
||||||
|
this.$message.error('主管部门不是一个不能提交')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$refs.apply.init(_selectData)
|
||||||
|
},
|
||||||
|
|
||||||
|
hasButton() {
|
||||||
|
var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel'
|
||||||
|
requestFN(
|
||||||
|
'/head/hasButton',
|
||||||
|
{
|
||||||
|
keys: keys, tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
if (data.result == 'success') {
|
||||||
|
this.add = data.trainingbatchfhadminadd // 增
|
||||||
|
this.del = data.trainingbatchfhadmindel // 删
|
||||||
|
this.edit = data.trainingbatchfhadminedit // 改
|
||||||
|
this.fromExcel = data.fromExcel // 从excel导入权限
|
||||||
|
this.toExcel = data.toExcel // 导出到excel权限
|
||||||
|
} else if (data.result == 'exception') {
|
||||||
|
// showException('按钮权限', data.exception)// 显示异常
|
||||||
|
console.info('按钮权限:', data.exception)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getDict: function() {
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
|
||||||
|
).then((data) => {
|
||||||
|
this.wenhuachengduList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
|
||||||
|
).then((data) => {
|
||||||
|
this.postList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getRowKeys(row) {
|
||||||
|
return row.XGF_USER_ID
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
console.log(val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="头像" width="370px" destroy-on-close >
|
||||||
|
<el-image :src="src"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
src: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.src = e.src
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,198 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-page-header content="申请记录" @back="goBack"/>
|
||||||
|
<el-form label-width="130px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="申请人员">
|
||||||
|
<el-input v-model="KEYWORDS" placeholder="请输入申请人员"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<Treeselect
|
||||||
|
:options="companyTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="MANAGER"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="属地管理部门">
|
||||||
|
<Treeselect
|
||||||
|
:options="companyTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="TERRITORIALITY"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="申请状态">
|
||||||
|
<el-select v-model="AUDIT_STATUS" placeholder="请选择申请状态" style="width: 100%;">
|
||||||
|
<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-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="CREATTIME" label="申请时间" align="center" />
|
||||||
|
<el-table-column prop="CREATOR" label="申请人员" align="center" />
|
||||||
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安监部门" align="center" />
|
||||||
|
<el-table-column prop="MANAGER_DEPT_NAME" label="主管部门" align="center" />
|
||||||
|
<el-table-column prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" align="center" />
|
||||||
|
<el-table-column prop="TRAIN_DATE" label="申请年份" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
{{ new Date(row.CREATTIME).getFullYear() }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="AUDIT_STATUS" label="申请状态" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.AUDIT_STATUS === 0">待审核</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 1">审核中</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 2">待培训</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 3">已完成</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="PASS_COUNT" label="审核通过人数" align="center" /> <!-- 已更新为申请状态中的审核通过人员数-->
|
||||||
|
<el-table-column prop="USER_COUNT" label="申请人数" align="center" />
|
||||||
|
<el-table-column label="操作" align="center" width="200">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<users ref="users"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
import users from './users'
|
||||||
|
export default {
|
||||||
|
components: { Pagination, Treeselect, users },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
varList: [],
|
||||||
|
treeData: [],
|
||||||
|
companyTreeData: [],
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
MANAGER: null,
|
||||||
|
TERRITORIALITY: null,
|
||||||
|
statusList: [{ value: 0, label: '待审核' }, { value: 1, label: '审核中' }, { value: 2, label: '待培训' }, { value: 3, label: '已完成' }],
|
||||||
|
AUDIT_STATUS: '',
|
||||||
|
KEYWORDS: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
this.getTreeData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getQuery() {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.listQuery = {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
goKeyReset() {
|
||||||
|
this.MANAGER = null
|
||||||
|
this.TERRITORIALITY = null
|
||||||
|
this.AUDIT_STATUS = ''
|
||||||
|
this.KEYWORDS = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.listLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
MANAGER: this.MANAGER,
|
||||||
|
TERRITORIALITY: this.TERRITORIALITY,
|
||||||
|
AUDIT_STATUS: this.AUDIT_STATUS,
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
TYPE: 2,
|
||||||
|
USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
console.log(this.varList)
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得部门树
|
||||||
|
getTreeData() {
|
||||||
|
requestFN(
|
||||||
|
'/regulatoryApi/department/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: this.$parent.SUPERVISE_CORPINFO_ID }
|
||||||
|
).then((data) => {
|
||||||
|
this.companyTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
handleShow(row) {
|
||||||
|
this.$refs.users.init(row)
|
||||||
|
},
|
||||||
|
goBack() {
|
||||||
|
this.$parent.activeName = 'List'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,67 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="头像" width="370px" destroy-on-close>
|
||||||
|
<el-form>
|
||||||
|
<el-form-item prop="TERRITORIALITY" label="是否通过 ">
|
||||||
|
<el-select v-model="value" placeholder="请选择">
|
||||||
|
<el-option label="是" value="1"/>
|
||||||
|
<el-option label="否" value="0"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">关 闭</el-button>
|
||||||
|
<el-button type="primary" @click="sendMessage()">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { Treeselect, vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
value: null,
|
||||||
|
heirloom: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.heirloom = JSON.stringify(e)
|
||||||
|
},
|
||||||
|
beforeClose() {
|
||||||
|
},
|
||||||
|
sendMessage(row) {
|
||||||
|
requestFN(
|
||||||
|
'/xgf/user/approve',
|
||||||
|
{
|
||||||
|
list: this.heirloom,
|
||||||
|
STATUS: this.value,
|
||||||
|
tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.$message.success('推送成功')
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refresh', '')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,250 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="相关方安全告知培训合格证" width="370px">
|
||||||
|
<div v-for="item in peopleList" :key="item.CLASS_INFO_ID" style="height: 220px">
|
||||||
|
<div class="bg_table">
|
||||||
|
<div class="title">相关方安全告知培训合格证</div>
|
||||||
|
<div class="red">{{ item.CLASS_NO }}</div>
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 120px">
|
||||||
|
<div class="text textone name">姓名</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 100px;">
|
||||||
|
<div class="text text1 tcenter">{{ item.NAME }}</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 86px">
|
||||||
|
<div class="text text2 tcenter">工种</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 148px;">
|
||||||
|
<div v-if="item.JOBS_TYPE" class="text tcenter ">{{ item.JOBS_TYPE }}</div>
|
||||||
|
<div v-else>暂无</div>
|
||||||
|
</td>
|
||||||
|
<td rowspan="4" style="width: 134px;">
|
||||||
|
<img v-if="!getShowPicture(item)" src="../../../../assets/images/peopleHead.png" alt="" style="width: 116px; height: 146px">
|
||||||
|
<img v-if="getShowPicture(item)" :src="config.fileUrl + item.PHOTO" alt="" style="width: 116px; height: 146px" @click="openPicture(config.fileUrl + item.PHOTO)">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">资质</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div v-if="item.CERTIFICATE" class="text">{{ item.CERTIFICATE }}</div>
|
||||||
|
<div v-else>暂无</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">培训时间</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.OPENING_TIME }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">有效期限</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.VALIDITY_PERIOD_END }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">所在单位</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.DEPARTMENT_NAME }}</div>
|
||||||
|
</td>
|
||||||
|
<td rowspan="3" style="padding-top: 6px" @click="click(config.messageUrl + '?CLASS_INFO_ID=' + item.CLASS_INFO_ID)">
|
||||||
|
<vue-qr :text="config.messageUrl + '?CLASS_INFO_ID=' + item.CLASS_INFO_ID" :margin="0" :size="110" color-dark="#000" color-light="#fff"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">身份证号</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.CARD_ID }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">手机</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.PHONE }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<QRCode ref="QRcode" append-to-body/>
|
||||||
|
<Picture ref="Picture" append-to-body/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import QRCode from './QRCode.vue'
|
||||||
|
import Picture from './picture.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { QRCode, Picture, vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
visible: false,
|
||||||
|
peopleList: [],
|
||||||
|
CLASS_MESSAGE_ID: '',
|
||||||
|
CLASS_INFO_ID: '',
|
||||||
|
USER_ID: '',
|
||||||
|
qrCodeStr: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
console.info(e)
|
||||||
|
if (e && e.CLASS_INFO_ID) {
|
||||||
|
this.CLASS_INFO_ID = e.CLASS_INFO_ID
|
||||||
|
}
|
||||||
|
if (e && e.CLASS_MESSAGE_ID) {
|
||||||
|
this.CLASS_MESSAGE_ID = e.CLASS_MESSAGE_ID
|
||||||
|
}
|
||||||
|
if (e && e.USER_ID) {
|
||||||
|
this.USER_ID = e.USER_ID
|
||||||
|
}
|
||||||
|
this.qrCodeStr = config.messageUrl + '?CLASS_INFO_ID=' + this.CLASS_INFO_ID
|
||||||
|
this.visible = true
|
||||||
|
this.getInfo()
|
||||||
|
},
|
||||||
|
getInfo() {
|
||||||
|
requestFN('/trainusers/getUserinfoList', {
|
||||||
|
CLASS_INFO_ID: this.CLASS_INFO_ID,
|
||||||
|
CLASS_MESSAGE_ID: this.CLASS_MESSAGE_ID,
|
||||||
|
USER_ID: this.USER_ID
|
||||||
|
})
|
||||||
|
.then((data) => {
|
||||||
|
this.peopleList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShowPicture(row) {
|
||||||
|
if (row.PHOTO && row.PHOTO !== '' && (row.PHOTO.indexOf('.jpg') >= 0 || row.PHOTO.indexOf('.png') >= 0 || row.PHOTO.indexOf('.jpeg') >= 0)) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
click(e) {
|
||||||
|
this.$refs.QRcode.init({ qrCodeStr: e })
|
||||||
|
},
|
||||||
|
openPicture(src) {
|
||||||
|
this.$refs.Picture.init({ src: src })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.name{
|
||||||
|
width: 120px;
|
||||||
|
overflow: hidden;//溢出隐藏
|
||||||
|
white-space: nowrap; // 强制一行显示
|
||||||
|
text-overflow: ellipsis;// 显示。。。省略号
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
width: 660px;
|
||||||
|
color: #ff0000;
|
||||||
|
margin-left: 34px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg_table {
|
||||||
|
background: url("../../../../assets/tablebg.jpg") no-repeat bottom center;
|
||||||
|
background-size: 100%;
|
||||||
|
width: 660px;
|
||||||
|
height: 430px;
|
||||||
|
border: 4px solid #453d3a;
|
||||||
|
transform: scale(0.5);
|
||||||
|
transform-origin: top left;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28px;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 34px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 590px;
|
||||||
|
color: #453d3a;
|
||||||
|
font-size: 20px;
|
||||||
|
margin: 34px;
|
||||||
|
text-align: left;
|
||||||
|
margin-top: 10px;
|
||||||
|
|
||||||
|
.tcenter {
|
||||||
|
text-align: center
|
||||||
|
}
|
||||||
|
|
||||||
|
.w60 {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w74 {
|
||||||
|
width: 148px
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
border: 2px solid #453d3a;
|
||||||
|
text-align: left;
|
||||||
|
height: 40px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.textone {
|
||||||
|
width: 80px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text1 {
|
||||||
|
width: 60px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text2 {
|
||||||
|
width: 50px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,409 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog
|
||||||
|
v-loading="loading"
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="查看"
|
||||||
|
width="80%">
|
||||||
|
<div class="information">
|
||||||
|
<el-scrollbar style="height: 550px;margin-bottom: 10px">
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<tr>
|
||||||
|
<th>照片</th>
|
||||||
|
<td>
|
||||||
|
<span v-if="imgUrl != ''">
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-else/>
|
||||||
|
</td>
|
||||||
|
<th>姓名</th>
|
||||||
|
<td>{{ userDetailForm.NAME }}</td>
|
||||||
|
<th>性别</th>
|
||||||
|
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>出生年月</th>
|
||||||
|
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
||||||
|
<th>年龄</th>
|
||||||
|
<td>{{ userDetailForm.AGE }}</td>
|
||||||
|
<th>手机号</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>身份证</th>
|
||||||
|
<td>{{ userDetailForm.CARD_ID }}</td>
|
||||||
|
<th>身份证照片</th>
|
||||||
|
<!--if条件不可删除-->
|
||||||
|
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in userCardIDPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>民族</th>
|
||||||
|
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
||||||
|
<th>婚姻状况</th>
|
||||||
|
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
||||||
|
<th>政治面貌</th>
|
||||||
|
<td>{{ userDetailForm.zzName }} {{
|
||||||
|
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
||||||
|
}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>户口所在地</th>
|
||||||
|
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
||||||
|
<th>现住址</th>
|
||||||
|
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
||||||
|
<th>联系电话</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>文化程度</th>
|
||||||
|
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
||||||
|
<th>岗位名称(工种)</th>
|
||||||
|
<td colspan="5">{{ userDetailForm.POST_ID }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳社保</th>
|
||||||
|
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in socialPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否参加三级安全培训</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="5">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in photosOfLevel"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳保险</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_BF) }}</td>
|
||||||
|
<th>是否特殊工种</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
||||||
|
<th>是否流动人员</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>培训记录</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="trainRecordList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="CLASS_NAME" label="班级名称" align="center"/>
|
||||||
|
<el-table-column prop="OPENING_TIME" label="开班时间" align="center"/>
|
||||||
|
<el-table-column prop="TRAINING_TYPE_NAME" label="培训类型" align="center"/>
|
||||||
|
<el-table-column prop="PLACE_NAME" label="培训地点" align="center"/>
|
||||||
|
<el-table-column label="培训有效期" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ formatDate(row.VALIDITY_PERIOD_START) }} 至 {{ formatDate(row.VALIDITY_PERIOD_END) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
||||||
|
<h1>特种作业人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 150px">证书名称</th>
|
||||||
|
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
||||||
|
<th style="width: 150px">作业类别</th>
|
||||||
|
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
||||||
|
<th style="width: 150px">操作项目</th>
|
||||||
|
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>特种作业证书编号</th>
|
||||||
|
<td>{{ item.SPECIAL_NUMBER }}</td>
|
||||||
|
<th>发证机关</th>
|
||||||
|
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>复审时间</th>
|
||||||
|
<td>{{ item.REVIEW_TIME }}</td>
|
||||||
|
<th>有效期</th>
|
||||||
|
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div v-if="applyList.length > 0" class="level-title mt-20">
|
||||||
|
<h1>申请信息</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
v-if="applyList.length > 0"
|
||||||
|
:data="applyList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="expand">
|
||||||
|
<template slot-scope="props">
|
||||||
|
<el-row>
|
||||||
|
<el-form label-position="left" inline class="demo-table-expand">
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="属地管理部门">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="审批人">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="审批结果">
|
||||||
|
<span v-if="props.row.TERRITORIALITY_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.TERRITORIALITY_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item v-if="false" label="审批意见">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<span>{{ props.row.MANAGER_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span>{{ props.row.MANAGER_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span v-if="props.row.MANAGER_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.MANAGER_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item label="审批意见">
|
||||||
|
<span>{{ props.row.MANAGER_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<span>{{ props.row.SUPERVISION_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span>{{ props.row.SUPERVISION_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span v-if="props.row.SUPERVISION_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.SUPERVISION_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item label="审批意见">
|
||||||
|
<span>{{ props.row.SUPERVISION_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
</el-row>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" align="center"/>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.TERRITORIALITY_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.TERRITORIALITY_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="MANAGER_DEPARTMENT_NAME" label="主管部门" align="center"/>
|
||||||
|
<el-table-column prop="MANAGER_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column prop="MANAGER_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.MANAGER_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.MANAGER_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安全监督部门" align="center"/>
|
||||||
|
<el-table-column prop="SUPERVISION_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column prop="SUPERVISION_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.SUPERVISION_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.SUPERVISION_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">取 消</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
imgUrl: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
trainRecordList: [],
|
||||||
|
photosOfLevel: [], // 三级教育照片
|
||||||
|
specialUsersList: {},
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
contractFileList: [],
|
||||||
|
socialPhotoFile: [],
|
||||||
|
gongshangbaoxianFile: [],
|
||||||
|
applyList: [],
|
||||||
|
loading: false,
|
||||||
|
heirloom: {},
|
||||||
|
config: config
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.heirloom = JSON.parse(JSON.stringify(e))
|
||||||
|
this.getUserInfoById(this.heirloom)
|
||||||
|
},
|
||||||
|
formatDate(date, column) {
|
||||||
|
if (date) {
|
||||||
|
return dateformat(date, 'YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getUserInfoById(row) {
|
||||||
|
this.loading = true
|
||||||
|
requestFN(
|
||||||
|
'/xgf/user/getInfo',
|
||||||
|
{
|
||||||
|
XGF_USER_ID: row.XGF_USER_ID,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
Object.assign(this.userDetailForm, data.info)
|
||||||
|
const picture = data.img
|
||||||
|
this.userPhotoFile = picture.userPhotoFile
|
||||||
|
if (this.userPhotoFile.length > 0) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
|
}
|
||||||
|
this.photosOfLevel = picture.photosOfLevel
|
||||||
|
this.specialUsersList = picture.specialUsers
|
||||||
|
this.insuranceFileList = picture.insuranceFile
|
||||||
|
this.contractFileList = picture.contractFile
|
||||||
|
this.userCardIDPhotoFile = picture.userCardIDPhotoFile
|
||||||
|
this.socialPhotoFile = picture.socialPhotoFile
|
||||||
|
this.gongshangbaoxianFile = picture.gongshangbaoxianFile
|
||||||
|
if (row.STATUS === '2') {
|
||||||
|
this.qrCodeStr = config.messageUrl + '?USER_ID=' + row.USER_ID
|
||||||
|
} else {
|
||||||
|
this.qrCodeStr = ''
|
||||||
|
}
|
||||||
|
this.trainRecordList = data.trainRecordList
|
||||||
|
this.applyList = data.applyList
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
formatLabel(value) {
|
||||||
|
if (value == '1') {
|
||||||
|
return '是'
|
||||||
|
} else if (value == '0') {
|
||||||
|
return '否'
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.information >>> .el-scrollbar__wrap {
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,513 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:before-close="handleClose"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="申请详情"
|
||||||
|
width="60%">
|
||||||
|
<div class="level-title mt-20" style="display: flex;justify-content: space-between;">
|
||||||
|
<h1>申请信息</h1>
|
||||||
|
</div>
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 17%">申请人</th>
|
||||||
|
<td style="width: 17%">{{ pd.CREATOR }}</td>
|
||||||
|
<th style="width: 17%">申请时间</th>
|
||||||
|
<td style="width: 17%">{{ pd.CREATTIME }}</td>
|
||||||
|
<th style="width: 17%">备注</th>
|
||||||
|
<td style="width: 15%">{{ pd.DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 30px">安监部门</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_DEPARTMENT_NAME }}</td>
|
||||||
|
<th style="width: 30px">审核人</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_USER_NAME }}</td>
|
||||||
|
<th style="width: 30px">审核时间</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>主管部门</th>
|
||||||
|
<td>{{ pd.MANAGER_DEPT_NAME }}</td>
|
||||||
|
<th>审核人</th>
|
||||||
|
<td>{{ pd.MANAGER_USER_NAME }}</td>
|
||||||
|
<th>审核时间</th>
|
||||||
|
<td>{{ pd.MANAGER_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>属地管理部门</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_DEPARTMENT_NAME }}</td>
|
||||||
|
<th>审核人</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_USER_NAME }}</td>
|
||||||
|
<th>审核时间</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr v-if="pd.AUDIT_DESCR">
|
||||||
|
<th>股份公司意见</th>
|
||||||
|
<td colspan="5">{{ pd.AUDIT_DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr v-if="pd.CORP_AUDIT_DESCR">
|
||||||
|
<th>分公司意见</th>
|
||||||
|
<td colspan="5">{{ pd.CORP_AUDIT_DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>申请人员列表</h1>
|
||||||
|
</div>
|
||||||
|
<el-table ref="multipleTable" :data="userList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="USERNAME" label="用户名" align="center" />
|
||||||
|
<el-table-column prop="NAME" label="姓名" align="center" />
|
||||||
|
<el-table-column prop="DEPARTMENT_NAME" label="部门" align="center" />
|
||||||
|
<el-table-column prop="STATE" label="审核状态" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-tag v-if="row.MANAGER_STATE === 0 || row.SUPERVISION_STATE === 0 || row.TERRITORIALITY_STATE === 0" type="danger">审核不通过</el-tag>
|
||||||
|
<el-tag v-else-if="row.MANAGER_STATE === 1 && row.SUPERVISION_STATE === 1 && row.TERRITORIALITY_STATE === 1" type="success">审核通过</el-tag>
|
||||||
|
<el-tag v-else type="success">待审核</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="200" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.USER_ID)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getUserList" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog
|
||||||
|
v-if="userInfoDialog"
|
||||||
|
:visible.sync="userInfoDialog"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="查看"
|
||||||
|
width="60%">
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<tr>
|
||||||
|
<th>照片</th>
|
||||||
|
<td>
|
||||||
|
<span v-if="imgUrl != ''">
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-else/>
|
||||||
|
</td>
|
||||||
|
<th>姓名</th>
|
||||||
|
<td>{{ userDetailForm.NAME }}</td>
|
||||||
|
<th>性别</th>
|
||||||
|
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>出生年月</th>
|
||||||
|
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
||||||
|
<th>年龄</th>
|
||||||
|
<td>{{ userDetailForm.AGE }}</td>
|
||||||
|
<th>手机号</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>身份证</th>
|
||||||
|
<td>{{ userDetailForm.CARD_ID }}</td>
|
||||||
|
<th>身份证照片</th>
|
||||||
|
<!--if条件不可删除-->
|
||||||
|
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in userCardIDPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>民族</th>
|
||||||
|
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
||||||
|
<th>婚姻状况</th>
|
||||||
|
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
||||||
|
<th>政治面貌</th>
|
||||||
|
<td>{{ userDetailForm.zzName }} {{
|
||||||
|
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
||||||
|
}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>户口所在地</th>
|
||||||
|
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
||||||
|
<th>现住址</th>
|
||||||
|
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
||||||
|
<th>联系电话</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>文化程度</th>
|
||||||
|
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
||||||
|
<th>岗位名称(工种)</th>
|
||||||
|
<td colspan="5">{{ userDetailForm.POST_ID }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳社保</th>
|
||||||
|
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in socialPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否参加三级安全培训</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="5">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in photosOfLevel"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳保险</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_BF) }}</td>
|
||||||
|
<th>是否特殊工种</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
||||||
|
<th>是否流动人员</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>培训记录</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="trainRecordList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="CLASS_NAME" label="班级名称" align="center"/>
|
||||||
|
<el-table-column prop="OPENING_TIME" label="开班时间" align="center"/>
|
||||||
|
<el-table-column prop="TRAINING_TYPE_NAME" label="培训类型" align="center"/>
|
||||||
|
<el-table-column prop="PLACE_NAME" label="培训地点" align="center"/>
|
||||||
|
<el-table-column label="培训有效期" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ formatDate(row.VALIDITY_PERIOD_START) }} 至 {{ formatDate(row.VALIDITY_PERIOD_END) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
||||||
|
<h1>特种作业人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 150px">证书名称</th>
|
||||||
|
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
||||||
|
<th style="width: 150px">作业类别</th>
|
||||||
|
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
||||||
|
<th style="width: 150px">操作项目</th>
|
||||||
|
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>特种作业证书编号</th>
|
||||||
|
<td>{{ item.SPECIAL_NUMBER }}</td>
|
||||||
|
<th>发证机关</th>
|
||||||
|
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>复审时间</th>
|
||||||
|
<td>{{ item.REVIEW_TIME }}</td>
|
||||||
|
<th>有效期</th>
|
||||||
|
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div
|
||||||
|
v-if="detailForm.SUPERVISION_STATE === 0 || detailForm.MANAGER_STATE === 0 || detailForm.TERRITORIALITY_STATE === 0"
|
||||||
|
class="level-title mt-20">
|
||||||
|
<h1>打回信息</h1>
|
||||||
|
</div>
|
||||||
|
<table
|
||||||
|
v-if="detailForm.SUPERVISION_STATE === 0 || detailForm.MANAGER_STATE === 0 || detailForm.TERRITORIALITY_STATE === 0"
|
||||||
|
class="table-ui"
|
||||||
|
style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th>打回人</th>
|
||||||
|
<td v-if="detailForm.SUPERVISION_STATE === 0">{{ detailForm.SUPERVISION_USER_NAME }}</td>
|
||||||
|
<td v-if="detailForm.MANAGER_STATE === 0">{{ detailForm.MANAGER_USER_NAME }}</td>
|
||||||
|
<td
|
||||||
|
v-if="detailForm.TERRITORIALITY_STATE === 0 && detailForm.MANAGER_USER_NAME !== detailForm.TERRITORIALITY_USER_NAME">
|
||||||
|
{{ detailForm.TERRITORIALITY_USER_NAME }}
|
||||||
|
</td>
|
||||||
|
<th>打回原由</th>
|
||||||
|
<td v-if="detailForm.SUPERVISION_STATE === 0">{{ detailForm.SUPERVISION_OPINION }}</td>
|
||||||
|
<td v-if="detailForm.MANAGER_STATE === 0">{{ detailForm.MANAGER_OPINION }}</td>
|
||||||
|
<td
|
||||||
|
v-if="detailForm.TERRITORIALITY_STATE === 0 && detailForm.MANAGER_USER_NAME !== detailForm.TERRITORIALITY_USER_NAME">
|
||||||
|
{{ detailForm.TERRITORIALITY_OPINION }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="userInfoDialog = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog :visible.sync="QRCodeDialog" title="查看二维码" width="680px" class="top-dialog">
|
||||||
|
<div class="table-qrcode" style="text-align: center;padding-top: 30px;">
|
||||||
|
<vue-qr :text="qrcodeStr" :margin="0" :size="300" color-dark="#000" color-light="#fff" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="QRCodeDialog = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Pagination,
|
||||||
|
vueQr
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
contractFileList: [], // 合同文件
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
userInfoDialog: false,
|
||||||
|
QRCodeDialog: false,
|
||||||
|
qrcodeStr: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
userEntryForm: {},
|
||||||
|
specialUsersList: {},
|
||||||
|
imgUrl: '',
|
||||||
|
wenhuachengduList: [], // 文化程度
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
postList: [], // 岗位名称
|
||||||
|
trainRecordList: [], // 培训记录
|
||||||
|
visible: false,
|
||||||
|
pd: {},
|
||||||
|
userList: [],
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
photosOfLevel: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formatDate(date, column) {
|
||||||
|
if (date) {
|
||||||
|
return dateformat(date, 'YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
init(e) {
|
||||||
|
if (e) {
|
||||||
|
this.pd = e
|
||||||
|
}
|
||||||
|
this.visible = true
|
||||||
|
this.userList = []
|
||||||
|
this.getDict()
|
||||||
|
this.getUserList()
|
||||||
|
},
|
||||||
|
// 获取数据字典数据
|
||||||
|
getDict: function() {
|
||||||
|
requestFN(
|
||||||
|
'/dictionaries/getLevels',
|
||||||
|
{
|
||||||
|
DICTIONARIES_ID: '1144b16d85f14b108ea7859e2be9d001'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.flowAreaList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
|
||||||
|
).then((data) => {
|
||||||
|
this.wenhuachengduList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
|
||||||
|
).then((data) => {
|
||||||
|
this.postList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 人员
|
||||||
|
getUserList() {
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/batchUserList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
TRAININGBATCH_ID: this.pd.TRAININGBATCH_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 二维码
|
||||||
|
showQRCode(id) {
|
||||||
|
this.QRCodeDialog = true
|
||||||
|
const arr = [{ USER_ID: id, CODE_TYPE: '1' }]
|
||||||
|
this.qrcodeStr = JSON.stringify(arr)
|
||||||
|
},
|
||||||
|
// 查看
|
||||||
|
async handleShow(USER_ID) {
|
||||||
|
await this.getUserInfoById(USER_ID)
|
||||||
|
await this.getOtherUserInfoById(USER_ID)
|
||||||
|
this.userInfoDialog = true
|
||||||
|
},
|
||||||
|
getUserInfoById(id) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
requestFN(
|
||||||
|
'/user/getFloatPersonDetailById',
|
||||||
|
{
|
||||||
|
USER_ID: id,
|
||||||
|
TRAININGBATCH_ID: this.pd.TRAININGBATCH_ID,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
||||||
|
this.userEntryForm = Object.assign(this.userEntryForm, data.eCard)
|
||||||
|
if (this.userDetailForm.PHOTO) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userDetailForm.PHOTO
|
||||||
|
}
|
||||||
|
this.trainRecordList = data.recordList
|
||||||
|
// this.insuranceFileList = data.insuranceFile
|
||||||
|
// this.contractFileList = data.contractFile
|
||||||
|
resolve()
|
||||||
|
}).catch((e) => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getOtherUserInfoById(id) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
requestFN(
|
||||||
|
'user/getDetailByUserIdAndCorpInfoId',
|
||||||
|
{
|
||||||
|
USER_ID: id,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
Object.assign(this.userDetailForm, data.pd)
|
||||||
|
this.userPhotoFile = data.userPhotoFile
|
||||||
|
if (this.userPhotoFile.length > 0) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
|
}
|
||||||
|
this.insuranceFileList = data.insuranceFile
|
||||||
|
this.specialUsersList = data.specialUsers
|
||||||
|
this.contractFileList = data.contractFile
|
||||||
|
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
||||||
|
this.socialPhotoFile = data.socialPhotoFile
|
||||||
|
this.gongshangbaoxianFile = data.gongshangbaoxianFile
|
||||||
|
resolve()
|
||||||
|
}).catch((e) => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 转换是否
|
||||||
|
formatLabel(value) {
|
||||||
|
if (value == '1') {
|
||||||
|
return '是'
|
||||||
|
} else if (value == '0') {
|
||||||
|
return '否'
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 转换字典数据
|
||||||
|
formatDictioariesLabel(value, type) {
|
||||||
|
var list = []
|
||||||
|
if (type == '0') {
|
||||||
|
list = this.wenhuachengduList
|
||||||
|
} else if (type == '1') {
|
||||||
|
list = this.postList
|
||||||
|
}
|
||||||
|
if (value) {
|
||||||
|
if (list.length > 0) {
|
||||||
|
var data = ''
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
const obj = list[i]
|
||||||
|
if (value == obj.BIANMA) {
|
||||||
|
data = obj.NAME
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return data
|
||||||
|
} else {
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
handleClose() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
closeWindow() {
|
||||||
|
this.handleClose()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
<template>
|
||||||
|
<component :is="activeName" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import List from './components/list'
|
||||||
|
import Record from './components/record'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
List: List,
|
||||||
|
Record: Record
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
activeName: 'List',
|
||||||
|
SUPERVISE_CORPINFO_ID: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="相关方安全告知培训合格证" width="370px" destroy-on-close >
|
||||||
|
<vue-qr :text="qrCodeStr" :margin="0" :size="320" color-dark="#000" color-light="#fff"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
qrCodeStr: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.qrCodeStr = e.qrCodeStr
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,311 @@
|
||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="培训申请"
|
||||||
|
width="60%">
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
|
<el-row v-if="false">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="TERRITORIALITY"
|
||||||
|
label="集团单位 "
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="jituanDanweiTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.TERRITORIALITY"
|
||||||
|
placeholder="请选择集团单位 "
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getUserList($event)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="TERRITORIALITY_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.TERRITORIALITY_USER_ID">
|
||||||
|
<el-option
|
||||||
|
v-for="item in companyUserList"
|
||||||
|
:key="item.USER_ID"
|
||||||
|
:label="item.NAME"
|
||||||
|
:value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="MANAGER"
|
||||||
|
label="主管部门"
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="treeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.MANAGER"
|
||||||
|
:disabled="true"
|
||||||
|
placeholder="请选择主管部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
@select="getmanagerUserList($event)"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="MANAGER_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.MANAGER_USER_ID">
|
||||||
|
<el-option
|
||||||
|
v-for="item in managercompanyUserList"
|
||||||
|
:key="item.USER_ID"
|
||||||
|
:label="item.NAME"
|
||||||
|
:value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="SUPERVISION"
|
||||||
|
label="安监部门"
|
||||||
|
>
|
||||||
|
<Treeselect
|
||||||
|
:options="treeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="form.SUPERVISION"
|
||||||
|
:disabled="true"
|
||||||
|
placeholder="请选择安监部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
prop="SUPERVISION_USER_ID"
|
||||||
|
label="审核人员"
|
||||||
|
>
|
||||||
|
<div style="display:flex;justify-content: space-between;align-items: flex-start;">
|
||||||
|
<el-select v-model="form.SUPERVISION_USER_ID">
|
||||||
|
<el-option v-for="item in userList" :key="item.USER_ID" :label="item.NAME" :value="item.USER_ID"/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="备注">
|
||||||
|
<el-input :rows="3" v-model="form.DESCR" type="textarea" placeholder="这里输入备注..."/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">取 消</el-button>
|
||||||
|
<el-button :loading="loading" type="primary" @click="save">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Treeselect
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
corpInfo: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
treeData: [],
|
||||||
|
companyTreeData: [],
|
||||||
|
corpinfo: {},
|
||||||
|
userList: [],
|
||||||
|
companyUserList: [],
|
||||||
|
managercompanyUserList: [],
|
||||||
|
jituanDanwei: '',
|
||||||
|
jituanDanweiTreeData: [],
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
form: {},
|
||||||
|
rules: {
|
||||||
|
SUPERVISION_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }],
|
||||||
|
MANAGER: [{ required: true, message: '主管部门不能为空', trigger: 'blur' }],
|
||||||
|
MANAGER_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }],
|
||||||
|
TERRITORIALITY: [{ required: true, message: '属地管理部门不能为空', trigger: 'blur' }],
|
||||||
|
TERRITORIALITY_USER_ID: [{ required: true, message: '审核人员不能为空', trigger: 'blur' }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
if (e) {
|
||||||
|
this.users = e
|
||||||
|
}
|
||||||
|
// 判断是否有主管部门
|
||||||
|
for (let i; this.users.length > i; i++) {
|
||||||
|
if (!this.users[0].MAIN_DEPARTMENT_ID || this.users[0].MAIN_DEPARTMENT_ID === '') {
|
||||||
|
this.$message({
|
||||||
|
message: '系统未指定主管部门,请将完善相关方信息',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 判断主管部门是否一致
|
||||||
|
const warden = this.users[0].MAIN_DEPARTMENT_ID
|
||||||
|
for (let i; this.users.length > i; i++) {
|
||||||
|
if (warden !== this.users[i].MAIN_DEPARTMENT_ID) {
|
||||||
|
this.$message({
|
||||||
|
message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.visible = true
|
||||||
|
this.loading = false
|
||||||
|
requestFN(
|
||||||
|
'/openApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID, tm: new Date().getTime() }
|
||||||
|
).then((data) => {
|
||||||
|
this.form.MANAGER = this.users[0].MAIN_DEPARTMENT_ID
|
||||||
|
this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
this.getTreeData()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 获得部门树
|
||||||
|
getTreeData() {
|
||||||
|
requestFN(
|
||||||
|
'/openApi/corpDepartment/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeData = JSON.parse(data.zTreeNodes)
|
||||||
|
// 必须指定【股份-安全监督部】
|
||||||
|
this.form.SUPERVISION = 'c31058273a2d40f9b83dd8e5ae3a723c'
|
||||||
|
this.getRegulatoryUserList(this.form.SUPERVISION)
|
||||||
|
this.getmanagerUserList(this.form.MANAGER)
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
|
||||||
|
if (this.jituanDanwei) {
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: this.jituanDanwei }
|
||||||
|
).then((data) => {
|
||||||
|
this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getRegulatoryUserList(DEPARTMENT_ID) {
|
||||||
|
requestFN(
|
||||||
|
'/user/getRegUserInfo',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID,
|
||||||
|
ISASSESS: '1'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 人员
|
||||||
|
getUserList({ id: DEPARTMENT_ID }) {
|
||||||
|
requestFN(
|
||||||
|
'/user/listAll',
|
||||||
|
{ DEPARTMENT_ID: DEPARTMENT_ID }
|
||||||
|
).then((data) => {
|
||||||
|
this.companyUserList = data.userList
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getmanagerUserList(DEPARTMENT_ID) {
|
||||||
|
requestFN(
|
||||||
|
'/user/getRegUserInfo',
|
||||||
|
{
|
||||||
|
DEPARTMENT_ID: DEPARTMENT_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.managercompanyUserList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
save() {
|
||||||
|
this.$refs.form.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
this.loading = true
|
||||||
|
this.form.USER_COUNT = this.users.length
|
||||||
|
this.form.AUDIT_STATUS = 0
|
||||||
|
this.form.TYPE = 2
|
||||||
|
const userIds = this.users.map((item) => { return item.XGF_USER_ID })
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/add',
|
||||||
|
{
|
||||||
|
...this.form,
|
||||||
|
users: userIds.join(','),
|
||||||
|
BELONG_TO_CORP: this.users[0].BELONG_TO_CORP,
|
||||||
|
BELONG_TO_CORP_NAME: this.users[0].BELONG_TO_CORP_NAME
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
this.$message({
|
||||||
|
message: '申请成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
this.handleClose()
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refresh', '')
|
||||||
|
},
|
||||||
|
closeWindow() {
|
||||||
|
this.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,238 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form label-width="130px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label="用户名">
|
||||||
|
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col v-if="false" :span="6">
|
||||||
|
<el-form-item label="培训状态">
|
||||||
|
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" 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="6">
|
||||||
|
<el-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="varList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
:row-key="getRowKeys"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row
|
||||||
|
@selection-change="handleSelectionChange">
|
||||||
|
<el-table-column :reserve-selection="true" type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
||||||
|
<el-table-column prop="NAME" label="姓名" align="center"/>
|
||||||
|
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/>
|
||||||
|
<el-table-column label="操作" align="center" width="150">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">详情</el-button>
|
||||||
|
<el-button v-if="false" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])">审批</el-button>
|
||||||
|
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)">电子合格证</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div>
|
||||||
|
<el-button v-if="false" type="primary" icon="el-icon-plus" @click="handleAdd">批量申请</el-button>
|
||||||
|
</div>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||||
|
</div>
|
||||||
|
<user ref="userInfo" append-to-body/>
|
||||||
|
<user-info ref="userInfos" append-to-body/>
|
||||||
|
<send-util ref="sendUtil" append-to-body @refresh="getList"/>
|
||||||
|
<apply ref="apply" append-to-body @refresh="getList"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import apply from './apply'
|
||||||
|
import user from './user.vue'
|
||||||
|
import SendUtil from './sendUtil.vue'
|
||||||
|
import UserInfo from './userInfo.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { UserInfo, SendUtil, Pagination, apply, vueQr, user },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
QRCodeDialog: false,
|
||||||
|
qrcodeStr: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
specialUsersList: {},
|
||||||
|
detailForm: {},
|
||||||
|
userEntryForm: {},
|
||||||
|
imgUrl: '',
|
||||||
|
SUPERVISE_CORPINFO_ID: '',
|
||||||
|
wenhuachengduList: [], // 文化程度
|
||||||
|
postList: [], // 岗位名称
|
||||||
|
photosOfLevel: [], // 三级教育照片
|
||||||
|
trainRecordList: [], // 培训记录
|
||||||
|
contractFileList: [], // 合同文件
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
gongshangbaoxianFile: [],
|
||||||
|
userPhotoFile: [], // 头像
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
socialPhotoFile: [], // 身份证照片
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
varList: [],
|
||||||
|
KEYWORDS: '',
|
||||||
|
statusList: [{ value: 0, label: '未培训' }, { value: 1, label: '培训中' }, {
|
||||||
|
value: 2,
|
||||||
|
label: '已培训(合格)'
|
||||||
|
}, { value: 3, label: '已培训(不合格)' }, { value: 9, label: '申请中' }],
|
||||||
|
STATUS: '',
|
||||||
|
add: false, // 新增按钮
|
||||||
|
del: false, // 删除按钮
|
||||||
|
edit: false, // 修改按钮
|
||||||
|
multipleSelection: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDict()
|
||||||
|
this.getList()
|
||||||
|
this.hasButton()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getQuery() {
|
||||||
|
if (this.$refs.multipleTable) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.listQuery = {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
goKeyReset() {
|
||||||
|
this.KEYWORDS = ''
|
||||||
|
this.STATUS = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.listLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/userList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
STATUS: '2',
|
||||||
|
EMPLOY_FLAG: '1',
|
||||||
|
VALID_FLAG: '1'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleShow(row) {
|
||||||
|
this.$refs.userInfos.init(row)
|
||||||
|
},
|
||||||
|
approve(row) {
|
||||||
|
this.$refs.sendUtil.init(row)
|
||||||
|
},
|
||||||
|
getUserInfo(row) {
|
||||||
|
this.$refs.userInfo.init(row)
|
||||||
|
},
|
||||||
|
handleAdd() {
|
||||||
|
const _selectData = this.$refs.multipleTable.selection
|
||||||
|
if (_selectData == null || _selectData.length == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '未勾选培训人员...',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
let rule = ''
|
||||||
|
for (let i = 0; _selectData.length > i; i++) {
|
||||||
|
if (rule === '') {
|
||||||
|
rule = _selectData[i].MANAGER_DEPARTMENT_ID
|
||||||
|
} else {
|
||||||
|
if (rule !== _selectData[i].MANAGER_DEPARTMENT_ID) {
|
||||||
|
this.$message.error('主管部门不是一个不能提交')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$refs.apply.init(_selectData)
|
||||||
|
},
|
||||||
|
|
||||||
|
hasButton() {
|
||||||
|
var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel'
|
||||||
|
requestFN(
|
||||||
|
'/head/hasButton',
|
||||||
|
{
|
||||||
|
keys: keys, tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
if (data.result == 'success') {
|
||||||
|
this.add = data.trainingbatchfhadminadd // 增
|
||||||
|
this.del = data.trainingbatchfhadmindel // 删
|
||||||
|
this.edit = data.trainingbatchfhadminedit // 改
|
||||||
|
this.fromExcel = data.fromExcel // 从excel导入权限
|
||||||
|
this.toExcel = data.toExcel // 导出到excel权限
|
||||||
|
} else if (data.result == 'exception') {
|
||||||
|
// showException('按钮权限', data.exception)// 显示异常
|
||||||
|
console.info('按钮权限:', data.exception)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getDict: function() {
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
|
||||||
|
).then((data) => {
|
||||||
|
this.wenhuachengduList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
|
||||||
|
).then((data) => {
|
||||||
|
this.postList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getRowKeys(row) {
|
||||||
|
return row.XGF_USER_ID
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
console.log(val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="头像" width="370px" destroy-on-close >
|
||||||
|
<el-image :src="src"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
src: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.src = e.src
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,198 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-page-header content="申请记录" @back="goBack"/>
|
||||||
|
<el-form label-width="130px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="申请人员">
|
||||||
|
<el-input v-model="KEYWORDS" placeholder="请输入申请人员"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<Treeselect
|
||||||
|
:options="companyTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="MANAGER"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="属地管理部门">
|
||||||
|
<Treeselect
|
||||||
|
:options="companyTreeData"
|
||||||
|
:normalizer="normalizer"
|
||||||
|
v-model="TERRITORIALITY"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
no-options-text="暂无数据"
|
||||||
|
no-children-text="暂无数据"
|
||||||
|
style="width: 100%;"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="申请状态">
|
||||||
|
<el-select v-model="AUDIT_STATUS" placeholder="请选择申请状态" style="width: 100%;">
|
||||||
|
<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-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="CREATTIME" label="申请时间" align="center" />
|
||||||
|
<el-table-column prop="CREATOR" label="申请人员" align="center" />
|
||||||
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安监部门" align="center" />
|
||||||
|
<el-table-column prop="MANAGER_DEPT_NAME" label="主管部门" align="center" />
|
||||||
|
<el-table-column prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" align="center" />
|
||||||
|
<el-table-column prop="TRAIN_DATE" label="申请年份" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
{{ new Date(row.CREATTIME).getFullYear() }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="AUDIT_STATUS" label="申请状态" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.AUDIT_STATUS === 0">待审核</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 1">审核中</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 2">待培训</span>
|
||||||
|
<span v-if="row.AUDIT_STATUS === 3">已完成</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="PASS_COUNT" label="审核通过人数" align="center" /> <!-- 已更新为申请状态中的审核通过人员数-->
|
||||||
|
<el-table-column prop="USER_COUNT" label="申请人数" align="center" />
|
||||||
|
<el-table-column label="操作" align="center" width="200">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<users ref="users"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
import users from './users'
|
||||||
|
export default {
|
||||||
|
components: { Pagination, Treeselect, users },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
varList: [],
|
||||||
|
treeData: [],
|
||||||
|
companyTreeData: [],
|
||||||
|
normalizer(node) {
|
||||||
|
return {
|
||||||
|
id: node.id,
|
||||||
|
label: node.name,
|
||||||
|
children: node.nodes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
MANAGER: null,
|
||||||
|
TERRITORIALITY: null,
|
||||||
|
statusList: [{ value: 0, label: '待审核' }, { value: 1, label: '审核中' }, { value: 2, label: '待培训' }, { value: 3, label: '已完成' }],
|
||||||
|
AUDIT_STATUS: '',
|
||||||
|
KEYWORDS: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
this.getTreeData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getQuery() {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.listQuery = {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
goKeyReset() {
|
||||||
|
this.MANAGER = null
|
||||||
|
this.TERRITORIALITY = null
|
||||||
|
this.AUDIT_STATUS = ''
|
||||||
|
this.KEYWORDS = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.listLoading = true
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
MANAGER: this.MANAGER,
|
||||||
|
TERRITORIALITY: this.TERRITORIALITY,
|
||||||
|
AUDIT_STATUS: this.AUDIT_STATUS,
|
||||||
|
KEYWORDS: this.KEYWORDS,
|
||||||
|
TYPE: 2,
|
||||||
|
USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.listLoading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
console.log(this.varList)
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得部门树
|
||||||
|
getTreeData() {
|
||||||
|
requestFN(
|
||||||
|
'/regulatoryApi/department/listTree',
|
||||||
|
{}
|
||||||
|
).then((data) => {
|
||||||
|
this.treeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'/companyApi/department/listTree',
|
||||||
|
{ CORPINFO_ID: this.$parent.SUPERVISE_CORPINFO_ID }
|
||||||
|
).then((data) => {
|
||||||
|
this.companyTreeData = JSON.parse(data.zTreeNodes)
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
handleShow(row) {
|
||||||
|
this.$refs.users.init(row)
|
||||||
|
},
|
||||||
|
goBack() {
|
||||||
|
this.$parent.activeName = 'List'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,67 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="头像" width="370px" destroy-on-close>
|
||||||
|
<el-form>
|
||||||
|
<el-form-item prop="TERRITORIALITY" label="是否通过 ">
|
||||||
|
<el-select v-model="value" placeholder="请选择">
|
||||||
|
<el-option label="是" value="1"/>
|
||||||
|
<el-option label="否" value="0"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">关 闭</el-button>
|
||||||
|
<el-button type="primary" @click="sendMessage()">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { Treeselect, vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
loading: false,
|
||||||
|
value: null,
|
||||||
|
heirloom: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.heirloom = JSON.stringify(e)
|
||||||
|
},
|
||||||
|
beforeClose() {
|
||||||
|
},
|
||||||
|
sendMessage(row) {
|
||||||
|
requestFN(
|
||||||
|
'/xgf/user/approve',
|
||||||
|
{
|
||||||
|
list: this.heirloom,
|
||||||
|
STATUS: this.value,
|
||||||
|
tm: new Date().getTime()
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.$message.success('推送成功')
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refresh', '')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,250 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" title="相关方安全告知培训合格证" width="370px">
|
||||||
|
<div v-for="item in peopleList" :key="item.CLASS_INFO_ID" style="height: 220px">
|
||||||
|
<div class="bg_table">
|
||||||
|
<div class="title">相关方安全告知培训合格证</div>
|
||||||
|
<div class="red">{{ item.CLASS_NO }}</div>
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 120px">
|
||||||
|
<div class="text textone name">姓名</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 100px;">
|
||||||
|
<div class="text text1 tcenter">{{ item.NAME }}</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 86px">
|
||||||
|
<div class="text text2 tcenter">工种</div>
|
||||||
|
</td>
|
||||||
|
<td style="width: 148px;">
|
||||||
|
<div v-if="item.JOBS_TYPE" class="text tcenter ">{{ item.JOBS_TYPE }}</div>
|
||||||
|
<div v-else>暂无</div>
|
||||||
|
</td>
|
||||||
|
<td rowspan="4" style="width: 134px;">
|
||||||
|
<img v-if="!getShowPicture(item)" src="../../../../assets/images/peopleHead.png" alt="" style="width: 116px; height: 146px">
|
||||||
|
<img v-if="getShowPicture(item)" :src="config.fileUrl + item.PHOTO" alt="" style="width: 116px; height: 146px" @click="openPicture(config.fileUrl + item.PHOTO)">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">资质</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div v-if="item.CERTIFICATE" class="text">{{ item.CERTIFICATE }}</div>
|
||||||
|
<div v-else>暂无</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">培训时间</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.OPENING_TIME }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">有效期限</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.VALIDITY_PERIOD_END }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">所在单位</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.DEPARTMENT_NAME }}</div>
|
||||||
|
</td>
|
||||||
|
<td rowspan="3" style="padding-top: 6px" @click="click(config.messageUrl + '?CLASS_INFO_ID=' + item.CLASS_INFO_ID)">
|
||||||
|
<vue-qr :text="config.messageUrl + '?CLASS_INFO_ID=' + item.CLASS_INFO_ID" :margin="0" :size="110" color-dark="#000" color-light="#fff"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">身份证号</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.CARD_ID }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="text textone">手机</div>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="text">{{ item.PHONE }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<QRCode ref="QRcode" append-to-body/>
|
||||||
|
<Picture ref="Picture" append-to-body/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import QRCode from './QRCode.vue'
|
||||||
|
import Picture from './picture.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { QRCode, Picture, vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
visible: false,
|
||||||
|
peopleList: [],
|
||||||
|
CLASS_MESSAGE_ID: '',
|
||||||
|
CLASS_INFO_ID: '',
|
||||||
|
USER_ID: '',
|
||||||
|
qrCodeStr: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
console.info(e)
|
||||||
|
if (e && e.CLASS_INFO_ID) {
|
||||||
|
this.CLASS_INFO_ID = e.CLASS_INFO_ID
|
||||||
|
}
|
||||||
|
if (e && e.CLASS_MESSAGE_ID) {
|
||||||
|
this.CLASS_MESSAGE_ID = e.CLASS_MESSAGE_ID
|
||||||
|
}
|
||||||
|
if (e && e.USER_ID) {
|
||||||
|
this.USER_ID = e.USER_ID
|
||||||
|
}
|
||||||
|
this.qrCodeStr = config.messageUrl + '?CLASS_INFO_ID=' + this.CLASS_INFO_ID
|
||||||
|
this.visible = true
|
||||||
|
this.getInfo()
|
||||||
|
},
|
||||||
|
getInfo() {
|
||||||
|
requestFN('/trainusers/getUserinfoList', {
|
||||||
|
CLASS_INFO_ID: this.CLASS_INFO_ID,
|
||||||
|
CLASS_MESSAGE_ID: this.CLASS_MESSAGE_ID,
|
||||||
|
USER_ID: this.USER_ID
|
||||||
|
})
|
||||||
|
.then((data) => {
|
||||||
|
this.peopleList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShowPicture(row) {
|
||||||
|
if (row.PHOTO && row.PHOTO !== '' && (row.PHOTO.indexOf('.jpg') >= 0 || row.PHOTO.indexOf('.png') >= 0 || row.PHOTO.indexOf('.jpeg') >= 0)) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
click(e) {
|
||||||
|
this.$refs.QRcode.init({ qrCodeStr: e })
|
||||||
|
},
|
||||||
|
openPicture(src) {
|
||||||
|
this.$refs.Picture.init({ src: src })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.name{
|
||||||
|
width: 120px;
|
||||||
|
overflow: hidden;//溢出隐藏
|
||||||
|
white-space: nowrap; // 强制一行显示
|
||||||
|
text-overflow: ellipsis;// 显示。。。省略号
|
||||||
|
}
|
||||||
|
.red {
|
||||||
|
width: 660px;
|
||||||
|
color: #ff0000;
|
||||||
|
margin-left: 34px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg_table {
|
||||||
|
background: url("../../../../assets/tablebg.jpg") no-repeat bottom center;
|
||||||
|
background-size: 100%;
|
||||||
|
width: 660px;
|
||||||
|
height: 430px;
|
||||||
|
border: 4px solid #453d3a;
|
||||||
|
transform: scale(0.5);
|
||||||
|
transform-origin: top left;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28px;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 34px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 590px;
|
||||||
|
color: #453d3a;
|
||||||
|
font-size: 20px;
|
||||||
|
margin: 34px;
|
||||||
|
text-align: left;
|
||||||
|
margin-top: 10px;
|
||||||
|
|
||||||
|
.tcenter {
|
||||||
|
text-align: center
|
||||||
|
}
|
||||||
|
|
||||||
|
.w60 {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w74 {
|
||||||
|
width: 148px
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
border: 2px solid #453d3a;
|
||||||
|
text-align: left;
|
||||||
|
height: 40px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.textone {
|
||||||
|
width: 80px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text1 {
|
||||||
|
width: 60px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text2 {
|
||||||
|
width: 50px;
|
||||||
|
text-align: justify;
|
||||||
|
text-align-last: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,409 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog
|
||||||
|
v-loading="loading"
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="查看"
|
||||||
|
width="80%">
|
||||||
|
<div class="information">
|
||||||
|
<el-scrollbar style="height: 550px;margin-bottom: 10px">
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<tr>
|
||||||
|
<th>照片</th>
|
||||||
|
<td>
|
||||||
|
<span v-if="imgUrl != ''">
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-else/>
|
||||||
|
</td>
|
||||||
|
<th>姓名</th>
|
||||||
|
<td>{{ userDetailForm.NAME }}</td>
|
||||||
|
<th>性别</th>
|
||||||
|
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>出生年月</th>
|
||||||
|
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
||||||
|
<th>年龄</th>
|
||||||
|
<td>{{ userDetailForm.AGE }}</td>
|
||||||
|
<th>手机号</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>身份证</th>
|
||||||
|
<td>{{ userDetailForm.CARD_ID }}</td>
|
||||||
|
<th>身份证照片</th>
|
||||||
|
<!--if条件不可删除-->
|
||||||
|
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in userCardIDPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>民族</th>
|
||||||
|
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
||||||
|
<th>婚姻状况</th>
|
||||||
|
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
||||||
|
<th>政治面貌</th>
|
||||||
|
<td>{{ userDetailForm.zzName }} {{
|
||||||
|
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
||||||
|
}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>户口所在地</th>
|
||||||
|
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
||||||
|
<th>现住址</th>
|
||||||
|
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
||||||
|
<th>联系电话</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>文化程度</th>
|
||||||
|
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
||||||
|
<th>岗位名称(工种)</th>
|
||||||
|
<td colspan="5">{{ userDetailForm.POST_ID }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳社保</th>
|
||||||
|
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in socialPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否参加三级安全培训</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="5">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in photosOfLevel"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳保险</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_BF) }}</td>
|
||||||
|
<th>是否特殊工种</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
||||||
|
<th>是否流动人员</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>培训记录</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="trainRecordList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="CLASS_NAME" label="班级名称" align="center"/>
|
||||||
|
<el-table-column prop="OPENING_TIME" label="开班时间" align="center"/>
|
||||||
|
<el-table-column prop="TRAINING_TYPE_NAME" label="培训类型" align="center"/>
|
||||||
|
<el-table-column prop="PLACE_NAME" label="培训地点" align="center"/>
|
||||||
|
<el-table-column label="培训有效期" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ formatDate(row.VALIDITY_PERIOD_START) }} 至 {{ formatDate(row.VALIDITY_PERIOD_END) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
||||||
|
<h1>特种作业人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 150px">证书名称</th>
|
||||||
|
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
||||||
|
<th style="width: 150px">作业类别</th>
|
||||||
|
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
||||||
|
<th style="width: 150px">操作项目</th>
|
||||||
|
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>特种作业证书编号</th>
|
||||||
|
<td>{{ item.SPECIAL_NUMBER }}</td>
|
||||||
|
<th>发证机关</th>
|
||||||
|
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>复审时间</th>
|
||||||
|
<td>{{ item.REVIEW_TIME }}</td>
|
||||||
|
<th>有效期</th>
|
||||||
|
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div v-if="applyList.length > 0" class="level-title mt-20">
|
||||||
|
<h1>申请信息</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
v-if="applyList.length > 0"
|
||||||
|
:data="applyList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="expand">
|
||||||
|
<template slot-scope="props">
|
||||||
|
<el-row>
|
||||||
|
<el-form label-position="left" inline class="demo-table-expand">
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="属地管理部门">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="审批人">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item v-if="false" label="审批结果">
|
||||||
|
<span v-if="props.row.TERRITORIALITY_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.TERRITORIALITY_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item v-if="false" label="审批意见">
|
||||||
|
<span>{{ props.row.TERRITORIALITY_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<span>{{ props.row.MANAGER_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span>{{ props.row.MANAGER_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span v-if="props.row.MANAGER_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.MANAGER_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item label="审批意见">
|
||||||
|
<span>{{ props.row.MANAGER_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="主管部门">
|
||||||
|
<span>{{ props.row.SUPERVISION_DEPARTMENT_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span>{{ props.row.SUPERVISION_USER_NAME }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="审批人">
|
||||||
|
<span v-if="props.row.SUPERVISION_STATE === 0">不通过</span>
|
||||||
|
<span v-if="props.row.SUPERVISION_STATE ===1">通过</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="9">
|
||||||
|
<el-form-item label="审批意见">
|
||||||
|
<span>{{ props.row.SUPERVISION_OPINION }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-form>
|
||||||
|
</el-row>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" align="center"/>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column v-if="false" prop="TERRITORIALITY_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.TERRITORIALITY_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.TERRITORIALITY_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="MANAGER_DEPARTMENT_NAME" label="主管部门" align="center"/>
|
||||||
|
<el-table-column prop="MANAGER_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column prop="MANAGER_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.MANAGER_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.MANAGER_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安全监督部门" align="center"/>
|
||||||
|
<el-table-column prop="SUPERVISION_USER_NAME" label="审批人" align="center"/>
|
||||||
|
<el-table-column prop="SUPERVISION_STATE" label="审批结果" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.SUPERVISION_STATE === 0">不通过</span>
|
||||||
|
<span v-if="row.SUPERVISION_STATE ===1">通过</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">取 消</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { vueQr },
|
||||||
|
props: {
|
||||||
|
appendToBody: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
imgUrl: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
trainRecordList: [],
|
||||||
|
photosOfLevel: [], // 三级教育照片
|
||||||
|
specialUsersList: {},
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
contractFileList: [],
|
||||||
|
socialPhotoFile: [],
|
||||||
|
gongshangbaoxianFile: [],
|
||||||
|
applyList: [],
|
||||||
|
loading: false,
|
||||||
|
heirloom: {},
|
||||||
|
config: config
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(e) {
|
||||||
|
this.visible = true
|
||||||
|
this.heirloom = JSON.parse(JSON.stringify(e))
|
||||||
|
this.getUserInfoById(this.heirloom)
|
||||||
|
},
|
||||||
|
formatDate(date, column) {
|
||||||
|
if (date) {
|
||||||
|
return dateformat(date, 'YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getUserInfoById(row) {
|
||||||
|
this.loading = true
|
||||||
|
requestFN(
|
||||||
|
'/xgf/user/getInfo',
|
||||||
|
{
|
||||||
|
XGF_USER_ID: row.XGF_USER_ID,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
Object.assign(this.userDetailForm, data.info)
|
||||||
|
const picture = data.img
|
||||||
|
this.userPhotoFile = picture.userPhotoFile
|
||||||
|
if (this.userPhotoFile.length > 0) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
|
}
|
||||||
|
this.photosOfLevel = picture.photosOfLevel
|
||||||
|
this.specialUsersList = picture.specialUsers
|
||||||
|
this.insuranceFileList = picture.insuranceFile
|
||||||
|
this.contractFileList = picture.contractFile
|
||||||
|
this.userCardIDPhotoFile = picture.userCardIDPhotoFile
|
||||||
|
this.socialPhotoFile = picture.socialPhotoFile
|
||||||
|
this.gongshangbaoxianFile = picture.gongshangbaoxianFile
|
||||||
|
if (row.STATUS === '2') {
|
||||||
|
this.qrCodeStr = config.messageUrl + '?USER_ID=' + row.USER_ID
|
||||||
|
} else {
|
||||||
|
this.qrCodeStr = ''
|
||||||
|
}
|
||||||
|
this.trainRecordList = data.trainRecordList
|
||||||
|
this.applyList = data.applyList
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
formatLabel(value) {
|
||||||
|
if (value == '1') {
|
||||||
|
return '是'
|
||||||
|
} else if (value == '0') {
|
||||||
|
return '否'
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.information >>> .el-scrollbar__wrap {
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,513 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-dialog
|
||||||
|
v-if="visible"
|
||||||
|
:visible.sync="visible"
|
||||||
|
:before-close="handleClose"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="申请详情"
|
||||||
|
width="60%">
|
||||||
|
<div class="level-title mt-20" style="display: flex;justify-content: space-between;">
|
||||||
|
<h1>申请信息</h1>
|
||||||
|
</div>
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 17%">申请人</th>
|
||||||
|
<td style="width: 17%">{{ pd.CREATOR }}</td>
|
||||||
|
<th style="width: 17%">申请时间</th>
|
||||||
|
<td style="width: 17%">{{ pd.CREATTIME }}</td>
|
||||||
|
<th style="width: 17%">备注</th>
|
||||||
|
<td style="width: 15%">{{ pd.DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 30px">安监部门</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_DEPARTMENT_NAME }}</td>
|
||||||
|
<th style="width: 30px">审核人</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_USER_NAME }}</td>
|
||||||
|
<th style="width: 30px">审核时间</th>
|
||||||
|
<td style="width: 50px">{{ pd.SUPERVISION_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>主管部门</th>
|
||||||
|
<td>{{ pd.MANAGER_DEPT_NAME }}</td>
|
||||||
|
<th>审核人</th>
|
||||||
|
<td>{{ pd.MANAGER_USER_NAME }}</td>
|
||||||
|
<th>审核时间</th>
|
||||||
|
<td>{{ pd.MANAGER_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>属地管理部门</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_DEPARTMENT_NAME }}</td>
|
||||||
|
<th>审核人</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_USER_NAME }}</td>
|
||||||
|
<th>审核时间</th>
|
||||||
|
<td>{{ pd.TERRITORIALITY_TIME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr v-if="pd.AUDIT_DESCR">
|
||||||
|
<th>股份公司意见</th>
|
||||||
|
<td colspan="5">{{ pd.AUDIT_DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr v-if="pd.CORP_AUDIT_DESCR">
|
||||||
|
<th>分公司意见</th>
|
||||||
|
<td colspan="5">{{ pd.CORP_AUDIT_DESCR }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>申请人员列表</h1>
|
||||||
|
</div>
|
||||||
|
<el-table ref="multipleTable" :data="userList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="USERNAME" label="用户名" align="center" />
|
||||||
|
<el-table-column prop="NAME" label="姓名" align="center" />
|
||||||
|
<el-table-column prop="DEPARTMENT_NAME" label="部门" align="center" />
|
||||||
|
<el-table-column prop="STATE" label="审核状态" align="center" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-tag v-if="row.MANAGER_STATE === 0 || row.SUPERVISION_STATE === 0 || row.TERRITORIALITY_STATE === 0" type="danger">审核不通过</el-tag>
|
||||||
|
<el-tag v-else-if="row.MANAGER_STATE === 1 && row.SUPERVISION_STATE === 1 && row.TERRITORIALITY_STATE === 1" type="success">审核通过</el-tag>
|
||||||
|
<el-tag v-else type="success">待审核</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="200" >
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.USER_ID)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getUserList" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog
|
||||||
|
v-if="userInfoDialog"
|
||||||
|
:visible.sync="userInfoDialog"
|
||||||
|
:append-to-body="true"
|
||||||
|
title="查看"
|
||||||
|
width="60%">
|
||||||
|
<table class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<tr>
|
||||||
|
<th>照片</th>
|
||||||
|
<td>
|
||||||
|
<span v-if="imgUrl != ''">
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span v-else/>
|
||||||
|
</td>
|
||||||
|
<th>姓名</th>
|
||||||
|
<td>{{ userDetailForm.NAME }}</td>
|
||||||
|
<th>性别</th>
|
||||||
|
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>出生年月</th>
|
||||||
|
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
||||||
|
<th>年龄</th>
|
||||||
|
<td>{{ userDetailForm.AGE }}</td>
|
||||||
|
<th>手机号</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>身份证</th>
|
||||||
|
<td>{{ userDetailForm.CARD_ID }}</td>
|
||||||
|
<th>身份证照片</th>
|
||||||
|
<!--if条件不可删除-->
|
||||||
|
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in userCardIDPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>民族</th>
|
||||||
|
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
||||||
|
<th>婚姻状况</th>
|
||||||
|
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
||||||
|
<th>政治面貌</th>
|
||||||
|
<td>{{ userDetailForm.zzName }} {{
|
||||||
|
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
||||||
|
}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>户口所在地</th>
|
||||||
|
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
||||||
|
<th>现住址</th>
|
||||||
|
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
||||||
|
<th>联系电话</th>
|
||||||
|
<td>{{ userDetailForm.PHONE }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>文化程度</th>
|
||||||
|
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
||||||
|
<th>岗位名称(工种)</th>
|
||||||
|
<td colspan="5">{{ userDetailForm.POST_ID }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳社保</th>
|
||||||
|
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in socialPhotoFile"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否参加三级安全培训</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
||||||
|
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
||||||
|
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="5">
|
||||||
|
<span>
|
||||||
|
<div class="img-flex">
|
||||||
|
<viewer>
|
||||||
|
<img
|
||||||
|
v-for="item in photosOfLevel"
|
||||||
|
:src="config.fileUrl + item.FILEPATH"
|
||||||
|
:key="item.IMGFILES_ID"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
style="object-fit: cover;">
|
||||||
|
</viewer>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>是否缴纳保险</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_BF) }}</td>
|
||||||
|
<th>是否特殊工种</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
||||||
|
<th>是否流动人员</th>
|
||||||
|
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="level-title">
|
||||||
|
<h1>培训记录</h1>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="trainRecordList"
|
||||||
|
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row>
|
||||||
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
|
<el-table-column prop="CLASS_NAME" label="班级名称" align="center"/>
|
||||||
|
<el-table-column prop="OPENING_TIME" label="开班时间" align="center"/>
|
||||||
|
<el-table-column prop="TRAINING_TYPE_NAME" label="培训类型" align="center"/>
|
||||||
|
<el-table-column prop="PLACE_NAME" label="培训地点" align="center"/>
|
||||||
|
<el-table-column label="培训有效期" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span>{{ formatDate(row.VALIDITY_PERIOD_START) }} 至 {{ formatDate(row.VALIDITY_PERIOD_END) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
||||||
|
<h1>特种作业人员信息</h1>
|
||||||
|
</div>
|
||||||
|
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 150px">证书名称</th>
|
||||||
|
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
||||||
|
<th style="width: 150px">作业类别</th>
|
||||||
|
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
||||||
|
<th style="width: 150px">操作项目</th>
|
||||||
|
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>特种作业证书编号</th>
|
||||||
|
<td>{{ item.SPECIAL_NUMBER }}</td>
|
||||||
|
<th>发证机关</th>
|
||||||
|
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>复审时间</th>
|
||||||
|
<td>{{ item.REVIEW_TIME }}</td>
|
||||||
|
<th>有效期</th>
|
||||||
|
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div
|
||||||
|
v-if="detailForm.SUPERVISION_STATE === 0 || detailForm.MANAGER_STATE === 0 || detailForm.TERRITORIALITY_STATE === 0"
|
||||||
|
class="level-title mt-20">
|
||||||
|
<h1>打回信息</h1>
|
||||||
|
</div>
|
||||||
|
<table
|
||||||
|
v-if="detailForm.SUPERVISION_STATE === 0 || detailForm.MANAGER_STATE === 0 || detailForm.TERRITORIALITY_STATE === 0"
|
||||||
|
class="table-ui"
|
||||||
|
style="margin-bottom: 20px;">
|
||||||
|
<tr>
|
||||||
|
<th>打回人</th>
|
||||||
|
<td v-if="detailForm.SUPERVISION_STATE === 0">{{ detailForm.SUPERVISION_USER_NAME }}</td>
|
||||||
|
<td v-if="detailForm.MANAGER_STATE === 0">{{ detailForm.MANAGER_USER_NAME }}</td>
|
||||||
|
<td
|
||||||
|
v-if="detailForm.TERRITORIALITY_STATE === 0 && detailForm.MANAGER_USER_NAME !== detailForm.TERRITORIALITY_USER_NAME">
|
||||||
|
{{ detailForm.TERRITORIALITY_USER_NAME }}
|
||||||
|
</td>
|
||||||
|
<th>打回原由</th>
|
||||||
|
<td v-if="detailForm.SUPERVISION_STATE === 0">{{ detailForm.SUPERVISION_OPINION }}</td>
|
||||||
|
<td v-if="detailForm.MANAGER_STATE === 0">{{ detailForm.MANAGER_OPINION }}</td>
|
||||||
|
<td
|
||||||
|
v-if="detailForm.TERRITORIALITY_STATE === 0 && detailForm.MANAGER_USER_NAME !== detailForm.TERRITORIALITY_USER_NAME">
|
||||||
|
{{ detailForm.TERRITORIALITY_OPINION }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="userInfoDialog = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog :visible.sync="QRCodeDialog" title="查看二维码" width="680px" class="top-dialog">
|
||||||
|
<div class="table-qrcode" style="text-align: center;padding-top: 30px;">
|
||||||
|
<vue-qr :text="qrcodeStr" :margin="0" :size="300" color-dark="#000" color-light="#fff" />
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="QRCodeDialog = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import vueQr from 'vue-qr'
|
||||||
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Pagination,
|
||||||
|
vueQr
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
contractFileList: [], // 合同文件
|
||||||
|
insuranceFileList: [], // 保险文件
|
||||||
|
userInfoDialog: false,
|
||||||
|
QRCodeDialog: false,
|
||||||
|
qrcodeStr: '',
|
||||||
|
userDetailForm: {},
|
||||||
|
userEntryForm: {},
|
||||||
|
specialUsersList: {},
|
||||||
|
imgUrl: '',
|
||||||
|
wenhuachengduList: [], // 文化程度
|
||||||
|
userCardIDPhotoFile: [], // 身份证照片
|
||||||
|
postList: [], // 岗位名称
|
||||||
|
trainRecordList: [], // 培训记录
|
||||||
|
visible: false,
|
||||||
|
pd: {},
|
||||||
|
userList: [],
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
photosOfLevel: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formatDate(date, column) {
|
||||||
|
if (date) {
|
||||||
|
return dateformat(date, 'YYYY-MM-DD')
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
init(e) {
|
||||||
|
if (e) {
|
||||||
|
this.pd = e
|
||||||
|
}
|
||||||
|
this.visible = true
|
||||||
|
this.userList = []
|
||||||
|
this.getDict()
|
||||||
|
this.getUserList()
|
||||||
|
},
|
||||||
|
// 获取数据字典数据
|
||||||
|
getDict: function() {
|
||||||
|
requestFN(
|
||||||
|
'/dictionaries/getLevels',
|
||||||
|
{
|
||||||
|
DICTIONARIES_ID: '1144b16d85f14b108ea7859e2be9d001'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.flowAreaList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
|
||||||
|
).then((data) => {
|
||||||
|
this.wenhuachengduList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'dictionaries/getLevels',
|
||||||
|
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
|
||||||
|
).then((data) => {
|
||||||
|
this.postList = data.list
|
||||||
|
}).catch((e) => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 人员
|
||||||
|
getUserList() {
|
||||||
|
requestFN(
|
||||||
|
'/trainingbatch/batchUserList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
TRAININGBATCH_ID: this.pd.TRAININGBATCH_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
}).catch((e) => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 二维码
|
||||||
|
showQRCode(id) {
|
||||||
|
this.QRCodeDialog = true
|
||||||
|
const arr = [{ USER_ID: id, CODE_TYPE: '1' }]
|
||||||
|
this.qrcodeStr = JSON.stringify(arr)
|
||||||
|
},
|
||||||
|
// 查看
|
||||||
|
async handleShow(USER_ID) {
|
||||||
|
await this.getUserInfoById(USER_ID)
|
||||||
|
await this.getOtherUserInfoById(USER_ID)
|
||||||
|
this.userInfoDialog = true
|
||||||
|
},
|
||||||
|
getUserInfoById(id) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
requestFN(
|
||||||
|
'/user/getFloatPersonDetailById',
|
||||||
|
{
|
||||||
|
USER_ID: id,
|
||||||
|
TRAININGBATCH_ID: this.pd.TRAININGBATCH_ID,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
||||||
|
this.userEntryForm = Object.assign(this.userEntryForm, data.eCard)
|
||||||
|
if (this.userDetailForm.PHOTO) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userDetailForm.PHOTO
|
||||||
|
}
|
||||||
|
this.trainRecordList = data.recordList
|
||||||
|
// this.insuranceFileList = data.insuranceFile
|
||||||
|
// this.contractFileList = data.contractFile
|
||||||
|
resolve()
|
||||||
|
}).catch((e) => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getOtherUserInfoById(id) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
requestFN(
|
||||||
|
'user/getDetailByUserIdAndCorpInfoId',
|
||||||
|
{
|
||||||
|
USER_ID: id,
|
||||||
|
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||||
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
Object.assign(this.userDetailForm, data.pd)
|
||||||
|
this.userPhotoFile = data.userPhotoFile
|
||||||
|
if (this.userPhotoFile.length > 0) {
|
||||||
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
|
}
|
||||||
|
this.insuranceFileList = data.insuranceFile
|
||||||
|
this.specialUsersList = data.specialUsers
|
||||||
|
this.contractFileList = data.contractFile
|
||||||
|
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
||||||
|
this.socialPhotoFile = data.socialPhotoFile
|
||||||
|
this.gongshangbaoxianFile = data.gongshangbaoxianFile
|
||||||
|
resolve()
|
||||||
|
}).catch((e) => {
|
||||||
|
reject()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 转换是否
|
||||||
|
formatLabel(value) {
|
||||||
|
if (value == '1') {
|
||||||
|
return '是'
|
||||||
|
} else if (value == '0') {
|
||||||
|
return '否'
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 转换字典数据
|
||||||
|
formatDictioariesLabel(value, type) {
|
||||||
|
var list = []
|
||||||
|
if (type == '0') {
|
||||||
|
list = this.wenhuachengduList
|
||||||
|
} else if (type == '1') {
|
||||||
|
list = this.postList
|
||||||
|
}
|
||||||
|
if (value) {
|
||||||
|
if (list.length > 0) {
|
||||||
|
var data = ''
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
const obj = list[i]
|
||||||
|
if (value == obj.BIANMA) {
|
||||||
|
data = obj.NAME
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return data
|
||||||
|
} else {
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
handleClose() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
closeWindow() {
|
||||||
|
this.handleClose()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
<template>
|
||||||
|
<component :is="activeName" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import List from './components/list'
|
||||||
|
import Record from './components/record'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
List: List,
|
||||||
|
Record: Record
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
activeName: 'List',
|
||||||
|
SUPERVISE_CORPINFO_ID: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<template>
|
flowTrain/batchList<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form label-width="100px">
|
<el-form label-width="100px">
|
||||||
<el-row>
|
<el-row>
|
||||||
|
|
@ -35,14 +35,14 @@
|
||||||
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
<el-table ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" tooltip-effect="dark" border fit highlight-current-row>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
<el-table-column prop="RELEVANT_UNIT_NAME" label="相关方单位名称" />
|
<el-table-column prop="BELONG_TO_CORP_NAME" label="相关方单位名称" />
|
||||||
<el-table-column prop="CREATTIME" label="申请时间" />
|
<el-table-column prop="CREATTIME" label="申请时间" />
|
||||||
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安全监督部" />
|
<el-table-column prop="SUPERVISION_DEPARTMENT_NAME" label="安全监督部" />
|
||||||
<el-table-column prop="SUPERVISION_USER_NAME" label="安全监督部人员" />
|
<el-table-column prop="SUPERVISION_USER_NAME" label="安全监督部人员" />
|
||||||
<el-table-column prop="MAIN_DEPARTMENT_NAME" label="主管部门" />
|
<el-table-column prop="MANAGER_DEPARTMENT_NAME" label="主管部门" />
|
||||||
<el-table-column prop="MANAGER_USER_NAME" label="主管部门人员" />
|
<el-table-column prop="MANAGER_USER_NAME" label="主管部门人员" />
|
||||||
<el-table-column prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" />
|
<el-table-column v-if="false" prop="TERRITORIALITY_DEPARTMENT_NAME" label="属地管理部门" />
|
||||||
<el-table-column prop="TERRITORIALITY_USER_NAME" label="属地管理部门人员" />
|
<el-table-column v-if="false" prop="TERRITORIALITY_USER_NAME" label="属地管理部门人员" />
|
||||||
<el-table-column prop="TRAIN_DATE" label="申请年份" >
|
<el-table-column prop="TRAIN_DATE" label="申请年份" >
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
{{ new Date(row.CREATTIME).getFullYear() }}
|
{{ new Date(row.CREATTIME).getFullYear() }}
|
||||||
|
|
@ -50,16 +50,16 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="AUDIT_STATUS" label="申请状态" >
|
<el-table-column prop="AUDIT_STATUS" label="申请状态" >
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<span v-if="row.AUDIT_STATUS === 0">待审核</span>
|
<span v-if="row.STEP_STATUS === '0'">集团单位审批中</span>
|
||||||
<span v-if="row.AUDIT_STATUS === 1">审核中</span>
|
<span v-if="row.STEP_STATUS === '1'">股份主管部门审批中</span>
|
||||||
<span v-if="row.AUDIT_STATUS === 2">待培训</span>
|
<span v-if="row.STEP_STATUS === '2'">股份安监部门审批中</span>
|
||||||
<span v-if="row.AUDIT_STATUS === 3">已完成</span>
|
<span v-if="row.STEP_STATUS === '3'">审批通过</span>
|
||||||
</template>
|
</template>
|
||||||
</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="judge(row)" type="success" icon="el-icon-edit" size="mini" @click="handleAudit({id:row.TRAINING_BATCH_ID,vectory:judge(row)})">审核</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({id:row.TRAINING_BATCH_ID,vectory:judge(row)})">查看</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -120,7 +120,7 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
requestFN(
|
requestFN(
|
||||||
'/flowTrain/batchList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
'/flowTrain/oldBatchList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
{
|
{
|
||||||
XGF_NAME_REG: this.XGF_NAME,
|
XGF_NAME_REG: this.XGF_NAME,
|
||||||
ENTRUST_STARTTIME: this.dates[0],
|
ENTRUST_STARTTIME: this.dates[0],
|
||||||
|
|
@ -139,12 +139,24 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
handleAudit(id) {
|
handleAudit(e) {
|
||||||
this.$refs.users.init(id, '1')
|
this.$refs.users.init(e.id, '1', e.vectory)
|
||||||
},
|
},
|
||||||
|
|
||||||
handleShow(id) {
|
handleShow(e) {
|
||||||
this.$refs.users.init(id, '0')
|
this.$refs.users.init(e.id, '0', e.vectory)
|
||||||
|
},
|
||||||
|
judge(row) {
|
||||||
|
if (row.STEP_STATUS === '0') {
|
||||||
|
return this.USER_ID === row.TERRITORIALITY_USER_ID
|
||||||
|
}
|
||||||
|
if (row.STEP_STATUS === '1') {
|
||||||
|
return this.USER_ID === row.MANAGER_USER_ID
|
||||||
|
}
|
||||||
|
if (row.STEP_STATUS === '2') {
|
||||||
|
return this.USER_ID === row.SUPERVISION_USER_ID
|
||||||
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>安全监督部门</th>
|
<th>安全监督部门</th>
|
||||||
<td>{{ pd.SUPERVISION_DEPT_NAME }}</td>
|
<td>{{ pd.SUPERVISION_DEPARTMENT_NAME }}</td>
|
||||||
<th>审核人员</th>
|
<th>审核人员</th>
|
||||||
<td>{{ pd.SUPERVISION_USER_NAME }}</td>
|
<td>{{ pd.SUPERVISION_USER_NAME }}</td>
|
||||||
<th>审核时间</th>
|
<th>审核时间</th>
|
||||||
|
|
@ -30,17 +30,17 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>主管部门</th>
|
<th>主管部门</th>
|
||||||
<td>{{ pd.MANAGER_DEPT_NAME }}</td>
|
<td>{{ pd.MANAGER_DEPARTMENT_NAME }}</td>
|
||||||
<th>审核人员</th>
|
<th>审核人员</th>
|
||||||
<td>{{ pd.MANAGER_USER_NAME }}</td>
|
<td>{{ pd.MANAGER_USER_NAME }}</td>
|
||||||
<th>审核时间</th>
|
<th>审核时间</th>
|
||||||
<td>{{ pd.MANAGER_TIME }}</td>
|
<td>{{ pd.MANAGER_TIME }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr v-if="pd.TERRITORIALITY_DEPARTMENT_NAME && pd.TERRITORIALITY_DEPARTMENT_NAME !== ''">
|
||||||
<th>集团单位</th>
|
<th>集团单位</th>
|
||||||
<td>{{ pd.ERRITORIALITY_DEPT_NAME }}</td>
|
<td>{{ pd.TERRITORIALITY_DEPARTMENT_NAME }}</td>
|
||||||
<th>审核人员</th>
|
<th>审核人员</th>
|
||||||
<td>{{ pd.ERRITORIALITY_USER_NAME }}</td>
|
<td>{{ pd.TERRITORIALITY_USER_NAME }}</td>
|
||||||
<th>审核时间</th>
|
<th>审核时间</th>
|
||||||
<td>{{ pd.TERRITORIALITY_TIME }}</td>
|
<td>{{ pd.TERRITORIALITY_TIME }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -65,8 +65,8 @@
|
||||||
<el-table-column type="index" label="序号" width="50" align="center"/>
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
<el-table-column prop="USERNAME" label="用户名"/>
|
<el-table-column prop="USERNAME" label="用户名"/>
|
||||||
<el-table-column prop="NAME" label="姓名"/>
|
<el-table-column prop="NAME" label="姓名"/>
|
||||||
<el-table-column prop="DEPARTMENT_NAME" label="部门"/>
|
<el-table-column prop="BELONG_TO_CORP_NAME" label="部门"/>
|
||||||
<el-table-column prop="STATUS" label="评审状态">
|
<el-table-column prop="STUDY_STATUS" label="评审状态">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<span>{{ getType(row) }}</span>
|
<span>{{ getType(row) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -74,20 +74,8 @@
|
||||||
<el-table-column label="操作" align="center" width="240">
|
<el-table-column label="操作" align="center" width="240">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">查看</el-button>
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">查看</el-button>
|
||||||
<el-button
|
<el-button v-if="row.STATUS === 2" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)">电子合格证</el-button>
|
||||||
v-if="row.STATUS === 2 && row.TRAIN_STATUS === '1' && row.SUPERVISION_STATE == 1 && row.MANAGER_STATE == 1 && row.TERRITORIALITY_STATE==1"
|
<el-button v-if="row[pd.step] === 9" type="success" icon="el-icon-edit" size="mini" @click="examineShow(row)">审核</el-button>
|
||||||
type="success"
|
|
||||||
icon="el-icon-edit"
|
|
||||||
size="mini"
|
|
||||||
@click="getUserInfo(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>
|
||||||
|
|
@ -97,173 +85,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="closeWindow">关 闭</el-button>
|
<el-button @click="closeWindow">关 闭</el-button>
|
||||||
|
<el-button v-if="vectory" type="primary" @click="comfirm">确定提交审批</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
|
||||||
v-if="userInfoDialog"
|
|
||||||
:visible.sync="userInfoDialog"
|
|
||||||
:append-to-body="true"
|
|
||||||
title="查看"
|
|
||||||
width="60%">
|
|
||||||
<table class="table-ui" style="margin-bottom: 20px;">
|
|
||||||
<div class="level-title">
|
|
||||||
<h1>人员信息</h1>
|
|
||||||
</div>
|
|
||||||
<tr>
|
|
||||||
<th>照片</th>
|
|
||||||
<td>
|
|
||||||
<span v-if="imgUrl != ''">
|
|
||||||
<div class="img-flex">
|
|
||||||
<viewer>
|
|
||||||
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;">
|
|
||||||
</viewer>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
<span v-else/>
|
|
||||||
</td>
|
|
||||||
<th>姓名</th>
|
|
||||||
<td>{{ userDetailForm.NAME }}</td>
|
|
||||||
<th>性别</th>
|
|
||||||
<td>{{ userDetailForm.SEX === '0' ? '男' : '女' }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>出生年月</th>
|
|
||||||
<td>{{ userDetailForm.DATE_OF_BIRTH }}</td>
|
|
||||||
<th>年龄</th>
|
|
||||||
<td>{{ userDetailForm.AGE }}</td>
|
|
||||||
<th>手机号</th>
|
|
||||||
<td>{{ userDetailForm.PHONE }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>身份证</th>
|
|
||||||
<td>{{ userDetailForm.CARD_ID }}</td>
|
|
||||||
<th>身份证照片</th>
|
|
||||||
<!--if条件不可删除-->
|
|
||||||
<td v-if="userCardIDPhotoFile.length>0" colspan="3">
|
|
||||||
<span>
|
|
||||||
<div class="img-flex">
|
|
||||||
<viewer>
|
|
||||||
<img
|
|
||||||
v-for="item in userCardIDPhotoFile"
|
|
||||||
:src="config.fileUrl + item.FILEPATH"
|
|
||||||
:key="item.IMGFILES_ID"
|
|
||||||
width="40"
|
|
||||||
height="40"
|
|
||||||
style="object-fit: cover;">
|
|
||||||
</viewer>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<th>民族</th>
|
|
||||||
<td>{{ userDetailForm.minzuName ? userDetailForm.minzuName : '暂无信息' }}</td>
|
|
||||||
<th>婚姻状况</th>
|
|
||||||
<td>{{ userDetailForm.MARITALSTATUS === '0' ? '未婚' : '已婚' }}</td>
|
|
||||||
<th>政治面貌</th>
|
|
||||||
<td>{{ userDetailForm.zzName }} {{
|
|
||||||
userDetailForm.zzName == '中共党员' ? '入党时间' + userDetailForm.POLITICAL_TIME : ''
|
|
||||||
}}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<th>户口所在地</th>
|
|
||||||
<td>{{ userDetailForm.HKLOCAL ? userDetailForm.HKLOCAL : '暂无信息' }}</td>
|
|
||||||
<th>现住址</th>
|
|
||||||
<td>{{ userDetailForm.ADDRESS ? userDetailForm.ADDRESS : '暂无信息' }}</td>
|
|
||||||
<th>联系电话</th>
|
|
||||||
<td>{{ userDetailForm.PHONE }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>文化程度</th>
|
|
||||||
<td>{{ userDetailForm.DEGREE_OF_EDUCATION_NAME }}</td>
|
|
||||||
<th>岗位名称(工种)</th>
|
|
||||||
<td colspan="3">{{ userDetailForm.POST_ID }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>是否缴纳社保</th>
|
|
||||||
<td :colspan="userDetailForm.IS_SOCIAL === '1' ? '':5">{{ formatLabel(userDetailForm.IS_SOCIAL) }}</td>
|
|
||||||
<th v-if="userDetailForm.IS_SOCIAL === '1'">社会保障号码</th>
|
|
||||||
<td v-if="userDetailForm.IS_SOCIAL === '1'">{{ userDetailForm.SOCIAL_NUMBER }}</td>
|
|
||||||
<th v-if="userDetailForm.IS_SOCIAL === '1'">社保卡照片</th>
|
|
||||||
<td v-if="userDetailForm.IS_SOCIAL === '1'&& socialPhotoFile.length>0" colspan="3">
|
|
||||||
<span>
|
|
||||||
<div class="img-flex">
|
|
||||||
<viewer>
|
|
||||||
<img
|
|
||||||
v-for="item in socialPhotoFile"
|
|
||||||
:src="config.fileUrl + item.FILEPATH"
|
|
||||||
:key="item.IMGFILES_ID"
|
|
||||||
width="40"
|
|
||||||
height="40"
|
|
||||||
style="object-fit: cover;">
|
|
||||||
</viewer>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>是否参加三级安全培训</th>
|
|
||||||
<td>{{ formatLabel(userDetailForm.IS_LEVEL_THREE) }}</td>
|
|
||||||
<th v-if="userDetailForm.IS_LEVEL_THREE == 1">三级安全培训照片</th>
|
|
||||||
<td v-if="userDetailForm.IS_LEVEL_THREE == 1 && photosOfLevel.length>0" colspan="3">
|
|
||||||
<span>
|
|
||||||
<div class="img-flex">
|
|
||||||
<viewer>
|
|
||||||
<img
|
|
||||||
v-for="item in photosOfLevel"
|
|
||||||
:src="config.fileUrl + item.FILEPATH"
|
|
||||||
:key="item.IMGFILES_ID"
|
|
||||||
width="40"
|
|
||||||
height="40"
|
|
||||||
style="object-fit: cover;">
|
|
||||||
</viewer>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>是否缴纳保险</th>
|
|
||||||
<td>{{ formatLabelBf(userDetailForm.IS_BF) }}</td>
|
|
||||||
<th>是否特殊工种</th>
|
|
||||||
<td>{{ formatLabel(userDetailForm.IS_SPECIAL_JOB) }}</td>
|
|
||||||
<th>是否流动人员</th>
|
|
||||||
<td>{{ formatLabel(userDetailForm.ISFLOW) }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div v-if="userDetailForm.IS_SPECIAL_JOB == '1'" class="level-title">
|
|
||||||
<h1>特种作业人员信息</h1>
|
|
||||||
</div>
|
|
||||||
<table v-for="(item,index) in specialUsersList" :key="index" class="table-ui" style="margin-bottom: 20px;">
|
|
||||||
<tr>
|
|
||||||
<th style="width: 150px">证书名称</th>
|
|
||||||
<td style="width: 150px">{{ item.CERTIFICATE }}</td>
|
|
||||||
<th style="width: 150px">作业类别</th>
|
|
||||||
<td style="width: 180px">{{ item.SPECIAL_TYPE_NAME }}</td>
|
|
||||||
<th style="width: 150px">操作项目</th>
|
|
||||||
<td>{{ item.OPERATION_TYPE_NAME }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>特种作业证书编号</th>
|
|
||||||
<td>{{ item.SPECIAL_NUMBER }}</td>
|
|
||||||
<th>发证机关</th>
|
|
||||||
<td colspan="3">{{ item.ISSUING_AUTHORITY }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>复审时间</th>
|
|
||||||
<td>{{ item.REVIEW_TIME }}</td>
|
|
||||||
<th>有效期</th>
|
|
||||||
<td colspan="3">{{ item.VALIDITY_TIME_START }} 至 {{ item.VALIDITY_TIME_END }}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="userInfoDialog = false">关 闭</el-button>
|
|
||||||
</div>
|
|
||||||
</el-dialog>
|
|
||||||
|
|
||||||
<el-dialog :visible.sync="dialogVisible" title="审核">
|
<el-dialog :visible.sync="dialogVisible" title="审核">
|
||||||
<el-form ref="StreetListingForm" :model="form" label-width="110px" style="width: 500px;">
|
<el-form ref="StreetListingForm" :model="form" label-width="110px" style="width: 500px;">
|
||||||
<el-form-item label="审核是否通过" prop="IS_LISTING">
|
<el-form-item label="审核是否通过" prop="IS_LISTING">
|
||||||
|
|
@ -283,6 +107,7 @@
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<user ref="userInfo" append-to-body/>
|
<user ref="userInfo" append-to-body/>
|
||||||
|
<user-info ref="userInfos" append-to-body/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -291,22 +116,21 @@ import Pagination from '@/components/Pagination' // 通过 el-pagination二次
|
||||||
import { requestFN } from '@/utils/request'
|
import { requestFN } from '@/utils/request'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import user from './user.vue'
|
import user from './user.vue'
|
||||||
|
import UserInfo from '../flowApply/components/userInfo.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
UserInfo,
|
||||||
Pagination, user
|
Pagination, user
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID,
|
USER_ID: JSON.parse(sessionStorage.getItem('user')).USER_ID,
|
||||||
config: config,
|
config: config,
|
||||||
userInfoDialog: false,
|
|
||||||
userDetailForm: {},
|
userDetailForm: {},
|
||||||
imgUrl: '',
|
imgUrl: '',
|
||||||
wenhuachengduList: [], // 文化程度
|
|
||||||
gongshangbaoxianFile: [],
|
gongshangbaoxianFile: [],
|
||||||
photosOfLevel: [],
|
photosOfLevel: [],
|
||||||
postList: [], // 岗位名称
|
|
||||||
visible: false,
|
visible: false,
|
||||||
pd: {},
|
pd: {},
|
||||||
userList: [],
|
userList: [],
|
||||||
|
|
@ -316,13 +140,13 @@ export default {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 20
|
limit: 20
|
||||||
},
|
},
|
||||||
TRAININGBATCH_ID: '',
|
TRAININ_GBATCH_ID: '',
|
||||||
total: 0,
|
total: 0,
|
||||||
viewState: '0',
|
viewState: '0',
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
form: {
|
form: {
|
||||||
TRAININGBATCH_ID: this.TRAININGBATCH_ID,
|
TRAINING_BATCH_ID: this.TRAINING_BATCH_ID,
|
||||||
TRAINUSERS_ID: '', // 培训批次 详情id
|
TRAIN_USERS_ID: '', // 培训批次 详情id
|
||||||
USER_COUNT: '', // 批次的人数
|
USER_COUNT: '', // 批次的人数
|
||||||
type: 2,
|
type: 2,
|
||||||
IS_STATE: 1,
|
IS_STATE: 1,
|
||||||
|
|
@ -332,20 +156,22 @@ export default {
|
||||||
heirloom: {},
|
heirloom: {},
|
||||||
specialUsersList: {},
|
specialUsersList: {},
|
||||||
message: '',
|
message: '',
|
||||||
operator: ''
|
operator: '',
|
||||||
|
vectory: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(id, viewState) {
|
init(id, viewState, vectory) {
|
||||||
this.form.TRAININGBATCH_ID = this.TRAININGBATCH_ID
|
this.vectory = vectory
|
||||||
this.form.TRAINUSERS_ID = ''
|
this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID
|
||||||
|
this.form.TRAIN_USERS_ID = ''
|
||||||
this.form.USER_COUNT = ''
|
this.form.USER_COUNT = ''
|
||||||
this.form.type = '2'
|
this.form.type = '2'
|
||||||
this.form.IS_STATE = 1
|
this.form.IS_STATE = 1
|
||||||
this.form.OPINION = ''
|
this.form.OPINION = ''
|
||||||
this.viewState = viewState
|
this.viewState = viewState
|
||||||
if (id) {
|
if (id) {
|
||||||
this.TRAININGBATCH_ID = id
|
this.TRAINING_BATCH_ID = id
|
||||||
this.getDataById(id)
|
this.getDataById(id)
|
||||||
this.getUserList(id)
|
this.getUserList(id)
|
||||||
}
|
}
|
||||||
|
|
@ -353,31 +179,11 @@ export default {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.userList = []
|
this.userList = []
|
||||||
},
|
},
|
||||||
/** 根据id 获取数据 **/
|
|
||||||
formatLabelBf(value) {
|
|
||||||
if (value) {
|
|
||||||
var valList = value.split(',')
|
|
||||||
var label = []
|
|
||||||
for (let i = 0; i < valList.length; i++) {
|
|
||||||
if (valList[i] == 0) {
|
|
||||||
label.push('无')
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if (valList[i] == 1) {
|
|
||||||
label.push('商业保险')
|
|
||||||
}
|
|
||||||
if (valList[i] == 2) {
|
|
||||||
label.push('工伤保险')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return label.join(',')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
getDataById(id) {
|
getDataById(id) {
|
||||||
requestFN(
|
requestFN(
|
||||||
'/flowTrain/getDetailsById',
|
'/flowTrain/getDetailsById',
|
||||||
{
|
{
|
||||||
TRAININGBATCH_ID: id
|
TRAINING_BATCH_ID: id
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.pd = data.pd
|
this.pd = data.pd
|
||||||
|
|
@ -387,51 +193,17 @@ export default {
|
||||||
getUserInfo(row) {
|
getUserInfo(row) {
|
||||||
this.$refs.userInfo.init(row)
|
this.$refs.userInfo.init(row)
|
||||||
},
|
},
|
||||||
// 转换是否
|
|
||||||
formatLabel(value) {
|
|
||||||
if (value == '1') {
|
|
||||||
return '是'
|
|
||||||
} else if (value == '0') {
|
|
||||||
return '否'
|
|
||||||
} else {
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 查看
|
// 查看
|
||||||
async handleShow(row) {
|
handleShow(row) {
|
||||||
await this.getUserInfoById(row.USER_ID)
|
this.$refs.userInfos.init(row)
|
||||||
this.userInfoDialog = true
|
|
||||||
this.heirloom = row
|
|
||||||
console.log(row.SUPERVISION_STATE, row.MANAGER_STATE, row.TERRITORIALITY_STATE)
|
|
||||||
if (row.SUPERVISION_STATE === 0 || row.MANAGER_STATE === 0 || row.TERRITORIALITY_STATE === 0) {
|
|
||||||
if (row.SUPERVISION_STATE === 0) {
|
|
||||||
this.message = row.SUPERVISION_OPINION
|
|
||||||
this.operator = row.SUPERVISION_USER_NAME
|
|
||||||
}
|
|
||||||
if (row.MANAGER_STATE === 0) {
|
|
||||||
this.message = row.MANAGER_OPINION
|
|
||||||
this.operator = row.MANAGER_USER_NAME
|
|
||||||
}
|
|
||||||
if (row.TERRITORIALITY_STATE === 0) {
|
|
||||||
this.message = row.TERRITORIALITY_OPINION
|
|
||||||
this.operator = row.TERRITORIALITY_USER_NAME
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.message = ''
|
|
||||||
this.operator = ''
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
examineShow(row) {
|
examineShow(row) {
|
||||||
this.form.TRAINUSERS_ID = row.TRAINUSERS_ID
|
this.form.TRAIN_USERS_ID = row.TRAIN_USERS_ID
|
||||||
this.form.USER_COUNT = this.pd.USER_COUNT
|
|
||||||
this.form.type = '2'
|
|
||||||
this.form.USER_ID = row.USER_ID
|
|
||||||
this.form.STEP_STATUS = row.STEP_STATUS
|
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
// 提交审批意见
|
// 提交审批意见
|
||||||
approve() {
|
approve() {
|
||||||
this.form.TRAININGBATCH_ID = this.TRAININGBATCH_ID
|
this.form.TRAINING_BATCH_ID = this.TRAININ_GBATCH_ID
|
||||||
if (!(this.form.IS_STATE === 1 || this.form.IS_STATE === 0)) {
|
if (!(this.form.IS_STATE === 1 || this.form.IS_STATE === 0)) {
|
||||||
this.$message.error('请先择')
|
this.$message.error('请先择')
|
||||||
return
|
return
|
||||||
|
|
@ -445,19 +217,27 @@ export default {
|
||||||
requestFN(
|
requestFN(
|
||||||
'/flowTrain/approveUser', { ...this.form }
|
'/flowTrain/approveUser', { ...this.form }
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
if (data.result == 'success') {
|
if (data.result === 'success') {
|
||||||
this.$message.success('审批成功')
|
this.$message.success('审批成功')
|
||||||
this.init(this.TRAININGBATCH_ID, this.viewState)
|
this.init(this.TRAINING_BATCH_ID, this.viewState, this.vectory)
|
||||||
} else if (data.result == 'exception') {
|
} else if (data.result === 'exception') {
|
||||||
// showException('按钮权限', data.exception)// 显示异常
|
|
||||||
this.$message({
|
this.$message({
|
||||||
message: data.msg,
|
message: data.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.getUserList(this.TRAININGBATCH_ID)
|
this.getUserList(this.TRAINING_BATCH_ID)
|
||||||
this.getDataById(this.TRAININGBATCH_ID)
|
this.getDataById(this.TRAINING_BATCH_ID)
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.form = {
|
||||||
|
TRAINING_BATCH_ID: this.TRAINING_BATCH_ID,
|
||||||
|
TRAIN_USERS_ID: '',
|
||||||
|
USER_COUNT: '',
|
||||||
|
type: 2,
|
||||||
|
IS_STATE: 1,
|
||||||
|
OPINION: '',
|
||||||
|
USER_ID: ''
|
||||||
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -468,23 +248,18 @@ export default {
|
||||||
{
|
{
|
||||||
USER_ID: id,
|
USER_ID: id,
|
||||||
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||||
// CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
// this.userDetailForm = Object.assign(this.userDetailForm, data.pd)
|
|
||||||
this.userPhotoFile = data.userPhotoFile
|
this.userPhotoFile = data.userPhotoFile
|
||||||
if (this.userPhotoFile.length > 0) {
|
if (this.userPhotoFile.length > 0) {
|
||||||
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||||
}
|
}
|
||||||
// this.insuranceFileList = data.insuranceFile
|
|
||||||
// this.contractFileList = data.contractFile
|
|
||||||
this.photosOfLevel = data.photosOfLevel
|
this.photosOfLevel = data.photosOfLevel
|
||||||
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
||||||
this.socialPhotoFile = data.socialPhotoFile
|
this.socialPhotoFile = data.socialPhotoFile
|
||||||
this.specialUsersList = data.specialUsers
|
this.specialUsersList = data.specialUsers
|
||||||
// this.gongshangbaoxianFile = data.gongshangbaoxianFile
|
|
||||||
resolve()
|
resolve()
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
reject()
|
reject()
|
||||||
|
|
@ -496,7 +271,7 @@ export default {
|
||||||
requestFN(
|
requestFN(
|
||||||
'/flowTrain/batchUserList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
'/flowTrain/batchUserList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
{
|
{
|
||||||
TRAININGBATCH_ID: id
|
TRAINING_BATCH_ID: id
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.userList = data.varList
|
this.userList = data.varList
|
||||||
|
|
@ -513,25 +288,36 @@ export default {
|
||||||
this.handleClose()
|
this.handleClose()
|
||||||
},
|
},
|
||||||
getType(row) {
|
getType(row) {
|
||||||
if (row.SUPERVISION_STATE === 9 && row.MANAGER_STATE === 9 && row.TERRITORIALITY_STATE === 9) {
|
console.log(row)
|
||||||
return '未评审'
|
if (row.RESULT_STATUS === '1') {
|
||||||
|
return '审批中'
|
||||||
}
|
}
|
||||||
if (row.SUPERVISION_STATE === 1 && row.MANAGER_STATE === 1 && row.TERRITORIALITY_STATE === 1) {
|
if (row.RESULT_STATUS === '2') {
|
||||||
return '通过'
|
return '审批通过'
|
||||||
}
|
}
|
||||||
if (row.SUPERVISION_STATE === 0 || row.MANAGER_STATE === 0 || row.TERRITORIALITY_STATE === 0) {
|
if (row.RESULT_STATUS === '3') {
|
||||||
return '未通过'
|
return '审批不通过'
|
||||||
}
|
|
||||||
if ((row.SUPERVISION_STATE === 1 || row.MANAGER_STATE === 1 || row.TERRITORIALITY_STATE === 1) &&
|
|
||||||
(row.SUPERVISION_STATE === 9 || row.MANAGER_STATE === 9 || row.TERRITORIALITY_STATE === 9) &&
|
|
||||||
!(row.SUPERVISION_STATE === 0 || row.MANAGER_STATE === 0 || row.TERRITORIALITY_STATE === 0)) {
|
|
||||||
return '评审中'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
comfirm() {
|
||||||
if (row.STEP_STATUS === '3') {
|
this.$confirm('确定提交审批吗?', '提示', {
|
||||||
return 'warning-row'
|
confirmButtonText: '确定',
|
||||||
}
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
requestFN(
|
||||||
|
'/flowTrain/endApproval',
|
||||||
|
{
|
||||||
|
TRAINING_BATCH_ID: this.TRAINING_BATCH_ID
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.visible = false
|
||||||
|
this.handleClose()
|
||||||
|
}).catch((e) => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,188 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form label-width="110px">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label="相关方单位名称">
|
||||||
|
<el-input v-model="searchForm.RELEVANT_UNIT_NAME" placeholder="搜索相关方单位名称" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label-width="10px">
|
||||||
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||||
|
重置
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="list"
|
||||||
|
:row-key="getRowKey"
|
||||||
|
:header-cell-style="{
|
||||||
|
'font-weight': 'bold',
|
||||||
|
'color': '#000'
|
||||||
|
}"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
:reserve-selection="true"
|
||||||
|
type="selection"
|
||||||
|
width="55"
|
||||||
|
align="center"/>
|
||||||
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
|
<el-table-column prop="BELONG_TO_CORP_NAME" label="相关方单位名称" />
|
||||||
|
<el-table-column prop="XGF_USER_NAME" label="人员名称" />
|
||||||
|
<el-table-column label="操作" align="center" width="200px">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="primary" icon="el-icon-view" size="mini" @click="info(row.CORPINFO_ID)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div class="page-btn-group">
|
||||||
|
<div/>
|
||||||
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
|
import { requestFN } from '@/utils/request'
|
||||||
|
import waves from '@/directive/waves' // waves directive
|
||||||
|
export default {
|
||||||
|
components: { Pagination },
|
||||||
|
directives: { waves },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: true,
|
||||||
|
add: false,
|
||||||
|
del: false,
|
||||||
|
edit: false,
|
||||||
|
listQuery: {
|
||||||
|
page: 1,
|
||||||
|
limit: 20
|
||||||
|
},
|
||||||
|
config: config,
|
||||||
|
total: 0,
|
||||||
|
KEYWORDS: '',
|
||||||
|
selection: [], // 当前页选中的数据
|
||||||
|
searchForm: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
list: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 搜索
|
||||||
|
getQuery() {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
// 处理字典数据
|
||||||
|
goKeyReset() {
|
||||||
|
this.searchForm.POSSESSION = ''
|
||||||
|
this.searchForm.SELECT_FORM = ''
|
||||||
|
this.searchForm.PROVINCE = ''
|
||||||
|
this.searchForm.CITY = ''
|
||||||
|
this.searchForm.COUNTY = ''
|
||||||
|
this.searchForm.VILLAGE = ''
|
||||||
|
this.searchForm.STATE = ''
|
||||||
|
this.searchForm.RELEVANT_UNIT_NAME = ''
|
||||||
|
this.searchForm.EMPLOYMENT_FORM = ''
|
||||||
|
this.searchForm.KEYWORDS = ''
|
||||||
|
this.searchForm.CORP_TYPE = ''
|
||||||
|
this.getQuery()
|
||||||
|
},
|
||||||
|
// 获取列表
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
requestFN(
|
||||||
|
'/xgf/corp/getCorpInfoList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||||
|
{
|
||||||
|
KEYWORDS: this.searchForm.RELEVANT_UNIT_NAME,
|
||||||
|
PROVINCE: this.searchForm.POSSESSION[0] || '',
|
||||||
|
CITY: this.searchForm.POSSESSION[1] || '',
|
||||||
|
COUNTY: this.searchForm.POSSESSION[2] || '',
|
||||||
|
VILLAGE: this.searchForm.POSSESSION[3] || '',
|
||||||
|
STREET: this.searchForm.POSSESSION[4] || '',
|
||||||
|
STATE: this.searchForm.STATE,
|
||||||
|
EMPLOYMENT_FORM: this.searchForm.EMPLOYMENT_FORM,
|
||||||
|
SELECT_FORM: this.searchForm.SELECT_FORM,
|
||||||
|
CORP_TYPE: this.searchForm.CORP_TYPE
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.loading = false
|
||||||
|
this.varList = data.varList
|
||||||
|
this.total = data.page.totalResult
|
||||||
|
this.hasButton()
|
||||||
|
this.pd = data.pd
|
||||||
|
}).catch((e) => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
info() {
|
||||||
|
|
||||||
|
},
|
||||||
|
getRowKey(row) {
|
||||||
|
return row.CORPINFO_ID
|
||||||
|
},
|
||||||
|
// 判断按钮权限,用于是否显示按钮
|
||||||
|
hasButton: function() {
|
||||||
|
var keys = 'units:add,units:del,units:edit,toExcel'
|
||||||
|
requestFN(
|
||||||
|
'/head/hasButton',
|
||||||
|
{
|
||||||
|
keys: keys
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.add = data.unitsfhadminadd // 新增权限
|
||||||
|
this.del = data.unitsfhadmindel // 删除权限
|
||||||
|
this.edit = data.unitsfhadminedit // 修改权限
|
||||||
|
}).catch((e) => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 获取数据字典数据
|
||||||
|
getDict() {
|
||||||
|
requestFN(
|
||||||
|
'/xgf/dictionaries/getLevels',
|
||||||
|
{
|
||||||
|
DICTIONARIES_ID: '720992d898bf4fd7b44bf0ba1f1bbb88'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.employmentTypeList = data.list
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'/xgf/dictionaries/getLevels',
|
||||||
|
{
|
||||||
|
DICTIONARIES_ID: '9ce2e9a4636b4d41b460ce16c346d497'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.selectFormList = data.list
|
||||||
|
})
|
||||||
|
requestFN(
|
||||||
|
'/xgf/dictionaries/getLevels',
|
||||||
|
{
|
||||||
|
DICTIONARIES_ID: '37d8385931f14bb0b962082cf6bb3395'
|
||||||
|
}
|
||||||
|
).then((data) => {
|
||||||
|
this.corpTypeList = data.list
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<List v-show="activeName=='List'" ref="list" />
|
||||||
|
<Edit v-if="activeName=='Edit'" />
|
||||||
|
<Edit v-if="activeName=='corpInfoEdit'" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import List from './components/list'
|
||||||
|
import Edit from './components/edit'
|
||||||
|
import corpInfoEdit from './components/corpInfoEdit'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
List: List,
|
||||||
|
Edit: Edit,
|
||||||
|
corpInfoEdit: corpInfoEdit,
|
||||||
|
CORPINFO_ID: ''
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
activeName: 'List'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
activeName(val) {
|
||||||
|
if (val == 'List') {
|
||||||
|
this.$refs.list.getQuery()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
Loading…
Reference in New Issue