Просмотр исходного кода

检测实验记录报表路径调整

cfort 3 лет назад
Родитель
Сommit
c4de31bb64
1 измененных файлов с 10 добавлено и 19 удалено
  1. 10 19
      src/views/platform/bpmn/bpmInstHis/record/component/testingRecord.vue

+ 10 - 19
src/views/platform/bpmn/bpmInstHis/record/component/testingRecord.vue

@@ -178,7 +178,7 @@
         {
             name: '检测记录',
             key: 'testing',
-            path: '43罗湖/LHJC 检测记录.rpx',
+            path: '43罗湖/LHXBJY 检测实验记录',
             hasItem: true
         },
         {
@@ -196,21 +196,14 @@
             hasItem: false
         }
     ]
-    // 非通用检测项目编号及报表路径
-    const specialTest = [
-        {
-            id: 'Process_0idt26n',
-            path: '43罗湖/LHXBJY-JC-SOP-001-FQ-01 无菌检测记录表.rpx'
-        },
-        {
-            id: 'Process_1rwhy1r',
-            path: '43罗湖/LHXBJY-JC-SOP-002-FQ-01 支原体检测(培养法).rpx'
-        },
-        {
-            id: 'Process_05lkhio',
-            path: '43罗湖/LHXBJY-JC-SOP-003-FQ-01 细菌内毒素检查记录表.rpx'
-        }
-    ]
+    // 检测实验记录报表路径
+    const testingPath = {
+        'Process_140upmu': '43罗湖/LHXBJY 检测实验记录',
+        'Process_0idt26n': '43罗湖/LHXBJY-JC-SOP-001-FQ-01 无菌检测记录表.rpx',
+        'Process_1rwhy1r': '43罗湖/LHXBJY-JC-SOP-002-FQ-01 支原体检测(培养法).rpx',
+        'Process_05lkhio': '43罗湖/LHXBJY-JC-SOP-003-FQ-01 细菌内毒素检查记录表.rpx'
+    }
+    
     const imageType = ['jpg', 'jpeg', 'bmp', 'png', 'gif']
     export default {
         filters: {
@@ -323,9 +316,7 @@
                 })
             },
             consult (data) {
-                let isSpecial = specialTest.find(i => i.id === data.number)
-                let path = isSpecial ? isSpecial.path : '43罗湖/LHJC 检测记录.rpx'
-                this.alertReport(path, data.id)
+                this.alertReport(testingPath[data.number], data.id)
             },
             // 组装查询SQL
             search () {