feat: update report detail and verification flow
This commit is contained in:
@@ -1790,7 +1790,7 @@ export const adminApi = {
|
||||
};
|
||||
}>;
|
||||
},
|
||||
saveZhongjianAppraisalReport(data: { id: number; zhongjian_report_no: string; report_files: AdminFileAsset[]; qr_input: string }) {
|
||||
saveZhongjianAppraisalReport(data: Record<string, unknown>) {
|
||||
return request.post("/api/admin/appraisal-task/zhongjian-report/save", data) as Promise<{
|
||||
code: number;
|
||||
message: string;
|
||||
|
||||
@@ -862,6 +862,20 @@ async function submitZhongjianReport() {
|
||||
ElMessage.warning("请填写中检报告编号");
|
||||
return;
|
||||
}
|
||||
if (!resultForm.result_text.trim()) {
|
||||
ElMessage.warning("请填写鉴定结论");
|
||||
activeWorkTab.value = "result";
|
||||
return;
|
||||
}
|
||||
if (!hasProductFormValue()) {
|
||||
ElMessage.warning("提交前请先完善物品信息");
|
||||
activeWorkTab.value = "result";
|
||||
return;
|
||||
}
|
||||
if (!validateRequiredKeyPoints()) {
|
||||
activeWorkTab.value = "result";
|
||||
return;
|
||||
}
|
||||
if (!zhongjianReportFiles.value.length) {
|
||||
ElMessage.warning("请至少上传 1 个中检报告文件");
|
||||
return;
|
||||
@@ -876,6 +890,11 @@ async function submitZhongjianReport() {
|
||||
const response = await adminApi.saveZhongjianAppraisalReport({
|
||||
id: detail.value.task_info.id,
|
||||
zhongjian_report_no: zhongjianReportNo.value.trim(),
|
||||
product_info: normalizedProductForm(),
|
||||
result_text: resultForm.result_text.trim(),
|
||||
result_desc: resultForm.result_desc.trim(),
|
||||
attachments: resultAttachments.value,
|
||||
key_points: normalizedKeyPoints(),
|
||||
report_files: zhongjianReportFiles.value,
|
||||
qr_input: qrInput,
|
||||
});
|
||||
@@ -1651,7 +1670,7 @@ onMounted(async () => {
|
||||
<el-tab-pane v-if="isZhongjianTask" label="中检报告录入" name="zhongjian">
|
||||
<div :key="`zhongjian-${formRenderKey}`" class="task-form-stack">
|
||||
<el-alert
|
||||
title="提交中检报告编号和文件后,需要扫描平台验真吊牌;绑定成功后才会发布报告。"
|
||||
title="请先在“填写结论”中补全物品信息、鉴定结论和模板项,再提交中检报告编号和文件;绑定吊牌成功后才会发布报告。"
|
||||
type="info"
|
||||
:closable="false"
|
||||
show-icon
|
||||
|
||||
Reference in New Issue
Block a user