Bläddra i källkod

检验意见通知书审核人显示调整

xy 3 veckor sedan
förälder
incheckning
74719a6d8c

+ 6 - 2
yudao-ui-admin-vue3/src/views/pressure2/boilerchecker/AuditCheckRecord.vue

@@ -928,8 +928,12 @@ const canSubmitMainReportType = ()=>{
   // 重大线索告知 && 检验意见通知书的流转记录
   const fetchOtherRecordList = async () => {
     try {
-      console.log(props)
-      const response = await props.recordFn({id: props.id, reportType: props.reportType})
+      // console.log(props)
+      let apiParamsId = props.id;
+      if ([PressureReportType.SUGGUESTION].includes(props.reportType)){
+        apiParamsId = props.apiParams.reportId ? props.apiParams.reportId : props.apiParams.reportIds[0];
+      }
+      const response = await props.recordFn({id: apiParamsId, reportType: props.reportType})
       recordList.value = response
       total.value = 0
     } catch (error: any) {

+ 3 - 3
yudao-ui-admin-vue3/src/views/pressure2/boilerchecker/BoilerAuditInspectionCommentsNotice.vue

@@ -273,9 +273,9 @@ const columns = ref<SmartTableColumn[]>([
     //   type: 'selectUserModal',
     //   prop: 'bpmUserId'
     // },
-    // render: (row, val) => {
-    //   return !val ? '-' : val?.nickname
-    // }
+    render: (row, val) => {
+      return !val ? '-' : val?.nickname
+    }
   },
   {
     label: '提交人',

+ 6 - 2
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/AuditCheckRecord.vue

@@ -887,8 +887,12 @@ const canSubmitMainReportType = ()=>{
   // 重大线索告知 && 检验意见通知书的流转记录
   const fetchOtherRecordList = async () => {
     try {
-      console.log(props)
-      const response = await props.recordFn({id: props.id, reportType: props.reportType})
+      // console.log(props)
+      let apiParamsId = props.id;
+      if ([PressureReportType.SUGGUESTION].includes(props.reportType)){
+        apiParamsId = props.apiParams.reportId ? props.apiParams.reportId : props.apiParams.reportIds[0]
+      }
+      const response = await props.recordFn({id: apiParamsId, reportType: props.reportType})
       recordList.value = response
       total.value = 0
     } catch (error: any) {

+ 3 - 3
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/PipeAuditInspectionCommentsNotice.vue

@@ -273,9 +273,9 @@ const columns = ref<SmartTableColumn[]>([
     //   type: 'selectUserModal',
     //   prop: 'bpmUserId'
     // },
-    // render: (row, val) => {
-    //   return !val ? '-' : val?.nickname
-    // }
+    render: (row, val) => {
+      return !val ? '-' : val?.nickname
+    }
   },
   {
     label: '提交人',