Files
sgxt_web/src/views/backOfficeSystem/DeploymentDisposal/mpvPeo/index.vue

335 lines
12 KiB
Vue
Raw Normal View History

2025-05-21 10:24:02 +08:00
<template>
2025-05-21 10:38:41 +08:00
<div>
<div class="titleBox">
<PageTitle title="重点人管理">
2025-07-10 21:18:19 +08:00
<el-popover placement="bottom" :visible="visible" :width="400" trigger="click">
2025-07-08 14:12:52 +08:00
<template #reference>
2025-07-10 21:18:19 +08:00
<el-button type="primary" @click="(visible = !visible), (visiblefp = false)" size="small">布控申请</el-button>
2025-07-08 14:12:52 +08:00
</template>
<div class="flex just-center">
2025-09-11 11:26:15 +08:00
<el-button size="small" type="primary" v-for="it in D_GS_BK_SQLX" :key="it.dm"
@click="handleApplication(it)">{{
it.zdmc }}</el-button>
2025-07-08 14:12:52 +08:00
</div>
</el-popover>
2025-07-11 15:08:23 +08:00
<el-popover placement="bottom" :visible="visiblefp" :width="400" trigger="click">
2025-07-08 14:12:52 +08:00
<template #reference>
2025-09-11 11:26:15 +08:00
<el-button size="small" type="primary" @click="(visiblefp = !visiblefp), (visible = false)">指定分配</el-button>
2025-07-08 14:12:52 +08:00
</template>
<div>
2025-07-11 15:08:23 +08:00
<el-input readonly v-model="obj.fpmc" @click="chooseUserVisible = true" placeholder="请选择民警"></el-input>
2025-07-08 14:12:52 +08:00
<div class="flex just-center mt10">
2025-07-11 15:08:23 +08:00
<el-button @click="(visiblefp = false), (obj = {})" size="small">取消</el-button>
<el-button type="primary" @click="handlefp" size="small">分配</el-button>
2025-07-07 19:47:22 +08:00
</div>
2025-07-08 14:12:52 +08:00
</div>
</el-popover>
2025-07-11 15:08:23 +08:00
<el-button size="small" type="primary" @click="handleZxs">转线索</el-button>
<el-button size="small" type="primary" @click="handleMove">移交管控</el-button>
2025-05-21 10:38:41 +08:00
<el-button type="primary" size="small" @click="addEdit('add', '')">
2025-09-11 11:26:15 +08:00
<el-icon style="vertical-align: middle">
<CirclePlus />
</el-icon>
2025-05-21 10:38:41 +08:00
<span style="vertical-align: middle">新增</span>
</el-button>
</PageTitle>
</div>
<!-- 搜索 -->
<div ref="searchBox">
2025-07-08 14:12:52 +08:00
<Search :searchArr="searchConfiger" @submit="onSearch" />
2025-05-21 10:38:41 +08:00
</div>
<!-- 表格 -->
<div class="tabBox">
2025-09-11 11:26:15 +08:00
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
@chooseData="chooseData">
2025-07-20 16:02:24 +08:00
<template #bqList="{ row }">
2025-09-11 11:26:15 +08:00
<ul>
<li class="one_text_detail marks mb4" :key="index" v-for="(item, index) in row.bqList">{{ item.bqMc }}({{
item.bqFz || 0 }} ) </li>
2025-07-20 16:02:24 +08:00
</ul>
</template>
2025-09-11 11:26:15 +08:00
<template #ryXb="{ row }">
<DictTag :tag="false" :value="row.ryXb" :options="D_BZ_XB" />
</template>
<template #ryJg="{ row }">
<DictTag :tag="false" :value="row.ryJg" :options="D_BZ_XZQHDM" />
</template>
<template #ryMz="{ row }">
<DictTag :tag="false" :value="row.ryMz" :options="D_BZ_MZ" />
</template>
<template #hjdQh="{ row }">
<DictTag :tag="false" :value="row.hjdQh" :options="D_BZ_XZQHDM" />
</template>
<template #zdrRyjb="{ row }">
<DictTag :tag="false" :value="row.zdrRyjb" :options="D_GS_ZDR_RYJB" />
</template>
<template #zdrBkZt="{ row }">
<DictTag :tag="false" :value="row.zdrBkZt" :options="D_GS_ZDR_BK_ZT" />
</template>
<template #zdrCzzt="{ row }">
<DictTag :tag="false" :value="row.zdrCzzt" :options="D_GS_ZDR_CZZT" />
</template>
2025-07-12 18:11:10 +08:00
<template #zdrZt="{ row }">
<DictTag :tag="false" :value="row.zdrZt" :options="D_GS_ZDQT_ZT" />
</template>
2025-09-11 11:26:15 +08:00
<template #xtSjzt="{ row }">
2025-07-11 15:08:23 +08:00
<div> {{ row.xtSjzt == 0 ? "注销" : row.xtSjzt == 1 ? "正常" : "封存" }}</div>
</template>
2025-05-21 10:38:41 +08:00
<!-- 操作 -->
<template #controls="{ row }">
2025-07-20 16:02:24 +08:00
<el-link size="small" type="success" v-if="row.zdrZt == '01'" @click="handleSend(row.id)">送审</el-link>
2025-09-11 11:26:15 +08:00
<el-link size="small" type="primary" v-if="row.zdrZt == '01'" @click="addEdit('edit', row)">编辑</el-link>
<el-link size="small" type="primary" @click="addEdit('detail', row)">详情</el-link>
2025-07-17 11:28:18 +08:00
<el-link size="small" type="danger" @click="deleteRow(row.id)">删除</el-link>
2025-05-21 10:38:41 +08:00
</template>
</MyTable>
2025-09-11 11:26:15 +08:00
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
...pageData.pageConfiger,
total: pageData.total
}"></Pages>
2025-05-21 10:38:41 +08:00
</div>
<!-- 详情 -->
2025-09-11 11:26:15 +08:00
<AddForm ref="addFormDiloag" @updateDate="getList"
:dic="{ D_GS_ZDR_RYJB, D_BZ_XB, D_BZ_MZ, D_BZ_XZQHDM, D_GS_ZDR_BK_ZT, D_GS_ZDR_CZZT, D_GS_BQ_ZL, D_GS_BQ_LB, D_GS_BQ_LX, D_GS_ZDR_YJDJ, D_GS_BK_SSJZ }" />
2025-07-08 14:12:52 +08:00
<!-- 选择用户 -->
2025-09-11 11:26:15 +08:00
<ChooseUser v-model="chooseUserVisible" @choosedUsers="handleUserSelected" :roleIds="roleIds" />
2025-07-08 14:12:52 +08:00
<!-- 转线索 -->
2025-09-11 11:26:15 +08:00
<ZxsForm v-if="showzxs" ref="zxsDilof" @change="getList"
:dic="{ D_BZ_SF, D_BZ_XB, D_GS_XS_LY, D_BZ_SSZT, D_GS_XS_LX, D_GS_XS_QTLX }"></ZxsForm>
2025-05-21 10:38:41 +08:00
</div>
2025-05-21 10:24:02 +08:00
</template>
2025-05-21 10:38:41 +08:00
<script setup>
2025-07-08 14:12:52 +08:00
import { ElMessage } from "element-plus";
2025-07-10 20:46:20 +08:00
import ChooseUser from "@/components/ChooseList/ChooseUser/index.vue";
2025-07-08 14:12:52 +08:00
import ZxsForm from "./components/zxsForm.vue";
2025-05-21 10:38:41 +08:00
import PageTitle from "@/components/aboutTable/PageTitle.vue";
import MyTable from "@/components/aboutTable/MyTable.vue";
import Pages from "@/components/aboutTable/Pages.vue";
import Search from "@/components/aboutTable/Search.vue";
import AddForm from "./components/addForm.vue";
2025-09-11 11:26:15 +08:00
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
2025-07-10 17:59:39 +08:00
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
2025-05-21 10:38:41 +08:00
const { proxy } = getCurrentInstance();
2025-09-11 11:26:15 +08:00
const { D_GS_ZDQT_ZT, D_GS_ZDR_RYJB, D_BZ_XB, D_BZ_MZ, D_BZ_XZQHDM, D_GS_ZDR_BK_ZT, D_GS_ZDR_CZZT, D_GS_BQ_ZL, D_GS_BQ_LB, D_GS_BQ_LX, D_GS_ZDR_YJDJ, D_GS_BK_SSJZ, D_GS_BK_SQLX, D_BZ_SF, D_GS_XS_LY, D_BZ_SSZT, D_GS_XS_LX, D_GS_XS_QTLX } =
proxy.$dict("D_GS_ZDQT_ZT", "D_GS_ZDR_RYJB", "D_BZ_XB", "D_BZ_MZ", "D_BZ_XZQHDM", "D_GS_ZDR_BK_ZT", "D_GS_ZDR_CZZT", "D_GS_BQ_ZL", "D_GS_BQ_LB", "D_GS_BQ_LX", "D_GS_ZDR_YJDJ", "D_GS_BK_SSJZ", "D_GS_BK_SQLX", "D_BZ_SF", "D_GS_XS_LY", "D_BZ_SSZT", "D_GS_XS_LX", "D_GS_XS_QTLX");
2025-07-11 15:08:23 +08:00
const obj = ref({});
2025-07-08 14:12:52 +08:00
const showzxs = ref(false);
const zxsDilof = ref();
2025-07-07 19:47:22 +08:00
const show = ref(false);
const addFormDiloag = ref();
2025-05-21 10:38:41 +08:00
const searchBox = ref(); //搜索框
2025-07-08 14:12:52 +08:00
const chooseUserVisible = ref(false); //审批流程
2025-07-11 15:08:23 +08:00
const ids = ref([]);
const choosList = ref([]);
2025-07-08 14:12:52 +08:00
const visible = ref(false);
const visiblefp = ref(false);
2025-05-21 10:38:41 +08:00
const searchConfiger = ref([
{
label: "姓名",
prop: "ryXm",
2025-05-21 10:38:41 +08:00
placeholder: "请输入姓名",
showType: "input"
},
{
label: "身份证",
prop: "rySfzh",
2025-05-21 10:38:41 +08:00
placeholder: "请输入身份证",
showType: "input"
},
{
label: "户籍地",
prop: "hjdXz",
placeholder: "请输入户籍地",
showType: "input"
},
{
label: "人员级别",
prop: "zdrRyjb",
placeholder: "请输入人员级别",
showType: "select",
options: D_GS_ZDR_RYJB
2025-07-11 15:08:23 +08:00
},
2025-05-21 10:38:41 +08:00
]);
2025-07-11 15:08:23 +08:00
const queryFrom = ref({});
2025-05-21 10:38:41 +08:00
const pageData = reactive({
2025-07-07 19:47:22 +08:00
tableData: [],
2025-05-21 10:38:41 +08:00
keyCount: 0,
tableConfiger: {
rowHieght: 61,
2025-07-08 14:12:52 +08:00
showSelectType: "checkBox",
2025-05-21 10:38:41 +08:00
loading: false
},
total: 0,
pageConfiger: {
pageSize: 20,
pageCurrent: 1
},
2025-07-11 18:01:15 +08:00
controlsWidth: 150,
2025-05-21 10:38:41 +08:00
tableColumn: [
2025-09-11 11:26:15 +08:00
{ label: "姓名", prop: "ryXm", width: 150 },
{ label: "性别", prop: "ryXb", showSolt: true, width: 100 },
{ label: "籍贯", prop: "ryJg", showSolt: true, width: 100},
{ label: "身份证", prop: "rySfzh", width: 200 },
{ label: "民族", prop: "ryMz", showSolt: true, width: 100 },
{ label: "户籍地区划", prop: "hjdQh", showSolt: true, width: 150 },
{ label: "户籍派出所", prop: "hjdPcsmc", width: 200 },
{ label: "户籍地详址", prop: "hjdXz", width: 200 },
{ label: "标签", prop: "bqList", showSolt: true, width: 400, showOverflowTooltip: true },
{ label: "管辖单位", prop: "gxSsbmmc", width: 200 },
{ label: "人员级别", prop: "zdrRyjb", showSolt: true, width: 130 },
{ label: "管控原因", prop: "zdrLkyy", width: 200, showOverflowTooltip: true },
{ label: "管控状态", prop: "zdrBkZt", width: 200, showOverflowTooltip: true },
{ label: "处置状态", prop: "zdrCzzt", showSolt: true },
2025-07-12 18:11:10 +08:00
{ label: "审核状态", prop: "zdrZt", showSolt: true },
2025-09-11 11:26:15 +08:00
{ label: "状态", prop: "xtSjzt", showSolt: true },
2025-05-21 10:38:41 +08:00
]
});
2025-05-21 10:24:02 +08:00
2025-05-21 10:38:41 +08:00
onMounted(() => {
getList();
tabHeightFn();
});
// 搜索
const onSearch = (val) => {
queryFrom.value = { ...val };
pageData.pageConfiger.pageCurrent = 1;
getList();
};
2025-05-21 10:24:02 +08:00
2025-05-21 10:38:41 +08:00
const changeNo = (val) => {
2025-07-15 16:56:26 +08:00
pageData.pageConfiger.pageCurrent = val;
2025-05-21 10:38:41 +08:00
getList();
};
const changeSize = (val) => {
pageData.pageConfiger.pageSize = val;
getList();
};
2025-05-21 10:24:02 +08:00
2025-05-21 10:38:41 +08:00
// 获取列表
2025-07-08 14:12:52 +08:00
const getList = () => {
pageData.tableConfiger.loading = true;
2025-05-21 10:38:41 +08:00
let data = { ...pageData.pageConfiger, ...queryFrom.value };
2025-07-11 15:08:23 +08:00
qcckGet(data, "/mosty-gsxt/tbGsxtZdry/selectPage").then((res) => {
pageData.tableData = res.records || [];
pageData.total = res.total;
pageData.tableConfiger.loading = false;
}).catch(() => {
pageData.tableConfiger.loading = false;
});
2025-05-21 10:38:41 +08:00
};
2025-07-07 19:47:22 +08:00
2025-07-12 16:45:32 +08:00
//送审
const handleSend = (id) => {
2025-07-12 18:11:10 +08:00
proxy.$confirm("确定要送审?", "警告", { type: "warning" }).then(() => {
2025-09-11 11:26:15 +08:00
qcckPost({ id }, "/mosty-gsxt/tbGsxtZdry/subSh").then(() => {
2025-07-12 18:11:10 +08:00
proxy.$message({ type: "success", message: "送审成功" });
getList();
});
})
2025-07-12 16:45:32 +08:00
};
2025-07-08 14:12:52 +08:00
const chooseData = (data) => {
ids.value = Array.isArray(data) ? data.map((item) => item.id) : [];
choosList.value = Array.isArray(data) ? data : [];
};
// 选择申请数据数据
const handleApplication = () => {
2025-07-11 15:08:23 +08:00
if (ids.value.length === 0) return ElMessage.error("请先选择需要布控的重点人");
qcckPost({ ids: ids.value }, "/mosty-gsxt/tbGsxtZdry/addBksq").then(() => {
ElMessage.success("申请成功");
visible.value = false;
getList();
}).catch(() => {
ElMessage.error("布控申请失败");
});
2025-07-08 14:12:52 +08:00
};
const handleUserSelected = (val) => {
obj.value.fpmc = val[0].userName;
obj.value.fpid = val[0].id;
};
2025-07-11 15:08:23 +08:00
// 处理分配
2025-07-08 14:12:52 +08:00
const handlefp = () => {
2025-07-11 15:08:23 +08:00
if (ids.value.length === 0) return ElMessage.error("请先选择需要布控的重点人");
2025-09-11 11:26:15 +08:00
qcckPost({ ids: ids.value, uid: obj.value.fpid }, "/mosty-gsxt/tbGsxtZdry/addGkmj").then(() => {
2025-07-11 15:08:23 +08:00
ElMessage.success("分配成功");
visible.value = false;
visiblefp.value = false;
getList();
}).catch(() => {
ElMessage.error("分配失败");
});
2025-07-08 14:12:52 +08:00
};
// 移交管控
const handleMove = () => {
2025-07-11 15:08:23 +08:00
if (ids.value.length === 0) return ElMessage.error("请先选择需要移交管控的重点群体");
2025-07-08 14:12:52 +08:00
proxy.$confirm("是否确定移交?", "警告", { type: "warning" }).then(() => {
2025-07-11 15:08:23 +08:00
qcckPost({ ids: ids.value }, "/mosty-gsxt/tbGsxtZdry/addSfyj").then(() => {
ElMessage.success("移交管控成功");
getList();
}).catch(() => {
ElMessage.error("移交管控失败");
});
2025-07-10 17:59:39 +08:00
});
2025-07-08 14:12:52 +08:00
};
2025-07-11 15:08:23 +08:00
// 转线索
2025-07-08 14:12:52 +08:00
const handleZxs = () => {
2025-07-11 15:08:23 +08:00
if (ids.value.length === 0) return ElMessage.error("请先选择需要转线索的重点群体");
2025-07-08 14:12:52 +08:00
showzxs.value = true;
nextTick(() => {
zxsDilof.value.init(choosList.value);
});
};
2025-07-11 15:08:23 +08:00
2025-07-17 11:28:18 +08:00
//删除操作
const deleteRow = (id) => {
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
qcckDelete({}, "/mosty-gsxt/tbGsxtZdry/" + id).then((res) => {
ElMessage.success("删除成功");
getList();
});
});
};
2025-07-11 15:08:23 +08:00
//新增编辑
const addEdit = (type, row) => {
show.value = true;
2025-09-11 11:26:15 +08:00
nextTick(() => {
2025-07-11 15:08:23 +08:00
addFormDiloag.value.init(type, row);
})
};
// 表格高度计算
const tabHeightFn = () => {
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
window.onresize = function () {
tabHeightFn();
};
};
2025-05-21 10:38:41 +08:00
</script>
2025-07-20 16:02:24 +08:00
<style lang="scss" scoped>
2025-09-11 11:26:15 +08:00
.marks {
2025-07-20 16:02:24 +08:00
padding: 0 4px;
white-space: nowrap;
background: #73acf1;
border-radius: 4px;
color: #fff;
}
</style>
<style>
2025-05-21 10:38:41 +08:00
.el-loading-mask {
background: rgba(0, 0, 0, 0.5) !important;
}
</style>