From ac545b497a7b228e3710fe84dd3e249a41b668be Mon Sep 17 00:00:00 2001 From: gaojs Date: Wed, 17 Apr 2024 17:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=8E=92=E4=BA=A7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=AD=90=E4=BB=BB=E5=8A=A1=E6=98=8E=E7=BB=86=E5=89=8D?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/workSchedulingDetail/index.ts | 62 ++ src/views/mes/item/index.vue | 16 +- .../mes/workScheduling/components/Detail.vue | 946 ++++++++++++++++++ src/views/mes/workScheduling/index.vue | 30 +- .../mes/workScheduling/workScheduling.data.ts | 198 +++- 5 files changed, 1229 insertions(+), 23 deletions(-) create mode 100644 src/api/mes/workSchedulingDetail/index.ts create mode 100644 src/views/mes/workScheduling/components/Detail.vue diff --git a/src/api/mes/workSchedulingDetail/index.ts b/src/api/mes/workSchedulingDetail/index.ts new file mode 100644 index 000000000..0bd6244ea --- /dev/null +++ b/src/api/mes/workSchedulingDetail/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface WorkSchedulingDetailVO { + schedulingCode: string + schedulingId: number + taskSort: number + nodeCode: string + workstationValidate: string + deviceValidate: string + personValidate: string + reportPerson: string + receivePerson: string + planCount: number + reportCount: number + reportType: number + qualifiedCount: number + unqualifiedCount: number + receiveWorkstation: string + receiveDevice: string + materialValidate: string +} + +// 查询工单任务明细列表 +export const getWorkSchedulingDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/mes/work-scheduling-detail/senior', data }) + } else { + return await request.get({ url: `/mes/work-scheduling-detail/page`, params }) + } +} + +// 查询工单任务明细详情 +export const getWorkSchedulingDetail = async (id: number) => { + return await request.get({ url: `/mes/work-scheduling-detail/get?id=` + id }) +} + +// 新增工单任务明细 +export const createWorkSchedulingDetail = async (data: WorkSchedulingDetailVO) => { + return await request.post({ url: `/mes/work-scheduling-detail/create`, data }) +} + +// 修改工单任务明细 +export const updateWorkSchedulingDetail = async (data: WorkSchedulingDetailVO) => { + return await request.put({ url: `/mes/work-scheduling-detail/update`, data }) +} + +// 删除工单任务明细 +export const deleteWorkSchedulingDetail = async (id: number) => { + return await request.delete({ url: `/mes/work-scheduling-detail/delete?id=` + id }) +} + +// 导出工单任务明细 Excel +export const exportWorkSchedulingDetail = async (params) => { + return await request.download({ url: `/mes/work-scheduling-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/mes/work-scheduling-detail/get-import-template' }) +} diff --git a/src/views/mes/item/index.vue b/src/views/mes/item/index.vue index 3ddf781ac..148c77cae 100644 --- a/src/views/mes/item/index.vue +++ b/src/views/mes/item/index.vue @@ -167,9 +167,7 @@ const openForm = (type: string, row?: any) => { if (item.field == 'dataStandvalue') { item.componentProps.disabled = false } - if (item.field == 'status') { - item.componentProps.disabled = true - } + } if(row.dataType == 'SWITCH'){ if (item.field == 'dataVerify') { @@ -178,9 +176,7 @@ const openForm = (type: string, row?: any) => { if (item.field == 'dataStandvalue') { item.componentProps.disabled = true } - if (item.field == 'status') { - item.componentProps.disabled = false - } + } if(row.dataType == 'TEXT'){ if (item.field == 'dataVerify') { @@ -189,9 +185,7 @@ const openForm = (type: string, row?: any) => { if (item.field == 'dataStandvalue') { item.componentProps.disabled = true } - if (item.field == 'status') { - item.componentProps.disabled = true - } + } }) }else{ @@ -208,9 +202,7 @@ const openForm = (type: string, row?: any) => { if (item.field == 'dataStandvalue') { item.componentProps.disabled = false } - if (item.field == 'status') { - item.componentProps.disabled = false - } + }) } basicFormRef.value.open(type, row) diff --git a/src/views/mes/workScheduling/components/Detail.vue b/src/views/mes/workScheduling/components/Detail.vue new file mode 100644 index 000000000..7da6f49e8 --- /dev/null +++ b/src/views/mes/workScheduling/components/Detail.vue @@ -0,0 +1,946 @@ + + + + + diff --git a/src/views/mes/workScheduling/index.vue b/src/views/mes/workScheduling/index.vue index 9df35398a..d41e3d2bc 100644 --- a/src/views/mes/workScheduling/index.vue +++ b/src/views/mes/workScheduling/index.vue @@ -27,9 +27,9 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > -