diff --git a/src/api/eightwork/index.js b/src/api/eightwork/index.js index 9bfbb6e..bf54efa 100644 --- a/src/api/eightwork/index.js +++ b/src/api/eightwork/index.js @@ -8,6 +8,18 @@ export const eightworkInfo = declareRequest( "eightworkLoading", `Get > /eightwork/eightworkInfo/{id}`, ); +export const eightworkSupplementaryInfo = declareRequest( + "eightworkLoading", + `Post > @/eightwork/eightworkSupplementaryInfo/list`, +); +export const eightworkMeasuresLogs = declareRequest( + "eightworkLoading", + `Get > /eightwork/measuresLogs/listAll/{workId}`, +); +export const eightworkTaskLogFlowChart = declareRequest( + "eightworkLoading", + `Get > /eightwork/taskLog/flowChart/{workId}`, +); export const eightworkType = declareRequest( "eightworkLoading", `Post > @/eightwork/eightworkTask/listByWorkType`, diff --git a/src/enumerate/constant/index.js b/src/enumerate/constant/index.js index 0ec0b80..ddd4dae 100644 --- a/src/enumerate/constant/index.js +++ b/src/enumerate/constant/index.js @@ -16,10 +16,11 @@ export {}; export const STATUS_ENUM = [ { name: "未开始", bianma: "0" }, { name: "进行中", bianma: "1" }, + { name: "打回", bianma: "2" }, { name: "强制归档", bianma: "998" }, { name: "归档", bianma: "999" }, ]; export const WORK_TYPE_ENUM = [ { name: "相关方", bianma: "1" }, - { name: "内部", bianma: "998" }, + { name: "内部", bianma: "2" }, ]; diff --git a/src/pages/Container/Enterprise/HotWork/Homework/List/index.js b/src/pages/Container/Enterprise/HotWork/Homework/List/index.js index 7b10d99..eba1c69 100644 --- a/src/pages/Container/Enterprise/HotWork/Homework/List/index.js +++ b/src/pages/Container/Enterprise/HotWork/Homework/List/index.js @@ -89,14 +89,22 @@ function List(props) { dataIndex: "xgfFlag", render: (_, record) => getLabelName({ list: WORK_TYPE_ENUM, status: record.xgfFlag }), }, - { title: "动火等级", dataIndex: "workLevel" }, - { title: "申请人", dataIndex: "createName" }, - { title: "申请单位", dataIndex: "todo" }, - { title: "申请时间", dataIndex: "createTime" }, - { title: "作业人", dataIndex: "todo" }, - { title: "作业单位", dataIndex: "todo" }, - { title: "作业时间", dataIndex: "todo" }, - { title: "作业内容", dataIndex: "todo" }, + { + title: "动火等级", + dataIndex: "workLevel", + render: (_, record) => getLabelName({ list: eightworkType, status: record.workLevel, idKey: "workLevel", nameKey: "taskName" }), + }, + { title: "申请人", dataIndex: ["info", "applyUser"] }, + { title: "申请单位", dataIndex: ["info", "applyUnit"] }, + { title: "申请时间", dataIndex: ["info", "applyTime"] }, + // { title: "作业人", dataIndex: ["info", "step_1", "actUserName"] }, + // { title: "作业单位", dataIndex: ["info", "step_1", "actUserDepartmentName"] }, + { + title: "作业时间", + dataIndex: ["info", "workStartTime"], + render: (_, record) => `${record.info.workStartTime}至${record.info.workEndTime}`, + }, + { title: "作业内容", dataIndex: ["info", "workContent"] }, { title: "审核状态", dataIndex: "status", @@ -112,7 +120,7 @@ function List(props) { - {(!props.status && !props.entrance) && ( + {(!props.status && !props.entrance && ![998, 999].includes(record.status)) && (