chenrui 1 rok pred
rodič
commit
de35897048

+ 4 - 4
src/views/reportData/promotionSalesOrderReport/list.vue

@@ -142,7 +142,7 @@
                   <a-col
                     span="4">促销销售费用:{{ (totalData.promoSaleFee || totalData.promoSaleFee==0) ? toThousands(totalData.promoSaleFee) : '--' }}</a-col>
                   <a-col
-                    span="4">促销销售费用比:{{ totalData.totalRealCost ? toThousands(totalData.promoSaleFeeRate*100)+'%' : '--' }}</a-col>
+                    span="4">促销销售费用比:{{ totalData.promoSaleFeeRate ? toThousands(totalData.promoSaleFeeRate*100)+'%' : '--' }}</a-col>
                   <a-col
                     span="4">参与活动销售额:{{ (totalData.promoSaleAmount || totalData.promoSaleAmount==0) ? toThousands(totalData.promoSaleAmount) : '--' }}</a-col>
                   <a-col
@@ -287,14 +287,14 @@ export default {
   methods: {
     // 统计月份  选择月份限制
     disabledStartDate (startValue) {
-      const endValue = typeof (this.endValue) === 'string' ? this.moment().endOf('month') : this.endValue
+      const endValue = this.endValue ? typeof (this.endValue) === 'string' ? this.moment().endOf('month') : this.endValue : null
       if (!startValue || !endValue) {
-        return startValue.valueOf() > this.moment().month(this.moment().month()).valueOf()
+        return startValue.valueOf() >= this.moment().month(this.moment().month()).valueOf()
       }
       return startValue.valueOf() >= endValue.valueOf()
     },
     disabledEndDate (endValue) {
-      const startValue = typeof (this.startValue) === 'string' ? this.moment().startOf('month') : this.startValue
+      const startValue = this.startValue ? typeof (this.startValue) === 'string' ? this.moment().startOf('month') : this.startValue : null
       if (!startValue) {
         return endValue.valueOf() > this.moment().month(this.moment().month()).valueOf()
       }