提交代码
This commit is contained in:
parent
771fc2166d
commit
e4988e1d5e
75
public/CESC任职资格表.docx
Normal file
75
public/CESC任职资格表.docx
Normal file
|
@ -0,0 +1,75 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Profile of Requirements for the Chief Electrics Specialist in Charge (CESC)
|
||||
--------------------------------------------------------------------------------
|
||||
首席责任电器安全专家任职资格评价表
|
||||
|
||||
Legal references: ArbSchG, DGUV Rule 3, DIN VDE 1000-10
|
||||
参考法规: 德国法规及标准 ArbSchG, DGUV Rule 3, DIN VDE 1000-10
|
||||
|
||||
Employee details /员工信息:
|
||||
Surname:/ 姓: Forename:/ 名: ___________
|
||||
Department:/部门: Employee no.:/ 工号: ___________
|
||||
--------------------------------------------------------------------------------
|
||||
The employee is an electronics specialist for HV-drive systems in automobiles
|
||||
--------------------------------------------------------------------------------
|
||||
(as per ES profile of requirements):
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是车载高压驱动系统电器安全专家
|
||||
--------------------------------------------------------------------------------
|
||||
(按照车载高压驱动系统电器安全专家的任职资格所要求): ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Ability to perform activities as CESC*/ 是否具备作为首席责任电器安全专家进行高压作业指导的能力*
|
||||
Is he/she holding a valid certificate of the local "Dian Gong Zheng" (LV Certificate)?
|
||||
他/她是否具有有效的电工证(低压证书)? ☐Yes ☐No
|
||||
Does he/she have the ability to lead employees?
|
||||
他/她是否有能力领导员工? ☐Yes ☐No
|
||||
|
||||
Does the employee have knowledge of (at least the titles and rough content of) the
|
||||
relevant laws, rules and provisions (e.g. ArbSchG, DGUV, DIN VDE, TRBS)?
|
||||
该员工是否对高压相关法律、规则和条款具备足够的知识(至少了解题目和大体内容)
|
||||
(例如,ArbSchG, DGUV, DIN VDE, TRBS)? ☐Yes ☐No
|
||||
|
||||
Can he/she assess the dangers and risks inherent in the assignment of work?
|
||||
他/她是否能够评估在指派的工作中的危险和风险? ☐Yes ☐No
|
||||
|
||||
Is he/she able to delegate responsibility?
|
||||
他/她是否能够委任下属职责? ☐Yes ☐No
|
||||
|
||||
Can he/she select Electrics Specialists in Charge (ESC) according to their skills?
|
||||
他/她是否能够根据员工能力,任命责任电器安全专家? ☐Yes ☐No
|
||||
|
||||
Is he/she capable of providing product and work related briefing/instructions (to SHs)?
|
||||
他/她是否能够提供产品和工作相关的指导(给安全技师)? ☐Yes ☐No
|
||||
|
||||
Can he/she ensure the safe operation of HV systems in automobiles?
|
||||
他/她是否能够确保在车载高压驱动系统进行安全操作? ☐Yes ☐No
|
||||
|
||||
Is he/she able to conduct unit checks and audits?
|
||||
他/她是否能够在所属部门进行检查和审核? ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
Does the employee need to attend CESC training?
|
||||
--------------------------------------------------------------------------------
|
||||
(He/she must have participated in CESC training before in Daimler, then you can choose "No")*:
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是否需要参加CESC培训?
|
||||
--------------------------------------------------------------------------------
|
||||
(该员工必须以前在戴姆勒参加过CESC培训,才能选"否")* ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
The employee is capable of taking on the role of CESC*:
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是否有能力担任首席责任电器安全专家*: ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of employee /员工签字
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of supervisor (at least L3) /主管签字(至少为总经理)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of an expert or supervisor (CESC or L1) /首席责任电器安全专家或主管签字(CESC或L1)
|
||||
*To be completed by expert, skilled personnel (CESC or L1) /* 需要由首席责任电器安全专家或L1完成
|
77
public/ESC任职资格表.docx
Normal file
77
public/ESC任职资格表.docx
Normal file
|
@ -0,0 +1,77 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Profile of Requirements for the Electrics Specialist in Charge (ESC)
|
||||
--------------------------------------------------------------------------------
|
||||
责任电器安全专家任职资格评价表
|
||||
|
||||
Legal references: ArbSchG, DGUV Rule 3, DIN VDE 1000-10
|
||||
参考法规: 德国法规及标准 ArbSchG, DGUV Rule 3, DIN VDE 1000-10
|
||||
|
||||
Employee details /员工信息:
|
||||
Surname:/姓 : Forename:/ 名: ___________
|
||||
Department:/部门: Employee no.:/ 工号: ___________
|
||||
--------------------------------------------------------------------------------
|
||||
The employee is an electronics specialist for HV-drive systems in automobiles
|
||||
--------------------------------------------------------------------------------
|
||||
(as per ES profile of requirements):
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是车载高压驱动系统电器安全专家
|
||||
--------------------------------------------------------------------------------
|
||||
(按照车载高压驱动系统电器安全专家的任职资格所要求): ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Ability to perform activities as ESC*/ 是否具备作为责任电器安全专家进行高压作业指导的能力*
|
||||
Is he/she holding a valid certificate of the local "Dian Gong Zheng" (LV Certificate)?
|
||||
他/她是否具有有效的电工证(低压证书)? ☐Yes ☐No
|
||||
Does he/she have the ability to lead/instruct employees in specialist matters?
|
||||
他/她是否有能力在特殊任务中领导/指导员工? ☐Yes ☐No
|
||||
|
||||
Does the employee have knowledge of (at least the titles and rough content of) the relevant
|
||||
laws, rules and provisions (e.g. ArbSchG, DGUV, DIN VDE, TRBS)?
|
||||
该员工是否对高压相关法律、规则和条款具备足够的知识(至少了解题目和大体内容)
|
||||
(例如,ArbSchG, DGUV, DIN VDE, TRBS)? ☐Yes ☐No
|
||||
|
||||
Can he/she assess the dangers and risks inherent in the assignment of work?
|
||||
他/她是否能够评估在指派的工作中的危险和风险 ☐Yes ☐No
|
||||
|
||||
Does he/she have the knowledge and experience required to perform a hazard assessment?
|
||||
他/她是否具备知识和经验去进行风险评估? ☐Yes ☐No
|
||||
|
||||
Does he/she have the skills to assist with and take responsibility for selection processes for
|
||||
SH and ES staff?
|
||||
他/她是否具备能力在挑选SH和ES的过程中去辅助和承担职责? ☐Yes ☐No
|
||||
|
||||
Does he/she possess the methodological skills to create instruction documents and convey
|
||||
content?
|
||||
他/她是否具备教学技能来创建指导文件并传达的内容? ☐Yes ☐No
|
||||
|
||||
Can he/she ensure the safe operation of HV systems in automobiles?
|
||||
他/她是否能够确保在车载高压驱动系统进行安全操作? ☐Yes ☐No
|
||||
|
||||
Does he/she have the necessary skills to perform inspections and process checks?
|
||||
他/她是否必要的能力进行检查和流程审查? ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
Does the employee need to attend ESC training?
|
||||
--------------------------------------------------------------------------------
|
||||
(He/she must have participated in ESC training before in Daimler, then you can choose "No")*:
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是否需要参加ESC培训?
|
||||
--------------------------------------------------------------------------------
|
||||
(该员工必须以前在戴姆勒参加过ESC培训,才能选"否")* ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
The employee is capable of taking on the role of ESC*:
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是否有能力担任责任电器安全专家*: ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of employee /员工签字
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of supervisor /主管签字
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of an expert (CESC ) /首席责任电器安全专家签字(CESC)
|
||||
*To be completed by expert, skilled personnel (CESC) /* 需要由首席责任电器安全专家完成(CESC)
|
82
public/ES任职资格表.docx
Normal file
82
public/ES任职资格表.docx
Normal file
|
@ -0,0 +1,82 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Profile of Requirements for the Electronics Specialist (ES) for HV-drive systems in automobiles
|
||||
--------------------------------------------------------------------------------
|
||||
车载高压驱动系统电器安全专家任职资格评价表
|
||||
|
||||
Legal references: ArbSchG, DGUV Rule 3, DIN VDE 1000-10
|
||||
参考法规: 德国法规及标准 ArbSchG, DGUV Rule 3, DIN VDE 1000-10
|
||||
|
||||
Employee details /员工信息:
|
||||
Surname:/姓: Forename:/ 名: ___________
|
||||
Department:/部门: Employee no.:/ 工号: ___________
|
||||
Training as Electronics Specialist / 作为电器安全专家进行的培训
|
||||
Further education and training in electronics (name of qualification, venue, date of completion):
|
||||
Journeyman/technician/master with professional title, Engineer with specializing in
|
||||
在安全方面的教育和培训(资格名称,地点,完成日期) 熟练工/技师/有专业资格的技师,专业工程师
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Further education 进一步的培训:
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
Practical experience in the following areas of electronics (type and length of time):
|
||||
在下列电器安全领域的实际经验(类型和时长)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Six months practical experience in the above areas (in the last three years)?
|
||||
在上述领域是否有6个月实际工作经验(在近三年内)? ☐Yes ☐No
|
||||
Is he/she holding a valid certificate of the local "Dian Gong Zheng" (LV Certificate)?
|
||||
他/她是否具有有效的电工证(低压证书)? ☐Yes ☐No
|
||||
|
||||
Has specialist knowledge in the relevant area of electronics* 在相关的安全领域是否具备专家的知识
|
||||
Can he/she assess the dangers and risks inherent in the work assigned?
|
||||
他/她是否能够评估在被指派的工作中的危险和风险 ? ☐Yes ☐No
|
||||
|
||||
Is he/she capable of taking responsibility for the work of colleagues?
|
||||
他/她是否有能力对同事的工作负责? ☐Yes ☐No
|
||||
|
||||
Is he/she capable of supervising and taking responsibility for trained personnel?
|
||||
(in the unit, workshop, laboratory etc.)
|
||||
他/她是否有能力监督和培训其他员工(在其单位、车间、试验室,等..)? ☐Yes ☐No
|
||||
|
||||
Does he/she have the knowledge to seek out the correct electrical equipment?
|
||||
他/她是否有足够的知识选择正确的安全设备? ☐Yes ☐No
|
||||
|
||||
Does he/she possess the necessary background knowledge and experience to
|
||||
conduct technical audits?
|
||||
他/她是否有必要的背景知识和经验进行技术审核? ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
Does the employee need to attend ES training?
|
||||
--------------------------------------------------------------------------------
|
||||
(He/she must have participated in SH training before or participated in ES training before
|
||||
--------------------------------------------------------------------------------
|
||||
in Daimler, then you can choose "No")*:
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是否需要参加ES培训?
|
||||
--------------------------------------------------------------------------------
|
||||
(该员工必须以前参加过SH培训,或在戴姆勒参加过ES培训,才能选"否")*: ☐Yes ☐No
|
||||
--------------------------------------------------------------------------------
|
||||
The employee can take on the role of Electronics Specialist*:
|
||||
--------------------------------------------------------------------------------
|
||||
该员工是否有能力担任电器安全专家*: ☐Yes ☐No
|
||||
Comments*: (e.g. outstanding qualifications) 评价*: (例如 出色的资质, 推荐人评价)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of employee /员工签字
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of supervisor /主管签字
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Place, date /地点, 日期 Signature of an expert (CESC or ESC) /电器安全专家签字(CESC或ESC)
|
||||
--------------------------------------------------------------------------------
|
||||
*To be completed by expert, skilled personnel (CESC or ESC) /* 需要由电器安全专家完成(CESC或ESC)
|
|
@ -185,5 +185,12 @@ export function resetPwd(params) {
|
|||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getByWorkNo(data) {
|
||||
return request({
|
||||
url: '/fe/user/getByWorkNo',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
|
@ -16,19 +16,8 @@
|
|||
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" label-width="120"
|
||||
label-position="left">
|
||||
<el-form-item label="工号:" prop="workNo">
|
||||
<!-- <el-input v-model="registerForm.workNo"> </el-input> -->
|
||||
<el-select v-model="registerForm.workNo" filterable placeholder="请选择员工工号" clearable
|
||||
@change="selectWorkNoChanged">
|
||||
<el-option v-for="item in allUsers" :key="item.workNo" :label="item.workNo + '(' + item.nickName + ')'"
|
||||
:value="item.workNo" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="是否有邮箱:" prop="isHasEmail">
|
||||
<el-radio-group v-model="registerForm.isHasEmail">
|
||||
<el-radio :value="1">有BBAC邮箱</el-radio>
|
||||
<el-radio :value="0">无BBAC邮箱</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item> -->
|
||||
<el-input v-model="registerForm.workNo" @blur="handleBlur"> </el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="registerForm.email" label="邮箱:" prop="email">
|
||||
<el-input v-model="registerForm.email"> </el-input>
|
||||
</el-form-item>
|
||||
|
@ -39,9 +28,9 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="属地ESC:" prop="escUserName">
|
||||
<el-input v-model="registerForm.escUserName"> </el-input>
|
||||
<el-input v-model="registerForm.escUserName" disabled> </el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="ESC邮箱:" prop="escEmail" disabled>
|
||||
<el-form-item label="ESC邮箱:" prop="escEmail">
|
||||
<el-input v-model="registerForm.escEmail" disabled> </el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="新密码:" prop="password">
|
||||
|
@ -62,7 +51,7 @@
|
|||
import { onMounted, ref } from 'vue'
|
||||
import { ElMessageBox } from "element-plus"
|
||||
import systemlogo from '@/assets/logo/systemLogo.png'
|
||||
import { resetPwd, listUser } from "@/api/system/user"
|
||||
import { resetPwd, getByWorkNo } from "@/api/system/user"
|
||||
import { getCustomerBusDependencyPage } from "@/api/system/dependency"
|
||||
|
||||
const router = useRouter()
|
||||
|
@ -100,32 +89,19 @@ const selectChanged = (value) => {
|
|||
}
|
||||
}
|
||||
|
||||
// 工号选择
|
||||
const selectWorkNoChanged = (value) => {
|
||||
if (value) {
|
||||
const curUser = allUsers.value.find(item => item.workNo == value)
|
||||
registerForm.value.workNo = curUser.workNo
|
||||
registerForm.value.email = curUser.email
|
||||
}
|
||||
}
|
||||
// 光标丢失事件
|
||||
const handleBlur = (event) => {
|
||||
getByWorkNo({ workNo: registerForm.value.workNo }).then(res => {
|
||||
if (res.code == 200) registerForm.value.email = res.data.email
|
||||
else registerForm.value.email = undefined
|
||||
})
|
||||
};
|
||||
|
||||
// 初始化
|
||||
onMounted(() => {
|
||||
getAllUser()
|
||||
onMounted(() => {
|
||||
getBusDependencyData();
|
||||
});
|
||||
// 用户数据
|
||||
const allUsers = ref([])
|
||||
// 获取所有用户
|
||||
const getAllUser = () => {
|
||||
listUser({
|
||||
status: '0',
|
||||
pageNum: 1,
|
||||
pageSize: 5000
|
||||
}).then(res => {
|
||||
allUsers.value = res.rows
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
// 属地数据
|
||||
const busDependencyData = ref([])
|
||||
// 获取属地数据
|
||||
|
|
|
@ -157,6 +157,8 @@
|
|||
<el-form-item label="资质申请表单" prop="beforeCondition.qualificationForm">
|
||||
<myFileUpload ref="qualificationFormRef"
|
||||
@set-form-file="handleSetQualificationForm" />
|
||||
<el-button class="downloadTemplateBtn" text
|
||||
@click="downloadDocxTemplate(ruleForm.qualificationId)">下载模板</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
|
@ -214,6 +216,8 @@
|
|||
<el-form-item label="资质申请表单" prop="beforeCondition.qualificationForm">
|
||||
<myFileUpload ref="qualificationFormRef"
|
||||
@set-form-file="handleSetQualificationForm" />
|
||||
<el-button class="downloadTemplateBtn" text
|
||||
@click="downloadDocxTemplate(ruleForm.qualificationId)">下载模板</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -435,7 +439,25 @@ const handleCollectionDateChange = (val) => {
|
|||
const handleFirstCollectionDateChange = (val) => {
|
||||
ruleForm.value.beforeCondition.firstCollectionExpireDate = moment(val).add(3, 'years').format('YYYY-MM-DD')
|
||||
}
|
||||
|
||||
// 资质表单模板下载
|
||||
const downloadDocxTemplate = (tempLateType) => {
|
||||
const link = document.createElement('a')
|
||||
if (tempLateType == 'ES') {
|
||||
link.href = '/ES任职资格表.docx'
|
||||
link.download = 'ES任职资格表.docx' // 设置下载文件名
|
||||
}
|
||||
if (tempLateType == 'ESC') {
|
||||
link.href = '/ESC任职资格表.docx'
|
||||
link.download = 'ESC任职资格表.docx' // 设置下载文件名
|
||||
}
|
||||
if (tempLateType == 'CESC') {
|
||||
link.href = '/CESC任职资格表.docx'
|
||||
link.download = 'CESC任职资格表.docx' // 设置下载文件名
|
||||
}
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
document.body.removeChild(link)
|
||||
}
|
||||
// 工号选择事件
|
||||
const selectChanged = (value) => {
|
||||
if (value) {
|
||||
|
@ -655,6 +677,24 @@ const handleSubmit = () => {
|
|||
line-height: 76px;
|
||||
}
|
||||
|
||||
.downloadTemplateBtn {
|
||||
width: 100px;
|
||||
height: 36px;
|
||||
font-family: Microsoft YaHei;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
color: #409eff !important;
|
||||
position: absolute;
|
||||
top: -36px;
|
||||
left: 110px;
|
||||
}
|
||||
|
||||
.downloadTemplateBtn:hover {
|
||||
background: transparent !important;
|
||||
color: #409eff !important;
|
||||
}
|
||||
|
||||
.cancelApplyBtn {
|
||||
width: 100px;
|
||||
height: 36px;
|
||||
|
|
|
@ -133,6 +133,8 @@
|
|||
<el-col :span="8">
|
||||
<el-form-item label="资质申请表单" prop="beforeCondition.qualificationForm">
|
||||
<myFileUpload ref="qualificationFormRef" @set-form-file="handleSetQualificationForm" />
|
||||
<el-button class="downloadTemplateBtn" text
|
||||
@click="downloadDocxTemplate(ruleForm.qualificationId)">下载模板</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
|
@ -187,6 +189,8 @@
|
|||
<el-col :span="8">
|
||||
<el-form-item label="资质申请表单" prop="beforeCondition.qualificationForm">
|
||||
<myFileUpload ref="qualificationFormRef" @set-form-file="handleSetQualificationForm" />
|
||||
<el-button class="downloadTemplateBtn" text
|
||||
@click="downloadDocxTemplate(ruleForm.qualificationId)">下载模板</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -204,7 +208,8 @@
|
|||
<el-col :span="12">
|
||||
<el-form-item label="具备资质" prop="beforeCondition.hasQualified">
|
||||
<el-checkbox-group v-model="ruleForm.beforeCondition.hasQualified">
|
||||
<el-checkbox v-if="ruleForm.beforeCondition.batteryLine == '1'" label="SH" value="SH" />
|
||||
<el-checkbox v-if="ruleForm.beforeCondition.batteryLine == '1'" label="SH"
|
||||
value="SH" />
|
||||
<el-checkbox label="ES" value="ES" />
|
||||
<el-checkbox label="ESC" value="ESC" />
|
||||
<el-checkbox label="CESC" value="CESC" />
|
||||
|
@ -373,7 +378,7 @@ const handleSetQualificationForm = (filePath) => {
|
|||
}
|
||||
|
||||
// 设置实操经验表单
|
||||
const handleSetExperienceFile = (filePath) => {
|
||||
const handleSetExperienceFile = (filePath) => {
|
||||
ruleForm.value.beforeCondition.experienceFile = filePath
|
||||
}
|
||||
// 设置健康证明
|
||||
|
@ -393,6 +398,26 @@ const handleFirstCollectionDateChange = (val) => {
|
|||
ruleForm.value.beforeCondition.firstCollectionExpireDate = moment(val).add(3, 'years').format('YYYY-MM-DD')
|
||||
}
|
||||
|
||||
// 资质表单模板下载
|
||||
const downloadDocxTemplate = (tempLateType) => {
|
||||
const link = document.createElement('a')
|
||||
if (tempLateType == 'ES') {
|
||||
link.href = '/ES任职资格表.docx'
|
||||
link.download = 'ES任职资格表.docx' // 设置下载文件名
|
||||
}
|
||||
if (tempLateType == 'ESC') {
|
||||
link.href = '/ESC任职资格表.docx'
|
||||
link.download = 'ESC任职资格表.docx' // 设置下载文件名
|
||||
}
|
||||
if (tempLateType == 'CESC') {
|
||||
link.href = '/CESC任职资格表.docx'
|
||||
link.download = 'CESC任职资格表.docx' // 设置下载文件名
|
||||
}
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
document.body.removeChild(link)
|
||||
}
|
||||
|
||||
// 初始化
|
||||
onMounted(() => {
|
||||
getUserInfos()
|
||||
|
@ -540,6 +565,24 @@ const handleSubmit = () => {
|
|||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.downloadTemplateBtn {
|
||||
width: 100px;
|
||||
height: 36px;
|
||||
font-family: Microsoft YaHei;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
color: #409eff !important;
|
||||
position: absolute;
|
||||
top: -36px;
|
||||
left: 110px;
|
||||
}
|
||||
|
||||
.downloadTemplateBtn:hover {
|
||||
background: transparent !important;
|
||||
color: #409eff !important;
|
||||
}
|
||||
|
||||
.submitApplyBtn {
|
||||
width: 100px;
|
||||
height: 36px;
|
||||
|
@ -587,12 +630,14 @@ const handleSubmit = () => {
|
|||
text-align: left;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.el-checkbox__label {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
text-align: left;
|
||||
color: #000000;
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
text-align: left;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.el-form-item__error {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
|
|
@ -88,12 +88,23 @@
|
|||
{{ scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" label="节点名称" width="260" />
|
||||
<el-table-column prop="approvalResult" label="审批意见" min-width="100" align="left" />
|
||||
<el-table-column prop="approvalTime" label="审批时间" width="150">
|
||||
<el-table-column prop="checkNode" label="节点名称" width="260">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.approvalTime && scope.row.approvalTime"> {{ scope.row.approvalTime
|
||||
}}</span>
|
||||
<span v-if="scope.row.checkState == 2">提交申请</span>
|
||||
<span v-else>ESC审核</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="checkNode" label="审批状态" width="160">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.checkState == 0">通过</span>
|
||||
<span v-if="scope.row.checkState == 2">待审批</span>
|
||||
<span v-if="scope.row.checkState == 3">驳回</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="审批意见" min-width="100" align="left" />
|
||||
<el-table-column prop="createTime" label="审批时间" width="230">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.createTime"> {{ scope.row.createTime }}</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
@ -88,12 +88,23 @@
|
|||
{{ scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" label="节点名称" width="260" />
|
||||
<el-table-column prop="approvalResult" label="审批意见" min-width="100" align="left" />
|
||||
<el-table-column prop="approvalTime" label="审批时间" width="150">
|
||||
<el-table-column prop="checkNode" label="节点名称" width="260">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.approvalTime && scope.row.approvalTime"> {{ scope.row.approvalTime
|
||||
}}</span>
|
||||
<span v-if="scope.row.checkState == 2">提交申请</span>
|
||||
<span v-else>ESC审核</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="checkNode" label="审批状态" width="160">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.checkState == 0">通过</span>
|
||||
<span v-if="scope.row.checkState == 2">待审批</span>
|
||||
<span v-if="scope.row.checkState == 3">驳回</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="审批意见" min-width="100" align="left" />
|
||||
<el-table-column prop="createTime" label="审批时间" width="230">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.createTime"> {{ scope.row.createTime }}</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -105,12 +116,25 @@
|
|||
<div class="applyFormContainer">
|
||||
<el-row class="myRow" :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="审批结果" prop="status">
|
||||
<el-radio-group v-model="ruleForm.status" @change="handleApplyStateChange">
|
||||
<el-radio value="3">驳回</el-radio>
|
||||
<el-radio value="0">通过</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-row class="myRow" :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="审批结果" prop="status">
|
||||
<el-radio-group v-model="ruleForm.status" @change="handleApplyStateChange">
|
||||
<el-radio value="3">驳回</el-radio>
|
||||
<el-radio value="0">通过</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="角色">
|
||||
<el-select v-model="ruleForm.roleIds" multiple placeholder="请选择角色">
|
||||
<el-option v-for="item in roleOptions" :key="item.roleId"
|
||||
:label="item.roleName" :value="item.roleId"
|
||||
:disabled="item.status == 1"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<el-col :span="18">
|
||||
<el-form-item label="审批意见" prop="remark">
|
||||
|
@ -135,6 +159,7 @@
|
|||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { getUser, userCheckRecordList, checkRegisterUser } from "@/api/system/user"
|
||||
import { listRole } from "@/api/system/role"
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
@ -158,6 +183,7 @@ const data = reactive({
|
|||
})
|
||||
const { ruleForm, detailForm, rules } = toRefs(data)
|
||||
|
||||
|
||||
// 初始化
|
||||
onMounted(() => {
|
||||
const id = route.params && route.params.userId
|
||||
|
@ -165,12 +191,30 @@ onMounted(() => {
|
|||
console.log('接收id', id)
|
||||
ruleForm.value.userId = id
|
||||
getDetailInfo(id)
|
||||
getRoleList();
|
||||
getUserCheckRecordList(id)
|
||||
} else {
|
||||
ruleForm.value.userId = null
|
||||
}
|
||||
});
|
||||
|
||||
// 角色数据
|
||||
const roleOptions = ref([])
|
||||
const getRoleList = () => {
|
||||
listRole({
|
||||
status: 0
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
roleOptions.value = res.rows
|
||||
var employee = res.rows.filter(item =>
|
||||
item.roleName.includes('员工')
|
||||
);
|
||||
if (employee.length > 0) ruleForm.value.roleIds = [employee[0].roleId]
|
||||
console.log('rwerwqe', ruleForm.value.roleIds)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户详情
|
||||
const getDetailInfo = (_id) => {
|
||||
getUser(_id).then(res => {
|
||||
|
@ -208,7 +252,7 @@ const handleCancel = () => {
|
|||
}
|
||||
const handleSubmit = () => {
|
||||
proxy.$refs["ruleFormRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (valid) {
|
||||
checkRegisterUser(ruleForm.value).then(res => {
|
||||
if (res.code == 200) {
|
||||
router.push({
|
||||
|
@ -486,4 +530,10 @@ const handleSubmit = () => {
|
|||
text-align: left;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.el-tag.el-tag--info {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user