From f06e50bede1a9ae1f7a779195971d048348b3866 Mon Sep 17 00:00:00 2001 From: zhousq Date: Mon, 29 Apr 2024 09:35:40 +0800 Subject: [PATCH 1/3] =?UTF-8?q?2024-04-29=20=E4=BF=AE=E5=A4=8D=E5=B7=A5?= =?UTF-8?q?=E5=BA=8F=E6=9F=A5=E8=AF=A2=E7=9A=84searchtable=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/reportpStore/index.ts | 56 ++++ .../mes/orderDay/components/schedule.vue | 23 +- .../processroute/components/configDialog.vue | 2 +- src/views/mes/reportpStore/index.vue | 244 ++++++++++++++++++ .../mes/reportpStore/reportpStore.data.ts | 111 ++++++++ 5 files changed, 424 insertions(+), 12 deletions(-) create mode 100644 src/api/mes/reportpStore/index.ts create mode 100644 src/views/mes/reportpStore/index.vue create mode 100644 src/views/mes/reportpStore/reportpStore.data.ts diff --git a/src/api/mes/reportpStore/index.ts b/src/api/mes/reportpStore/index.ts new file mode 100644 index 000000000..adb29ea36 --- /dev/null +++ b/src/api/mes/reportpStore/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface ReportpStoreVO { + status: string + remark: string + planDayCode: string + workBillNo: string + batchCode: string + reportUuid: string + itemBasicCode: string + itemCounts: number + itemUom: string + workstationCode: string + productCode: string +} + +// 查询工序报工物料明细列表 +export const getReportpStorePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/mes/reportp-store/senior', data }) + } else { + return await request.get({ url: `/mes/reportp-store/page`, params }) + } +} + +// 查询工序报工物料明细详情 +export const getReportpStore = async (id: number) => { + return await request.get({ url: `/mes/reportp-store/get?id=` + id }) +} + +// 新增工序报工物料明细 +export const createReportpStore = async (data: ReportpStoreVO) => { + return await request.post({ url: `/mes/reportp-store/create`, data }) +} + +// 修改工序报工物料明细 +export const updateReportpStore = async (data: ReportpStoreVO) => { + return await request.put({ url: `/mes/reportp-store/update`, data }) +} + +// 删除工序报工物料明细 +export const deleteReportpStore = async (id: number) => { + return await request.delete({ url: `/mes/reportp-store/delete?id=` + id }) +} + +// 导出工序报工物料明细 Excel +export const exportReportpStore = async (params) => { + return await request.download({ url: `/mes/reportp-store/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/mes/reportp-store/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/mes/orderDay/components/schedule.vue b/src/views/mes/orderDay/components/schedule.vue index cc2d11429..88127320a 100644 --- a/src/views/mes/orderDay/components/schedule.vue +++ b/src/views/mes/orderDay/components/schedule.vue @@ -25,12 +25,12 @@ @@ -40,11 +40,11 @@ -