刘洋 9 місяців тому
батько
коміт
248d7e0f94

+ 12 - 0
src/views/service-unit/dispatch/dispatch-manage/allocation-dialog.vue

@@ -210,6 +210,18 @@ const getOptions = () => {
       item.str = `${item.supplierName}_${item.name}_${item.mobileNumber}`;
       return item;
     });
+    let arr3 = res.engineerInfo.allocatedList || [];
+    for (let i = 0; i < arr3.length; i++) {
+      let item = arr3[i];
+      let id = item.userId;
+      if (!options3.value.find((v) => v.userId == id)) {
+        options3.value.push({
+          str: `${item.supplierName}_${item.name}_${item.mobileNumber || ''}`,
+          ...item,
+          disabled: true,
+        });
+      }
+    }
     formData.allocationParams[0].userIdList = (
       res.regionCoordinatorInfo.allocatedList || []
     ).map((item) => item.userId);