ZhaoJun 1 жил өмнө
parent
commit
e4e81d9838

+ 7 - 6
src/pages/Center/MyTask/Detail/WorkOrderDetail.js

@@ -138,9 +138,9 @@ const WorkOrderDetail = (props) => {
             dayjs(temp.actual_end_time).format('YYYY-MM-DD HH:mm')) ||
           '-',
         Reason: temp.detail,
-        Repairman: userList.find((item) => item.ID === temp.checker_id) || '-',
+        Repairman: userList.find((item) => item.ID === temp.operator_id) || '-',
         DispatchMan:
-          userList.find((item) => item.ID === temp.operator_id) || '-',
+          userList.find((item) => item.ID === temp.checker_id) || '-',
         OrderStatus:
           OrderStatus.find((item) => item.value === temp.status) || '-',
         MandateImages:
@@ -178,9 +178,9 @@ const WorkOrderDetail = (props) => {
           ? dayjs(result.actual_end_time.Time).format('YYYY-MM-DD HH:mm')
           : '-',
         Reason: result.note,
-        Repairman: '-',
-        DispatchMan:
+        Repairman:
           userList.find((user) => user.ID === result.operator_id) || '-',
+        DispatchMan: '-',
         OrderStatus:
           OrderStatus.find((status) => status.value === result.status) || '-',
       };
@@ -206,9 +206,9 @@ const WorkOrderDetail = (props) => {
             ? dayjs(temp.actual_end_time).format('YYYY-MM-DD HH:mm')
             : '-',
           Reason: temp.detail,
-          Repairman: '-',
-          DispatchMan:
+          Repairman:
             userList.find((user) => user.ID === temp.operator_id) || '-',
+          DispatchMan: '-',
           OrderStatus:
             OrderStatus.find((status) => status.value === temp.status) || '-',
         };
@@ -239,6 +239,7 @@ const WorkOrderDetail = (props) => {
       // 工艺
       case 1:
       case 6:
+      case 7:
         getCraftDetail({ project_id, work_id: order_id });
         break;
       // 维修