Browse Source

全馆值班

jbb 2 years ago
parent
commit
8452a580de
1 changed files with 11 additions and 15 deletions
  1. 11 15
      src/views/activiti/form/demoForm2.vue

+ 11 - 15
src/views/activiti/form/demoForm2.vue

@@ -576,6 +576,17 @@ export default {
                                if(that.processData.businessTable == 'separation_application'){//离职申请
                                  that.$refs.KFB.setData({job_title:that.postInfo[that.$store.getters.userInfo.username]})   
                                }
+                               if(that.processData.businessTable == 'bwg_house_duty'){ // 技能博物馆--全馆值班 --默认当前登陆人
+                                 that.$refs.KFB.setData({referrer:that.$store.getters.nickname})  
+                                 that.dynamicData.personListJn.map(item =>{
+                                        if(item.label == that.$store.getters.nickname){
+                                       that.$refs.KFB.setData({department_id:item.departIds}) 
+                                       that.$refs.KFB.setData({department_name:item.departIds_dictText}) 
+                                       that.$refs.KFB.setData({mobile_telephone:item.phone}) 
+                                       that.$refs.KFB.setData({telephone:item.telephone}) 
+                                    }
+                                  })
+                               }
                           
 							   
                                   },0)
@@ -743,21 +754,6 @@ export default {
                   }
               }) 
           }
-          
-         //技能博物馆 ---- 全馆值班 (根据登录姓名带出其他字段的值)
-         if(this.processData.businessTable == 'bwg_house_duty'){
-                var that = this
-                 setTimeout(function(){
-                   that.dynamicData.personListJn.map(item =>{
-                     if(item.label == that.$store.getters.nickname){
-                      that.$refs.KFB.setData({department_id:item.departIds}) 
-                      that.$refs.KFB.setData({department_name:item.departIds_dictText}) 
-                      that.$refs.KFB.setData({telephone:item.telephone}) 
-                      that.$refs.KFB.setData({mobile_telephone:item.phone}) 
-                     }
-                   })
-                 },500)
-         }
 
          //技能博物馆 ----- 费用报销
         if(key == 'expense_person' && this.processData.businessTable == 'bwg_expense_apply'){