소스 검색

调整费用报销的提示

Lijy 1 년 전
부모
커밋
d4f3b127b4

+ 4 - 2
fhKeeper/formulahousekeeper/timesheet_h5/src/views/expense/details.vue

@@ -632,7 +632,8 @@ export default {
                     this.back()
                 } else {
                     this.confirmLoading = false
-                    this.$toast.fail('获取失败');
+                    // this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.confirmLoading = false;this.$toast.clear();console.log(err)});
         },
@@ -676,7 +677,8 @@ export default {
                         
                     }
                 } else {
-                    this.$toast.fail('获取失败');
+                    // this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.$toast.clear();console.log(err)});
         },

+ 6 - 4
fhKeeper/formulahousekeeper/timesheet_h5/src/views/expense/index.vue

@@ -709,7 +709,8 @@ export default {
                                         id: this.user.id
                                     }
                                 } else {
-                                    this.$toast.fail('获取失败');
+                                    // this.$toast.fail('获取失败');
+                                    this.$toast.fail(res.msg || res.code || '填报失败');
                                 }
                             }).catch(err => { this.confirmLoading = false; this.$toast.clear(); console.log(err) });
                     } else {
@@ -739,7 +740,7 @@ export default {
                                 this.$toast.success('删除成功')
                                 this.getBillList()
                             } else {
-                                this.$toast.fail('获取失败');
+                                this.$toast.fail(res.msg || res.code || '删除失败');
                             }
                         }).catch(err => { this.$toast.clear(); console.log(err) });
                 })
@@ -773,7 +774,8 @@ export default {
                         item.approveLoading = false
                         this.getExamineList()
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail('操作失败');
+                        
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -793,7 +795,7 @@ export default {
                         this.denyLoading = false
                         this.getExamineList()
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '操作失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },