功能调整
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user