From d950ba51585e5ec8ec942e3c0fb1b3c0df1bb21e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 11 Apr 2024 15:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E9=80=9A=E7=9F=A5=E6=96=B0?= =?UTF-8?q?=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 2 + src/views/qms/qualityNotice/addForm.vue | 538 ++++++++++++++++++ .../qualityNotice/components/notaicType.vue | 142 +++++ .../qualityNotice/components/qualityBatch.vue | 149 +++++ .../components/qualityNotice.vue | 114 ++++ src/views/qms/qualityNotice/index.vue | 296 ++++++++++ .../qualityNotice/qualityNoticeMain.data.ts | 211 +++++++ 7 files changed, 1452 insertions(+) create mode 100644 src/views/qms/qualityNotice/addForm.vue create mode 100644 src/views/qms/qualityNotice/components/notaicType.vue create mode 100644 src/views/qms/qualityNotice/components/qualityBatch.vue create mode 100644 src/views/qms/qualityNotice/components/qualityNotice.vue create mode 100644 src/views/qms/qualityNotice/index.vue create mode 100644 src/views/qms/qualityNotice/qualityNoticeMain.data.ts diff --git a/src/utils/dict.ts b/src/utils/dict.ts index ab14d1b02..c9ef25d70 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -302,6 +302,8 @@ export enum DICT_TYPE { DICTIONARY_CLASS = "dictionary_class", // 字典分类 USAGE_DECISION = "usage_decision", // 使用决策 INSPECTION_BATCH_SOURCE = "inspection_batch_source", // 检验批来源 + QUALITY_NOTIFICATION_TYPE = "quality_notification_type", // 质量通知类型 + // ========== 业务 - mes -gaojs ========== QUALIFY_STATUS = 'qualify_status',//质检状态 QUALIFY_ITEM_DATA_TYPE='qualify_item_data_type',//质检项目数据类型 diff --git a/src/views/qms/qualityNotice/addForm.vue b/src/views/qms/qualityNotice/addForm.vue new file mode 100644 index 000000000..93946ec71 --- /dev/null +++ b/src/views/qms/qualityNotice/addForm.vue @@ -0,0 +1,538 @@ + + + + \ No newline at end of file diff --git a/src/views/qms/qualityNotice/components/notaicType.vue b/src/views/qms/qualityNotice/components/notaicType.vue new file mode 100644 index 000000000..15e340adc --- /dev/null +++ b/src/views/qms/qualityNotice/components/notaicType.vue @@ -0,0 +1,142 @@ + + + \ No newline at end of file diff --git a/src/views/qms/qualityNotice/components/qualityBatch.vue b/src/views/qms/qualityNotice/components/qualityBatch.vue new file mode 100644 index 000000000..948755f0d --- /dev/null +++ b/src/views/qms/qualityNotice/components/qualityBatch.vue @@ -0,0 +1,149 @@ + + + \ No newline at end of file diff --git a/src/views/qms/qualityNotice/components/qualityNotice.vue b/src/views/qms/qualityNotice/components/qualityNotice.vue new file mode 100644 index 000000000..9c84bf41e --- /dev/null +++ b/src/views/qms/qualityNotice/components/qualityNotice.vue @@ -0,0 +1,114 @@ + + + \ No newline at end of file diff --git a/src/views/qms/qualityNotice/index.vue b/src/views/qms/qualityNotice/index.vue new file mode 100644 index 000000000..44d528b06 --- /dev/null +++ b/src/views/qms/qualityNotice/index.vue @@ -0,0 +1,296 @@ + + + diff --git a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts new file mode 100644 index 000000000..1b646f420 --- /dev/null +++ b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts @@ -0,0 +1,211 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter2 } from '@/utils/formatTime' +import { validateHanset, validateEmail } from '@/utils/validator' +import { dateFormatter } from '@/utils/formatTime' +import {validateTwoNum } from '@/utils/validator' +const { t } = useI18n() // 国际化 + +/** + * @returns {Array}质量通知主表 + */ +export const QualityNoticeMain = useCrudSchemas(reactive([ + { + label: '编码', + field: 'number', + sort: 'custom', + isSearch: true, + isForm:false, + table: { + width: 150, + fixed: 'left' + } + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + isForm:false, + table: { + width: 150 + } + }, + { + label: '描述', + field: 'description', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '详情', + field: 'detail', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + },{ + label: '优先级', + field: 'priority', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + }, + form: { + componentProps:{ + disabled:true + } + }, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + }, + form: { + componentProps:{ + disabled:true + } + }, + }, + { + label: '报告人', + field: 'reporter', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + }, + form: { + componentProps:{ + disabled:true + } + }, + }, + { + label: '报告时间', + field: 'reportTime', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '要求开始时间', + field: 'requestStartTime', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '要求结束时间', + field: 'requestEndTime', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '是否造成停机', + field: 'whetherCausesMachineHalt', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '停机开始时间', + field: 'machineHaltStartTime', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '停机结束时间', + field: 'machineHaltEndTime', + dictType: DICT_TYPE.INSPECTION_TYPE, + sort: 'custom', + isSearch: false, + isForm:false, + form: { + component: 'Select' + }, + table: { + width: 150 + } + }, + { + label: '协调人', + field: 'coordinator', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '任务模板编号', + field: 'taskTemplateCode', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + label: '完成时间', + field: 'finishTime', + sort: 'custom', + isSearch: false, + isForm:false, + table: { + width: 150 + } + }, + { + // reference_certificate_row + label: '参考通知编号', + field: 'referenceNoticeCode', + sort: 'custom', + isSearch: false, + isForm:false, + form: { + component: 'InputNumber', + value: 0 + }, + table: { + width: 150 + } + }, +])) + +//表单校验 +export const QualityNoticeMainRules = reactive({ + useDecision: [required], +})