Browse Source

物资申请单-编辑页默认值未带出问题

jingbb 4 weeks ago
parent
commit
4b58569e12
1 changed files with 8 additions and 9 deletions
  1. 8 9
      src/views/activiti/form/demoForm2.vue

+ 8 - 9
src/views/activiti/form/demoForm2.vue

@@ -200,7 +200,6 @@ export default {
         }
     },
     created () {
-      // debugger
 		 // console.log("==============="+this.processData);    
 		 // console.log("==============="+this.processData.status);    
 		 // console.log("==============="+this.processData.title);    
@@ -354,8 +353,7 @@ export default {
                                 this.cvarr = []
                                 this.cvarr = []
                                 this.fArr =[]
-                               //遍历help
-                               this.forHelp(this.jsonData)
+                               
                                 this.jsonDataSave = JSON.parse(JSON.stringify(res.result.jsonContent))
                                 // 获取申请人信息
                                 this.getApplicant()
@@ -363,8 +361,9 @@ export default {
                                 this.listUpdateModel()
                                 if (!this.isNew) {
                                     this.init()
-                               
                                 }
+                                //遍历help
+                                this.forHelp(this.jsonData)
                             } else {
                                 this.$message.error(userData.message)
                             }
@@ -372,7 +371,7 @@ export default {
                     } else {
                         this.$message.error(dictData.message)
                     }
-                })
+                })                
             } else {
                 // 获取json
                 this.jsonData = res.result.jsonContent
@@ -389,9 +388,8 @@ export default {
                 // window.jsonData=this.jsonData;
                 if (!this.isNew) {
                     this.init()
-                }else{
-                    this.forHelp(this.jsonData)      
                 }
+                this.forHelp(this.jsonData)      
             }
             
 
@@ -545,7 +543,6 @@ export default {
                         // 赋值
                         this.$refs.KFB.setData(this.data)
                         this.btndisabled = false
-                        // debugger
                         // console.log(this.processData);
                         if(this.processData.result == 2){
                           this.printTitle = true;
@@ -962,7 +959,9 @@ export default {
          },
         // 表单字段数值发生改变事件
         handleChange (value, key) {
-            // debugger
+        //   if(this.processData.businessTable == 'description'){//情侣说明表单-说明字段高度
+        //     document.getElementById('remarks').rows= 8
+        //   }
           if(key == 'proposer' && this.processData.businessTable == 'regular_employee_apply'){//员工转正申请:申请人部门
             this.$refs.KFB.setData({apply_department:this.deptInfo[value]})   
           }