فهرست منبع

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

yusheng 4 ماه پیش
والد
کامیت
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);