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 @@
实名认证照片(身份证人像面、国徽面、免冠照片)
上传资料(检查报告单、出院诊断证明书)
签字材料(收入声明、信息同意书、声明与承诺等)
+ 送检信息附件(送检单照片)