Bladeren bron

修改bug

chenrui 9 maanden geleden
bovenliggende
commit
d8b045154b

+ 2 - 0
src/views/common/quarterDate.vue

@@ -115,9 +115,11 @@ export default {
   width:100%;
   .quarter-date-year{
     flex:1;
+    width:49%;
   }
   .quarter-date-jd{
     flex:1;
+    width:50%;
   }
 }
 </style>

+ 2 - 2
src/views/reportData/tireFeeReport/monthQueryList.vue

@@ -241,7 +241,7 @@ export default {
         { title: '总量提升奖励', dataIndex: 'increaseRewardAmount', width: '12%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: <div>总量工厂<div>承担60%</div></div>, dataIndex: 'increaseRewardShareFactory', width: '12%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: <div>总量供应链管理部<div>承担40%</div></div>, dataIndex: 'increaseRewardShareSys', width: '15%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
-        { title: <a-tooltip placement='top' title='轮胎轮胎省仓出库加盟商数量*5'>运费补贴&nbsp;<a-icon type="question-circle" /></a-tooltip>, dataIndex: 'transSubsidy', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+        { title: <a-tooltip placement='top' title='轮胎省仓出库加盟商数量*5'>运费补贴&nbsp;<a-icon type="question-circle" /></a-tooltip>, dataIndex: 'transSubsidy', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: <a-tooltip placement='top' title='截止当前时间的往期累计积分'>累计积分&nbsp;<a-icon type="question-circle" /></a-tooltip>, dataIndex: 'totalPoint', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: <div>当期积分<div>返利券</div></div>, dataIndex: 'currentPoint', width: '12%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: <div>积分工厂<div>承担60%</div></div>, dataIndex: 'currentPointShareFactory', width: '12%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
@@ -261,7 +261,7 @@ export default {
     //   } else {
     //     nowDate = dateInfo
     //   }
-    //   // 月份的第一天
+    //   月份的第一天
     //   const firstDayOfMonth = moment(nowDate).format('YYYY-MM-DD') + ' 00:00:00'
     //   // 月份的最后一天
     //   const lastDayOfMonth = moment(nowDate).endOf('month').format('YYYY-MM-DD') + ' 23:59:59'

+ 2 - 2
src/views/reportData/tireFeeReport/quarterQueryList.vue

@@ -213,8 +213,8 @@ export default {
   methods: {
     // 获取季度默认值
     getQuarterVal () {
-      // 获取上个月是今年的第几季度
-      const lastQuarter = moment().subtract(1, 'month').quarter()
+      // 获取月是今年的第几季度
+      const lastQuarter = moment().quarter()
       // 获取今年年份
       const thisYear = moment().year()
       this.timeInfo = [thisYear, lastQuarter]

+ 2 - 2
src/views/reportData/tireFeeReport/yearQueryList.vue

@@ -147,7 +147,7 @@ export default {
       //  查询条件
       queryParam: {
         queryType: 'year', // 轮胎年度费用报表
-        queryDate: moment().subtract(1, 'years').format('YYYY'), // 选择年份
+        queryDate: moment().year(), // 选择年份
         dealerLevel: undefined, // 客户等级
         customSn: undefined, // 客户sn
         subareaArea: {
@@ -281,7 +281,7 @@ export default {
     //  重置
     resetSearchForm () {
       this.queryParam.queryType = 'year'
-      const lastYear = moment().subtract(1, 'years').format('YYYY')
+      const lastYear = moment().year()
       this.queryParam.queryDate = lastYear
       this.queryParam.dealerEntity.provinceSn = undefined
       this.queryParam.dealerEntity.citySn = undefined