|
@@ -127,7 +127,8 @@
|
|
|
<script>
|
|
|
import importDailog from '../importPage/importDailog.vue'
|
|
|
import {apiGetEvaluationIndicatorList,apiGetgetEvaluationInfoDataList,apiGetbinsectionList, apiGetbinstageList,
|
|
|
-apiPostorganizationUpdateEvaluationInfo, apiPostorganizationUpdateAddEvaluationInfo} from '../../api/api'
|
|
|
+apiPostorganizationUpdateEvaluationInfo, apiPostorganizationUpdateAddEvaluationInfo,apiGetHeaderOrganizationEvaluation,
|
|
|
+apiGetHeaderDeptResponsibility, apiPostgetInstanceAndChildren} from '../../api/api'
|
|
|
import * as XLSX from 'xlsx'
|
|
|
import { saveAs } from 'file-saver'
|
|
|
import * as XLSXD from 'xlsx-js-style'
|
|
@@ -173,6 +174,7 @@ export default {
|
|
|
exportIcon: exportIcon,
|
|
|
importIcon: importIcon,
|
|
|
addstageId: '',
|
|
|
+ tastbizKey: '',
|
|
|
userMes: {},
|
|
|
instanceChild: {}
|
|
|
}
|
|
@@ -180,29 +182,68 @@ export default {
|
|
|
created() {
|
|
|
},
|
|
|
methods: {
|
|
|
- init(row, type) {
|
|
|
+ init(row) {
|
|
|
this.dialogVisible = true
|
|
|
- this.receiptMsg = {
|
|
|
- code: row.organizationEvaluationCode,
|
|
|
- des: row.des,
|
|
|
- stage: row.stage,
|
|
|
- createName: row.createName,
|
|
|
- createDate: row.createTime,
|
|
|
- type: row.checkCycle === 'YDKP'?'月度考评':row.checkCycle === 'JDKP'?'季度考评':'年度考评',
|
|
|
- year: row.year,
|
|
|
- recStage: '有效'
|
|
|
- }
|
|
|
-
|
|
|
- this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
- this.getModelData(type)
|
|
|
+ // this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
+ // this.getTaskId(row)
|
|
|
this.rowMsg = row
|
|
|
},
|
|
|
+ // 根据流程ID获取业务ID
|
|
|
+ getTaskId(row) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ id: row.instId,
|
|
|
+ iamCode: window.localStorage.getItem('code')
|
|
|
+ }
|
|
|
+ apiPostgetInstanceAndChildren(params).then(datas =>{
|
|
|
+ if (datas && datas.data) {
|
|
|
+ that.instanceChild = datas.data.data.bpmInstance
|
|
|
+ let bizKey = datas.data.data.bpmInstance.bizKey
|
|
|
+ let defKey = datas.data.data.bpmInstance.defKey
|
|
|
+ that.tastbizKey = datas.data.data.bpmInstance.bizKey
|
|
|
+ // that.taskDefKey = datas.data.data.bpmInstance.defKey
|
|
|
+ that.getevalHeaderDetails(bizKey)
|
|
|
+ that.getModelData(defKey)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取头部详情
|
|
|
+ getevalHeaderDetails(id) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ id: id
|
|
|
+ }
|
|
|
+ if (defKey === 'yddwkplc' || defKey === 'jddwkplc' || defKey === 'nddwkplc') {
|
|
|
+ apiGetHeaderOrganizationEvaluation(params).then(datas =>{
|
|
|
+ that.getDataMsg(defKey, datas)
|
|
|
+ })
|
|
|
+ } else if(defKey === 'dwkpmbqd') {
|
|
|
+ apiGetHeaderDeptResponsibility(params).then(datas =>{
|
|
|
+ that.getDataMsg('dwkpmbqd', datas)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getDataMsg(types, datas) {
|
|
|
+ if (datas && datas.data) {
|
|
|
+ let item = datas.data
|
|
|
+ this.receiptMsg = {
|
|
|
+ code: types === 'dwkpmbqd'?item.responsibilityCode:item.organizationEvaluationCode,
|
|
|
+ des: item.des,
|
|
|
+ stage: item.stage,
|
|
|
+ creator: item.createBy,
|
|
|
+ createDate: item.createTime,
|
|
|
+ type: item.checkCycle === 'YDKP'?'月度考评':item.checkCycle === 'JDKP'?'季度考评':'年度考评',
|
|
|
+ year: item.year,
|
|
|
+ recStage: '有效'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取业务属性
|
|
|
getModelData(type) {
|
|
|
let that = this
|
|
|
that.titleMsgArr = []
|
|
|
let params = {
|
|
|
- type: type === '年度' ? '3' : '2'
|
|
|
+ type: type === 'nddwkplc' ? '3' : '2'
|
|
|
}
|
|
|
apiGetbinsectionList(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
@@ -244,7 +285,7 @@ export default {
|
|
|
that.monthQuarterYearData = []
|
|
|
that.isClickTagId = ''
|
|
|
let params = {
|
|
|
- organizationEvaluationId: that.rowMsg.id,
|
|
|
+ organizationEvaluationId: that.tastbizKey,
|
|
|
binSection: that.binSectionStr,
|
|
|
binStage: id
|
|
|
}
|
|
@@ -258,24 +299,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 根据流程ID获取业务ID
|
|
|
- // getTaskId(row) {
|
|
|
- // let that = this
|
|
|
- // let params = {
|
|
|
- // id: row.instId,
|
|
|
- // iamCode: window.localStorage.getItem('code')
|
|
|
- // }
|
|
|
- // apiPostgetInstanceAndChildren(params).then(datas =>{
|
|
|
- // if (datas && datas.data) {
|
|
|
- // that.instanceChild = datas.data.data.bpmInstance
|
|
|
- // let keyId = datas.data.data.bpmInstance.bizKey
|
|
|
- // that.tastbizKey = datas.data.data.bpmInstance.bizKey
|
|
|
- // that.taskDefKey = datas.data.data.bpmInstance.defKey
|
|
|
- // that.getevalStartDetails(keyId, that.instanceChild.defKey)
|
|
|
- // that.getOrgRule(keyId, that.instanceChild.defKey)
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
handleClick(val) {
|
|
|
let stageId = ''
|
|
|
this.stageData.forEach(it =>{
|
|
@@ -289,7 +312,7 @@ export default {
|
|
|
getTableData(id) {
|
|
|
let that = this
|
|
|
let params = {
|
|
|
- organizationEvaluationId: that.rowMsg.id,
|
|
|
+ organizationEvaluationId: that.tastbizKey,
|
|
|
indicatorId: id
|
|
|
}
|
|
|
apiGetgetEvaluationInfoDataList(params).then(datas =>{
|
|
@@ -365,8 +388,7 @@ export default {
|
|
|
let saveParams = []
|
|
|
let addObj = {
|
|
|
organizationId: that.userMes.unitId,
|
|
|
- // organizationId: "23079300",
|
|
|
- organizationEvaluationId: that.rowMsg.id,
|
|
|
+ organizationEvaluationId: that.tastbizKey,
|
|
|
indicatorId: that.isClickTagId,
|
|
|
binSection: that.binSectionStr,
|
|
|
binStage: that.addstageId,
|