This commit is contained in:
2026-07-06 16:46:07 +08:00
parent ae914b5c24
commit 21d11697a0
8 changed files with 899 additions and 1378 deletions
+62 -19
View File
@@ -12,7 +12,7 @@
<!-- 有记录 -->
<template v-else>
<view class="anti-record__section">
<view class="anti-record__section" :style="{ ...props.customStyle }">
<view class="anti-record__header">
<view class="anti-record__bar"></view>
<text class="anti-record__title">防腐记录</text>
@@ -39,6 +39,18 @@
<text class="anti-record__label">漆膜厚度</text>
<text class="anti-record__value">{{ latest.FilmThickness || '--' }}</text>
</view>
<view class="anti-record__row">
<text class="anti-record__label">喷砂情况</text>
<view class="anti-record__value">
{{ latest.SandBlasting || '--' }}
</view>
</view>
<view class="anti-record__row">
<text class="anti-record__label">除锈喷砂情况</text>
<view class="anti-record__value">
{{ latest.RustSandBlasting || '--' }}
</view>
</view>
<view class="anti-record__row">
<text class="anti-record__label">检查人</text>
<text class="anti-record__value">{{ latest.CheckPersonName || '--' }}</text>
@@ -56,15 +68,21 @@
<text class="anti-record__tag-text">{{ latest.CheckResult || '--' }}</text>
</view>
</view>
<view class="anti-record__row anti-record__row--stack">
<text class="anti-record__label--stack">不合格原因</text>
<text class="anti-record__value anti-record__value--stack">{{ latest.UnqualifiedReason }}</text>
<view class="anti-record__row" v-if="latest.CheckResult !== '合格'">
<view class="anti-record__label">不合格原因</view>
<text class="anti-record__value">{{ latest.UnqualifiedReason }}</text>
</view>
<view class="anti-record__row anti-record__row--stack">
<text class="anti-record__label--stack">整改要求</text>
<text class="anti-record__value anti-record__value--stack">{{ latest.RectifyRequirement
<view class="anti-record__row" v-if="latest.CheckResult !== '合格'">
<view class="anti-record__label">整改要求</view>
<text class="anti-record__value">{{ latest.RectifyRequirement
}}</text>
</view>
<view class="anti-record__row--stack">
<text class="anti-record__label--stack">照片</text>
<view class="anti-record__value--stack">
<nbd-photo-view :attachUrl="latest.AttachUrl1" :cols="4" />
</view>
</view>
</view>
</view>
@@ -95,6 +113,18 @@
<text class="anti-record__label">漆膜厚度</text>
<text class="anti-record__value">{{ item.FilmThickness || '--' }}</text>
</view>
<view class="anti-record__row">
<text class="anti-record__label">喷砂情况</text>
<view class="anti-record__value">
{{ item.SandBlasting || '--' }}
</view>
</view>
<view class="anti-record__row">
<text class="anti-record__label">除锈喷砂情况</text>
<view class="anti-record__value">
{{ item.RustSandBlasting || '--' }}
</view>
</view>
<view class="anti-record__row">
<text class="anti-record__label">检查人</text>
<text class="anti-record__value">{{ item.CheckPersonName || '--' }}</text>
@@ -109,19 +139,25 @@
:class="item.CheckResult === '合格' ? 'anti-record__tag--pass' : 'anti-record__tag--fail'">
<text class="anti-record__tag-icon">{{ item.CheckResult === '合格' ? '\u2713' :
'\u2717'
}}</text>
}}</text>
<text class="anti-record__tag-text">{{ item.CheckResult || '--' }}</text>
</view>
</view>
<view class="anti-record__row anti-record__row--stack" v-if="item.CheckResult === '不合格'">
<text class="anti-record__label--stack">不合格原因</text>
<text class="anti-record__value anti-record__value--stack">{{ item.UnqualifiedReason
}}</text>
<view class="anti-record__row" v-if="item.CheckResult === '不合格'">
<text class="anti-record__label">不合格原因</text>
<view class="anti-record__value">{{ item.UnqualifiedReason
}}</view>
</view>
<view class="anti-record__row anti-record__row--stack" v-if="item.CheckResult === '不合格'">
<text class="anti-record__label--stack">整改要求</text>
<text class="anti-record__value anti-record__value--stack">{{ item.RectifyRequirement
}}</text>
<view class="anti-record__row" v-if="item.CheckResult === '不合格'">
<text class="anti-record__label">整改要求</text>
<view class="anti-record__value-">{{ item.RectifyRequirement
}}</view>
</view>
<view class="anti-record__row--stack">
<text class="anti-record__label--stack">照片</text>
<view class="anti-record__value--stack">
<nbd-photo-view :attachUrl="item.AttachUrl1" :cols="4" />
</view>
</view>
</view>
</scroll-view>
@@ -136,7 +172,8 @@ import { ref, computed, watch } from 'vue'
import { reqGetAntiCorrosionCheck } from '@/api/hj.js'
const props = defineProps({
params: { type: Object, default: () => ({}) }
params: { type: Object, default: () => ({}) },
customStyle: { type: Object, default: () => ({}) },
})
const list = ref([])
@@ -146,9 +183,11 @@ const showPopup = ref(false)
const latest = computed(() => list.value[0] || null)
const fetchRecords = async () => {
const { materialCode, projectId } = props.params
if (!materialCode || !projectId) return
loading.value = true
try {
const res = await reqGetAntiCorrosionCheck(props.params)
if (res.code === 1 && res.data) {
@@ -261,6 +300,7 @@ $text-secondary: #8e99a4;
}
&--stack {
flex-direction: column;
align-items: flex-start;
.anti-record__value {
@@ -275,7 +315,7 @@ $text-secondary: #8e99a4;
color: $text-secondary;
flex-shrink: 0;
margin-right: 24rpx;
width: 140rpx;
width: 160rpx;
&--stack {
font-size: 26rpx;
@@ -295,6 +335,9 @@ $text-secondary: #8e99a4;
&--stack {
font-size: 24rpx;
padding-left: 20rpx;
padding-bottom: 8rpx;
padding-top: 8rpx;
}
}
@@ -355,7 +398,7 @@ $text-secondary: #8e99a4;
&__popup {
width: 100%;
height: 70vh;
height: 80vh;
background: #fff;
border-radius: 24rpx 24rpx 0 0;
display: flex;