|
@@ -5,6 +5,7 @@
|
|
|
<div class="title">{{$t('销售面板')}}</div>
|
|
|
<el-button-group class="container">
|
|
|
<el-button :type="dataType === '去年'?'primary':''" @click="onChange('去年')" size="small">{{$t('去年')}}</el-button>
|
|
|
+ <el-button :type="dataType === '上月'?'primary':''" @click="onChange('上月')" size="small">{{$t('上月')}}</el-button>
|
|
|
<el-button :type="dataType === '本年'?'primary':''" @click="onChange('本年')" size="small">{{$t('本年')}}</el-button>
|
|
|
<el-button :type="dataType === '本季'?'primary':''" @click="onChange('本季')" size="small">{{$t('本季')}}</el-button>
|
|
|
<el-button :type="dataType === '本月'?'primary':''" @click="onChange('本月')" size="small">{{$t('本月')}}</el-button>
|
|
@@ -63,6 +64,16 @@ export default {
|
|
|
this.$refs.invoicing.listData()
|
|
|
this.$refs.returned.param.content.dateType = '去年'
|
|
|
this.$refs.returned.listData()
|
|
|
+ }else if (val === '上月'){
|
|
|
+ this.dataType = '上月'
|
|
|
+ this.$refs.order.param.content.dateType = '上月'
|
|
|
+ this.$refs.order.listData()
|
|
|
+ this.$refs.shipment.param.content.dateType = '上月'
|
|
|
+ this.$refs.shipment.listData()
|
|
|
+ this.$refs.invoicing.param.content.dateType = '上月'
|
|
|
+ this.$refs.invoicing.listData()
|
|
|
+ this.$refs.returned.param.content.dateType = '上月'
|
|
|
+ this.$refs.returned.listData()
|
|
|
}else {
|
|
|
this.dataType = '本月'
|
|
|
this.$refs.order.param.content.dateType = '本月'
|