瀏覽代碼

森语-物质申请单-签名显示问题

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

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

@@ -555,13 +555,11 @@ export default {
                               }
                           }else if(this.processData.businessTable == 'separation_application' || //离职
                                   this.processData.businessTable == 'personnel_recruitment_apply' || //人员需求
-                                  this.processData.businessTable == 'supplieses_apply_a' || //物资申请
                                   this.processData.businessTable == 'regular_employee_apply' || //转正申请
                                   this.processData.businessTable == 'incident_ticket' || //质量事故单
                                   this.processData.businessTable == 'welfare'){ //福利发放单
                                   
-                            this.printTitleImg = true;
-                            
+                            this.printTitleImg = true;                            
                           }else if(this.processData.businessTable == 'expense_account'){//报销单
                           
                               let expense_type = this.$refs.KFB.form.getFieldValue('expense_type');
@@ -572,13 +570,18 @@ export default {
                               }
                               
                           }else if(this.processData.businessTable == 'supplieses_apply_a'){//物质申请单
-                          
-                              // let expense_type = this.$refs.KFB.form.getFieldValue('expense_type');
-                              // if(expense_type != '差旅费报销'){ //业务需求报销/日常用品报销需要,其他不需要
-                              //   this.printTitleImg = true;
-                              // }else{
-                              //   this.printTitleImg = false;
-                              // }
+                            var sonTable=[]
+                            // 获取子表数据
+                             _.keys(formData).forEach(r => {
+                              if (r.indexOf('child&') != -1) {
+                                    sonTable=formData[r]
+                               }
+                              })
+                              if(sonTable[0].procurement_type !== '1'){ //公司采购,不显示签名
+                                this.printTitleImg = true;
+                              }else{
+                                this.printTitleImg = false;
+                              }
                               
                           }else{
                             this.printTitleImg = false;
@@ -907,7 +910,6 @@ export default {
          },
         // 表单字段数值发生改变事件
         handleChange (value, key) {
-            // debugger
           if(key == 'proposer' && this.processData.businessTable == 'regular_employee_apply'){//员工转正申请:申请人部门
             this.$refs.KFB.setData({apply_department:this.deptInfo[value]})   
           }