yuansh 2 years ago
parent
commit
0e6036a076

BIN
src/views/activiti/form/20230310100319.png


+ 29 - 10
src/views/activiti/form/demoForm2.vue

@@ -541,19 +541,38 @@ export default {
                         // 赋值
                         this.$refs.KFB.setData(this.data)
                         this.btndisabled = false
-                        
-                        if(this.processData.status == 2){
+                        // debugger
+                        // console.log(this.processData);
+                        if(this.processData.result == 2){
                           this.printTitle = true;
                           
-                          if(this.processData.businessTable == 'meeting_summary'){
-                            let leadership_pass = this.$refs.KFB.form.getFieldValue('leadership_pass');
-                            if(leadership_pass == 2){
-                              this.printTitleImg = false;
-                            }else{
-                              this.printTitleImg = true;
-                            }
-                          }else{
+                          if(this.processData.businessTable == 'meeting_summary'){ //会议纪要
+                              let leadership_pass = this.$refs.KFB.form.getFieldValue('leadership_pass');
+                              if(leadership_pass == 2){
+                                this.printTitleImg = false;
+                              }else{
+                                this.printTitleImg = true;
+                              }
+                          }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;
+                            
+                          }else if(this.processData.businessTable == 'expense_account'){//报销单
+                          
+                              let expense_type = this.$refs.KFB.form.getFieldValue('expense_type');
+                              if(expense_type != '差旅费报销'){ //业务需求报销/日常用品报销需要,其他不需要
+                                this.printTitleImg = true;
+                              }else{
+                                this.printTitleImg = false;
+                              }
+                              
+                          }else{
+                            this.printTitleImg = false;
                           }
                          
                         }else{

+ 2 - 1
src/views/dashboard/MyToDo.vue

@@ -52,7 +52,8 @@
       <a-col :xs="24" :sm="24" :md="24" :lg="6" :style="{ marginBottom: '8px',}">
         <!-- 等高设置 -->
         <a-card title="常用流程" :bordered="false" style="height: 250px;">
-          <div v-for="(item, index) in activeKeyAll.slice(5, 10)" :key="index" class="oaBig">
+          <!-- <div v-for="(item, index) in activeKeyAll.slice(5, 10)" :key="index" class="oaBig"> -->
+          <div v-for="(item, index) in activeKeyAll.slice(0, 6)" :key="index" class="oaBig">
             <a @click.prevent="aClick(item)" class="oaItem fl">
               <!-- 图标 -->
               <a-avatar shape="square" :size="36" :src="item.iconAddress" />