Browse Source

no message

linwenxin 4 months ago
parent
commit
e0ca3ce1ce

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

@@ -359,30 +359,32 @@ export default {
               }
             }
           })
-        })
-        memberListPageV2({
-          pageNum: 1,
-          pageSize: -1,
-          checkCert: true,
-          maserWorkerId: data.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
+          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
+                }
               }
-            }
+            })
           })
         })
       }