功能调整

This commit is contained in:
huhao
2026-08-18 18:05:16 +08:00
parent b342fb971b
commit 47559d6ed2
17 changed files with 2677 additions and 246 deletions
+17
View File
@@ -28,6 +28,10 @@
</text>
</view>
</view>
<view v-for="field in extraFields" :key="field.key" class="history-card__row">
<text class="history-card__label">{{ field.label }}</text>
<text class="history-card__value">{{ latest[field.key] || '--' }}</text>
</view>
<view class="history-card__row">
<text class="history-card__label">检测人</text>
<text class="history-card__value">{{ latest.CheckPersonName || '--' }}</text>
@@ -71,6 +75,10 @@
</text>
</view>
</view>
<view v-for="field in extraFields" :key="field.key" class="history-card__row">
<text class="history-card__label">{{ field.label }}</text>
<text class="history-card__value">{{ item[field.key] || '--' }}</text>
</view>
<view class="history-card__row">
<text class="history-card__label">检测人</text>
<text class="history-card__value">{{ item.CheckPersonName || '--' }}</text>
@@ -117,6 +125,15 @@
const showPopup = ref(false)
const latest = computed(() => props.list[0] || null)
const extraFields = [
{ label: '焊缝余高', key: 'WeldReinforcement' },
{ label: '焊缝高度', key: 'WeldHeight' },
{ label: '焊缝宽度', key: 'WeldWidth' },
{ label: '表面缺陷', key: 'SurfaceDefect' },
{ label: '预热温度', key: 'PreheatTemperature' },
{ label: '层间温度', key: 'InterpassTemperature' },
]
const isPass = (item) => item?.IsQualified === true
const qualifiedText = (item) => {