Authored by dongjunjie

出入库

<template>
<div class="tabheader shopsReport">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:">发货入库</a></li>
<li><a href="javascript:">请退出库</a></li>
</ul>
</div>
<com-tab :rows="tab.rows" :active.sync="tab.active"></com-tab>
<template v-if="tab.active==0">
<uc-import></uc-import>
</template>
<template v-if="tab.active==1">
<uc-export></uc-export>
</template>
</template>
<script>
import tab from '../../../../components/tab/index';
import ucImportStock from './importStock';
import ucExportStock from './exportStock';
export default{
components:{
comTab: tab,
ucImport:ucImportStock,
ucExport:ucExportStock
},
data(){
return {
tab:{
rows:[
{name:"发货入库"},
{name:"请退出库"}
],
active:0
}
}
}
}
</script>
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@ var Vue = require("vue");
new Vue({
el: 'body',
components: {
app:require("./importExportStock.vue")
app:require("./app.vue")
}
});
... ...