Compare commits

...

2 Commits

Author SHA1 Message Date
my_ong
1b6fb9968e art: 修改权限标识
All checks were successful
Release / lint (push) Successful in 29s
Release / Release (push) Successful in 1m17s
2024-12-19 14:57:49 +08:00
my_ong
edb74d7bf3 sparkles: 全部重扫功能 2024-12-19 14:49:54 +08:00
2 changed files with 18 additions and 8 deletions

View File

@ -46,7 +46,7 @@ export const routes: Array<RouteRecordRaw> = [
},
{
path: '/stock/name', // 库存管理
name: 'STOCK',
name: 'Stock',
meta: { title: 'menus.stock.name', icon: 'icon-acl', flat: true },
component: BlankLayout,
redirect: () => ({ name: 'Inbound' }),
@ -73,32 +73,32 @@ export const routes: Array<RouteRecordRaw> = [
},
{
path: '/statistic/name', // 统计报表
name: 'STATISTIC',
name: 'Statistic',
meta: { title: 'menus.statistic.name', icon: 'icon-acl', flat: true },
component: BlankLayout,
redirect: () => ({ name: 'S-Inbound' }),
redirect: () => ({ name: 'Query-Stock' }),
children: [
{
path: '/statistic/stock', //库存
name: 'S-stock',
name: 'Query-Stock',
meta: { title: 'menus.statistic.stock', icon: 'icon-permission' },
component: () => import('../views/stock/report/materialReport-page.vue'),
},
{
path: '/statistic/inbound', //入库
name: 'S-Inbound',
name: 'Query-Inbound',
meta: { title: 'menus.statistic.inbound', icon: 'icon-permission' },
component: () => import('../views/stock/report/inboundReport-page.vue'),
},
{
path: '/statistic/outbound', //出库
name: 'S-Outbound',
name: 'Query-Outbound',
meta: { title: 'menus.statistic.outbound', icon: 'icon-permission' },
component: () => import('../views/stock/report/outboundReport-page.vue'),
},
{
path: '/statistic/stocktaking', //盘点
name: 'S-stocktaking',
name: 'Query-Stocktaking',
meta: { title: 'menus.statistic.stocktaking', icon: 'icon-permission' },
component: () => import('../views/stock/report/stocktakingReport-page.vue'),
},

View File

@ -1,6 +1,6 @@
<template>
<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
ref="snInput"
v-model:value="value"
@ -205,4 +205,14 @@
value.value = ''
}
}
//
const clearScanData = () => {
const $table = applyDetailTableRef.value
if ($table) {
$table.remove()
snListCache.value = []
remainderValue.value = 0
}
}
</script>