ZaiZai 1 gadu atpakaļ
vecāks
revīzija
90ed86abe0
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 7 2
      src/views/tentative/detect/commission.vue

+ 7 - 2
src/views/tentative/detect/commission.vue

@@ -162,6 +162,7 @@ import { useAppStore } from '~src/store'
 import { useRouter } from 'vue-router'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import { arrToId, deepClone, formValidate, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
+import { toPdfPage } from '~uti/btn-auth'
 import { getDictionaryData } from '~uti/tools'
 import { getErtractInfo } from '~api/other'
 import mainApi from '~api/tentative/detect/commission'
@@ -417,8 +418,12 @@ const delegateModalClose = () => {
 
 
 //查看
-const rowView = (row) => {
-    window.$message.warning('暂无接口')
+const rowView = ({ entrustPdf }) => {
+    if (isNullES(entrustPdf)) {
+        window.$message.warning('暂无数据')
+        return
+    }
+    toPdfPage(entrustPdf)
 }
 
 //表单数据