Prechádzať zdrojové kódy

发文申请,报修申请,请假申请

jbb 2 rokov pred
rodič
commit
39f2a60875
1 zmenil súbory, kde vykonal 38 pridanie a 1 odobranie
  1. 38 1
      src/views/activiti/form/demoForm2.vue

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

@@ -762,6 +762,18 @@ export default {
 
                                          // 技能博物馆---刻章申请-创建部门
                                 if(that.processData.businessTable == 'bwg_engrave_apply'){
+                                   that.$refs.KFB.setData({create_department:jnDeparment}) 
+                                    }
+                                            // 技能博物馆---发文登记-创建部门
+                                if(that.processData.businessTable == 'bwg_send_file'){
+                                   that.$refs.KFB.setData({create_department:jnDeparment}) 
+                                    }
+                                             // 技能博物馆---保修申请-创建部门
+                                    if(that.processData.businessTable == 'bwg_repairs_record'){
+                                   that.$refs.KFB.setData({create_department:jnDeparment}) 
+                                    }
+                                                // 技能博物馆---请假申请-创建部门
+                                    if(that.processData.businessTable == 'leave_apply'){
                                    that.$refs.KFB.setData({create_department:jnDeparment}) 
                                     }
                                 //技能博物馆-任务--默认当前登陆人部门
@@ -797,7 +809,7 @@ export default {
                                 //       }) 
                                 //     }
                                 //   }
-                              },500)
+                              },2000)
                               
                            }
         },
@@ -1089,6 +1101,22 @@ export default {
                   }
               })
          }
+         //技能博物馆-发文申请-发文部门
+         if(key == 'text_person' &&this.processData.businessTable == 'bwg_send_file'){
+           this.dynamicData.personListJn.map(item =>{
+                  if(item.label == value){
+                      this.$refs.KFB.setData({text_department:item.departIds_dictText}) 
+                  }
+              })
+         }
+         //技能博物馆-保修申请-申请部门
+         if(key == 'repairs_person' &&this.processData.businessTable == 'bwg_repairs_record'){
+           this.dynamicData.personListJn.map(item =>{
+                  if(item.label == value){
+                      this.$refs.KFB.setData({apply_department:item.departIds_dictText}) 
+                  }
+              })
+         }
          //技能博物馆-用章申请-申请部门
          if(key == 'applicant' &&this.processData.businessTable == 'bwg_seal_apply'){
            this.dynamicData.personListJn.map(item =>{
@@ -1098,6 +1126,15 @@ export default {
               })
          }
 
+         //技能博物馆-请假申请-申请部门
+         if(key == 'apply_perso' &&this.processData.businessTable == 'leave_apply'){
+           this.dynamicData.personListJn.map(item =>{
+                  if(item.label == value){
+                      this.$refs.KFB.setData({apply_department:item.departIds_dictText}) 
+                  }
+              })
+         }
+
          // 技能博物馆---固定资产--归还
         if(key == 'uuse_personnel' && this.processData.businessTable == 'give_back'){
             this.dynamicData.personListJn.map(item =>{