Explorar el Código

fix(维护管理): 补充维修组和执行人名称字段以完善工单信息显示

yusheng hace 4 meses
padre
commit
5f050d15ee
Se han modificado 1 ficheros con 13 adiciones y 1 borrados
  1. 13 1
      src/views/maintenance/components/planRepaireDialog.vue

+ 13 - 1
src/views/maintenance/components/planRepaireDialog.vue

@@ -608,7 +608,9 @@
                 equiLocationCode: item.position[0]?.pathIds,
                 workItems: [],
                 repairGroupId: item.executeDeptId,
-                repairUserId: item.executeUserId
+                repairUserId: item.executeUserId,
+                repairGroupName: item.executeDeptName,
+                repairUserName: item.executeUserName
               };
             });
             let boolen = planDeviceList.length > 0;
@@ -707,11 +709,21 @@
             'executeDeptId',
             item.repairGroupId || item.areaPersonInChargeGroupId
           );
+          this.$set(
+            data[index],
+            'executeDeptName',
+            item.repairGroupName || item.areaPersonInChargeGroupName
+          );
           this.$set(
             data[index],
             'executeUserId',
             item.repairUserId || item.areaPersonInChargeUserId
           );
+          this.$set(
+            data[index],
+            'executeUserName',
+            item.repairUserName || item.areaPersonInChargeUserName
+          );
         });
         this.equipmentList = this.equipmentList.concat(data);
         this.equipmentList.forEach((item, index) => {