ZaiZai преди 1 година
родител
ревизия
f080424a56
променени са 1 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 8 4
      src/views/tentative/detect/commission.vue

+ 8 - 4
src/views/tentative/detect/commission.vue

@@ -421,12 +421,16 @@ const delegateModalClose = () => {
 
 
 //查看
-const rowView = ({ entrustPdf }) => {
-    if (isNullES(entrustPdf)) {
-        window.$message.warning('暂无数据')
+const rowView = ({ entrustEPdf, entrustPdf }) => {
+    if (isNullES(entrustPdf) && isNullES(entrustEPdf)) {
+        window.$message.warning('暂无PDF数据')
         return
     }
-    toPdfPage(entrustPdf)
+    if (!isNullES(entrustEPdf)) {
+        toPdfPage(entrustEPdf)
+    } else if (!isNullES(entrustPdf)) {
+        toPdfPage(entrustPdf)
+    }
 }
 
 //表单数据