app.vue
775 Bytes
<template>
<com-pageheader :title="'报表管理'" :sub-title="'商品销售报表'"></com-pageheader>
<com-tab :rows="tab.rows" :active.sync="tab.active"></com-tab>
<div v-show="tab.active==0">
<uc-sale></uc-sale>
</div>
<div v-show="tab.active==1">
<uc-refund></uc-refund>
</div>
</template>
<script>
import pageheader from '../../../../components/pageheader/index';
import tab from '../../../../components/tab/index';
import ucRefund from './refundGoods';
import ucSale from './saleGoods';
export default {
components: {
comPageheader: pageheader,
comTab: tab,
ucSale:ucSale,
ucRefund:ucRefund
},
data(){
return {
tab:{
rows:[{name:"销售统计"}, {name:"退货统计"}],
active:0
}
}
}
}
</script>