From 2d57b60f32d575538f081d96254fd287f29f7a8f Mon Sep 17 00:00:00 2001 From: 刘淇 <290219706@qq.com> Date: Thu, 15 Oct 2026 13:49:55 +0800 Subject: [PATCH] 巡查详情 --- pages-sub/daily/maintain-manage/finish-plan-detail.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) diff --git a/pages-sub/daily/maintain-manage/finish-plan-detail.vue b/pages-sub/daily/maintain-manage/finish-plan-detail.vue index 4630c9f..a0ce804 100644 --- a/pages-sub/daily/maintain-manage/finish-plan-detail.vue +++ b/pages-sub/daily/maintain-manage/finish-plan-detail.vue @@ -377,6 +377,20 @@ const parseGeo = (source, ext) => { */ const buildFieldRow = (item) => { const row = { name: item.fieldName || item.fieldCode || '-', kind: 'text', text: '-', tags: [], images: [], files: [], geo: null }; + + // ==========【新增修复代码】优先使用后端返回的text快照,解决ce_shi_4 / wu_liao不展示问题========== + if (item.text != null && String(item.text).trim() !== '') { + row.text = String(item.text).trim(); + // 注意:图片/多选/布尔等类型,不能直接用item.text,要保留原有解析逻辑,所以只对普通文本类型生效 + // 判断:不是新渲染类型、不是物料,才直接用快照文本 + const isNewType = NEW_RENDER_TYPES.includes(item.fieldType); + const isMaterial = item.materialId != null; + if (!isNewType && !isMaterial) { + return row; + } + } + // ========================================================================================= + const raw = rawTextOf(item); // ① 物料:优先级最高,即便凑巧带 multiple=1 也不当多值渲染 if (item.materialId != null || item.fieldType == null) { @@ -464,6 +478,7 @@ const buildFieldRow = (item) => { return row; }; + /** 8 附件:下载后由系统应用打开(微信小程序无通用文件预览,失败给出提示) */ const openFile = (file) => { uni.showLoading({title: '正在打开...', mask: true}); -- libgit2 0.21.4