Преглед на файлове

fix(bpm): 修复质检任务单和受托单详情获取时的空指针问题

yusheng преди 6 месеца
родител
ревизия
e99924761a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/views/bpm/handleTask/components/qualityReportApproval/detailDialog.vue

+ 2 - 2
src/views/bpm/handleTask/components/qualityReportApproval/detailDialog.vue

@@ -60,10 +60,10 @@
     methods: {
       async open() {
         let api = getDetailById;
-        if (this.businessType.includes('质检任务单')) {
+        if (this.businessType?.includes('质检任务单')) {
           api = taskmonadGetById;
         }
-        if (this.businessType.includes('质检受托单')) {
+        if (this.businessType?.includes('质检受托单')) {
           api = requestentrustGetById
         }
         const detail = await api(this.businessId);