删除清单管理bug修复

pull/1/head
zhangyanli 2024-02-05 16:22:46 +08:00
parent f3fe3cf185
commit 91f0d30d74
4 changed files with 114 additions and 29 deletions

View File

@ -398,6 +398,15 @@ export default [
},
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",
},
],
},
{

View File

@ -138,12 +138,14 @@
text
link
@click="
router.push({
path: '/hazard_investigation/delete_inventory_management/view',
query:
name === 'risk'
? { ID: row.LISTMANAGER_ID, type: '1' }
: { ID: row.CUSTOM_ID, type: '2' },
? router.push({
path: '/hazard_investigation/delete_inventory_management/view',
query: { LISTMANAGER_ID: row.LISTMANAGER_ID },
})
: router.push({
path: '/hazard_investigation/delete_inventory_management/view_custom',
query: { CUSTOM_ID: row.CUSTOM_ID },
})
"
>

View File

@ -1,6 +1,6 @@
<template>
<layout-card>
<el-divider content-position="left">清单信息</el-divider>
<el-divider content-position="left">风险管控清单信息</el-divider>
<el-descriptions :column="2" border>
<el-descriptions-item label="清单名称">
{{ info.NAME }}
@ -53,26 +53,14 @@
<script setup>
import { useRoute } from "vue-router";
import useListData from "@/assets/js/useListData.js";
import {
getCustomStopView,
getInventoryManagementView,
} from "@/request/hazard_investigation.js";
import { getInventoryManagementView } from "@/request/hazard_investigation.js";
import { ref } from "vue";
const route = useRoute();
const { ID, type } = route.query;
const { LISTMANAGER_ID } = route.query;
const info = ref({});
const { list } =
type === "1"
? useListData(getInventoryManagementView, {
otherParams: { LISTMANAGER_ID: ID },
usePagination: false,
callbackFn: (list, resData) => {
info.value = resData.pd;
},
})
: useListData(getCustomStopView, {
otherParams: { CUSTOM_ID: ID },
const { list } = useListData(getInventoryManagementView, {
otherParams: { LISTMANAGER_ID },
usePagination: false,
callbackFn: (list, resData) => {
info.value = resData.pd;

View File

@ -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>