Procházet zdrojové kódy

待处理的数量提示接口更换顺序

Shan9312 před 1 týdnem
rodič
revize
c96dfea838

+ 3 - 2
src/views/custom/receive/index.vue

@@ -679,7 +679,7 @@ export default {
     })
     this.get_select_list()
     // this.get_table_data()
-    this.getPendingList()
+    // this.getPendingList()
   },
 
   methods: {
@@ -756,7 +756,7 @@ export default {
       this.pending.getdataListParm.parammaps.logindeptId = this.getdataListParm.parammaps.logindeptId
       this.pending.getdataListParm.parammaps.loginpastureId = this.getdataListParm.parammaps.loginpastureId
       this.pending.getdataListParm.parammaps.empId = this.getdataListParm.parammaps.empId
-      this.pending.getdataListParm.parammaps.pastureId = Cookies.get('pastureid')
+      this.pending.getdataListParm.parammaps.pastureId =this.getdataListParm.parammaps.pastureId || Cookies.get('pastureid')
       this.pending.getdataListParm.parammaps.deptId = Cookies.get('departmentid')
       GetDataByName(this.pending.getdataListParm).then(response => {
         this.pending.total = response.data.total3
@@ -1355,6 +1355,7 @@ export default {
         })
         this.getDepartDownList()
         this.get_table_data()
+        this.getPendingList()
       })
     },
     getDepartDownList() {

+ 4 - 3
src/views/custom/subscribe/index.vue

@@ -2803,7 +2803,7 @@ export default {
     })
     this.get_select_list()
     // this.get_table_data()
-    this.getPendingList()
+    // this.getPendingList()
     this.getProviderList()
     console.log(this.$store.state.user,'user')
   },
@@ -2940,6 +2940,7 @@ export default {
       this.isSubscribeExamineNT = isSubscribeExamineNT
     },
     getPendingList() {
+
       this.pending.getdataListParm.parammaps.pastureName =
         this.getdataListParm.parammaps.pastureName
       this.pending.getdataListParm.parammaps.orderNumber =
@@ -2960,10 +2961,9 @@ export default {
         this.getdataListParm.parammaps.loginpastureId
       this.pending.getdataListParm.parammaps.empId =
         this.getdataListParm.parammaps.empId
-      this.pending.getdataListParm.parammaps.pastureId = this.getdataListParm.parammaps.pastureId ||  Cookies.get('pastureid')
 
       this.pending.getdataListParm.parammaps.deptId =  Cookies.get('departmentid')
-
+      this.pending.getdataListParm.parammaps.pastureId = this.getdataListParm.parammaps.pastureId ||  Cookies.get('pastureid')
 
       GetDataByName(this.pending.getdataListParm).then((response) => {
         this.pending.total = response.data.total3
@@ -5715,6 +5715,7 @@ export default {
         })
         this.getDepartDownList()
         this.get_table_data()
+        this.getPendingList()
       })
     },
     getDepartDownList() {