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