From 910f859b65e83be7e891dec2fd71672a39aaa432 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 12 Apr 2024 16:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qms/qualityNotice/index.ts | 27 ++ src/utils/dict.ts | 2 + src/views/qms/qualityNotice/addForm.vue | 293 ++++---------- .../qualityNotice/components/notaicType.vue | 81 ++-- .../qualityNotice/components/qualityBatch.vue | 375 +++++++++++++----- .../components/qualityNotice.vue | 46 ++- src/views/qms/qualityNotice/index.vue | 106 +---- .../qualityNotice/qualityNoticeMain.data.ts | 10 + 8 files changed, 483 insertions(+), 457 deletions(-) create mode 100644 src/api/qms/qualityNotice/index.ts diff --git a/src/api/qms/qualityNotice/index.ts b/src/api/qms/qualityNotice/index.ts new file mode 100644 index 000000000..7f423b288 --- /dev/null +++ b/src/api/qms/qualityNotice/index.ts @@ -0,0 +1,27 @@ +import request from '@/config/axios' +// 列表 +export const qualityNoticePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/basic/quality-notice/senior', data }) + } else { + return await request.get({ url: `/basic/quality-notice/page`, params }) + } +} +// 新增 +export const qualityNoticeCreat = async (data) => { + return await request.post({ url: `/basic/quality-notice/create`,data}) +} +// 编辑 +export const qualityNoticeUpdate = async (data) => { + return await request.put({ url: `/basic/quality-notice/update`,data}) +} +// 删除 +export const qualityNoticeDelete = async (id) => { + return await request.delete({ url: `/basic/quality-notice/delete?id=`+id}) +} +// 详情 +export const qualityNoticeDetail = async (id) => { + return await request.get({ url: `/basic/quality-notice/get?id=`+id}) +} \ No newline at end of file diff --git a/src/utils/dict.ts b/src/utils/dict.ts index c9ef25d70..ca6b004c2 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -303,6 +303,8 @@ export enum DICT_TYPE { USAGE_DECISION = "usage_decision", // 使用决策 INSPECTION_BATCH_SOURCE = "inspection_batch_source", // 检验批来源 QUALITY_NOTIFICATION_TYPE = "quality_notification_type", // 质量通知类型 + QUALITY_NOTICE_STATUS = "quality_notice_status", // 质量通知状态 + QUALITY_TASK_STATUS = "quality_task_status", // 质量通知任务状态 // ========== 业务 - mes -gaojs ========== QUALIFY_STATUS = 'qualify_status',//质检状态 diff --git a/src/views/qms/qualityNotice/addForm.vue b/src/views/qms/qualityNotice/addForm.vue index 0e40a3371..b1700e470 100644 --- a/src/views/qms/qualityNotice/addForm.vue +++ b/src/views/qms/qualityNotice/addForm.vue @@ -13,9 +13,9 @@ - - - + + +