forked from integrated_whb/integrated_whb_vue
删除清单管理bug修复
parent
f3fe3cf185
commit
91f0d30d74
|
@ -398,6 +398,15 @@ export default [
|
||||||
},
|
},
|
||||||
component: "hazard_investigation/delete_inventory_management/view",
|
component: "hazard_investigation/delete_inventory_management/view",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/hazard_investigation/delete_inventory_management/view_custom",
|
||||||
|
meta: {
|
||||||
|
title: "查看",
|
||||||
|
activeMenu: "/hazard_investigation/delete_inventory_management",
|
||||||
|
},
|
||||||
|
component:
|
||||||
|
"hazard_investigation/delete_inventory_management/view_custom",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -138,13 +138,15 @@
|
||||||
text
|
text
|
||||||
link
|
link
|
||||||
@click="
|
@click="
|
||||||
router.push({
|
name === 'risk'
|
||||||
path: '/hazard_investigation/delete_inventory_management/view',
|
? router.push({
|
||||||
query:
|
path: '/hazard_investigation/delete_inventory_management/view',
|
||||||
name === 'risk'
|
query: { LISTMANAGER_ID: row.LISTMANAGER_ID },
|
||||||
? { ID: row.LISTMANAGER_ID, type: '1' }
|
})
|
||||||
: { ID: row.CUSTOM_ID, type: '2' },
|
: router.push({
|
||||||
})
|
path: '/hazard_investigation/delete_inventory_management/view_custom',
|
||||||
|
query: { CUSTOM_ID: row.CUSTOM_ID },
|
||||||
|
})
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<layout-card>
|
<layout-card>
|
||||||
<el-divider content-position="left">清单信息</el-divider>
|
<el-divider content-position="left">风险管控清单信息</el-divider>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="清单名称">
|
<el-descriptions-item label="清单名称">
|
||||||
{{ info.NAME }}
|
{{ info.NAME }}
|
||||||
|
@ -53,31 +53,19 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import useListData from "@/assets/js/useListData.js";
|
import useListData from "@/assets/js/useListData.js";
|
||||||
import {
|
import { getInventoryManagementView } from "@/request/hazard_investigation.js";
|
||||||
getCustomStopView,
|
|
||||||
getInventoryManagementView,
|
|
||||||
} from "@/request/hazard_investigation.js";
|
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { ID, type } = route.query;
|
const { LISTMANAGER_ID } = route.query;
|
||||||
const info = ref({});
|
const info = ref({});
|
||||||
const { list } =
|
const { list } = useListData(getInventoryManagementView, {
|
||||||
type === "1"
|
otherParams: { LISTMANAGER_ID },
|
||||||
? useListData(getInventoryManagementView, {
|
usePagination: false,
|
||||||
otherParams: { LISTMANAGER_ID: ID },
|
callbackFn: (list, resData) => {
|
||||||
usePagination: false,
|
info.value = resData.pd;
|
||||||
callbackFn: (list, resData) => {
|
},
|
||||||
info.value = resData.pd;
|
});
|
||||||
},
|
|
||||||
})
|
|
||||||
: useListData(getCustomStopView, {
|
|
||||||
otherParams: { CUSTOM_ID: ID },
|
|
||||||
usePagination: false,
|
|
||||||
callbackFn: (list, resData) => {
|
|
||||||
info.value = resData.pd;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss"></style>
|
<style scoped lang="scss"></style>
|
||||||
|
|
|
@ -0,0 +1,86 @@
|
||||||
|
<template>
|
||||||
|
<layout-card>
|
||||||
|
<el-divider content-position="left">隐患排查清单信息</el-divider>
|
||||||
|
<el-descriptions :column="2" border>
|
||||||
|
<el-descriptions-item label="清单名称">
|
||||||
|
{{ info.NAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="是否包保责任人任务">
|
||||||
|
<span v-if="info.BAO_BAO_TYPE === '0'">否</span>
|
||||||
|
<span v-if="info.BAO_BAO_TYPE === '1'">是</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="任务类型" v-if="info.BAO_BAO_TYPE === '1'">
|
||||||
|
{{ info.TASK_TYPE_NAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="部门">
|
||||||
|
{{ info.DEPARTMENT_NAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="岗位">
|
||||||
|
{{ info.POST_NAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="负责人">
|
||||||
|
{{ info.USER_NAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="排查类型">
|
||||||
|
{{ info.SCREENTYPENAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="排查周期">
|
||||||
|
{{ info.PERIODNAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="清单类型">
|
||||||
|
{{ info.TYPENAME }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label="排查日期"
|
||||||
|
v-if="info.TYPE === 'listType0005'"
|
||||||
|
>
|
||||||
|
{{ info.START_DATE }} - {{ info.END_DATE }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
<el-divider content-position="left">检查内容</el-divider>
|
||||||
|
<layout-table :data="list" :show-pagination="false">
|
||||||
|
<el-table-column type="index" label="序号" width="55" />
|
||||||
|
<el-table-column
|
||||||
|
prop="CHECK_CATEGORY_NAME"
|
||||||
|
label="检查类别"
|
||||||
|
width="180"
|
||||||
|
/>
|
||||||
|
<el-table-column prop="CHECK_ITEM_NAME" label="检查项目" width="180" />
|
||||||
|
<el-table-column prop="CHECK_CONTENT" label="检查内容" width="200" />
|
||||||
|
<el-table-column prop="CHECK_STANDARD" label="检查标准" width="200" />
|
||||||
|
<el-table-column prop="REFERENCE_BASIS" label="参考依据" width="200" />
|
||||||
|
<el-table-column prop="CHECK_QUALIFIED" label="检查合格项" width="200" />
|
||||||
|
<el-table-column
|
||||||
|
prop="CHECK_UNQUALIFIED"
|
||||||
|
label="检查不合格项"
|
||||||
|
width="200"
|
||||||
|
/>
|
||||||
|
<el-table-column label="操作类型">
|
||||||
|
<template v-slot="{ row }">
|
||||||
|
<span v-if="row.OPERATION_TYPE === 1">选择</span>
|
||||||
|
<span v-if="row.OPERATION_TYPE === 2">填写</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</layout-table>
|
||||||
|
</layout-card>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { useRoute } from "vue-router";
|
||||||
|
import useListData from "@/assets/js/useListData.js";
|
||||||
|
import { getCustomStopView } from "@/request/hazard_investigation.js";
|
||||||
|
import { ref } from "vue";
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
|
const { CUSTOM_ID } = route.query;
|
||||||
|
const info = ref({});
|
||||||
|
const { list } = useListData(getCustomStopView, {
|
||||||
|
otherParams: { CUSTOM_ID },
|
||||||
|
usePagination: false,
|
||||||
|
callbackFn: (list, resData) => {
|
||||||
|
info.value = resData.pd;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
Loading…
Reference in New Issue