Bläddra i källkod

技能博物馆-用车申请

jbb 2 år sedan
förälder
incheckning
1f26ce0ba8
1 ändrade filer med 14 tillägg och 5 borttagningar
  1. 14 5
      src/views/activiti/form/demoForm2.vue

+ 14 - 5
src/views/activiti/form/demoForm2.vue

@@ -669,10 +669,12 @@ export default {
         //默认时间/默认当前账号
         defualtData(item){ 
                            if(item[1].label =='today'){
-                               if(item[2].label){
+                               if(item[2].label&&item[2].label!=='ss'){
                                  item[0].value =moment(new Date().toLocaleDateString()).format('YYYY-MM-DD')
-                               }else{
-                                  item[0].value =moment(new Date().toLocaleDateString()).format('YYYY-MM-DD HH:mm')
+                               }else if(item[2].label&&item[2].label=='ss'){
+                                item[0].value =moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
+                               } else{
+                                  item[0].value =moment(new Date()).format('YYYY-MM-DD HH:mm')
                                }
                                var that = this
                                setTimeout(function(){
@@ -991,7 +993,7 @@ export default {
                   }
               })
         }
-        // 技能博物馆---用车申请
+        // 技能博物馆---用车申请-用车人
         if(key == 'car_automobilist' && this.processData.businessTable == 'car_apply'){
             this.dynamicData.personListJn.map(item =>{
                   if(item.label == value){
@@ -999,7 +1001,14 @@ export default {
                   }
               })
         }
-
+        // 技能博物馆---用车申请-申请人
+        if(key == 'applicant' && this.processData.businessTable == 'car_apply'){
+            this.dynamicData.personListJn.map(item =>{
+                  if(item.label == value){
+                      this.$refs.KFB.setData({apply_department:item.departIds_dictText}) 
+                  }
+              })
+        }
         // // 技能博物馆---物料库存--金额计算
         // if((key == 'unit_price'||key=='amount') && this.processData.businessTable == 'material_apply'){
         //     var that = this