app.vue 585 Bytes
<template>
	<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 tab from '../../../../components/tab/index';
	import ucRefund from './refundGoods';
	import ucSale from './saleGoods';

	export default {
		components: {
		    comTab: tab,
		    ucSale:ucSale,
		    ucRefund:ucRefund
		},
		data(){
			return {
				tab:{
					rows:[{name:"销售统计"}, {name:"退货统计"}],
					active:0
				}
			}
		}
		
	}
</script>