This commit is contained in:
2026-04-21 17:00:48 +08:00
parent 571e149313
commit aa1af80bdf
3 changed files with 51 additions and 5 deletions

View File

@ -629,7 +629,7 @@ const submit = () => {
bklx = "02";
}
let params = { ...listQuery.value, bklx: bklx };
params.bkfj = params.bkfj ? params.bkfj.join(",") : "";
params.bkfj = params.bkfj ? JSON.stringify(params.bkfj) : "";
params.bkdxList = params.bkdxList ? params.bkdxList : [];
params.bkdxList.forEach((item) => {
if (Array.isArray(item.fjZp)) {
@ -769,7 +769,18 @@ const changeXzqh = (val) => {
// 根据id获取详情
const getDataById = (id) => {
qcckGet({}, "/mosty-gsxt/tbGsxtBk/selectVoById/" + id).then((res) => {
res.bkfj = res.ossList || [];
// 兼容处理:优先使用 ossList为空则解析 bkfj JSON 字符串
if (res.ossList && res.ossList.length > 0) {
res.bkfj = res.ossList;
} else if (res.bkfj) {
try {
res.bkfj = JSON.parse(res.bkfj);
} catch (e) {
res.bkfj = [];
}
} else {
res.bkfj = [];
}
listQuery.value = res || {};
dataOrge.value = res;
if (res.bkqyList) {