feat(仓储): 优化随机入库列表与上架作业页面样式与交互

random-storage.vue(入库单列表页)
- 搜索框启用搜索按钮,移除「默认仅显示待审核」提示与汇总栏
- 放大卡片字号:单号38rpx、元信息/创建时间34rpx、详情行36rpx,单号加粗改为 bold
- 状态标签36rpx、收货单徽标34rpx,标签列加宽且不换行
- 修复旧真机 flex gap 不生效:面板/卡片间距改用显式 margin

random-storage-shelf.vue(上架作业页)
- 搜索框新增搜索按钮;已入/总数面板与搜索框合并,并与顶部标题栏连成一体
- 商品多条码支持展开/收起(>2 默认显示前2条),条码分隔符改为顿号
- 提示弹窗改为自定义弹窗(参考完成盘点弹窗样式),退出/取消入库确认按钮为红色
- 更多操作、设置、容器列表、入库进度、明细信息等弹窗样式统一优化(顶部圆角、右上角关闭图标、字号统一)
- 底部商品序号格改用 scroll-view 滚动,并加显式高度兜底,兼容旧真机
- 加粗样式由 font-weight:600 统一改为 bold;全面修复旧真机 flex gap 不生效的间隔问题
This commit is contained in:
zm2000 2026-11-16 17:59:29 +08:00
parent d8437120bc
commit 1469179ff2
2 changed files with 516 additions and 204 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
<SearchBar
v-model="searchKeyword"
placeholder="扫描/输入入库单号、采购单号、供应商..."
:show-search="false"
:show-search="true"
:input-font-size="'34rpx'"
:search-text-font-size="'34rpx'"
@search="handleSearch"
@ -16,15 +16,6 @@
@scan="handleScan"
></SearchBar>
</view>
<view class="search-hint">
<text class="search-hint__text">默认仅显示待审核入库单(PENDING)</text>
</view>
</view>
<view class="summary-bar">
<text class="summary-bar__text">共 {{ totalItems }} 单</text>
<text class="summary-bar__page">第 {{ currentPage }} / {{ totalPages || 1 }} 页</text>
<text v-if="searchKeyword" class="summary-bar__keyword">当前关键词:{{ searchKeyword }}</text>
</view>
<scroll-view class="list-content" scroll-y>
@ -407,39 +398,11 @@ export default {
gap: 10rpx;
}
.search-hint {
margin-top: 12rpx;
}
.search-hint__text {
font-size: 24rpx;
color: #909399;
}
.summary-bar {
padding: 16rpx 24rpx 12rpx;
display: flex;
align-items: center;
gap: 16rpx;
font-size: 24rpx;
color: #606266;
}
.summary-bar__page {
color: #2979ff;
}
.summary-bar__keyword {
color: #2979ff;
flex: 1;
min-width: 0;
}
.list-content {
flex: 1;
height: 0;
min-height: 0;
padding: 0 24rpx;
padding: 20rpx 24rpx 0;
box-sizing: border-box;
}
@ -468,10 +431,13 @@ export default {
.entry-items {
display: flex;
flex-direction: column;
gap: 20rpx;
padding-bottom: 24rpx;
}
.entry-items .entry-card + .entry-card {
margin-top: 20rpx;
}
.entry-card {
background: #ffffff;
border-radius: 18rpx;
@ -487,51 +453,60 @@ export default {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
::v-deep .u-tag__text {
font-size: 36rpx;
line-height: 36rpx;
}
}
.entry-card__code {
font-size: 32rpx;
font-weight: 600;
font-size: 38rpx;
font-weight: bold;
color: #303133;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.entry-card__body {
margin-top: 18rpx;
display: flex;
flex-direction: column;
gap: 12rpx;
}
.entry-card__body .entry-card__row + .entry-card__row {
margin-top: 12rpx;
}
.entry-card__meta {
margin-top: 10rpx;
display: flex;
align-items: center;
gap: 20rpx;
}
.entry-card__meta-text {
font-size: 24rpx;
font-size: 34rpx;
color: #909399;
}
.entry-card__meta-text + .entry-card__meta-text {
margin-left: 20rpx;
}
.entry-card__row {
display: flex;
align-items: flex-start;
gap: 12rpx;
font-size: 26rpx;
font-size: 36rpx;
line-height: 1.5;
}
.entry-card__label {
width: 120rpx;
width: 160rpx;
flex-shrink: 0;
white-space: nowrap;
color: #909399;
margin-right: 12rpx;
}
.entry-card__value {
@ -545,17 +520,27 @@ export default {
margin-top: 18rpx;
display: flex;
flex-direction: column;
gap: 12rpx;
}
.entry-card__badges {
display: flex;
flex-wrap: wrap;
gap: 10rpx;
margin-bottom: -10rpx;
::v-deep .u-tag__text {
font-size: 34rpx;
line-height: 34rpx;
}
::v-deep .u-transition {
margin-right: 10rpx;
margin-bottom: 10rpx;
}
}
.entry-card__time {
font-size: 24rpx;
margin-top: 12rpx;
font-size: 34rpx;
color: #909399;
}