|
|
@@ -133,22 +133,22 @@ export default {
|
|
|
// 步骤条步数
|
|
|
stepList: [
|
|
|
{
|
|
|
- stepIndex: 20,
|
|
|
+ stepIndex: 0,
|
|
|
title: '评估计划'
|
|
|
// post: '质量负责人'
|
|
|
},
|
|
|
{
|
|
|
- stepIndex: 40,
|
|
|
+ stepIndex: 25,
|
|
|
title: '实施计划'
|
|
|
// post: '内审组长'
|
|
|
},
|
|
|
{
|
|
|
- stepIndex: 60,
|
|
|
- title: '项目登记'
|
|
|
+ stepIndex: 50,
|
|
|
+ title: '风险识别'
|
|
|
// post: '内审员'
|
|
|
},
|
|
|
{
|
|
|
- stepIndex: 80,
|
|
|
+ stepIndex: 75,
|
|
|
title: '风险改进'
|
|
|
// post: '内审组长'
|
|
|
},
|
|
|
@@ -196,6 +196,21 @@ export default {
|
|
|
pagesize: 2
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ findSchedule: function (guo_shen_) { // 进度返回值
|
|
|
+ if (guo_shen_ === '未编制' || guo_shen_ === '') {
|
|
|
+ return 25
|
|
|
+ } else if (guo_shen_ === '识别中') {
|
|
|
+ return 50
|
|
|
+ } else if (guo_shen_ === '改进中') {
|
|
|
+ return 75
|
|
|
+ } else if (guo_shen_ === '已完成') {
|
|
|
+ return 100
|
|
|
+ } else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
watch: {
|
|
|
obj (newVal, oldVal) {
|
|
|
this.zongid = newVal[0].id_
|
|
|
@@ -217,9 +232,6 @@ export default {
|
|
|
this.zongid = this.obj[0].id_
|
|
|
this.getInits()
|
|
|
},
|
|
|
- mounted () {
|
|
|
- const this_ = this
|
|
|
- },
|
|
|
destroyed () {
|
|
|
this.$destroy()
|
|
|
},
|
|
|
@@ -241,27 +253,28 @@ export default {
|
|
|
const user = this.userList.find(i => i.userId === userId)
|
|
|
return user.userName
|
|
|
},
|
|
|
- FindImprovementRecords (guo_shen_) {
|
|
|
- if (guo_shen_ === '未编制') {
|
|
|
- return 0
|
|
|
- } else if (guo_shen_ === '已编制') {
|
|
|
- return 25
|
|
|
- } else if (guo_shen_ === '已评估') {
|
|
|
- return 50
|
|
|
- } else if (guo_shen_ === '已审核') {
|
|
|
- return 75
|
|
|
- } else if (guo_shen_ === '已完成') {
|
|
|
- return 100
|
|
|
- }
|
|
|
- },
|
|
|
getInits () {
|
|
|
this.getRiskLevel() // 风险等级
|
|
|
this.getRiskIdentification()// 风险识别评估表
|
|
|
this.getImprovementRecords()// 风险改进记录
|
|
|
+ this.getSchedule(this.obj[0].zhuang_tai_)
|
|
|
this.scan = this.scanVisible
|
|
|
this.userList = this.$store.getters.userList
|
|
|
this.deptList = this.$store.getters.deptList
|
|
|
},
|
|
|
+ getSchedule (guo_shen_) {
|
|
|
+ if (guo_shen_ === '未编制' || guo_shen_ === '') {
|
|
|
+ this.activeIndex = 25
|
|
|
+ } else if (guo_shen_ === '识别中') {
|
|
|
+ this.activeIndex = 50
|
|
|
+ } else if (guo_shen_ === '改进中') {
|
|
|
+ this.activeIndex = 75
|
|
|
+ } else if (guo_shen_ === '已完成') {
|
|
|
+ this.activeIndex = 100
|
|
|
+ } else {
|
|
|
+ this.activeIndex = 25
|
|
|
+ }
|
|
|
+ },
|
|
|
handleClick (tab, event) {
|
|
|
// if (tab === 'first') {
|
|
|
// this.getRiskLevel()
|
|
|
@@ -409,7 +422,6 @@ export default {
|
|
|
item.bian_zhi_bu_men_ = this.findDept(item.bian_zhi_bu_men_)
|
|
|
item.bian_zhi_shi_jian = item.bian_zhi_shi_jian || '/'
|
|
|
item.shi_fou_guo_shen_ = item.shi_fou_guo_shen_ || '未编制'
|
|
|
- item.percentage = this.FindImprovementRecords(item.shi_fou_guo_shen_)
|
|
|
}
|
|
|
this.ImproRecordsProp = [
|
|
|
{ prop: 'bian_zhi_bu_men_', label: '编制部门' },
|