|
@@ -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{
|