From 8d9769078d5ffea4e767d78f36c892c3e3217098 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 29 Aug 2024 15:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=A8=A1=E6=9D=BF=EF=BC=8C=E6=96=B9=E6=A1=88?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=98=E9=9D=A9=E8=AE=B0=E5=BD=95=E5=92=8C?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 2 + src/views/qms/inspectionJob/detail.vue | 342 ++++---- src/views/qms/inspectionJob/index.vue | 25 +- src/views/qms/inspectionRecord/detail.vue | 759 +++++++++-------- src/views/qms/inspectionRecord/index.vue | 28 +- .../qms/inspectionRecordFirst/detail.vue | 764 ++++++++++-------- src/views/qms/inspectionRecordFirst/index.vue | 476 ++++++----- src/views/qms/inspectionScheme/detail.vue | 430 ++++++++++ src/views/qms/inspectionScheme/index.vue | 20 +- .../inspectionScheme/inspectionScheme.data.ts | 46 +- src/views/qms/inspectionTemplate/detail.vue | 423 ++++++++++ src/views/qms/inspectionTemplate/index.vue | 16 +- 12 files changed, 2179 insertions(+), 1152 deletions(-) create mode 100644 src/views/qms/inspectionScheme/detail.vue create mode 100644 src/views/qms/inspectionTemplate/detail.vue diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 6d45e46d5..9b23fd110 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -44,6 +44,8 @@ :schema="allSchemas.detailSchema" :columns="2" /> + + -
- - - - - - - - -
检验工序
- - - - - - - - - - - - - - - - - - - -
检验特性
- - - - - - - - - - - - - - -
- -
-
-
- - -
- -
-
-
- - -
- -
-
-
- - - -
- -
-
-
- - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
+
+ + +
检验工序
+ + + + + + + + + + + + + + + + + + + +
检验特性
+ + + + + + + + + + + + + + +
+ +
+
+
+ + +
+ +
+
+
+ + +
+ +
+
+
+ + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+
@@ -108,79 +169,26 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' defineOptions({ name: 'Detail' }) -const editableTabsValue = ref('1') -const message = useMessage() // 消息弹窗 -const { t } = useI18n() // 国际化 - -const updateKey = ref(0) - const props = defineProps({ - // 表单,列表 相关信息 - allSchemas: { + data: { type: Object, required: true, default: null - }, - // 明细列表相关信息 - detailAllSchemas: { - type: Object, - required: true, - default: null - }, - // 详情列表扩展操作按钮 - buttondataTable: { - type: Array, - required: false, - default: ()=>{ - return [] - } - }, -}) -const isShowDrawer = ref(false) -const detailLoading = ref(false) -const data = ref({ - code: '', - itemCode: '', - version: '', - testTypeCode: '', - programmeTemplateCode: '', - splitRule: '', - aql: '', - inspectionLevel: '', - effectiveDate: '', - expirationDate: '', - available: 'TRUE', - subList: [] -}) - -/** 打开弹窗 */ -const formRef = ref() -const titleNameRef = ref() -const titleValueRef = ref() -const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { - titleNameRef.value = titleName - titleValueRef.value = titleValue - - isShowDrawer.value = true - if (row) { - detailLoading.value = true - try { - data.value = row - let list = [] - list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id) - list.forEach((item, index) => { - editableTabsValue.value = index + 1 - item.name = index + 1 - }) - data.value.subList = list - } finally { - detailLoading.value = false - } } -} -defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 - +}) +console.log(props.data) +const data = ref(props.data.data) +const editableTabsValue = ref('1') +onMounted(async () => { + let list = [] + list = await InspectionJobDetailPageApi.getInspectionJobDetailList(data.value.id) + list.forEach((item, index) => { + editableTabsValue.value = index + 1 + item.name = index + 1 + }) + data.value.subList = list +}) diff --git a/src/views/qms/inspectionScheme/index.vue b/src/views/qms/inspectionScheme/index.vue index bd233e050..723f7763e 100644 --- a/src/views/qms/inspectionScheme/index.vue +++ b/src/views/qms/inspectionScheme/index.vue @@ -32,9 +32,9 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > -