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 @@ - - - + + +