提交 a32408fc authored 作者: jinrongbin's avatar jinrongbin

后期管理增加下发意见功能

上级 232e5126
......@@ -19,6 +19,7 @@
{ label: '污染地块ID', field: 'wrdkid', component: 'Input', show: false },
{ label: '阶段编码', field: 'scjdbm', component: 'Input', show: false },
{ label: 'pgtype', field: 'pgtype', component: 'Input', show: false },
{ label: 'remark', field: 'remark', component: 'Input', show: false }, //后期管理记录的ID
{
label: '意见',
field: 'clyj',
......
<template>
<a-page-header style="border: 1px solid rgb(235, 237, 240)" @back="router.go(-1)">
<template #backIcon>
<div><a-button type="primary">返回</a-button></div>
<div>
<a-button type="primary">返回</a-button>
</div>
</template>
<template #title>
<div></div>
<div>
<a-button type="primary" v-auth="'hqgl:xfyj'" @click.stop="backHistory()">下达意见</a-button>
</div>
</template>
</a-page-header>
<a-collapse v-model:activeKey="activeKey">
<a-collapse-panel key="1" header="环境监测基本信息">
<Environment ref="mgst" :type="type" :data="data" :isRead="type == 'view'" />
<template #extra><a-button type="primary" v-if="type != 'view'" @click.prevent="saveMgst($event)">保存</a-button></template>
......@@ -20,12 +25,14 @@
</template>
</a-collapse-panel>
</a-collapse>
<AdviceModal @register="registerAdviceModal"></AdviceModal>
</template>
<script setup lang="ts">
import { ref, nextTick } from 'vue';
import Environment from './components/environment.vue';
import TestingUnit from './components/TestingUnit.vue';
import AdviceModal from '@/components/customComponent/AdviceModal.vue';
import { useRouter } from 'vue-router';
import { addGljl } from './api';
const activeKey = ref(['1', '2', '3', '4', '5']);
......@@ -34,6 +41,9 @@
const data = ref<any>({});
const type = ref(router.currentRoute.value.query.type);
const unitList = ref([{ id: null }]);
import { useModal } from '/@/components/Modal';
const [registerAdviceModal, { openModal: openAdviceModal }] = useModal();
if (type.value == 'view') {
data.value = JSON.parse(sessionStorage.getItem('data') || {});
unitList.value = data.value.jcdwList || [{ id: null }];
......@@ -82,4 +92,17 @@
unitList.value.splice(index, 1);
unitS.value.splice(index, 1);
}
// 点击下达意见
function backHistory() {
let obj: any = {
wrdkid: data.value.wrdkid,
scjdbm: 'S18',
remark: data.value.id,
title:'下达意见'
};
openAdviceModal(true, {
record: obj,
showFooter: true,
});
}
</script>
......@@ -5,7 +5,9 @@
<div><a-button type="primary">返回</a-button></div>
</template>
<template #title>
<div></div>
<div>
</div>
</template>
</a-page-header>
<a-collapse v-model:activeKey="activeKey">
......@@ -24,6 +26,7 @@
<PointInfor ref="trwrjc" :type="type" :data="data?.jcsjList" />
</a-collapse-panel>
</a-collapse>
<AdviceModal @register="registerAdviceModal"></AdviceModal>
</div>
</template>
......@@ -31,11 +34,14 @@
import { ref, nextTick } from 'vue';
import Environment from './components/environment.vue';
import TestingUnit from './components/TestingUnit.vue';
import AdviceModal from '@/components/customComponent/AdviceModal.vue';
import PointInfor from '/@/components/customComponent/jgdk/PointInfor.vue';
import { useRouter } from 'vue-router';
import { addGljl } from './api';
import { useModal } from '/@/components/Modal';
const [registerAdviceModal, { openModal: openAdviceModal }] = useModal();
let router = useRouter();
const activeKey = ref(['1', '2', '3', '4', '5']);
const wrdkid = ref(router.currentRoute.value.query.wrdkid);
......@@ -102,6 +108,19 @@
unitList.value.splice(index, 1);
unitS.value.splice(index, 1);
}
// 点击下发意见
function backHistory() {
let obj: any = {
wrdkid: data.value.wrdkid,
scjdbm: 'S19',
remark: data.value.id,
title:'下发意见'
};
openAdviceModal(true, {
record: obj,
showFooter: true,
});
}
</script>
<style lang="less" scoped></style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论