diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js
index 4d4d508..bf3b140 100644
--- a/src/assets/js/asyncRouter.js
+++ b/src/assets/js/asyncRouter.js
@@ -1561,6 +1561,14 @@ export default [
},
component: "confined_space/job_data/view",
},
+ {
+ path: "/confined_space/job_data/add_video",
+ meta: {
+ title: "添加监控",
+ activeMenu: "/confined_space/job_data",
+ },
+ component: "eightwork_videomanager/index",
+ },
],
},
{
@@ -1686,6 +1694,14 @@ export default [
},
component: "high/job_data/view",
},
+ {
+ path: "/high/job_data/add_video",
+ meta: {
+ title: "添加监控",
+ activeMenu: "/high/job_data",
+ },
+ component: "eightwork_videomanager/index",
+ },
],
},
{
@@ -1846,6 +1862,14 @@ export default [
},
component: "hot_work/job_data/view",
},
+ {
+ path: "/hot_work/job_data/add_video",
+ meta: {
+ title: "添加监控",
+ activeMenu: "/hot_work/job_data",
+ },
+ component: "eightwork_videomanager/index",
+ },
],
},
{
diff --git a/src/request/confined_space.js b/src/request/confined_space.js
index e24ffe8..ba879c0 100644
--- a/src/request/confined_space.js
+++ b/src/request/confined_space.js
@@ -1,9 +1,5 @@
import { post, upload } from "@/request/axios.js";
-export const getConfinedSpaceList = (params) =>
- post("/confinedspace/list", params); // 受限空间作业管理列表
-export const getConfinedSpaceView = (params) =>
- post("/confinedspace/goEdit", params); // 受限空间作业管理查看
export const getLedgerList = (params) => post("/limitspace/list", params); // 台账列表
export const setLedgerImport = (params) =>
upload("/limitspace/readExcel2", params); // 台账导入
diff --git a/src/request/high.js b/src/request/high.js
deleted file mode 100644
index 9ffffd6..0000000
--- a/src/request/high.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import { post } from "@/request/axios.js";
-
-export const getHighList = (params) => post("/highwork/list", params); // 高处作业管理列表
-export const getHighView = (params) => post("/highwork/goEdit", params); // 高处作业管理查看
diff --git a/src/views/confined_space/job_data/components/flow_chart.vue b/src/views/confined_space/job_data/components/flow_chart.vue
index fc8083a..883fdf7 100644
--- a/src/views/confined_space/job_data/components/flow_chart.vue
+++ b/src/views/confined_space/job_data/components/flow_chart.vue
@@ -1,81 +1,15 @@
-
-
-
-
- {{ fnGetProcessMessage().title }}
- {{ fnGetProcessMessage().USER_NAME }}
- {{ fnGetProcessMessage().OPERATTIME }}
-
-
-
-
- {{ info.CONFIRM_USER_NAME }}
- {{ info.CONFIRM_USER_SIGNER_TIME }}
-
-
-
-
- {{ info.APPROVE_USER_NAME }}
- {{ info.APPROVE_USER_SIGNER_TIME }}
-
-
-
-
- {{ info.ACCEPT_USER_NAME }}
- {{ info.ACCEPT_USER_SIGNER_TIME }}
-
-
-
-
- {{ info.ACCEPT_USER_NAME }}
- {{ info.ACCEPT_USER_SIGNER_TIME }}
-
-
+
+
+
+
+
+ {{ item.ACT_USER_NAME || item.SIGN_USER }}
+ {{ item.ACT_TIME }}
+
+
+
-
-
-
- 监护人:{{ info.GUARDIAN_USER_NAME }}已签字
-
-
-
-
- 监护人:{{ info.GUARDIAN_USER_NAME }}未签字
-
-
-
-
- 安全交底人:{{ info.CONFESS_USER_NAME }}已签字
-
-
-
-
- 安全交底人:{{ info.CONFESS_USER_NAME }}未签字
-
-
-
-
- 接受交底人:{{ info.ACCEPT_CONFESS_USER_NAME }}已签字
-
-
-
-
- 接受交底人:{{ info.ACCEPT_CONFESS_USER_NAME }}未签字
-
-
-
关闭
@@ -91,63 +25,23 @@ const props = defineProps({
required: true,
default: false,
},
- info: {
+ flowList: {
type: Object,
required: true,
default: () => {},
},
});
+
const emits = defineEmits(["update:visible"]);
const visible = useVModel(props, "visible", emits);
-const fnGetStatus = () => {
- const result = {
- 1: 1,
- 4: 2,
- 5: 3,
- 6: 5,
- };
- return result[props.info.APPLY_STATUS] || 0;
-};
-const fnGetProcessStatus = () => {
- if (props.info.APPLY_STATUS < "0") return "error";
- else return "process";
-};
-const fnGetProcessMessage = () => {
- const info = props.info;
- const result = {
- "-4": {
- title: "作业负责人审核打回",
- USER_NAME: info.CONFIRM_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-5": {
- title: "所在单位审核打回",
- USER_NAME: info.APPROVE_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-6": {
- title: "验收打回",
- AUSER_NAME: info.ACCEPT_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-99": {
- title: "已作废(监护人未签字)",
- AUSER_NAME: "",
- OPERATTIME: info.OPERATTIME,
- },
- "-98": {
- title: "已作废(未进行气体检测)",
- AUSER_NAME: "",
- OPERATTIME: info.OPERATTIME,
- },
- };
- return (
- result[props.info.APPLY_STATUS] || {
- title: "",
- USER_NAME: info.APPLY_USER_NAME,
- OPERATTIME: info.CREATTIME,
- }
- );
+const fnGetStatus = (step) => {
+ if (step.STATUS === 1) {
+ return "finish";
+ } else if (step.STATUS < 0) {
+ return "error";
+ } else if (step.CURRENT_STEP) {
+ return "process";
+ }
};
diff --git a/src/views/confined_space/job_data/index.vue b/src/views/confined_space/job_data/index.vue
index 8689ecc..2c73a36 100644
--- a/src/views/confined_space/job_data/index.vue
+++ b/src/views/confined_space/job_data/index.vue
@@ -117,7 +117,7 @@
diff --git a/src/views/confined_space/job_data/view.vue b/src/views/confined_space/job_data/view.vue
index 585eb89..0eadddf 100644
--- a/src/views/confined_space/job_data/view.vue
+++ b/src/views/confined_space/job_data/view.vue
@@ -33,24 +33,7 @@
作业负责人 |
{{ data.info.CONFIRM_USER_NAME }} |
-
- 作业人 |
- {{ data.info.WORK_USER }} |
- 监护人 |
-
-
- 签字:
-
- {{ data.info.GUARDIAN_USER_SIGNER_TIME }}
-
- |
-
+
关联的其他特殊作业及安全作业票编号 |
{{ data.info.SPECIAL_WORK }} |
@@ -120,7 +103,7 @@
-
+
序号 |
安全措施 |
@@ -131,135 +114,216 @@
{{ index + 1 }} |
{{ item.PROTECTIVE_MEASURES }}
- |
-
-
- 涉 及
-
-
- 不涉及
-
- |
-
- {{ item.CONFIRM_NAME }}
- |
-
-
- {{ data.measuresList.length + 1 }} |
-
-
-
- 其他安全措施:{{ data.info.CONFIRM_USER_MEASURES }}
-
- 编制人:{{ data.info.CONFIRM_USER_NAME }}
-
-
-
- 其他安全措施:{{ data.info.APPROVE_USER_MEASURES }}
-
- 编制人:{{ data.info.APPROVE_USER_NAME }}
+
+
+
+
|
+
+ 涉 及
+ 不涉及
+ |
+
+
+ |
+
+
+ {{ data.measuresList.length + 1 + index }} |
+
+
+ 其他安全措施: {{ item.DESCR }}
+
+ |
+
+
+ |
+
+
-
- 安全交底人 |
-
-
- 签字:
-
- {{ data.info.CONFESS_USER_SIGNER_TIME }}
-
- |
-
-
- 接受交底人 |
+
+ 监护人:
签字:
- {{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}
+ {{ data.signs.GUARDIAN[0].SIGN_TIME[index] }}
|
-
+
- 作业负责人意见:{{ data.info.CONFIRM_CONTENT }}
-
- 签字:
-
- {{ data.info.CONFIRM_USER_SIGNER_TIME }}
+
+ 安全交底人:
+
+
+
+
+
- |
-
-
-
- 所在单位意见:{{ data.info.APPROVE_CONTENT }}
-
- 签字:
-
- {{ data.info.APPROVE_USER_SIGNER_TIME }}
-
- |
-
-
-
- 完工验收:{{ data.info.ACCEPT_CONTENT }}
签字:
- {{ item.ACCEPT_USER_SIGNER_TIME }}
+ {{ data.signs.CONFESS[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+ 接受交底人:
+
+ 签字:
+
+ {{ data.signs.ACCEPT_CONFESS[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+ 作业负责人意见:{{ data.signs.CONFIRM[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.CONFIRM[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+ 作业人:
+
+ 签字:
+
+ {{ data.signs.WORK_USER[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+
+ 所在单位意见:{{ data.signs.LEADER[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.LEADER[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+
+ 完工验收:{{ data.signs.ACCEPT[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.ACCEPT[0].SIGN_TIME[index] }}
|
@@ -272,7 +336,7 @@ import LayoutPrintTablePackage from "@/components/print_table_package/index.vue"
import { reactive } from "vue";
import { useRoute } from "vue-router";
import { findCharIndex } from "@/assets/js/utils.js";
-import { getConfinedSpaceView } from "@/request/confined_space.js";
+import { getConfinedSpaceView } from "@/request/eight_work.js";
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
const route = useRoute();
@@ -282,14 +346,11 @@ const data = reactive({
gasList: [],
gas: {},
measuresList: [],
- imgList: [],
- imgList1: [],
+ signs: [],
});
const fnGetData = async () => {
const resData = await getConfinedSpaceView({ CONFINEDSPACE_ID });
data.info = resData.pd;
- data.imgList = resData.imgList;
- data.imgList1 = resData.imgList1;
for (let i = 0; i < resData.measuresList.length; i++) {
const PROTECTIVE_MEASURES =
resData.measuresList[i].PROTECTIVE_MEASURES.split("");
@@ -307,10 +368,7 @@ const fnGetData = async () => {
data.measuresList = resData.measuresList;
data.gasList = resData.gasList;
data.gas = resData.gas || {};
- data.info.CONFIRM_USER_MEASURES =
- data.info.OTHER_PROTECTIVE_MEASURES.split(";_;")[0];
- data.info.APPROVE_USER_MEASURES =
- data.info.OTHER_PROTECTIVE_MEASURES.split(";_;")[1];
+ data.signs = resData.signs;
};
fnGetData();
diff --git a/src/views/high/job_data/components/flow_chart.vue b/src/views/high/job_data/components/flow_chart.vue
index 30decea..a701438 100644
--- a/src/views/high/job_data/components/flow_chart.vue
+++ b/src/views/high/job_data/components/flow_chart.vue
@@ -1,96 +1,15 @@
-
-
-
- {{ fnGetProcessMessage().title }}
- {{ fnGetProcessMessage().USER_NAME }}
- {{ fnGetProcessMessage().OPERATTIME }}
-
-
-
-
- {{ info.CONSTRUCTION_USER_NAME }}
- {{ info.CONSTRUCTION_USER_SIGNER_TIME }}
-
-
-
-
- {{ "已跳过" }}
- {{ info.LEADER_USER_NAME }}
- {{ info.LEADER_USER_SIGNER_TIME }}
-
-
-
-
- {{ "已跳过" }}
- {{ info.AUDIT_USER_NAME }}
- {{ info.AUDIT_USER_SIGNER_TIME }}
-
-
-
-
- {{ "已跳过" }}
- {{ info.APPROVE_USER_NAME }}
- {{ info.APPROVE_USER_SIGNER_TIME }}
-
-
-
-
- {{ info.ACCEPT_USER_NAME }}
- {{ info.ACCEPT_USER_SIGNER_TIME }}
-
-
-
-
- {{ info.ACCEPT_USER_NAME }}
- {{ info.ACCEPT_USER_SIGNER_TIME }}
-
-
+
+
+
+
+ {{ item.ACT_USER_NAME || item.SIGN_USER }}
+ {{ item.ACT_TIME }}
+
+
+
-
-
-
- 监护人:{{ info.GUARDIAN_USER_NAME }}已签字
-
-
-
-
- 监护人:{{ info.GUARDIAN_USER_NAME }}未签字
-
-
-
-
- 安全交底人:{{ info.CONFESS_USER_NAME }}已签字
-
-
-
-
- 安全交底人:{{ info.CONFESS_USER_NAME }}未签字
-
-
-
-
- 接受交底人:{{ info.ACCEPT_CONFESS_USER_NAME }}已签字
-
-
-
-
- 接受交底人:{{ info.ACCEPT_CONFESS_USER_NAME }}未签字
-
-
-
关闭
@@ -106,7 +25,7 @@ const props = defineProps({
required: true,
default: false,
},
- info: {
+ flowList: {
type: Object,
required: true,
default: () => {},
@@ -114,57 +33,15 @@ const props = defineProps({
});
const emits = defineEmits(["update:visible"]);
const visible = useVModel(props, "visible", emits);
-const fnGetStatus = () => {
- const result = {
- 1: 1,
- 2: 2,
- 3: 3,
- 4: 4,
- 5: 5,
- 6: 7,
- };
- return result[props.info.APPLY_STATUS] || 0;
-};
-const fnGetProcessStatus = () => {
- if (props.info.APPLY_STATUS < "0") return "error";
- else return "process";
-};
-const fnGetProcessMessage = () => {
- const info = props.info;
- const result = {
- "-2": {
- title: "作业负责人审核打回",
- USER_NAME: info.CONSTRUCTION_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-3": {
- title: "所在单位审核打回",
- USER_NAME: info.LEADER_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-4": {
- title: "审核部门审核打回",
- USER_NAME: info.AUDIT_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-5": {
- title: "审批部门审核打回",
- USER_NAME: info.APPROVE_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- "-6": {
- title: "验收打回",
- USER_NAME: info.ACCEPT_USER_NAME,
- OPERATTIME: info.OPERATTIME,
- },
- };
- return (
- result[props.info.APPLY_STATUS] || {
- title: "",
- USER_NAME: info.APPLY_USER,
- OPERATTIME: info.CREATTIME,
- }
- );
+
+const fnGetStatus = (step) => {
+ if (step.STATUS === 1) {
+ return "finish";
+ } else if (step.STATUS < 0) {
+ return "error";
+ } else if (step.CURRENT_STEP) {
+ return "process";
+ }
};
diff --git a/src/views/high/job_data/view.vue b/src/views/high/job_data/view.vue
index fcde539..c30ded9 100644
--- a/src/views/high/job_data/view.vue
+++ b/src/views/high/job_data/view.vue
@@ -34,38 +34,18 @@
作业单位 |
- {{ data.info.CONSTRUCTION_DEPARTMENT_NAME }} |
- 监护人 |
-
-
- 签字:
-
- {{ data.info.GUARDIAN_USER_SIGNER_TIME }}
-
- |
-
-
- 作业人 |
- {{ data.info.PROJECT_MANAGER }} |
+ {{ data.info.CONFIRM_DEPARTMENT_NAME }} |
作业负责人 |
- {{ data.info.CONSTRUCTION_USER_NAME }} |
+ {{ data.info.CONFIRM_USER_NAME }} |
+
关联的其他特殊作业及安全作业票编号 |
{{ data.info.SPECIAL_WORK }} |
风险辨识结果 |
- {{ data.info.HAZARD_IDENTIFICATION }} |
+ {{ data.info.RISK_IDENTIFICATION }} |
作业实施时间 |
@@ -75,7 +55,7 @@
-
+
序号 |
安全措施 |
@@ -84,204 +64,259 @@
{{ index + 1 }} |
- {{ item.PROTECTIVE_MEASURES }} |
-
- 涉 及
-
-
- 不涉及
-
+ {{ item.PROTECTIVE_MEASURES }}
+
+
+
+
+
|
- {{ item.CONFIRM_NAME }}
- |
-
-
- {{ data.measuresList.length + 1 }} |
-
-
-
- 其他安全措施:{{ data.info.CONFIRM_USER_MEASURES }}
-
- 编制人:{{ data.info.CONSTRUCTION_USER_NAME }}
-
-
-
- 其他安全措施:{{ data.info.LEADER_USER_MEASURES }}
-
- 编制人:{{ data.info.LEADER_USER_NAME }}
-
-
- 其他安全措施:{{ data.info.AUDIT_USER_MEASURES }}
- 编制人:{{ data.info.AUDIT_USER_NAME }}
-
-
-
- 其他安全措施:{{ data.info.APPROVE_USER_MEASURES }}
-
- 编制人:{{ data.info.APPROVE_USER_NAME }}
-
+ 涉 及
+ 不涉及
+ |
+
+
|
+
+
+ {{ data.measuresList.length + 1 + index }} |
+
+
+ 其他安全措施: {{ item.DESCR }}
+
+ |
+
+
+ |
+
+
-
- 安全交底人 |
+
+ 监护人:
签字:
- {{ data.info.CONFESS_USER_SIGNER_TIME }}
+ {{ data.signs.GUARDIAN[0].SIGN_TIME[index] }}
|
-
- 接受交底人 |
+
+
+ 安全交底人:
+
+
+
+
+
+
签字:
- {{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}
+ {{ data.signs.CONFESS[0].SIGN_TIME[index] }}
|
-
-
- 作业负责人意见:{{ data.info.CONSTRUCTION_CONTENT }}
-
- 签字:
-
- {{ data.info.CONSTRUCTION_USER_SIGNER_TIME }}
-
- |
-
-
-
- 所在单位意见:{{ data.info.LEADER_CONTENT }}
-
- 签字:
-
- {{ data.info.LEADER_USER_SIGNER_TIME }}
-
- |
-
-
-
- 审核部门意见:{{ data.info.AUDIT_CONTENT }}
-
- 签字:
-
- {{ data.info.AUDIT_USER_SIGNER_TIME }}
-
- |
-
-
-
- 审批部门意见:{{ data.info.APPROVE_CONTENT }}
-
- 签字:
-
- {{ data.info.APPROVE_USER_SIGNER_TIME }}
-
- |
-
-
+
- 完工验收:{{ data.info.ACCEPT_CONTENT }}
+ 接受交底人:
签字:
- {{ item.ACCEPT_USER_SIGNER_TIME }}
+ {{ data.signs.ACCEPT_CONFESS[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+ 作业负责人意见:{{ data.signs.CONFIRM[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.CONFIRM[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+ 作业人:
+
+ 签字:
+
+ {{ data.signs.WORK_USER[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+
+ 所在单位意见:{{ data.signs.LEADER[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.LEADER[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+ 审核部门意见:{{ data.signs.AUDIT[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.AUDIT[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+
+ 审批部门意见:{{ data.signs.APPROVE[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.APPROVE[0].SIGN_TIME[index] }}
+
+ |
+
+
+
+
+ 完工验收:{{ data.signs.ACCEPT[0].DESCR }}
+
+ 签字:
+
+ {{ data.signs.ACCEPT[0].SIGN_TIME[index] }}
|
@@ -293,31 +328,36 @@
import LayoutPrintTablePackage from "@/components/print_table_package/index.vue";
import { reactive } from "vue";
import { useRoute } from "vue-router";
-import { getHighView } from "@/request/high.js";
+import { getHighWorkView } from "@/request/eight_work.js";
+import { findCharIndex } from "@/assets/js/utils.js";
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
const route = useRoute();
const { HIGHWORK_ID, entrance } = route.query;
const data = reactive({
info: {},
- imgList: [],
- imgList1: [],
measuresList: [],
+ signs: [],
});
const fnGetData = async () => {
- const resData = await getHighView({ HIGHWORK_ID });
+ const resData = await getHighWorkView({ HIGHWORK_ID });
data.info = resData.pd;
- data.imgList = resData.imgList;
- data.imgList1 = resData.imgList1;
+ for (let i = 0; i < resData.measuresList.length; i++) {
+ const PROTECTIVE_MEASURES =
+ resData.measuresList[i].PROTECTIVE_MEASURES.split("");
+ for (let j = 1; j <= 3; j++) {
+ if (findCharIndex(PROTECTIVE_MEASURES, "(", j) !== -1) {
+ PROTECTIVE_MEASURES.splice(
+ findCharIndex(PROTECTIVE_MEASURES, "(", j) + 1,
+ 0,
+ resData.measuresList[i]["ANSWER" + j]
+ );
+ }
+ }
+ resData.measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join("");
+ }
data.measuresList = resData.measuresList;
- data.info.CONFIRM_USER_MEASURES =
- data.info.OTHER_PROTECTIVE_MEASURES.split(";_;")[0];
- data.info.LEADER_USER_MEASURES =
- data.info.OTHER_PROTECTIVE_MEASURES.split(";_;")[1];
- data.info.AUDIT_USER_MEASURES =
- data.info.OTHER_PROTECTIVE_MEASURES.split(";_;")[2];
- data.info.APPROVE_USER_MEASURES =
- data.info.OTHER_PROTECTIVE_MEASURES.split(";_;")[3];
+ data.signs = resData.signs;
};
fnGetData();
diff --git a/src/views/hot_work/job_data/view.vue b/src/views/hot_work/job_data/view.vue
index 4d5e80b..5b6fb31 100644
--- a/src/views/hot_work/job_data/view.vue
+++ b/src/views/hot_work/job_data/view.vue
@@ -134,7 +134,7 @@
- 监护人:{{ data.signs.GUARDIAN[0].DESCR }}
+ 监护人:
- 安全交底人:{{ data.signs.CONFESS[0].DESCR }}
+ 安全交底人:
- 接受交底人:{{ data.signs.ACCEPT_CONFESS[0].DESCR }}
+ 接受交底人:
| | | | |