交办、整改责任人修改

This commit is contained in:
王利强
2026-06-30 09:47:10 +08:00
parent d4897284e8
commit 455fd4fc07
638 changed files with 5153 additions and 2572 deletions

View File

@@ -80,7 +80,7 @@ const _sfc_main = {
return;
}
common_vendor.index.navigateTo({
url: `/pages/hiddendanger/view?hazardId=${item.hazardId}`
url: `/pages/hiddendanger/detail2?hazardId=${item.hazardId}&assignId=${item.assignId || ""}`
});
};
common_vendor.computed(() => {
@@ -147,13 +147,16 @@ const _sfc_main = {
}
if (item.result === 2 && item.hazardName) {
const sourceIndex = components_hazard_hazardForm.SOURCE_OPTIONS.findIndex((o) => o.title === item.source);
const hazardSourceCode = item.hazardSourceCode ?? (item.hazardSource != null && item.hazardSource !== "" && !Number.isNaN(Number(item.hazardSource)) ? Number(item.hazardSource) : null);
answer.hazardPayload = {
...components_hazard_hazardForm.createEmptyHazardPayload(),
formData: {
...components_hazard_hazardForm.createEmptyHazardPayload().formData,
title: item.hazardName || "",
description: item.hazardDesc || "",
source: sourceIndex >= 0 ? sourceIndex : 0
source: sourceIndex >= 0 ? sourceIndex : 0,
hazardSourceCode,
hazardSourceName: item.hazardSourceName || ""
},
address: item.hazardAddress || ""
};
@@ -430,7 +433,7 @@ const _sfc_main = {
}
} catch (error) {
common_vendor.index.hideLoading();
common_vendor.index.__f__("error", "at pages/Inspectionresult/detail.vue:730", "提交失败:", error);
common_vendor.index.__f__("error", "at pages/Inspectionresult/detail.vue:745", "提交失败:", error);
common_vendor.index.showToast({ title: "提交失败", icon: "none" });
}
};
@@ -454,7 +457,7 @@ const _sfc_main = {
common_vendor.index.showToast({ title: res.msg || "获取检查项失败", icon: "none" });
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/Inspectionresult/detail.vue:754", "获取检查项失败:", error);
common_vendor.index.__f__("error", "at pages/Inspectionresult/detail.vue:769", "获取检查项失败:", error);
common_vendor.index.showToast({ title: "获取检查项失败", icon: "none" });
} finally {
loading.value = false;
@@ -523,19 +526,23 @@ const _sfc_main = {
}, item.source ? {
o: common_vendor.t(item.source)
} : {}, {
p: item.hazardAddress
}, item.hazardAddress ? {
q: common_vendor.t(item.hazardAddress)
p: item.hazardSource
}, item.hazardSource ? {
q: common_vendor.t(item.hazardSource)
} : {}, {
r: item.hazardDesc
r: item.hazardAddress
}, item.hazardAddress ? {
s: common_vendor.t(item.hazardAddress)
} : {}, {
t: item.hazardDesc
}, item.hazardDesc ? {
s: common_vendor.t(item.hazardDesc)
v: common_vendor.t(item.hazardDesc)
} : {}) : {}, {
t: item.result === 2 && item.hazardId
w: item.result === 2 && item.hazardId
}, item.result === 2 && item.hazardId ? {
v: common_vendor.o(($event) => viewHazardDetail(item), "check-item-" + index)
x: common_vendor.o(($event) => viewHazardDetail(item), "check-item-" + index)
} : {}) : common_vendor.e({
w: common_vendor.f(resultOptions, (opt, optIndex, i1) => {
y: common_vendor.f(resultOptions, (opt, optIndex, i1) => {
return {
a: optIndex,
b: "1b3bf21b-2-" + i0 + "-" + i1 + "," + ("1b3bf21b-1-" + i0),
@@ -549,44 +556,45 @@ const _sfc_main = {
})
};
}),
x: common_vendor.o((label) => onResultChange(index, label), "check-item-" + index),
y: "1b3bf21b-1-" + i0,
z: common_vendor.o(($event) => answerList.value[index].resultLabel = $event, "check-item-" + index),
A: common_vendor.p({
z: common_vendor.o((label) => onResultChange(index, label), "check-item-" + index),
A: "1b3bf21b-1-" + i0,
B: common_vendor.o(($event) => answerList.value[index].resultLabel = $event, "check-item-" + index),
C: common_vendor.p({
placement: "row",
modelValue: answerList.value[index].resultLabel
}),
B: answerList.value[index].resultLabel === "异常"
D: answerList.value[index].resultLabel === "异常"
}, answerList.value[index].resultLabel === "异常" ? common_vendor.e({
C: !hasHazardData(index)
E: !hasHazardData(index)
}, !hasHazardData(index) ? {
D: common_vendor.o(($event) => openHazardPopup(index), "check-item-" + index)
F: common_vendor.o(($event) => openHazardPopup(index), "check-item-" + index)
} : common_vendor.e({
E: common_vendor.t(answerList.value[index].hazardPayload.formData.title),
F: common_vendor.t((_a = common_vendor.unref(components_hazard_hazardForm.LEVEL_OPTIONS)[answerList.value[index].hazardPayload.formData.level]) == null ? void 0 : _a.title),
G: answerList.value[index].hazardPayload.formData.level === 0 ? 1 : "",
H: answerList.value[index].hazardPayload.formData.level === 1 ? 1 : "",
I: answerList.value[index].hazardPayload.formData.level === 2 ? 1 : "",
J: common_vendor.t(((_b = common_vendor.unref(components_hazard_hazardForm.SOURCE_OPTIONS)[answerList.value[index].hazardPayload.formData.source]) == null ? void 0 : _b.title) || "-"),
K: common_vendor.t(answerList.value[index].hazardPayload.address || "-"),
L: common_vendor.t(answerList.value[index].hazardPayload.formData.description || "-"),
M: answerList.value[index].hazardPayload.fileList.length > 0
G: common_vendor.t(answerList.value[index].hazardPayload.formData.title),
H: common_vendor.t((_a = common_vendor.unref(components_hazard_hazardForm.LEVEL_OPTIONS)[answerList.value[index].hazardPayload.formData.level]) == null ? void 0 : _a.title),
I: answerList.value[index].hazardPayload.formData.level === 0 ? 1 : "",
J: answerList.value[index].hazardPayload.formData.level === 1 ? 1 : "",
K: answerList.value[index].hazardPayload.formData.level === 2 ? 1 : "",
L: common_vendor.t(((_b = common_vendor.unref(components_hazard_hazardForm.SOURCE_OPTIONS)[answerList.value[index].hazardPayload.formData.source]) == null ? void 0 : _b.title) || "-"),
M: common_vendor.t(answerList.value[index].hazardPayload.formData.hazardSourceName || "-"),
N: common_vendor.t(answerList.value[index].hazardPayload.address || "-"),
O: common_vendor.t(answerList.value[index].hazardPayload.formData.description || "-"),
P: answerList.value[index].hazardPayload.fileList.length > 0
}, answerList.value[index].hazardPayload.fileList.length > 0 ? {
N: common_vendor.t(answerList.value[index].hazardPayload.fileList.length)
Q: common_vendor.t(answerList.value[index].hazardPayload.fileList.length)
} : {}, {
O: common_vendor.o(($event) => openHazardPopup(index), "check-item-" + index),
P: common_vendor.o(($event) => clearHazard(index), "check-item-" + index)
R: common_vendor.o(($event) => openHazardPopup(index), "check-item-" + index),
S: common_vendor.o(($event) => clearHazard(index), "check-item-" + index)
})) : {}, {
Q: "1b3bf21b-3-" + i0,
R: common_vendor.o(($event) => answerList.value[index].remark = $event, "check-item-" + index),
S: common_vendor.p({
T: "1b3bf21b-3-" + i0,
U: common_vendor.o(($event) => answerList.value[index].remark = $event, "check-item-" + index),
V: common_vendor.p({
placeholder: "请输入备注信息",
modelValue: answerList.value[index].remark
})
}), {
T: "check-item-" + index,
U: "check-item-" + index,
V: isItemSubmitted(item) ? 1 : ""
W: "check-item-" + index,
X: "check-item-" + index,
Y: isItemSubmitted(item) ? 1 : ""
});
}),
m: pendingSubmitCount.value > 0