From 80bf28e6ed5c38688c8f8f021bc197966b5aac54 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 14 Nov 2023 08:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/spc/itembasic/index.ts | 77 ++++ src/components/BasicForm/src/BasicForm.vue | 160 ++------ src/components/Detail/src/Detail.vue | 71 ++-- src/components/Form/src/Form.vue | 75 ++-- src/components/ImportForm/src/ImportForm.vue | 34 +- src/components/SearchHigh/src/SearchHigh.vue | 56 ++- .../SearchTable/src/SearchTable.vue | 67 +++- src/components/TableForm/src/TableForm.vue | 9 +- src/components/TableHead/src/TableHead.vue | 49 +-- src/components/XButton/src/ButtonBase.vue | 119 ++++-- src/components/rowDrop/index.vue | 69 +++- src/views/spc/itembasic/index.vue | 228 +++++++++++ src/views/spc/itembasic/itembasic.data.ts | 355 ++++++++++++++++++ 13 files changed, 1067 insertions(+), 302 deletions(-) create mode 100644 src/api/spc/itembasic/index.ts create mode 100644 src/views/spc/itembasic/index.vue create mode 100644 src/views/spc/itembasic/itembasic.data.ts diff --git a/src/api/spc/itembasic/index.ts b/src/api/spc/itembasic/index.ts new file mode 100644 index 0000000..2e0fe48 --- /dev/null +++ b/src/api/spc/itembasic/index.ts @@ -0,0 +1,77 @@ +import request from '@/config/axios' + +export interface ItembasicVO { + code: string + name: string + desc1: string + desc2: string + status: string + uom: string + altUom: string + isStdPack: string + enableBuy: string + enableMake: string + enableOutsourcing: string + isRecycled: string + isPhantom: string + abcClass: string + type: string + category: string + itemGroup: string + color: string + configuration: string + project: string + eqLevel: string + validityDays: number + userGroupCode: string + available: string + activeTime: Date + expireTime: Date + remark: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: string + siteId: string +} + +// 查询物品基本信息列表 +export const getItembasicPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/spc/itembasic/senior', data }) + } else { + return await request.get({ url: `/spc/itembasic/page`, params }) + } +} + +// 查询物品基本信息详情 +export const getItembasic = async (id: number) => { + return await request.get({ url: `/spc/itembasic/get?id=` + id }) +} + +// 新增物品基本信息 +export const createItembasic = async (data: ItembasicVO) => { + return await request.post({ url: `/spc/itembasic/create`, data }) +} + +// 修改物品基本信息 +export const updateItembasic = async (data: ItembasicVO) => { + return await request.put({ url: `/spc/itembasic/update`, data }) +} + +// 删除物品基本信息 +export const deleteItembasic = async (id: number) => { + return await request.delete({ url: `/spc/itembasic/delete?id=` + id }) +} + +// 导出物品基本信息 Excel +export const exportItembasic = async (params) => { + return await request.download({ url: `/spc/itembasic/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/spc/itembasic/get-import-template' }) +} \ No newline at end of file diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 5e4d26b..26def83 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -1,110 +1,13 @@