Bläddra i källkod

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

yusheng 4 månader sedan
förälder
incheckning
e99924761a

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