Authored by weiqingting

Merge branch 'yohobuy-shop-dev-4.6-20160606' of http://git.yoho.cn/fe/yohobuy-sh…

…op-fe2 into yohobuy-shop-dev-4.6-20160606
1 -<template>  
2 - <div class="tabheader shopsReport">  
3 - <ul class="nav nav-tabs">  
4 - <li class="active"><a href="javascript:">发货入库</a></li>  
5 - <li><a href="javascript:">请退出库</a></li>  
6 - </ul>  
7 - </div>  
8 -  
9 - <uc-import></uc-import>  
10 - <uc-export></uc-export>  
11 -</template>  
12 -  
13 -<script>  
14 - import ucImportStock from './importStock';  
15 - import ucExportStock from './exportStock';  
16 -  
17 - export default{  
18 - components:{  
19 - ucImport:ucImportStock,  
20 - ucExport:ucExportStock  
21 - }  
22 - }  
23 -</script>  
  1 +<template>
  2 + <com-tab :rows="tab.rows" :active.sync="tab.active"></com-tab>
  3 + <template v-if="tab.active==0">
  4 + <uc-import :importData="import"></uc-import>
  5 + </template>
  6 + <template v-if="tab.active==1">
  7 + <uc-export :exportData="export"></uc-export>
  8 + </template>
  9 +</template>
  10 +
  11 +<script>
  12 + import tab from '../../../../components/tab/index';
  13 + import ucImportStock from './importStock';
  14 + import ucExportStock from './exportStock';
  15 +
  16 + export default{
  17 + components:{
  18 + comTab: tab,
  19 + ucImport:ucImportStock,
  20 + ucExport:ucExportStock
  21 + },
  22 + data(){
  23 + return {
  24 + tab:{
  25 + rows:[{name:"发货入库"}, {name:"请退出库"}],
  26 + active:0
  27 + },
  28 + import:{
  29 + card:[
  30 + {name:"库存总金额(元)",value:"89004.00"},
  31 + {name:"库存总金额(元)",value:"89004.00"},
  32 + {name:"库存总金额(元)",value:"89004.00"},
  33 + {name:"库存总金额(元)",value:"89004.00"}
  34 + ]
  35 + },
  36 + export:{
  37 +
  38 + }
  39 + }
  40 + }
  41 + }
  42 +</script>
@@ -3,7 +3,7 @@ var Vue = require("vue"); @@ -3,7 +3,7 @@ var Vue = require("vue");
3 new Vue({ 3 new Vue({
4 el: 'body', 4 el: 'body',
5 components: { 5 components: {
6 - app:require("./importExportStock.vue") 6 + app:require("./app.vue")
7 } 7 }
8 }); 8 });
9 9