feat: 对接采纳功能

This commit is contained in:
jy 2025-06-04 18:23:31 +08:00
parent d8bee57f6b
commit 1ecca030f8
2 changed files with 75 additions and 13 deletions

View File

@ -195,8 +195,8 @@ const formData = ref([
{ label: "线索编号", prop: "xsBh", type: "input" }, { label: "线索编号", prop: "xsBh", type: "input" },
{ label: "线索类型", prop: "xsLx", type: "select", options: D_GS_XS_LX }, { label: "线索类型", prop: "xsLx", type: "select", options: D_GS_XS_LX },
// { label: "线", prop: "xsly", type: "input" }, // { label: "线", prop: "xsly", type: "input" },
{ label: "线索开始日期", prop: "xsRqKs", type: "datetime" }, { label: "线索开始日期", prop: "xsRqKs", type: "date" },
{ label: "线索截止日期", prop: "xsRqJs", type: "datetime" }, { label: "线索截止日期", prop: "xsRqJs", type: "date" },
{ label: "指向地点", prop: "xsZxdd", type: "input" }, { label: "指向地点", prop: "xsZxdd", type: "input" },
{ label: "群体名称", prop: "xsQtmc", type: "input" }, { label: "群体名称", prop: "xsQtmc", type: "input" },
{ label: "群体类型", prop: "xsQtlx", type: "select", options: D_GS_ZDQT_LB }, { label: "群体类型", prop: "xsQtlx", type: "select", options: D_GS_ZDQT_LB },
@ -227,14 +227,23 @@ const init = (type, row) => {
dialogForm.value = true; dialogForm.value = true;
title.value = type == "add" ? "新增" : "编辑"; title.value = type == "add" ? "新增" : "编辑";
if (row) getDataById(row.id); if (row) getDataById(row.id);
if (row.sbRyId) getDataRyId(row.sbRyId);
}; };
// id // id
const getDataById = (id) => { const getDataById = (id) => {
// qcckGet({}, '/mosty-gsxt/tbGsxtBqgl/'+id).then((res) => { qcckGet({}, "/mosty-gsxt/tbGsxtXs/selectVoById/" + id).then((res) => {
// listQuery.value = res; listQuery.value = res;
// }); tableDate.bqList = listQuery.value.bqList;
});
}; };
// id
const getDataRyId = (id) => {
qcckGet({}, "/mosty-gsxt/tbGsxtJwry/" + id).then((res) => {
tableDate.ryList = [res];
listQuery.value.sbRyId = res.id;
});
};
// //
const submit = () => { const submit = () => {
elform.value.submit((data) => { elform.value.submit((data) => {
@ -295,6 +304,8 @@ const handleTagSelect = (selectedTags) => {
// //
const close = () => { const close = () => {
listQuery.value = {}; listQuery.value = {};
tableDate.bqList = [];
tableDate.ryList = [];
dialogForm.value = false; dialogForm.value = false;
loading.value = false; loading.value = false;
}; };

View File

@ -34,16 +34,35 @@
:controlsWidth="pageData.controlsWidth" :controlsWidth="pageData.controlsWidth"
@chooseData="chooseData" @chooseData="chooseData"
> >
<template #xsLy="{ row }">
<DictTag :tag="false" :value="row.xsLy" :options="D_GS_XS_LY" />
</template>
<template #xsFxdj="{ row }">
<DictTag :tag="false" :value="row.xsFxdj" :options="D_GS_XS_FXDJ" />
</template>
<template #xsQtlx="{ row }">
<DictTag :tag="false" :value="row.xsQtlx" :options="D_GS_ZDQT_LB" />
</template>
<template #xsZtCz="{ row }">
<DictTag :tag="false" :value="row.xsZtCz" :options="D_GS_XS_CZZT" />
</template>
<template #xsZt="{ row }">
<DictTag :tag="false" :value="row.xsZt" :options="D_GS_XS_ZT" />
</template>
<!-- 操作 --> <!-- 操作 -->
<template #controls="{ row }"> <template #controls="{ row }">
<el-link size="small" type="success" @click="addEdit('edit', row)" <el-link size="small" type="success" @click="addEdit('edit', row)"
>编辑</el-link >编辑</el-link
> >
<el-link size="small" type="primary">处置</el-link> <el-link size="small" type="primary">上报</el-link>
<el-link size="small" type="danger" @click="deleteRow(row)" <el-link size="small" type="danger" @click="deleteRow(row)"
>删除</el-link >删除</el-link
> >
<el-link size="small" type="warning" @click="transferClue(row)" <el-link
size="small"
type="warning"
@click="transferClue(row)"
v-if="row.xsZt == '01'"
>采纳</el-link >采纳</el-link
> >
</template> </template>
@ -60,6 +79,15 @@
</div> </div>
<!-- 详情 --> <!-- 详情 -->
<DetailForm ref="detailDiloag" @getList="getList" /> <DetailForm ref="detailDiloag" @getList="getList" />
<el-dialog v-model="dialogVisible" title="是否采纳" width="500px">
<span>是否采纳该条数据</span>
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogVisible = false">取消</el-button>
<el-button type="primary" @click="submitClue"> 确定 </el-button>
</div>
</template>
</el-dialog>
</div> </div>
</template> </template>
@ -84,7 +112,8 @@ const { D_GS_XS_LY, D_GS_XS_FXDJ, D_GS_ZDQT_LB, D_GS_XS_CZZT, D_GS_XS_ZT } =
const dialogTitle = ref("新增信息"); // const dialogTitle = ref("新增信息"); //
const detailDiloag = ref(); const detailDiloag = ref();
const searchBox = ref(); // const searchBox = ref(); //
const dialogVisible = ref(false);
const transferClueId = ref();
const searchConfiger = ref([ const searchConfiger = ref([
{ {
label: "线索名称", label: "线索名称",
@ -196,20 +225,24 @@ const pageData = reactive({
{ label: "线索编号", prop: "xsBh" }, { label: "线索编号", prop: "xsBh" },
{ label: "线索名称", prop: "xsMc" }, { label: "线索名称", prop: "xsMc" },
// { label: "线", prop: "xsQtlx", options: D_GS_ZDQT_LB }, // { label: "线", prop: "xsQtlx", options: D_GS_ZDQT_LB },
{ label: "线索来源", prop: "xsLy", options: D_GS_XS_LY }, { label: "线索来源", prop: "xsLy", showSolt: true },
{ label: "风险等级", prop: "xsFxdj", options: D_GS_XS_FXDJ }, { label: "风险等级", prop: "xsFxdj", showSolt: true },
{ label: "开始时间", prop: "startTime" }, { label: "开始时间", prop: "startTime" },
{ label: "结束时间", prop: "endTime" }, { label: "结束时间", prop: "endTime" },
{ label: "指向地点", prop: "xsZxdd" }, { label: "指向地点", prop: "xsZxdd" },
{ label: "线索内容", prop: "xsNr" }, { label: "线索内容", prop: "xsNr" },
{ label: "群体类型", prop: "xsQtlx", options: D_GS_ZDQT_LB }, { label: "群体类型", prop: "xsQtlx", showSolt: true },
{ label: "群体名称", prop: "xsQtmc" }, { label: "群体名称", prop: "xsQtmc" },
{ label: "上报单位", prop: "sbDwMc" }, { label: "上报单位", prop: "sbDwMc" },
{ label: "上报时间", prop: "sbSj" }, { label: "上报时间", prop: "sbSj" },
{ label: "涉及人数", prop: "xsSjrs" }, { label: "涉及人数", prop: "xsSjrs" },
{ label: "附件", prop: "xsFj" }, { label: "附件", prop: "xsFj" },
{ label: "处置状态", prop: "xsZtCz", options: D_GS_XS_CZZT }, {
{ label: "状态", prop: "xsZt", options: D_GS_XS_ZT } label: "处置状态",
prop: "xsZtCz",
showSolt: true
},
{ label: "状态", prop: "xsZt", showSolt: true }
] ]
}); });
@ -233,6 +266,24 @@ const onSearch = (val) => {
getList(); getList();
}; };
//
const transferClue = (row) => {
dialogVisible.value = true;
transferClueId.value = row.id;
};
const submitClue = () => {
dialogVisible.value = false;
qcckGet({}, "/mosty-gsxt/tbGsxtXs/adopt/" + transferClueId.value)
.then((res) => {
proxy.$message({ type: "success", message: "采纳成功" });
getList();
transferClueId.value = "";
})
.catch(() => {
transferClueId.value = "";
});
};
const changeNo = (val) => { const changeNo = (val) => {
pageData.pageConfiger.pageNum = val; pageData.pageConfiger.pageNum = val;
getList(); getList();