This commit is contained in:
2026-07-02 19:36:49 +08:00
parent bc80e297d5
commit cc4b55ed8e
13 changed files with 1327 additions and 93 deletions
+4 -82
View File
@@ -90,20 +90,8 @@
<text class="check-item__label">材料编码及炉批号校验</text>
<text class="check-item__desc">核对实物编码与批次信息</text>
</view>
<view class="check-item__action" @click="toggleCheck('CodeBatch')">
<view class="check-btn" :class="{
'check-btn--pass': check.CodeBatch === true,
'check-btn--fail': check.CodeBatch === false
}">
<template v-if="check.CodeBatch === true">
<text class="check-btn__icon">&#10003;</text>
<text class="check-btn__text">通过</text>
</template>
<template v-else>
<text class="check-btn__icon">&#10007;</text>
<text class="check-btn__text">不通过</text>
</template>
</view>
<view class="check-item__action">
<nbd-check-btn v-model="check.CodeBatch" :passKey="true" :failKey="false" passText="通过" failText="不通过" />
</view>
</view>
<view class="check-item">
@@ -111,20 +99,8 @@
<text class="check-item__label">材料数量校验</text>
<text class="check-item__desc">核对实物数量与单据一致</text>
</view>
<view class="check-item__action" @click="toggleCheck('Quantity')">
<view class="check-btn" :class="{
'check-btn--pass': check.Quantity === true,
'check-btn--fail': check.Quantity === false
}">
<template v-if="check.Quantity === true">
<text class="check-btn__icon">&#10003;</text>
<text class="check-btn__text">通过</text>
</template>
<template v-else>
<text class="check-btn__icon">&#10007;</text>
<text class="check-btn__text">不通过</text>
</template>
</view>
<view class="check-item__action">
<nbd-check-btn v-model="check.Quantity" :passKey="true" :failKey="false" passText="通过" failText="不通过" />
</view>
</view>
</view>
@@ -192,11 +168,6 @@
// 照片组件引用
const photoRef = ref(null)
const toggleCheck = (key) => {
const val = check.value[key]
check.value[key] = val === true ? false : true
}
const handleSubmit = () => {
uni.showModal({
title: '确认提交',
@@ -581,55 +552,6 @@
}
}
.check-btn {
display: inline-flex;
align-items: center;
gap: 8rpx;
padding: 12rpx 24rpx;
border-radius: 12rpx;
transition: all 0.25s ease;
min-width: 120rpx;
justify-content: center;
&--pass {
background: #ebf9f0;
border: 1rpx solid #b7ebc6;
.check-btn__icon {
font-size: 26rpx;
color: #22c55e;
font-weight: 700;
}
.check-btn__text {
font-size: 24rpx;
color: #16a34a;
font-weight: 600;
}
}
&--fail {
background: #fef2f2;
border: 1rpx solid #fecaca;
.check-btn__icon {
font-size: 26rpx;
color: #ef4444;
font-weight: 700;
}
.check-btn__text {
font-size: 24rpx;
color: #dc2626;
font-weight: 600;
}
}
&:active {
transform: scale(0.96);
}
}
// ===== 提交栏(悬浮底部) =====
.submit-bar {
position: fixed;