Compare commits
2 Commits
c9537f5f04
...
1b6fb9968e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1b6fb9968e | ||
![]() |
edb74d7bf3 |
@ -46,7 +46,7 @@ export const routes: Array<RouteRecordRaw> = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/stock/name', // 库存管理
|
path: '/stock/name', // 库存管理
|
||||||
name: 'STOCK',
|
name: 'Stock',
|
||||||
meta: { title: 'menus.stock.name', icon: 'icon-acl', flat: true },
|
meta: { title: 'menus.stock.name', icon: 'icon-acl', flat: true },
|
||||||
component: BlankLayout,
|
component: BlankLayout,
|
||||||
redirect: () => ({ name: 'Inbound' }),
|
redirect: () => ({ name: 'Inbound' }),
|
||||||
@ -73,32 +73,32 @@ export const routes: Array<RouteRecordRaw> = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/statistic/name', // 统计报表
|
path: '/statistic/name', // 统计报表
|
||||||
name: 'STATISTIC',
|
name: 'Statistic',
|
||||||
meta: { title: 'menus.statistic.name', icon: 'icon-acl', flat: true },
|
meta: { title: 'menus.statistic.name', icon: 'icon-acl', flat: true },
|
||||||
component: BlankLayout,
|
component: BlankLayout,
|
||||||
redirect: () => ({ name: 'S-Inbound' }),
|
redirect: () => ({ name: 'Query-Stock' }),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/statistic/stock', //库存
|
path: '/statistic/stock', //库存
|
||||||
name: 'S-stock',
|
name: 'Query-Stock',
|
||||||
meta: { title: 'menus.statistic.stock', icon: 'icon-permission' },
|
meta: { title: 'menus.statistic.stock', icon: 'icon-permission' },
|
||||||
component: () => import('../views/stock/report/materialReport-page.vue'),
|
component: () => import('../views/stock/report/materialReport-page.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/statistic/inbound', //入库
|
path: '/statistic/inbound', //入库
|
||||||
name: 'S-Inbound',
|
name: 'Query-Inbound',
|
||||||
meta: { title: 'menus.statistic.inbound', icon: 'icon-permission' },
|
meta: { title: 'menus.statistic.inbound', icon: 'icon-permission' },
|
||||||
component: () => import('../views/stock/report/inboundReport-page.vue'),
|
component: () => import('../views/stock/report/inboundReport-page.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/statistic/outbound', //出库
|
path: '/statistic/outbound', //出库
|
||||||
name: 'S-Outbound',
|
name: 'Query-Outbound',
|
||||||
meta: { title: 'menus.statistic.outbound', icon: 'icon-permission' },
|
meta: { title: 'menus.statistic.outbound', icon: 'icon-permission' },
|
||||||
component: () => import('../views/stock/report/outboundReport-page.vue'),
|
component: () => import('../views/stock/report/outboundReport-page.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/statistic/stocktaking', //盘点
|
path: '/statistic/stocktaking', //盘点
|
||||||
name: 'S-stocktaking',
|
name: 'Query-Stocktaking',
|
||||||
meta: { title: 'menus.statistic.stocktaking', icon: 'icon-permission' },
|
meta: { title: 'menus.statistic.stocktaking', icon: 'icon-permission' },
|
||||||
component: () => import('../views/stock/report/stocktakingReport-page.vue'),
|
component: () => import('../views/stock/report/stocktakingReport-page.vue'),
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-button type="primary" @click="beiginScan">开始扫码</a-button>
|
<a-button type="primary" @click="beiginScan">开始扫码</a-button>
|
||||||
<a-button type="primary" danger style="left: 20px">重新扫码</a-button>
|
<a-button type="primary" danger style="left: 20px" @click="clearScanData">全部重扫</a-button>
|
||||||
<a-input
|
<a-input
|
||||||
ref="snInput"
|
ref="snInput"
|
||||||
v-model:value="value"
|
v-model:value="value"
|
||||||
@ -205,4 +205,14 @@
|
|||||||
value.value = ''
|
value.value = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 清空扫码数据
|
||||||
|
const clearScanData = () => {
|
||||||
|
const $table = applyDetailTableRef.value
|
||||||
|
if ($table) {
|
||||||
|
$table.remove()
|
||||||
|
snListCache.value = []
|
||||||
|
remainderValue.value = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user