| | |
| | | </view> |
| | | |
| | | <!-- 搜索框 --> |
| | | <!-- <view class="search-bar"> |
| | | <u-search |
| | | v-model="condition" |
| | | :placeholder="$t('common.scanInputMat') || '扫码 / 输入物料'" |
| | | @search="search" |
| | | @custom="search" |
| | | @clear="onCancelSearch" |
| | | :showAction="true" |
| | | :actionText="$t('common.search') || '搜索'" |
| | | bgColor="#F5F5F5" |
| | | shape="round" |
| | | ></u-search> |
| | | </view> --> |
| | | <u-sticky bgColor="#ffffff" :customNavHeight="navHeight"> |
| | | <view class="search-bar"> |
| | | <u-search |
| | | v-model="condition" |
| | | :placeholder="$t('common.scanInputMat') || '扫码 / 输入物料'" |
| | | @search="search" |
| | | @custom="search" |
| | | @clear="onCancelSearch" |
| | | :showAction="true" |
| | | :actionText="$t('common.search') || '搜索'" |
| | | bgColor="#F5F5F5" |
| | | shape="round" |
| | | ></u-search> |
| | | </view> |
| | | </u-sticky> |
| | | |
| | | <!-- 明细列表 --> |
| | | <view class="detl-list"> |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | // 导航栏高度,用于吸顶组件计算偏移(仅留状态栏高度,覆盖导航栏内容区) |
| | | navHeight() { |
| | | return uni.$u.sys().statusBarHeight; |
| | | }, |
| | | // 过滤后的列表(优先显示有剩余数量的) |
| | | filterList() { |
| | | if (!this.condition.trim()) { |
| | |
| | | padding: 20rpx 24rpx; |
| | | background: #ffffff; |
| | | box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04); |
| | | position: sticky; |
| | | top: 0; |
| | | z-index: 100; |
| | | } |
| | | |