Showing
2 changed files
with
21 additions
and
10 deletions
1 | <template> | 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> | 2 | + <com-tab :rows="tab.rows" :active.sync="tab.active"></com-tab> |
3 | + <template v-if="tab.active==0"> | ||
4 | + <uc-import></uc-import> | ||
5 | + </template> | ||
6 | + <template v-if="tab.active==1"> | ||
7 | + <uc-export></uc-export> | ||
8 | + </template> | ||
11 | </template> | 9 | </template> |
12 | 10 | ||
13 | <script> | 11 | <script> |
12 | + import tab from '../../../../components/tab/index'; | ||
14 | import ucImportStock from './importStock'; | 13 | import ucImportStock from './importStock'; |
15 | import ucExportStock from './exportStock'; | 14 | import ucExportStock from './exportStock'; |
16 | 15 | ||
17 | export default{ | 16 | export default{ |
18 | components:{ | 17 | components:{ |
18 | + comTab: tab, | ||
19 | ucImport:ucImportStock, | 19 | ucImport:ucImportStock, |
20 | ucExport:ucExportStock | 20 | ucExport:ucExportStock |
21 | + }, | ||
22 | + data(){ | ||
23 | + return { | ||
24 | + tab:{ | ||
25 | + rows:[ | ||
26 | + {name:"发货入库"}, | ||
27 | + {name:"请退出库"} | ||
28 | + ], | ||
29 | + active:0 | ||
30 | + } | ||
31 | + } | ||
21 | } | 32 | } |
22 | } | 33 | } |
23 | </script> | 34 | </script> |
-
Please register or login to post a comment