seimin 1 day ago
parent
commit
cc16dd3bae
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/components/AppHeader.vue
  2. 2 2
      src/components/PriceProportion.vue

+ 1 - 1
src/components/AppHeader.vue

@@ -64,7 +64,7 @@ export default {
64
         .toString()
64
         .toString()
65
         .padStart(2, '0')
65
         .padStart(2, '0')
66
       const days = newDate
66
       const days = newDate
67
-        .getDay()
67
+        .getDate()
68
         .toString()
68
         .toString()
69
         .padStart(2, '0')
69
         .padStart(2, '0')
70
       return `${years}年${months}月${days}日`
70
       return `${years}年${months}月${days}日`

+ 2 - 2
src/components/PriceProportion.vue

@@ -110,8 +110,8 @@ export default {
110
       result.data = result.data || []
110
       result.data = result.data || []
111
       if (result.data.length) {
111
       if (result.data.length) {
112
         this.gradeRankingList = [
112
         this.gradeRankingList = [
113
-          { name: '总工时', value: result.data[0].sum_price || 0, percent: result.data[0].sumPercent || '0%' },
114
-          { name: '总耗材', value: result.data[0].work_price || 0, percent: result.data[0].workPercent || '0%' }
113
+          { name: '总工时', value: result.data[0].work_price || 0, percent: result.data[0].workPercent || '0%' },
114
+          { name: '总耗材', value: result.data[0].sum_price || 0, percent: result.data[0].sumPercent || '0%' }
115
         ]
115
         ]
116
         this.total = this.gradeRankingList.reduce((pre, cur) => pre + cur.value, 0)
116
         this.total = this.gradeRankingList.reduce((pre, cur) => pre + cur.value, 0)
117
       } else {
117
       } else {