import { resultSuccess } from '../_util';

const disposalManagementList = {
  records: [
    {
      id: 1,
      taskName: '台风“贝碧嘉”灾害损失上报1',
      updatedAt: '2025-05-23 10:00',
    },
    {
      id: 2,
      taskName: '台风“贝碧嘉”灾害损失上报2',
      updatedAt: '2025-05-24 10:00',
    },
    {
      id: 3,
      taskName: '台风“贝碧嘉”灾害损失上报3',
      updatedAt: '2025-05-25 10:00',
    },
    {
      id: 4,
      taskName: '台风“贝碧嘉”灾害损失上报4',
      updatedAt: '2025-05-26 10:00',
    },
    {
      id: 5,
      taskName: '台风“贝碧嘉”灾害损失上报5',
      updatedAt: '2025-05-27 10:00',
    },
    {
      id: 6,
      taskName: '台风“贝碧嘉”灾害损失上报6',
      updatedAt: '2025-05-28 10:00',
    },
  ],
  totalRow: 6,
};

const disposalManagementItemList = [
  {
    handleTaskId: 1,
    disasterReportTaskInfoList: [
      {
        id: 1,
        deptName: '广东省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 1,
        taskStage: 1,
        reportPrincipalInfoList: [
          {
            id: 1,
            realname: '张三',
            username: '321540',
          },
          {
            id: 2,
            realname: '李四',
            username: '321541',
          },
        ],
      },
      {
        id: 2,
        deptName: '湖北省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 2,
        taskStage: 1,
        reportPrincipalInfoList: [
          {
            id: 1,
            realname: 'XXX',
            username: '321540',
          },
        ],
      },
      {
        id: 3,
        deptName: '海南省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 1,
        taskStage: 2,
        reportPrincipalInfoList: [],
      },
      {
        id: 4,
        deptName: '湖南省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 2,
        taskStage: 3,
        reportPrincipalInfoList: [
          {
            id: 2,
            realname: '李四',
            username: '321541',
          },
        ],
      },
      {
        id: 5,
        deptName: '黑龙江省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 1,
        taskStage: 3,
        reportPrincipalInfoList: [
          {
            id: 1,
            realname: '张三',
            username: '321540',
          },
          {
            id: 2,
            realname: '李四',
            username: '321541',
          },
        ],
      },
      {
        id: 6,
        deptName: '北京市应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 2,
        taskStage: 2,
        reportPrincipalInfoList: [],
      },
    ],
  },
  {
    handleTaskId: 2,
    disasterReportTaskInfoList: [
      {
        id: 7,
        deptName: '天津市应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 1,
        taskStage: 4,
        reportPrincipalInfoList: [
          {
            id: 1,
            realname: '张三',
            username: '321540',
          },
        ],
      },
      {
        id: 8,
        deptName: '黑龙江省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 2,
        taskStage: 5,
        reportPrincipalInfoList: [
          {
            id: 1,
            realname: 'XXX',
            username: '321540',
          },
        ],
      },
    ],
  },
  {
    handleTaskId: 3,
    disasterReportTaskInfoList: [
      {
        id: 9,
        deptName: '内蒙古应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 1,
        taskStage: 5,
        reportPrincipalInfoList: [
          {
            id: 1,
            realname: 'XXX',
            username: '321540',
          },
          {
            id: 2,
            realname: 'XXX2',
            username: '321541',
          },
          {
            id: 3,
            realname: 'XXX3',
            username: '321542',
          },
        ],
      },
      {
        id: 10,
        deptName: '河北省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 2,
        taskStage: 5,
        reportPrincipalInfoList: [],
      },
      {
        id: 11,
        deptName: '湖南省应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 2,
        taskStage: 4,
        reportPrincipalInfoList: [],
      },
    ],
  },
  {
    handleTaskId: 4,
    disasterReportTaskInfoList: [],
  },
  {
    handleTaskId: 5,
    disasterReportTaskInfoList: [
      {
        id: 12,
        deptName: 'XXX应急管理厅',
        dueCompleteTime: '2025-05-23 10:00',
        status: 1,
        taskStage: 2,
        reportPrincipalInfoList: [],
      },
    ],
  },
  {
    handleTaskId: 6,
    disasterReportTaskInfoList: [],
  },
];

const lossReportReportTaskList = {
  records: [
    {
      handleTaskId: 1,
      handleTaskName: '台风“贝碧嘉”灾害损失上报1',
      deptName: '广东省应急管理厅',
      dueCompleteTime: '2025-05-23 10:00',
      taskStage: 2,
    },
    {
      handleTaskId: 2,
      handleTaskName: '台风“贝碧嘉”灾害损失上报2',
      deptName: '湖北省应急管理厅',
      dueCompleteTime: '2025-05-23 10:00',
      taskStage: 3,
    },
    {
      handleTaskId: 3,
      handleTaskName: '台风“贝碧嘉”灾害损失上报3',
      deptName: '海南省应急管理厅',
      dueCompleteTime: '2025-05-23 10:00',
      taskStage: 4,
    },
    {
      handleTaskId: 4,
      handleTaskName: '台风“贝碧嘉”灾害损失上报4',
      deptName: '湖南省应急管理厅',
      dueCompleteTime: '2025-05-23 10:00',
      taskStage: 5,
    },
  ],
  totalRow: 4,
};
const lossRecordItemList = [
  {
    handleTaskId: 1,
    disasterReportRecordDetailList: [
      {
        id: 1,
        buildingNo: '1号楼',
        floorNo: '1层',
        roomNo: '101',
        affectedItems: '树木10棵、房屋100平方米、道路100米、桥梁1座',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '广东省应急管理厅',
        priority: 2,
        fixStatus: 1,
        isLoss: 1,
      },
      {
        id: 2,
        buildingNo: '2号楼',
        floorNo: '2层',
        roomNo: '201',
        affectedItems: '',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '湖北省应急管理厅',
        priority: 1,
        fixStatus: 2,
        isLoss: 0,
      },
      {
        id: 3,
        buildingNo: '3号楼',
        floorNo: '3层',
        roomNo: '301',
        affectedItems: '树木30棵、房屋300平方米、道路300米、桥梁3座',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '海南省应急管理厅',
        priority: 2,
        fixStatus: 3,
        isLoss: 1,
      },
      {
        id: 4,
        buildingNo: '4号楼',
        floorNo: '4层',
        roomNo: '401',
        affectedItems: '树木40棵',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '湖南省应急管理厅',
        priority: 1,
        fixStatus: 4,
        isLoss: 1,
      },
      {
        id: 5,
        buildingNo: '5号楼',
        floorNo: '5层',
        roomNo: '501',
        affectedItems: '树木50棵、房屋500平方米、道路500米、桥梁5座',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '黑龙江省应急管理厅',
        priority: 2,
        fixStatus: 5,
        isLoss: 1,
      },
    ],
  },
  {
    handleTaskId: 2,
    disasterReportRecordDetailList: [
      {
        id: 6,
        buildingNo: '6号楼',
        floorNo: '6层',
        roomNo: '601',
        affectedItems: '',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '天津市应急管理厅',
        priority: 1,
        fixStatus: 3,
        isLoss: 0,
      },
    ],
  },
  {
    handleTaskId: 3,
    disasterReportRecordDetailList: [],
  },
  {
    handleTaskId: 4,
    disasterReportRecordDetailList: [],
  },
  {
    handleTaskId: 5,
    disasterReportRecordDetailList: [
      {
        id: 7,
        buildingNo: '7号楼',
        floorNo: '7层',
        roomNo: '701',
        affectedItems: '树木70棵、房屋700平方米、道路700米、桥梁7座',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '黑龙江省应急管理厅',
        priority: 1,
        fixStatus: 5,
        isLoss: 1,
      },
      {
        id: 8,
        buildingNo: '8号楼',
        floorNo: '8层',
        roomNo: '801',
        affectedItems: '树木80棵',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '黑龙江省应急管理厅',
        priority: 2,
        fixStatus: 1,
        isLoss: 1,
      },
      {
        id: 9,
        buildingNo: '9号楼',
        floorNo: '9层',
        roomNo: '901',
        affectedItems: '树木90棵',
        updatedAt: '2025-05-23 10:00',
        responsibleDeptName: '黑龙江省应急管理厅',
        priority: 1,
        fixStatus: 2,
        isLoss: 1,
      },
    ],
  },
  {
    handleTaskId: 6,
    disasterReportRecordDetailList: [],
  },
];
export default [
  {
    url: '/safety_mock_api/disasterHandle/queryDisasterHandleTaskPage',
    timeout: 500,
    method: 'post',
    response: () => {
      return resultSuccess(disposalManagementList);
    },
  },
  {
    url: '/safety_mock_api/disasterHandle/queryDisasterReportTask',
    timeout: 500,
    method: 'post',
    response: () => {
      return resultSuccess(disposalManagementItemList);
    },
  },
  {
    url: '/safety_mock_api/disasterHandle/queryDisasterReportTaskPage',
    timeout: 500,
    method: 'post',
    response: () => {
      return resultSuccess(lossReportReportTaskList);
    },
  },
  {
    url: '/safety_mock_api/disasterHandle/queryLossRecordPage',
    timeout: 500,
    method: 'post',
    response: () => {
      return resultSuccess(lossRecordItemList);
    },
  },
];
