Jelajahi Sumber

调整工时成本统计详情返回图标没数据的问题

Lijy 10 bulan lalu
induk
melakukan
fcdf691a18

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/financeAudit/financeAudit.vue

@@ -94,7 +94,8 @@ export default {
                 path: '/cost',
                 query: {
                     startDate: item.reportYrmnth,
-                    endDate: item.reportYrmnth
+                    endDate: item.reportYrmnth,
+                    financeAudit: 1
                 }
             })
         },

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

@@ -1469,7 +1469,8 @@
                 }
                 this.exportParam.dateRange = this.dateRange;
             }
-            if(this.$route.query && this.$route.query.endDate && this.$route.query.startDate) {
+            console.log(this.$route, '<==== 当前的数据')
+            if(this.$route.query && this.$route.query.endDate && this.$route.query.startDate && this.$route.query.financeAudit) {
                 const { endDate, startDate } = this.$route.query
                 const lastDay = this.dayjs(`${endDate}-01`).endOf('month').format('YYYY-MM-DD');
                 this.dateRange = [startDate+'-01', lastDay];