瀏覽代碼

请假申请

jbb 2 年之前
父節點
當前提交
8aac804280
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/activiti/form/demoForm2.vue

+ 4 - 1
src/views/activiti/form/demoForm2.vue

@@ -691,6 +691,7 @@ export default {
                                // this.$store.getters.userInfo
                                var that = this
                                setTimeout(function(){
+                               
                                that.$refs.KFB.setData({[item[0].label]:that.$store.getters.userInfo.realname})  
                             //    森语-请假单-须根据当前用户带出剩余年假 
                                if(that.processData.businessTable =='employee_leave'){
@@ -704,12 +705,14 @@ export default {
                                }
                                var jnDeparment = ''
                                if(getProjctName() =='技能博物馆'){   //获取技能博物馆登录人对应的部门
+                             
                                    that.dynamicData.personListJn.map(item =>{
                                        if(item.label == that.$store.getters.nickname){
                                            jnDeparment = item.departIds_dictText
                                     }
                                   })
                                }
+                              
                                if(that.processData.businessTable == 'regular_employee_apply'){//员工转正申请
                                  that.$refs.KFB.setData({apply_department:that.deptInfo[that.$store.getters.userInfo.username]})   
                                  // that.$refs.KFB.setData({job_title:that.postInfo[that.$store.getters.userInfo.username]})   
@@ -774,7 +777,7 @@ export default {
                                     }
                                                 // 技能博物馆---请假申请-创建部门
                                     if(that.processData.businessTable == 'leave_apply'){
-                                   that.$refs.KFB.setData({create_department:jnDeparment}) 
+                                      that.$refs.KFB.setData({create_department:jnDeparment}) 
                                     }
                                 //技能博物馆-任务--默认当前登陆人部门
                                if(that.processData.businessTable == 'task_management'){