Browse Source

任务中心绩效结果考核申报新增修改详情头功能;

SunZehao 1 year ago
parent
commit
cdb1d47c73

+ 23 - 5
src/components/taskCenter/taskApplicationFrom.vue

@@ -15,9 +15,11 @@
                         </div>
                     </el-col>
                     <el-col :span="6">
-                        <div class="danjuMsg_data">
+                        <div class="danjuMsgSelect">
                             <span class="data_tit">申报简述:</span>
-                            <span>{{receiptMsg.des}}</span>
+                            <span v-if="userMes.deptId !== '23031009'">{{receiptMsg.des}}</span>
+                            <el-input v-model="receiptMsg.des" :rows="1" type="textarea" @blur="blurDes" v-else
+                             placeholder="请输入申报简述"></el-input>
                         </div>
                         <div class="danjuMsg_data">
                             <span class="data_tit">申报领导:</span>
@@ -225,7 +227,7 @@ export default {
     methods: {
         init(row, id) {
             this.dialogVisible = true
-            this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
+            // this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
             this.activeName = 'first'
             this.getDetails(id)
             this.getDetailsHeader(id)
@@ -248,10 +250,21 @@ export default {
             })
         },
         changeratingGrade(val) {
+            this.modeifyDetail('level', val)
+        },
+        blurDes() {
+            this.modeifyDetail('des', this.receiptMsg.des)
+        },
+        // 修改申报详情头信息
+        modeifyDetail(type, val) {
             let that = this
             let params = {
-                id: that.keyId,
-                ratingGrade: val
+                id: that.keyId
+            }
+            if (type === 'level') {
+                params.ratingGrade = val
+            } else {
+                params.des = val
             }
             apideptAdmodify(params).then(datas =>{
                 if (datas.success) {
@@ -533,6 +546,11 @@ export default {
                                 position: relative;
                                 top: -5px;
                             }
+                            .el-textarea{
+                                width: 80%;
+                                position: relative;
+                                top: -4px;
+                            }
                         }
                     }
                     .el-select, .el-input{

+ 24 - 29
src/components/taskCenter/taskCenterPage.vue

@@ -81,11 +81,7 @@ export default {
     },
     data() {
         return {
-            taskCenterData: [
-                {
-                    assigneeNames: '22222'
-                }
-            ],
+            taskCenterData: [],
             workflowVisible: false,
             iframeURL: '',
             page:{
@@ -122,30 +118,29 @@ export default {
             this.iframeURL = 'http://10.65.78.23:8080/agilebpm-ui/bpm/instance/instanceImageDialog.html?instanceId='+row.instId+'&defId='+row.defId+'&taskId='+row.taskId+'&iamCode='+window.localStorage.getItem('code')
         },
         taskProcess(row) {
-            this.$refs.taskApplicationFrom.init(row)
-            // let that = this
-            // let params = {
-            //     id: row.instId,
-            //     iamCode: window.localStorage.getItem('code')
-            // }
-            // apiPostgetInstanceAndChildren(params).then(datas =>{
-            //     if (datas && datas.data) {
-            //         let allData = datas.data.data.bpmInstance
-            //         let keyId = datas.data.data.bpmInstance.bizKey
-            //         let taskDefKey = datas.data.data.bpmInstance.defKey
-            //         if (taskDefKey === 'bbbmyjzbjh') {
-            //             that.$refs.taskCenterdeptEvl.init(row, keyId, allData)
-            //         } else if(taskDefKey === 'bbbmyjzbkh'){
-            //             that.$refs.taskCenterdeptbusinessEvl.init(row, keyId, allData)
-            //         } else if(taskDefKey === 'jxjgkhsb'){
-            //             that.$refs.taskApplicationFrom.init(row, keyId)
-            //         } else if(taskDefKey === 'yddwkplc' || taskDefKey === 'jddwkplc' || taskDefKey === 'nddwkplc') {
-            //             that.$refs.taskCenterEvl.init(row, allData)
-            //         } else if (taskDefKey === 'dwkpmbqd' || taskDefKey === 'dwkpmbxd') {
-            //             that.$refs.taskEvaluationStart.init(row)
-            //         }
-            //     }
-            // })
+            let that = this
+            let params = {
+                id: row.instId,
+                iamCode: window.localStorage.getItem('code')
+            }
+            apiPostgetInstanceAndChildren(params).then(datas =>{
+                if (datas && datas.data) {
+                    let allData = datas.data.data.bpmInstance
+                    let keyId = datas.data.data.bpmInstance.bizKey
+                    let taskDefKey = datas.data.data.bpmInstance.defKey
+                    if (taskDefKey === 'bbbmyjzbjh') {
+                        that.$refs.taskCenterdeptEvl.init(row, keyId, allData)
+                    } else if(taskDefKey === 'bbbmyjzbkh'){
+                        that.$refs.taskCenterdeptbusinessEvl.init(row, keyId, allData)
+                    } else if(taskDefKey === 'jxjgkhsb'){
+                        that.$refs.taskApplicationFrom.init(row, keyId)
+                    } else if(taskDefKey === 'yddwkplc' || taskDefKey === 'jddwkplc' || taskDefKey === 'nddwkplc') {
+                        that.$refs.taskCenterEvl.init(row, allData)
+                    } else if (taskDefKey === 'dwkpmbqd' || taskDefKey === 'dwkpmbxd') {
+                        that.$refs.taskEvaluationStart.init(row)
+                    }
+                }
+            })
         },
         rowClick(selection, row) {
             this.changeDateSelect = selection