From dc554f9a9e04cdd09f2a6c1baa705b2956b837d3 Mon Sep 17 00:00:00 2001
From: zm2000 <18386612143@163.com>
Date: Tue, 10 Nov 2026 18:20:38 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=90=9C=E7=B4=A2=E6=A1=86?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8C=96=E7=BB=9F=E4=B8=80=E9=87=8D=E6=9E=84?=
=?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=8B=86=E5=8D=95=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
一、新增共享搜索组件 SearchBar
- 新增 src/components/SearchBar/SearchBar.vue
- 将各页面内联的「搜索输入 + 扫码按钮 + 搜索按钮」统一封装
- 支持 input-font-size / search-text-font-size / show-scan /
show-search / focus / disabled / scan-icon 等属性
- 统一输入框与搜索文字字号为 34rpx
二、各页面搜索框接入 SearchBar 组件(删除重复样式代码)
- 首页快捷操作、工作台配置
- 商品查询、库位查询、库内转移、随机上架、收货及子组件
- 盘点相关组件(工具栏、搜索面板、明细选择、记录新增、实盘数量)
- 订单复核、复核列表、称重、包材绑定、拦截登记
- 散单/团单拣货详情、退单记录、发货标签、打印补打、缺货补货
三、通用样式调整
- page-nav 页面标题字号 32rpx -> 36rpx
四、拆单页面(src/pages/packing/splitOrder.vue)功能完善
- 未绑定按钮字号与输入框按钮统一为 36rpx
- 未查询时显示空态提示(参考绑定包材页面),并固定定位避免跳动
- 修复空态遮挡导致搜索输入框无法聚焦的问题
- 快递号面板样式参考拦截登记页面,子单号标签白底黑字并对齐
- 面板与操作按钮分隔,左右留白统一 24rpx
- 子单号列表支持滚动查看(最大高度 400rpx)
- 拆单按钮改为蓝色、36rpx、不加粗
- 拆单数量弹窗参考完成盘点弹窗(640rpx、20rpx 圆角、88rpx 按钮),
新增右上角关闭图标,点击遮罩不关闭
- 拆单失败时从 order.detail 日志提取「子单号分配」失败 message,
使用自定义 u-popup 弹窗完整展示失败信息
---
src/components/SearchBar/SearchBar.vue | 204 +++++++
src/components/page-nav/page-nav.vue | 2 +-
src/components/space-list/space-list.vue | 12 +-
src/pages/claim/shippingLabel.vue | 41 +-
src/pages/configuration/Workbench.vue | 16 +-
src/pages/home/edit-quick-actions.vue | 75 +--
src/pages/packing/labelReprint.vue | 58 +-
src/pages/packing/splitOrder.vue | 500 ++++++++++--------
src/pages/replenishment/replenishShorts.vue | 154 +-----
.../CountDetailPicker.vue | 11 +-
.../inventoryCount-comps/CountListToolbar.vue | 100 +---
.../CountRecordAddPopup.vue | 79 +--
.../inventoryCount-comps/CountSearchPanel.vue | 97 +---
.../CountSpaceEntryPopup.vue | 79 +--
.../warehouse/inventoryCountLocation.vue | 5 -
src/pages/warehouse/inventoryTransfer.vue | 94 +---
src/pages/warehouse/locationInquiry.vue | 98 +---
src/pages/work/order/bindPkgMat.vue | 238 +++++----
.../work/order/groupon-picking-detail.vue | 71 +--
src/pages/work/order/interceptionLog.vue | 116 ++--
src/pages/work/order/order-review.vue | 40 +-
src/pages/work/order/orderReviewList.vue | 57 +-
src/pages/work/order/returnRecord.vue | 52 +-
.../work/order/scatter-picking-detail.vue | 71 +--
src/pages/work/order/weighing.vue | 41 +-
src/pages/work/product/query.vue | 94 +---
.../work/storage/random-storage-shelf.vue | 61 +--
src/pages/work/storage/random-storage.vue | 34 +-
.../receiving/components/detail-container.vue | 44 +-
.../receiving/components/stockList.vue | 12 +-
.../work/storage/receiving/receiving.vue | 87 +--
31 files changed, 933 insertions(+), 1710 deletions(-)
create mode 100644 src/components/SearchBar/SearchBar.vue
diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue
new file mode 100644
index 0000000..c11c93d
--- /dev/null
+++ b/src/components/SearchBar/SearchBar.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+ {{ searchText }}
+
+
+
+
+
+
+
+
diff --git a/src/components/page-nav/page-nav.vue b/src/components/page-nav/page-nav.vue
index 6714df2..89d2acb 100644
--- a/src/components/page-nav/page-nav.vue
+++ b/src/components/page-nav/page-nav.vue
@@ -148,7 +148,7 @@
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
- font-size: 32rpx;
+ font-size: 36rpx;
font-weight: bold;
color: #333;
}
diff --git a/src/components/space-list/space-list.vue b/src/components/space-list/space-list.vue
index 4e60aad..814a039 100644
--- a/src/components/space-list/space-list.vue
+++ b/src/components/space-list/space-list.vue
@@ -10,8 +10,16 @@
-
+
diff --git a/src/pages/claim/shippingLabel.vue b/src/pages/claim/shippingLabel.vue
index 576e640..41fde7f 100644
--- a/src/pages/claim/shippingLabel.vue
+++ b/src/pages/claim/shippingLabel.vue
@@ -15,19 +15,17 @@
-
-
-
-
-
-
+
@@ -405,23 +403,6 @@
padding: 20rpx 24rpx;
background: #fff;
margin-bottom: 16rpx;
-
- .scan-input-wrap {
- display: flex;
- align-items: center;
- gap: 16rpx;
-
- .scan-camera-btn {
- width: 72rpx;
- height: 72rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #f0f7ff;
- border-radius: 8rpx;
- flex-shrink: 0;
- }
- }
}
/* ===== 底部操作栏 ===== */
diff --git a/src/pages/configuration/Workbench.vue b/src/pages/configuration/Workbench.vue
index 1bbd7c0..bdd963d 100644
--- a/src/pages/configuration/Workbench.vue
+++ b/src/pages/configuration/Workbench.vue
@@ -7,15 +7,16 @@
-
+ >
@@ -461,11 +462,6 @@
gap: 10rpx;
}
- .search-row ::v-deep .u-search {
- flex: 1;
- min-width: 0;
- }
-
.status-filter {
display: flex;
align-items: center;
diff --git a/src/pages/home/edit-quick-actions.vue b/src/pages/home/edit-quick-actions.vue
index a1bb0d2..3b2471b 100644
--- a/src/pages/home/edit-quick-actions.vue
+++ b/src/pages/home/edit-quick-actions.vue
@@ -12,22 +12,15 @@
-
-
-
-
- 搜索
-
-
-
+
@@ -622,56 +615,6 @@
z-index: 1;
}
- .search-input-wrap {
- position: relative;
-
- ::v-deep .u-search {
- width: 100%;
- }
-
- ::v-deep .u-search__content {
- padding-right: 110rpx;
- }
-
- ::v-deep .u-search__content__input {
- font-size: 34rpx;
- }
-
- ::v-deep .u-search__content__close {
- margin-right: 12rpx;
- }
- }
-
- .search-actions {
- position: absolute;
- right: 24rpx;
- top: 50%;
- transform: translateY(-50%);
- height: 68rpx;
- display: flex;
- align-items: center;
- }
-
- .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;
- }
- }
-
.group-list {
padding: 0 52rpx 20rpx 20rpx;
diff --git a/src/pages/packing/labelReprint.vue b/src/pages/packing/labelReprint.vue
index 4b1873c..4b7c41e 100644
--- a/src/pages/packing/labelReprint.vue
+++ b/src/pages/packing/labelReprint.vue
@@ -37,19 +37,18 @@
-
-
-
-
-
-
+
@@ -706,39 +705,6 @@ import voice from '@/core/utils/voice';
margin-bottom: 20rpx;
}
- .scan-row {
- display: flex;
- align-items: center;
- gap: 12rpx;
- }
-
- .scan-input {
- flex: 1;
- height: 80rpx;
- background: #f5f5f5;
- border: 2rpx solid #dcdfe6;
- border-radius: 12rpx;
- padding: 0 20rpx;
- font-size: 32rpx;
- color: #303133;
- }
-
- .scan-camera-btn {
- flex-shrink: 0;
- width: 72rpx;
- height: 72rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #f0f7ff;
- border: 2rpx solid #2979ff;
- border-radius: 12rpx;
- }
-
- .scan-camera-btn:active {
- opacity: 0.7;
- }
-
/* 模式切换条 */
.mode-switch-bar {
display: flex;
diff --git a/src/pages/packing/splitOrder.vue b/src/pages/packing/splitOrder.vue
index 531e441..2126342 100644
--- a/src/pages/packing/splitOrder.vue
+++ b/src/pages/packing/splitOrder.vue
@@ -1,26 +1,22 @@
-
-
-
-