Kaynağa Gözat

调整费用报销的提示

Lijy 1 yıl önce
ebeveyn
işleme
1ee0c21a98

+ 5 - 7
fhKeeper/formulahousekeeper/timesheet_h5/src/views/expense/details.vue

@@ -632,7 +632,6 @@ export default {
                     this.back()
                 } else {
                     this.confirmLoading = false
-                    // this.$toast.fail('获取失败');
                     this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.confirmLoading = false;this.$toast.clear();console.log(err)});
@@ -677,7 +676,6 @@ export default {
                         
                     }
                 } else {
-                    // this.$toast.fail('获取失败');
                     this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.$toast.clear();console.log(err)});
@@ -688,7 +686,7 @@ export default {
                 if(res.code == "ok") {
                     this.userList = res.data
                 } else {
-                    this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.$toast.clear();console.log(err)});
         },
@@ -698,7 +696,7 @@ export default {
                 if(res.code == "ok") {
                     this.inProjectList = res.data
                 } else {
-                    this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.$toast.clear();console.log(err)});
         },
@@ -709,7 +707,7 @@ export default {
                     this.allexTypeList = res.data
                     this.inexTypeList = this.allexTypeList.filter(a=>a.mainType == this.editForm.type)
                 } else {
-                    this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err=> {this.$toast.clear();console.log(err)});
         },
@@ -723,7 +721,7 @@ export default {
                         item.approveLoading = false
                         this.getDetail();
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '获取失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -737,7 +735,7 @@ export default {
                         item.approveLoading = false
                         this.getDetail();
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '获取失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },

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

@@ -709,7 +709,6 @@ export default {
                                         id: this.user.id
                                     }
                                 } else {
-                                    // this.$toast.fail('获取失败');
                                     this.$toast.fail(res.msg || res.code || '填报失败');
                                 }
                             }).catch(err => { this.confirmLoading = false; this.$toast.clear(); console.log(err) });
@@ -806,7 +805,7 @@ export default {
                     if (res.code == "ok") {
                         this.userList = res.data
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '获取失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -817,7 +816,7 @@ export default {
                         this.inProjectList = res.data
                         this.inProjectListCopy = JSON.parse(JSON.stringify(res.data))
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '获取失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -828,7 +827,7 @@ export default {
                         this.allexTypeList = res.data
                         this.inexTypeList = this.allexTypeList.filter(a => a.mainType == this.editForm.type)
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '获取失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -845,7 +844,7 @@ export default {
                         this.editForm.type = res.data[0].id
                         this.getExTypeList
                     } else {
-                        this.$toast.fail('获取失败');
+                        this.$toast.fail(res.msg || res.code || '获取失败');
                     }
                 }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -862,7 +861,7 @@ export default {
                 if (res.code == "ok") {
                     this.billList = res.data.records
                 } else {
-                    this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err => { this.$toast.clear(); console.log(err) });
         },
@@ -883,7 +882,7 @@ export default {
                         this.$set(this.examineList[i], 'approveLoading', false)
                     }
                 } else {
-                    this.$toast.fail('获取失败');
+                    this.$toast.fail(res.msg || res.code || '获取失败');
                 }
             }).catch(err => { this.$toast.clear(); console.log(err) });
         },