[update] 法规符合性排查流程
This commit is contained in:
+3
-2
@@ -179,9 +179,10 @@ import UserSelectModal from '@/components/selection/UserSelectModal'
|
|||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
import { RegulatoryComplianceCheckNodes, ProcessKey } from '../../../enums/commonEnums'
|
import { RegulatoryComplianceCheckNodes, ProcessKey } from '../../../enums/commonEnums'
|
||||||
import {
|
import {
|
||||||
|
getDataDraft,
|
||||||
regulatoryComplianceCheckAgree, regulatoryComplianceCheckApproval,
|
regulatoryComplianceCheckAgree, regulatoryComplianceCheckApproval,
|
||||||
regulatoryComplianceCheckGetDataById,
|
regulatoryComplianceCheckGetDataById,
|
||||||
regulatoryComplianceCheckGetDataDraft, regulatoryComplianceCheckReject,
|
regulatoryComplianceCheckReject,
|
||||||
regulatoryComplianceCheckSave, regulatoryComplianceCheckTurnTo
|
regulatoryComplianceCheckSave, regulatoryComplianceCheckTurnTo
|
||||||
} from '../../../api/workCenter'
|
} from '../../../api/workCenter'
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
@@ -353,7 +354,7 @@ export default {
|
|||||||
func = regulatoryComplianceCheckGetDataById
|
func = regulatoryComplianceCheckGetDataById
|
||||||
params = param.taskId
|
params = param.taskId
|
||||||
} else {
|
} else {
|
||||||
func = regulatoryComplianceCheckGetDataDraft
|
func = getDataDraft
|
||||||
params = param
|
params = param
|
||||||
}
|
}
|
||||||
func(params).then(res => {
|
func(params).then(res => {
|
||||||
|
|||||||
+18
-11
@@ -198,13 +198,11 @@ import JTable from '@/components/jero/JTable'
|
|||||||
import StandardSelectionModal from '@/components/selection/StandardSelectionModal'
|
import StandardSelectionModal from '@/components/selection/StandardSelectionModal'
|
||||||
import { getForeignStandardDetail } from '@/api/standardRegulationLibraryApi'
|
import { getForeignStandardDetail } from '@/api/standardRegulationLibraryApi'
|
||||||
import ManualAddModal from './ManualAddModal'
|
import ManualAddModal from './ManualAddModal'
|
||||||
import STreeSelect from '@/components/STreeSelect'
|
|
||||||
import { StandardSource, AddType } from '@/enums/commonEnums'
|
import { StandardSource, AddType } from '@/enums/commonEnums'
|
||||||
import { regulatoryComplianceCheckGenerate } from '@/api/workCenter'
|
import { regulatoryComplianceCheckGenerate } from '@/api/workCenter'
|
||||||
import { getFormDictTreeList, queryDepartTreeList } from '../../../../api/api'
|
import { getFormDictTreeList, queryDepartTreeList } from '../../../../api/api'
|
||||||
import { downloadFile } from '../../../../api/manage'
|
import { downloadFile } from '../../../../api/manage'
|
||||||
import MarketRegulationsListSelection from '../../../../components/selection/MarketRegulationsListSelection'
|
import MarketRegulationsListSelection from '../../../../components/selection/MarketRegulationsListSelection'
|
||||||
import pick from 'lodash.pick'
|
|
||||||
|
|
||||||
const uidGenerator = () => {
|
const uidGenerator = () => {
|
||||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||||
@@ -216,8 +214,7 @@ export default {
|
|||||||
MarketRegulationsListSelection,
|
MarketRegulationsListSelection,
|
||||||
JTable,
|
JTable,
|
||||||
ManualAddModal,
|
ManualAddModal,
|
||||||
StandardSelectionModal,
|
StandardSelectionModal
|
||||||
STreeSelect
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
disabled: {
|
disabled: {
|
||||||
@@ -384,14 +381,14 @@ export default {
|
|||||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
|
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'modelState',
|
dataIndex: 'modelState_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 责任部门
|
{ // 责任部门
|
||||||
title: this.$t('responsibleDepartment'),
|
title: this.$t('responsibleDepartment'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'authDept',
|
dataIndex: 'authDept_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -621,12 +618,12 @@ export default {
|
|||||||
// 获取部门在部门下拉框的对象
|
// 获取部门在部门下拉框的对象
|
||||||
getDepartObj (departId, departList) {
|
getDepartObj (departId, departList) {
|
||||||
for (const item of departList) {
|
for (const item of departList) {
|
||||||
if (item.id === departId) {
|
if (item.key === departId) {
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
if (item.children) {
|
if (item.children) {
|
||||||
const obj = this.getDepartObj(departId, item.children)
|
const obj = this.getDepartObj(departId, item.children)
|
||||||
if (obj.id) {
|
if (obj && obj.key) {
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -634,7 +631,15 @@ export default {
|
|||||||
},
|
},
|
||||||
// 根据传入的部门获取他的所有子集
|
// 根据传入的部门获取他的所有子集
|
||||||
getDepartChildren (dept) {
|
getDepartChildren (dept) {
|
||||||
|
let arr = []
|
||||||
|
for (const item of dept) {
|
||||||
|
arr.push(item)
|
||||||
|
if (item.children) {
|
||||||
|
const resArr = this.getDepartChildren(item.children)
|
||||||
|
arr = arr.concat(resArr)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return arr
|
||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
searchQuery () {
|
searchQuery () {
|
||||||
@@ -642,10 +647,12 @@ export default {
|
|||||||
// 获取选中的部门的所有子集
|
// 获取选中的部门的所有子集
|
||||||
// 先获取选中的部门在部门里的对象
|
// 先获取选中的部门在部门里的对象
|
||||||
const obj = this.getDepartObj(this.queryParam.authDept, this.categoryTreeList)
|
const obj = this.getDepartObj(this.queryParam.authDept, this.categoryTreeList)
|
||||||
|
console.log('------------obj', obj)
|
||||||
// 获取选中部门的所有子集id
|
// 获取选中部门的所有子集id
|
||||||
|
const deptArr = this.getDepartChildren([obj]).map(item => item.key)
|
||||||
|
console.log('------------deptArr', deptArr)
|
||||||
this.dataSource = this.dataList.filter(item => {
|
this.dataSource = this.dataList.filter(item => {
|
||||||
return item.authDept + '' === this.queryParam.authDept + ''
|
return deptArr.includes(this.queryParam.authDept)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.dataSource = JSON.parse(JSON.stringify(this.dataList))
|
this.dataSource = JSON.parse(JSON.stringify(this.dataList))
|
||||||
|
|||||||
Reference in New Issue
Block a user