zm2000 b95ac35d39 fix(ui): 修复真机加粗失效并统一 PDA 页面字号与布局
- 库存盘点:font-weight 600 统一改为 bold,修复真机无加粗效果
- 库存盘点:移除右上角「...」操作菜单,改为「完成盘点」「空库位」直接按钮
- 库存盘点:顶部标题栏字号统一 36rpx,搜索输入框字号 34rpx,提示字号 28→30rpx
- 拦截登记:顶部导航重构为自定义 header(返回/标题/输入框开关/重置)
- 拦截登记:搜索框改为 u-search 圆角样式并新增「搜索」按钮
- 拦截登记:信息面板标签 32→36rpx、值 32→40rpx,与搜索框间隔调整为 60rpx
- 拦截登记:拦截失败提示优化,区分「非拦截订单」等文案
- 库位查询:标题/搜索/计数半格样式调整,浅色背景深色文字、下划线强调
- 其他:page-nav 右侧宽度改 min-width;首页/个人中心弹窗圆角 24→20rpx;多处标题字号 32→36rpx
2026-11-09 17:59:23 +08:00

195 lines
5.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="summary-panel">
<!-- 基本信息 -->
<view class="summary-panel__group">基本信息</view>
<view class="summary-panel__row">
<text class="summary-panel__label">盘点单号</text>
<text class="summary-panel__value summary-panel__value--strong">{{ info.checkNo || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">标题</text>
<text class="summary-panel__value">{{ info.title || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">货主</text>
<text class="summary-panel__value">{{ storeText }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">盘点类型</text>
<text class="summary-panel__value">{{ info.typeText || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">盘点方式</text>
<text class="summary-panel__value">{{ info.modeText || '--' }}</text>
</view>
<view v-if="info.isStaticText" class="summary-panel__row">
<text class="summary-panel__label">盘点性质</text>
<text class="summary-panel__value">{{ info.isStaticText }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">状态</text>
<text class="summary-panel__value" :class="info.statusClass">{{ info.statusText || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">创建人</text>
<text class="summary-panel__value">{{ info.creatorName || '--' }}</text>
</view>
<!-- 明细统计 -->
<view class="summary-panel__group">明细统计</view>
<view class="summary-panel__row">
<text class="summary-panel__label">明细进度</text>
<text class="summary-panel__value">{{ info.detailStatusText || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">明细总数</text>
<text class="summary-panel__value">{{ info.totalItems }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">已盘明细</text>
<text class="summary-panel__value">{{ info.checkedItems }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">差异明细</text>
<text class="summary-panel__value" :class="{ 'summary-panel__value--warning': info.diffItems > 0 }">{{ info.diffItems }}</text>
</view>
<!-- 时间信息 -->
<view class="summary-panel__group">时间信息</view>
<view class="summary-panel__row">
<text class="summary-panel__label">盘点开始</text>
<text class="summary-panel__value">{{ info.startTimeText || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">盘点结束</text>
<text class="summary-panel__value">{{ info.endTimeText || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">创建时间</text>
<text class="summary-panel__value">{{ info.createTimeText || '--' }}</text>
</view>
<view class="summary-panel__row">
<text class="summary-panel__label">更新时间</text>
<text class="summary-panel__value">{{ info.updateTimeText || '--' }}</text>
</view>
<!-- 备注(有值才显示) -->
<template v-if="info.remark">
<view class="summary-panel__group">备注</view>
<view class="summary-panel__row summary-panel__row--last">
<text class="summary-panel__value">{{ info.remark }}</text>
</view>
</template>
</view>
</template>
<script>
/** 盘点单头摘要(单号/标题/类型/状态/进度) */
export default {
name: 'CountSummaryPanel',
props: {
info: {
type: Object,
default: () => ({})
}
},
computed: {
// 货主:优先名称,无名称时退回 ID
storeText() {
if (this.info.storeName) return this.info.storeName;
if (this.info.storeId !== null && this.info.storeId !== undefined && this.info.storeId !== '') {
return `ID ${this.info.storeId}`;
}
return '--';
}
}
};
</script>
<style lang="scss" scoped>
.summary-panel {
background: #ffffff;
border-bottom: 1rpx solid #f2f2f2;
padding: 20rpx 28rpx;
box-sizing: border-box;
}
.summary-panel__group {
margin: 24rpx 0 6rpx;
font-size: 32rpx;
font-weight: bold;
color: #2979ff;
&:first-child {
margin-top: 0;
}
}
.summary-panel__row {
display: flex;
align-items: flex-start;
padding: 10rpx 0;
}
.summary-panel__row--last {
padding-bottom: 0;
}
.summary-panel__label {
flex-shrink: 0;
width: 160rpx;
font-size: 36rpx;
color: #8a9099;
line-height: 1.5;
}
.summary-panel__value {
flex: 1;
min-width: 0;
font-size: 38rpx;
color: #303133;
line-height: 1.5;
word-break: break-all;
}
.summary-panel__value--strong {
font-weight: bold;
color: #2979ff;
}
.summary-panel__value--success {
font-weight: bold;
color: #18a058;
}
.summary-panel__value--warning {
font-weight: bold;
color: #ff9800;
}
.summary-panel__value--danger {
font-weight: bold;
color: #e64340;
}
.summary-panel__value--muted {
color: #c0c4cc;
}
.summary-panel__progress {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.summary-panel__diff {
margin-left: 16rpx;
font-size: 30rpx;
color: #8a9099;
}
.summary-panel__diff--warn {
color: #ff9800;
}
</style>