소스 검색

任务中心新增单位考评评级增加详情头部信息

SunZehao 1 년 전
부모
커밋
9ce0a7d12f
2개의 변경된 파일40개의 추가작업 그리고 18개의 파일을 삭제
  1. 9 0
      src/api/api.js
  2. 31 18
      src/components/taskCenter/taskUnitRatingFrom.vue

+ 9 - 0
src/api/api.js

@@ -794,6 +794,15 @@ export function apiPostorganizationyearratingDelete(params) {
     })
 }
 
+//--------任务中心查询评级头部信息
+export function apiGetorganizationyearratingHeader(params) {
+    return httpRequest({
+        url: 'organization-year-rating/getId',
+        method: 'get',
+        params: params
+    })
+}
+
 
 //--------单位绩效考核评级列表---次表
 export function apiGetorganizationratinglist(params) {

+ 31 - 18
src/components/taskCenter/taskUnitRatingFrom.vue

@@ -222,7 +222,7 @@ import deleteIcon from '../../assets/btnIcon/delete.png'
 import exportIcon from '../../assets/btnIcon/export.png'
 import importIcon from '../../assets/btnIcon/import.png'
 import {apiGetorganizationratinglist, apiGetorganizationratingsave,apiGetOrganizationListAll,apiGetbinsectionList,
-apiPostorganizationratingDelete, apiPostIsdoAction} from '../../api/api'
+apiPostorganizationratingDelete, apiPostIsdoAction, apiGetorganizationyearratingHeader} from '../../api/api'
 export default {
     components: {
         importDailog,
@@ -314,19 +314,32 @@ export default {
             this.rowObj = row
             this.rowkeyId = keyId
             this.instanceChild = allData
-            this.receiptMsg = {
-                code: row.responsibilityCode,
-                des: row.des,
-                stage: row.stage,
-                createName: row.createName,
-                createDate: row.createTime,
-                year: row.year,
-                recStage: '有效'
-            }
             this.getevaluRatingDiaList(row, keyId)
+            this.getUnitRatingHeader(keyId)
             this.getOrganizetionData()
             this.getDataDictionary()
         },
+        // 查询头部信息
+        getUnitRatingHeader(id) {
+            let that = this
+            let params = {
+                id: id
+            }
+            apiGetorganizationyearratingHeader(params).then(datas =>{
+                if (datas && datas.data) {
+                    let item = datas.data
+                    that.receiptMsg = {
+                        code: item.responsibilityCode,
+                        des: item.des,
+                        stage: item.stage,
+                        createName: item.createName,
+                        createDate: item.createTime,
+                        year: item.year,
+                        recStage: '有效'
+                    }
+                }
+            })
+        },
         // 查询列表页面
         getevaluRatingDiaList(row, id) {
             let that = this
@@ -429,26 +442,26 @@ export default {
             let that = this
             let actionCS = ''
             if (type === 'agree') {
-                if (that.rowMsg.taskType === 'SIGN') {
+                if (that.rowObj.taskType === 'SIGN') {
                     actionCS = 'signAgree'
-                } else if (that.rowMsg.taskType === 'NORMAL') {
+                } else if (that.rowObj.taskType === 'NORMAL') {
                     actionCS = 'agree'
                 }
             } else {
-                if (that.rowMsg.taskType === 'SIGN') {
+                if (that.rowObj.taskType === 'SIGN') {
                     actionCS = 'signReject'
-                } else if (that.rowMsg.taskType === 'NORMAL') {
+                } else if (that.rowObj.taskType === 'NORMAL') {
                     actionCS = 'reject'
                 }
             }
             let params = {
-                taskId: that.rowMsg.id, //任务ID
-                nodeId: that.rowMsg.nodeId, //节点ID
+                taskId: that.rowObj.id, //任务ID
+                nodeId: that.rowObj.nodeId, //节点ID
                 action: actionCS, //固定值
-                instanceId: that.rowMsg.instId, //流程实例ID
+                instanceId: that.rowObj.instId, //流程实例ID
                 opinion: that.descMsg, //审批意见
                 iamCode: window.localStorage.getItem('code'), //认证后code值
-                taskName: that.rowMsg.name,
+                taskName: that.rowObj.name,
                 defKey: that.instanceChild.defKey,
                 bizKey: that.instanceChild.bizKey
             }