diff --git a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts index dfd99059f..67ca4a31f 100644 --- a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts +++ b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts @@ -77,3 +77,8 @@ export const publishInspectionRecordMain = async (id) => { return await request.put({ url: `/qms/inspection-record-main/publish?id=`+id }) } +// 执行检验任务 +export const executeInspectionRecordMain = async (data) => { + return await request.put({ url: `/qms/inspection-record-main/execute`, data }) +} + diff --git a/src/components/Descriptions/src/Descriptions.vue b/src/components/Descriptions/src/Descriptions.vue index 23ed47eb2..118cbcc9f 100644 --- a/src/components/Descriptions/src/Descriptions.vue +++ b/src/components/Descriptions/src/Descriptions.vue @@ -145,6 +145,11 @@ const showAll = () =>{ data[item.field] !== null ? dayjs(data[item.field]).format(item.dateFormat) : '' }} + + {{ + item.valueFilter(data[item.field]) + }} +
diff --git a/src/types/descriptions.d.ts b/src/types/descriptions.d.ts index 35c0b81be..70be082d8 100644 --- a/src/types/descriptions.d.ts +++ b/src/types/descriptions.d.ts @@ -9,5 +9,6 @@ export interface DescriptionsSchema { className?: string labelClassName?: string dateFormat?: string // add by 星语:支持时间的格式化 + valueFilter?: function // 展示的过滤函数 dictType?: string // add by 星语:支持 dict 字典数据 } diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue index 05f6ff589..cbd83e82a 100644 --- a/src/views/qms/inspectionJob/addForm.vue +++ b/src/views/qms/inspectionJob/addForm.vue @@ -35,7 +35,7 @@ />
- +
-
检验工序
- - - - - - - - - - - - - - - - - - - - - - - - -
检验特性
- -
- - - - - - - - - - - - - -
- -
-
-
- - -
- -
-
-
- - -
- -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+
+
+ + +
+ +
+
+
+ + +
+ +
+
+
- - -
- -
-
-
- - - - - - - - - - - - - - - - - - - + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
-
-
-
-
+
+
+ + +
+ + +
- +