瀏覽代碼

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);