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