From cbd73d431276ad854557db1f014462f7162210a8 Mon Sep 17 00:00:00 2001 From: zc Date: Sat, 28 Feb 2026 16:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=B0=E9=87=8D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/plugins/components.ts | 7 + src/apis/weightManage/weightManage.ts | 27 + src/router/route.ts | 6 - src/types/components.d.ts | 41 ++ src/views/weightManage/index.vue | 769 ++++++++++++++++++++++++++ 5 files changed, 844 insertions(+), 6 deletions(-) create mode 100644 src/apis/weightManage/weightManage.ts create mode 100644 src/views/weightManage/index.vue diff --git a/config/plugins/components.ts b/config/plugins/components.ts index 2c71218..96638d7 100644 --- a/config/plugins/components.ts +++ b/config/plugins/components.ts @@ -1,4 +1,5 @@ import components from 'unplugin-vue-components/vite' +import { ArcoResolver } from 'unplugin-vue-components/resolvers' export default function createComponents() { return components({ @@ -7,5 +8,11 @@ export default function createComponents() { extensions: ['vue', 'tsx'], // 配置文件生成位置 dts: './src/types/components.d.ts', + // 自动导入Arco Design组件 + resolvers: [ + ArcoResolver({ + sideEffect: true, + }), + ], }) } diff --git a/src/apis/weightManage/weightManage.ts b/src/apis/weightManage/weightManage.ts new file mode 100644 index 0000000..4270f09 --- /dev/null +++ b/src/apis/weightManage/weightManage.ts @@ -0,0 +1,27 @@ +import http from '@/utils/http' + +const BASE_URL = '/weighManage/material' + +export interface WeighManageResp { + id: string + materialCode: string + materialName: string + materialSpec: string + weight: number + imageUrl: string + matchResult: string +} + +export interface WeighManageQuery { + materialCode: string +} + +/** @desc 查询物料信息 */ +export function getMaterialDetail(query: WeighManageQuery) { + return http.get(`${BASE_URL}/detail`, query) +} + +/** @desc 新增人员管理 */ +export function addPeople(data: any) { + return http.post(`${BASE_URL}`, data) +} diff --git a/src/router/route.ts b/src/router/route.ts index f5dbe4a..adc84fd 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -54,12 +54,6 @@ export const systemRoutes: RouteRecordRaw[] = [ component: () => import('@/views/setting/profile/index.vue'), meta: { title: '个人中心', showInTabs: false }, }, - { - path: '/setting/message', - name: 'SettingMessage', - component: () => import('@/views/setting/message/index.vue'), - meta: { title: '消息中心', showInTabs: false }, - }, ], }, ] diff --git a/src/types/components.d.ts b/src/types/components.d.ts index d4d1353..d40c7fa 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -7,7 +7,48 @@ export {} declare module 'vue' { export interface GlobalComponents { + AAlert: typeof import('@arco-design/web-vue')['Alert'] + AAvatar: typeof import('@arco-design/web-vue')['Avatar'] + ABadge: typeof import('@arco-design/web-vue')['Badge'] + ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb'] + ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem'] + AButton: typeof import('@arco-design/web-vue')['Button'] + ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'] + ACol: typeof import('@arco-design/web-vue')['Col'] + AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] + ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] + ADescriptionsItem: typeof import('@arco-design/web-vue')['DescriptionsItem'] + ADivider: typeof import('@arco-design/web-vue')['Divider'] + ADoption: typeof import('@arco-design/web-vue')['Doption'] + ADrawer: typeof import('@arco-design/web-vue')['Drawer'] + ADropdown: typeof import('@arco-design/web-vue')['Dropdown'] + AEmpty: typeof import('@arco-design/web-vue')['Empty'] + AForm: typeof import('@arco-design/web-vue')['Form'] + AFormItem: typeof import('@arco-design/web-vue')['FormItem'] + AIcon: typeof import('@arco-design/web-vue')['Icon'] + AImage: typeof import('@arco-design/web-vue')['Image'] + AInput: typeof import('@arco-design/web-vue')['Input'] + AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] + ALayout: typeof import('@arco-design/web-vue')['Layout'] + ALayoutHeader: typeof import('@arco-design/web-vue')['LayoutHeader'] + ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'] + ALink: typeof import('@arco-design/web-vue')['Link'] + AMenu: typeof import('@arco-design/web-vue')['Menu'] + AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] + AModal: typeof import('@arco-design/web-vue')['Modal'] + APopover: typeof import('@arco-design/web-vue')['Popover'] + ARow: typeof import('@arco-design/web-vue')['Row'] + AScrollbar: typeof import('@arco-design/web-vue')['Scrollbar'] + ASelect: typeof import('@arco-design/web-vue')['Select'] + ASpace: typeof import('@arco-design/web-vue')['Space'] + ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'] + ASwitch: typeof import('@arco-design/web-vue')['Switch'] + ATable: typeof import('@arco-design/web-vue')['Table'] + ATabPane: typeof import('@arco-design/web-vue')['TabPane'] + ATabs: typeof import('@arco-design/web-vue')['Tabs'] + ATooltip: typeof import('@arco-design/web-vue')['Tooltip'] Avatar: typeof import('./../components/Avatar/index.vue')['default'] + AWatermark: typeof import('@arco-design/web-vue')['Watermark'] Breadcrumb: typeof import('./../components/Breadcrumb/index.vue')['default'] CellCopy: typeof import('./../components/CellCopy/index.vue')['default'] Chart: typeof import('./../components/Chart/index.vue')['default'] diff --git a/src/views/weightManage/index.vue b/src/views/weightManage/index.vue new file mode 100644 index 0000000..2a3d9d1 --- /dev/null +++ b/src/views/weightManage/index.vue @@ -0,0 +1,769 @@ + + + + + \ No newline at end of file