From 4feb95a8e537f9e78977b4698ef86b8271230a0f Mon Sep 17 00:00:00 2001 From: leiyun Date: Thu, 4 Jun 2026 15:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=99=84=E4=BB=B6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=80=81=E6=A3=80=E4=BF=A1=E6=81=AF=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/admin/export_task.js | 2 +- src/service/export.js | 13 +++++++++++++ view/admin/patient_index.html | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/controller/admin/export_task.js b/src/controller/admin/export_task.js index 0ce0d66..dfc0425 100644 --- a/src/controller/admin/export_task.js +++ b/src/controller/admin/export_task.js @@ -82,7 +82,7 @@ module.exports = class extends Base { const taskNo = model.generateTaskNo(); // 构建标题 - const typeLabels = { id_photos: '实名认证照片', documents: '上传资料', signs: '签字材料' }; + const typeLabels = { id_photos: '实名认证照片', documents: '上传资料', signs: '签字材料', sample_photos: '送检信息附件' }; const title = file_types.map(t => typeLabels[t] || t).join('、'); const id = await model.add({ diff --git a/src/service/export.js b/src/service/export.js index fb4e781..c6db16a 100644 --- a/src/service/export.js +++ b/src/service/export.js @@ -240,6 +240,19 @@ module.exports = class extends think.Service { } } + // 送检信息附件(送检单照片) + if (fileTypes.includes('sample_photos')) { + let samplePhotos = []; + try { + samplePhotos = Array.isArray(p.sample_photos) ? p.sample_photos : JSON.parse(p.sample_photos || '[]'); + } catch (e) { /* ignore */ } + samplePhotos.forEach((url, idx) => { + if (url) { + files.push({ name: `送检单照片_${idx + 1}${this._getExt(url)}`, url }); + } + }); + } + if (files.length) { list.push({ folder, files }); } diff --git a/view/admin/patient_index.html b/view/admin/patient_index.html index 47bd9ab..5be1cb8 100644 --- a/view/admin/patient_index.html +++ b/view/admin/patient_index.html @@ -301,6 +301,7 @@ 实名认证照片(身份证人像面、国徽面、免冠照片) 上传资料(检查报告单、出院诊断证明书) 签字材料(收入声明、信息同意书、声明与承诺等) + 送检信息附件(送检单照片)