From 21d11697a02884b829a6a40728771eba3819a82e Mon Sep 17 00:00:00 2001 From: Zones <765289303@qq.com> Date: Mon, 6 Jul 2026 16:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/hj.js | 6 +- assets/css/page.scss | 97 +++ components/barcodePrint.vue | 673 ------------------ components/nbd-anti-record.vue | 81 ++- components/nbd-photo-view.vue | 85 +++ scanpages/hj/do_anti_rust.vue | 71 +- scanpages/hj/material_sampling.vue | 1023 ++++++++++++++-------------- utils/request.js | 241 +++---- 8 files changed, 899 insertions(+), 1378 deletions(-) delete mode 100644 components/barcodePrint.vue create mode 100644 components/nbd-photo-view.vue diff --git a/api/hj.js b/api/hj.js index cc7e706..69855fc 100644 --- a/api/hj.js +++ b/api/hj.js @@ -181,8 +181,10 @@ export const reqSaveAntiCorrosionCheck = (data={})=>post(`/AntiCorrosionCheck/Sa /** * 获取防腐填报记录 - * @param {String} materialCode + * @param {Object} params - { materialCode, projectId } */ -export const reqGetAntiCorrosionCheck = (params) => get(`/AntiCorrosionCheck/GetRecordsByMaterialCode?materialCode=${params.materialCode}&projectId=${params.projectId}`) +export const reqGetAntiCorrosionCheck = (params = {}) => { + return get('/AntiCorrosionCheck/GetRecordsByMaterialCode', params) +} diff --git a/assets/css/page.scss b/assets/css/page.scss index aef8ab6..3fbcb1f 100644 --- a/assets/css/page.scss +++ b/assets/css/page.scss @@ -1667,3 +1667,100 @@ } } } + +// ===== 详情页区块与卡片通用样式(do_anti_rust / 焊口详情页等)===== +.section { + margin: 0 24rpx 20rpx; + + &__header { + display: flex; + align-items: center; + gap: 12rpx; + margin-bottom: 14rpx; + padding: 0 6rpx; + } + + &__bar { + width: 6rpx; + height: 26rpx; + background: #2979ff; + border-radius: 3rpx; + flex-shrink: 0; + } + + &__title { + font-size: 28rpx; + font-weight: 600; + color: #0f1724; + letter-spacing: 0.5rpx; + } +} + +.card { + background: #fff; + border-radius: 16rpx; + overflow: hidden; + box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06); + + &__row { + display: flex; + align-items: center; + padding: 22rpx 28rpx; + border-bottom: 1rpx solid #e8ecf1; + + &:last-child { + border-bottom: none; + } + + &--stack { + flex-direction: column; + align-items: flex-start; + .card__label { + margin-bottom: 8rpx; + } + .card__value-wrap { + width: 100%; + justify-content: flex-start; + } + } + } + + &__label { + width: 180rpx; + font-size: 26rpx; + color: #6b7c93; + flex-shrink: 0; + } + + &__value { + flex: 1; + font-size: 28rpx; + color: #0f1724; + text-align: left; + } + + &__value-wrap { + flex: 1; + display: flex; + align-items: center; + gap: 8rpx; + } + + &__unit { + font-size: 24rpx; + color: #6b7c93; + flex-shrink: 0; + } + + &__input { + flex: 1; + font-size: 28rpx; + color: #0f1724; + text-align: left; + height: 48rpx; + + &::placeholder { + color: #b0bec5; + } + } +} diff --git a/components/barcodePrint.vue b/components/barcodePrint.vue deleted file mode 100644 index ada883a..0000000 --- a/components/barcodePrint.vue +++ /dev/null @@ -1,673 +0,0 @@ - - - - - \ No newline at end of file diff --git a/components/nbd-anti-record.vue b/components/nbd-anti-record.vue index f2fa81f..a13a2cd 100644 --- a/components/nbd-anti-record.vue +++ b/components/nbd-anti-record.vue @@ -12,7 +12,7 @@