修改复核模块的包材

This commit is contained in:
zm2000 2026-06-22 15:29:16 +08:00
parent 4747c2d1e7
commit 4f09cb6141
2 changed files with 40 additions and 0 deletions

View File

@ -123,6 +123,12 @@
</view>
</view>
</view>
<!-- 推荐包材提示 -->
<view v-if="detailInfo.suggestedPkg" class="package-info-hint">
<text class="package-info-label">推荐包材:</text>
<text class="package-info-value">{{ detailInfo.suggestedPkg.name }}({{ detailInfo.suggestedPkg.code }})</text>
<text class="package-info-spec">{{ detailInfo.suggestedPkg.spec }}</text>
</view>
<view class="safe-area-bottom"></view>
</view>
</view>
@ -185,6 +191,10 @@ import voice from '@/core/utils/voice';
printStationName: '',
boxNo: ''
})
},
scannedPackageMaterial: {
type: Object,
default: null
}
},
data() {
@ -949,4 +959,33 @@ import voice from '@/core/utils/voice';
.safe-area-bottom {
height: calc(30rpx + env(safe-area-inset-bottom));
}
.package-info-hint {
flex-shrink: 0;
padding: 10rpx 24rpx;
background: #fffbe6;
border-top: 1rpx solid #f0e6b8;
border-bottom: 1rpx solid #f0e6b8;
display: flex;
align-items: center;
gap: 6rpx;
line-height: 1.4;
}
.package-info-label {
font-size: 30rpx;
color: #909399;
flex-shrink: 0;
}
.package-info-value {
font-size: 30rpx;
color: #2979ff;
font-weight: 500;
}
.package-info-spec {
font-size: 30rpx;
color: #c0c4cc;
}
</style>

View File

@ -43,6 +43,7 @@
:detailInfo="detailInfo"
:scanQty="scanQuantity"
:autoShip="autoShip"
:scannedPackageMaterial="scannedPackageMaterial"
@updateScannedQty="handleUpdateScannedQty"
@allScanned="handleDetailAllScanned"
@resetScanQty="handleResetScanQty"