- 库存盘点:font-weight 600 统一改为 bold,修复真机无加粗效果 - 库存盘点:移除右上角「...」操作菜单,改为「完成盘点」「空库位」直接按钮 - 库存盘点:顶部标题栏字号统一 36rpx,搜索输入框字号 34rpx,提示字号 28→30rpx - 拦截登记:顶部导航重构为自定义 header(返回/标题/输入框开关/重置) - 拦截登记:搜索框改为 u-search 圆角样式并新增「搜索」按钮 - 拦截登记:信息面板标签 32→36rpx、值 32→40rpx,与搜索框间隔调整为 60rpx - 拦截登记:拦截失败提示优化,区分「非拦截订单」等文案 - 库位查询:标题/搜索/计数半格样式调整,浅色背景深色文字、下划线强调 - 其他:page-nav 右侧宽度改 min-width;首页/个人中心弹窗圆角 24→20rpx;多处标题字号 32→36rpx
121 lines
2.0 KiB
Vue
121 lines
2.0 KiB
Vue
<template>
|
||
<view class="search-panel">
|
||
<view class="search-input-wrap">
|
||
<u-search
|
||
:value="value"
|
||
:placeholder="placeholder"
|
||
:bg-color="'#f5f5f5'"
|
||
shape="round"
|
||
:show-action="false"
|
||
@input="$emit('input', $event)"
|
||
@search="$emit('search')"
|
||
@clear="$emit('clear')"
|
||
></u-search>
|
||
<view class="search-actions">
|
||
<view class="scan-btn" @click="$emit('scan')">
|
||
<u-icon name="scan" size="38rpx" color="#2979ff"></u-icon>
|
||
</view>
|
||
<view class="search-divider"></view>
|
||
<view class="search-btn" @click="$emit('search')">
|
||
<text class="search-btn__text">{{ actionText }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
/** 盘点扫码/输入定位条(支持 v-model) */
|
||
export default {
|
||
name: 'CountSearchPanel',
|
||
props: {
|
||
value: {
|
||
type: String,
|
||
default: ''
|
||
},
|
||
placeholder: {
|
||
type: String,
|
||
default: '扫码/输入商品条码快速定位'
|
||
},
|
||
actionText: {
|
||
type: String,
|
||
default: '定位'
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.search-panel {
|
||
background: #ffffff;
|
||
border-bottom: 1rpx solid #f2f2f2;
|
||
padding: 16rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.search-input-wrap {
|
||
position: relative;
|
||
|
||
::v-deep .u-search {
|
||
width: 100%;
|
||
}
|
||
|
||
::v-deep .u-search__content {
|
||
padding-right: 200rpx;
|
||
}
|
||
|
||
::v-deep .u-search__content__input {
|
||
font-size: 34rpx;
|
||
}
|
||
}
|
||
|
||
.search-actions {
|
||
position: absolute;
|
||
right: 24rpx;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
height: 68rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.scan-btn {
|
||
height: 68rpx;
|
||
padding: 0 8rpx 0 4rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
&:active {
|
||
opacity: 0.88;
|
||
}
|
||
}
|
||
|
||
.search-divider {
|
||
width: 1rpx;
|
||
height: 28rpx;
|
||
background: #dcdfe6;
|
||
margin: 0 16rpx 0 10rpx;
|
||
}
|
||
|
||
.search-btn {
|
||
height: 68rpx;
|
||
padding: 0 8rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-shrink: 0;
|
||
|
||
&__text {
|
||
font-size: 34rpx;
|
||
font-weight: 500;
|
||
color: #2979ff;
|
||
line-height: 1;
|
||
}
|
||
|
||
&:active {
|
||
opacity: 0.88;
|
||
}
|
||
}
|
||
</style>
|