diff --git a/klp-ui/src/api/eqp/auxiliaryConsume.js b/klp-ui/src/api/eqp/auxiliaryConsume.js index 14f76896..3925656f 100644 --- a/klp-ui/src/api/eqp/auxiliaryConsume.js +++ b/klp-ui/src/api/eqp/auxiliaryConsume.js @@ -42,3 +42,57 @@ export function delAuxiliaryConsume(consumeId) { method: 'delete' }) } +/** + * 获取消耗统计汇总 + */ +export function getConsumeStatistics(query) { + return request({ + url: '/eqp/auxiliaryConsume/statistics/list', + method: 'get', + params: query + }) +} + +/** + * 获取消耗趋势数据 + */ +export function getConsumeTrend(query) { + return request({ + url: '/eqp/auxiliaryConsume/statistics/trend', + method: 'get', + params: query + }) +} + +/** + * 按公辅类型统计 + */ +export function getConsumeByType(query) { + return request({ + url: '/eqp/auxiliaryConsume/statistics/groupByType', + method: 'get', + params: query + }) +} + +/** + * 按产线统计 + */ +export function getConsumeByLine(query) { + return request({ + url: '/eqp/auxiliaryConsume/statistics/groupByLine', + method: 'get', + params: query + }) +} + +/** + * 获取消耗明细 + */ +export function getConsumeDetail(query) { + return request({ + url: '/eqp/auxiliaryConsume/statistics/detail', + method: 'get', + params: query + }) +} diff --git a/klp-ui/src/router/index.js b/klp-ui/src/router/index.js index de5f0aba..6643f3d8 100644 --- a/klp-ui/src/router/index.js +++ b/klp-ui/src/router/index.js @@ -152,6 +152,18 @@ export const dynamicRoutes = [ } ] }, + { + path: '/ems/assisted/statistics', + component: Layout, + children: [ + { + path: '', + component: () => import('@/views/ems/assisted/statistics.vue'), + name: 'AuxiliaryStatistics', + meta: { title: '公辅消耗统计', icon: 'chart' } + } + ] + }, { path: '/system/role-auth', component: Layout, diff --git a/klp-ui/src/views/ems/assisted/statistics.vue b/klp-ui/src/views/ems/assisted/statistics.vue new file mode 100644 index 00000000..804c6c86 --- /dev/null +++ b/klp-ui/src/views/ems/assisted/statistics.vue @@ -0,0 +1,882 @@ + + + + + diff --git a/klp-ui/src/views/wms/bonus/statistics.vue b/klp-ui/src/views/wms/bonus/statistics.vue new file mode 100644 index 00000000..e39293e1 --- /dev/null +++ b/klp-ui/src/views/wms/bonus/statistics.vue @@ -0,0 +1,667 @@ + + + + +