Browse Source

no message

linwenxin 4 months ago
parent
commit
8308494477

+ 26 - 25
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/pandanxinxi.js

@@ -359,33 +359,34 @@ export default {
               }
             }
           })
-
-          var data2 = this.workerList.find(item => item.value == this.orderInfo.websitId).data
-          memberListPageV2({
-            pageNum: 1,
-            pageSize: -1,
-            checkCert: true,
-            maserWorkerId: data2.userId,
-            params: [
-              { param: 'b.examine_status', compare: '=', value: 'OK' },
-              { param: 'b.websit_id', compare: '=', value: this.orderInfo.websitId }
-            ]
-          }).then(res => {
-            this.workerList222 = res.data.records.map(item => {
-              var { id, userId, ...data } = item
-              return {
-                value: userId,
-                label: data.nickName,
-                data: {
-                  workerId: userId,
-                  workerName: data.nickName,
-                  workerIdcard: data.idCard,
-                  workerMobile: data.mobile,
-                  ...data
+          var data2 = this.workerList.find(item => item.value == this.orderInfo.websitId)?.data
+          if (data2) {
+            memberListPageV2({
+              pageNum: 1,
+              pageSize: -1,
+              checkCert: true,
+              maserWorkerId: data2.userId,
+              params: [
+                { param: 'b.examine_status', compare: '=', value: 'OK' },
+                { param: 'b.websit_id', compare: '=', value: this.orderInfo.websitId }
+              ]
+            }).then(res => {
+              this.workerList222 = res.data.records.map(item => {
+                var { id, userId, ...data } = item
+                return {
+                  value: userId,
+                  label: data.nickName,
+                  data: {
+                    workerId: userId,
+                    workerName: data.nickName,
+                    workerIdcard: data.idCard,
+                    workerMobile: data.mobile,
+                    ...data
+                  }
                 }
-              }
+              })
             })
-          })
+          }
         })
       }
     }