From 0d4de97dfeb8962e1578d47dc98edb16a18d9fd8 Mon Sep 17 00:00:00 2001
From: zm2000 <18386612143@163.com>
Date: Tue, 24 Nov 2026 18:18:58 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A2=86=E6=96=99/=E6=8B=A3=E8=B4=A7/?=
=?UTF-8?q?=E5=BA=93=E4=BD=8D/=E6=94=B6=E8=B4=A7/=E7=A7=BB=E5=BA=93?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 面单波次领料(shippingLabel):手动输入按钮文案改为「输入框」,统一放大各标签、按钮字号(空态 38rpx,其余 36rpx)
- 订单拣货(picking):「拣货车」按钮移至「···」左侧并放大字号(36rpx)、增大间距;「订单未领料 / 领料人不是本人」提示由系统弹窗改为自定义弹窗;加粗样式 600/700 统一为 bold
- 库位查询(locationInquiry):商品条码超过 3 个默认收起,支持展开/收起
- 收货明细(receivingDetail):已完成状态时禁用「完成收货」操作
- 收货单列表(receivingList):单据、状态、明细等字号整体放大
- 移库(relocation):商品条码超过 3 个默认收起支持展开;输入框/按钮字号统一 36rpx、相机图标放大
---
src/pages/claim/shippingLabel.vue | 14 +-
src/pages/warehouse/locationInquiry.vue | 95 +++++++++-
src/pages/work/order/picking.vue | 132 ++++++++++----
.../storage/receiving/receivingDetail.vue | 17 +-
.../work/storage/receiving/receivingList.vue | 36 ++--
src/pages/work/storage/relocation.vue | 168 +++++++++++++++---
6 files changed, 376 insertions(+), 86 deletions(-)
diff --git a/src/pages/claim/shippingLabel.vue b/src/pages/claim/shippingLabel.vue
index 41fde7f..30d11c8 100644
--- a/src/pages/claim/shippingLabel.vue
+++ b/src/pages/claim/shippingLabel.vue
@@ -8,7 +8,7 @@
:class="{ 'nav-manual-input--inactive': !showScanInput }"
@click="toggleScanInput"
>
- {{ showScanInput ? '关闭手动输入' : '手动输入' }}
+ 输入框
@@ -294,7 +294,7 @@
.placeholder-text {
margin-top: 24rpx;
- font-size: 28rpx;
+ font-size: 38rpx;
color: #909399;
}
@@ -309,7 +309,7 @@
border-radius: 12rpx;
.unclaimed-wave-count-label {
- font-size: 32rpx;
+ font-size: 36rpx;
font-weight: bold;
color: #D46B08;
}
@@ -339,7 +339,7 @@
background-color: #D9F7BE;
.claim-info-header-text {
- font-size: 32rpx;
+ font-size: 36rpx;
font-weight: bold;
color: #389E0D;
}
@@ -392,7 +392,7 @@
}
.nav-manual-input-text {
- font-size: 28rpx;
+ font-size: 36rpx;
color: #ffffff;
white-space: nowrap;
}
@@ -419,7 +419,7 @@
align-items: baseline;
.claim-footer-total-label {
- font-size: 28rpx;
+ font-size: 36rpx;
color: #606266;
margin-right: 8rpx;
}
@@ -437,7 +437,7 @@
border-radius: 8rpx;
.claim-footer-btn-text {
- font-size: 30rpx;
+ font-size: 36rpx;
color: #ffffff;
white-space: nowrap;
}
diff --git a/src/pages/warehouse/locationInquiry.vue b/src/pages/warehouse/locationInquiry.vue
index 3ae74ea..0930e3f 100644
--- a/src/pages/warehouse/locationInquiry.vue
+++ b/src/pages/warehouse/locationInquiry.vue
@@ -66,9 +66,16 @@
货主
{{ goodsStoreName(goods) }}
-
+
商品
- {{ goodsName(goods) }}、{{ goodsBarcode(goods) }}
+
+ {{ goodsName(goods) }}、{{ goodsBarcodeDisplayText(goods) }}
+ {{ isGoodsBarcodeExpanded(goods) ? '收起' : '展开' }}
+
@@ -178,7 +185,9 @@ export default {
goodsList: [],
// 筛选(仅支持:可移库存 > 0 / 库存 > 0)
filterVisible: false,
- filterType: ''
+ filterType: '',
+ // 条码展开状态(按商品 id 记录),条码超过 3 个时默认收起
+ barcodeExpandMap: {}
}
},
computed: {
@@ -345,17 +354,58 @@ export default {
const text = String(name ?? '').trim();
return text || (goods?.stock_id ? `商品#${goods.stock_id}` : '--');
},
- goodsBarcode(goods) {
+ // 归一化商品条码为字符串数组([{barcode, code}] 或字符串)
+ getGoodsBarcodeList(goods) {
const stock = goods?.stock;
const codes = stock?.barcodes;
- if (Array.isArray(codes) && codes.length) {
- const list = codes.map(c => {
+ if (Array.isArray(codes)) {
+ return codes.map(c => {
if (typeof c === 'string') return c.trim();
if (c && typeof c === 'object') return String(c.barcode ?? c.code ?? '').trim();
return '';
}).filter(Boolean);
- if (list.length) return list.join('、');
}
+ const fallback = stock?.barcode ?? stock?.code;
+ if (typeof fallback === 'string' && fallback.trim()) {
+ return [fallback.trim()];
+ }
+ if (Array.isArray(fallback)) {
+ return fallback.map(c => {
+ if (typeof c === 'string') return c.trim();
+ if (c && typeof c === 'object') return String(c.barcode ?? c.code ?? '').trim();
+ return '';
+ }).filter(Boolean);
+ }
+ return [];
+ },
+ getGoodsBarcodeCount(goods) {
+ return this.getGoodsBarcodeList(goods).length;
+ },
+ hasMoreGoodsBarcodes(goods) {
+ return this.getGoodsBarcodeCount(goods) > 3;
+ },
+ getGoodsBarcodeExpandKey(goods) {
+ if (!goods || typeof goods !== 'object') return 'unknown';
+ return String(goods.stock_id ?? goods.stock?.id ?? goods.id ?? goods.item_id ?? 'unknown');
+ },
+ isGoodsBarcodeExpanded(goods) {
+ return !!this.barcodeExpandMap[this.getGoodsBarcodeExpandKey(goods)];
+ },
+ toggleGoodsBarcodeExpand(goods) {
+ const key = this.getGoodsBarcodeExpandKey(goods);
+ this.$set(this.barcodeExpandMap, key, !this.barcodeExpandMap[key]);
+ },
+ getGoodsBarcodeDisplayList(goods) {
+ const list = this.getGoodsBarcodeList(goods);
+ if (list.length > 3 && !this.isGoodsBarcodeExpanded(goods)) {
+ return list.slice(0, 3);
+ }
+ return list;
+ },
+ goodsBarcodeDisplayText(goods) {
+ const list = this.getGoodsBarcodeDisplayList(goods);
+ if (list.length) return list.join('、');
+ const stock = goods?.stock;
return String(stock?.item_code ?? '').trim() || '--';
},
goodsStoreName(goods) {
@@ -951,6 +1001,37 @@ export default {
font-size: 40rpx;
}
+.line--barcode {
+ align-items: flex-start;
+}
+
+.line__value--barcode {
+ display: flex;
+ align-items: flex-start;
+ flex-wrap: wrap;
+}
+
+.line__barcode-text {
+ flex: 1;
+ min-width: 0;
+ font-size: 40rpx;
+ color: #303133;
+ word-break: break-all;
+ overflow-wrap: break-word;
+}
+
+.line__barcode-toggle {
+ flex-shrink: 0;
+ margin-left: 12rpx;
+ font-size: 36rpx;
+ color: #2979ff;
+ line-height: 1.4;
+
+ &:active {
+ opacity: 0.7;
+ }
+}
+
.line--count {
background: transparent;
padding: 0;
diff --git a/src/pages/work/order/picking.vue b/src/pages/work/order/picking.vue
index 0d86c00..84d38ca 100644
--- a/src/pages/work/order/picking.vue
+++ b/src/pages/work/order/picking.vue
@@ -2,12 +2,10 @@
-
+
拣货车
-
-
@@ -245,6 +243,20 @@
+
+
+
+
+
-
+
条码:
- {{ getStockBarcode(selectedStock) }}
+
+ {{ getStockBarcodeDisplayText(selectedStock) }}
+ {{ isStockBarcodeExpanded(selectedStock) ? '收起' : '展开' }}
+
批次号:
@@ -96,7 +105,7 @@
@@ -145,6 +154,8 @@
selectorField: '',
selectorList: [],
selectedStock: null,
+ // 条码展开状态(按商品 id 记录),条码超过 3 个时默认收起
+ barcodeExpandMap: {},
formData: {
sourceSpaceKeyword: '',
sourceSpaceId: null,
@@ -510,10 +521,68 @@
getStockName(item) {
return item?.item_name || item?.product_name || item?.name || item?.goods_name || '未命名商品';
},
- getStockBarcode(item) {
- if (Array.isArray(item?.barcodes) && item.barcodes.length) {
- return item.barcodes.filter(Boolean).join(';');
+ // 归一化条码为字符串数组([{barcode, code}] 或字符串)
+ getStockBarcodeList(item) {
+ const barcodes = item?.barcodes;
+ if (Array.isArray(barcodes)) {
+ return barcodes.map(c => {
+ if (typeof c === 'string') return c.trim();
+ if (c && typeof c === 'object') return String(c.barcode ?? c.code ?? '').trim();
+ return '';
+ }).filter(Boolean);
}
+ const fallback = item?.barcode ?? item?.goods_code ?? item?.item_code;
+ if (typeof fallback === 'string' && fallback.trim()) {
+ return [fallback.trim()];
+ }
+ if (Array.isArray(fallback)) {
+ return fallback.map(c => {
+ if (typeof c === 'string') return c.trim();
+ if (c && typeof c === 'object') return String(c.barcode ?? c.code ?? '').trim();
+ return '';
+ }).filter(Boolean);
+ }
+ return [];
+ },
+ getStockBarcodeCount(item) {
+ return this.getStockBarcodeList(item).length;
+ },
+ hasMoreStockBarcodes(item) {
+ return this.getStockBarcodeCount(item) > 3;
+ },
+ getStockBarcodeExpandKey(item) {
+ if (!item || typeof item !== 'object') return 'unknown';
+ return String(
+ item.relocation_product_stock_id
+ || item.stock_id
+ || item.id
+ || item.item_id
+ || item.item_code
+ || 'unknown'
+ );
+ },
+ isStockBarcodeExpanded(item) {
+ return !!this.barcodeExpandMap[this.getStockBarcodeExpandKey(item)];
+ },
+ toggleStockBarcodeExpand(item) {
+ const key = this.getStockBarcodeExpandKey(item);
+ this.$set(this.barcodeExpandMap, key, !this.barcodeExpandMap[key]);
+ },
+ getStockBarcodeDisplayList(item) {
+ const list = this.getStockBarcodeList(item);
+ if (list.length > 3 && !this.isStockBarcodeExpanded(item)) {
+ return list.slice(0, 3);
+ }
+ return list;
+ },
+ getStockBarcodeDisplayText(item) {
+ const list = this.getStockBarcodeDisplayList(item);
+ if (list.length) return list.join('、');
+ return '--';
+ },
+ getStockBarcode(item) {
+ const list = this.getStockBarcodeList(item);
+ if (list.length) return list.join(';');
return item?.barcode || item?.goods_code || item?.item_code || '--';
},
getStockOwnerText(item) {
@@ -842,14 +911,14 @@
}
.nav-submit-btn__text {
- font-size: 30rpx;
- font-weight: 600;
+ font-size: 36rpx;
+ color: #ffffff;
line-height: 1;
}
::v-deep .nav-submit-btn .u-button__text {
- font-size: 30rpx !important;
- font-weight: 600;
+ font-size: 36rpx !important;
+ color: #ffffff;
line-height: 1;
}
@@ -860,6 +929,10 @@
.form-box {
padding: 20rpx;
+
+ ::v-deep .u-form-item__body__left__content__label {
+ font-size: 36rpx;
+ }
}
.section {
@@ -869,7 +942,7 @@
margin-bottom: 30rpx;
.section-title {
- font-size: 32rpx;
+ font-size: 34rpx;
font-weight: bold;
color: #333;
margin-bottom: 30rpx;
@@ -887,6 +960,12 @@
::v-deep .u-input {
flex: 1;
}
+
+ ::v-deep .u-input__content__field-wrapper__field,
+ ::v-deep .u-input__content__field-wrapper__field input,
+ ::v-deep .u-input input {
+ font-size: 36rpx !important;
+ }
}
.quantity-input-wrap {
@@ -900,18 +979,27 @@
}
}
+ .remark-item {
+ ::v-deep .u-input__content__field-wrapper__field,
+ ::v-deep .u-input__content__field-wrapper__field input,
+ ::v-deep .u-input input,
+ ::v-deep .u-input textarea {
+ font-size: 36rpx !important;
+ }
+ }
+
.move-quantity-item {
::v-deep .u-form-item__body__left__content__label,
::v-deep .u-form-item__body__left__content__label-text {
- font-size: 40rpx !important;
- font-weight: 700;
+ font-size: 36rpx !important;
+ font-weight: bold;
}
::v-deep .move-quantity-input .u-input__content__field-wrapper__field,
::v-deep .move-quantity-input .u-input__content__field-wrapper__field input,
::v-deep .move-quantity-input input {
font-size: 42rpx !important;
- font-weight: 700 !important;
+ font-weight: bold !important;
}
::v-deep .u-input__content {
@@ -920,9 +1008,9 @@
}
.quantity-all-view-btn {
- width: 76rpx;
height: 76rpx;
- border-radius: 12rpx;
+ padding: 0 24rpx;
+ border-radius: 3px;
background: #2979ff;
display: flex;
align-items: center;
@@ -931,7 +1019,7 @@
box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.18);
text {
- font-size: 28rpx;
+ font-size: 36rpx;
font-weight: 500;
color: #ffffff;
line-height: 1;
@@ -980,8 +1068,8 @@
}
&__title {
- font-size: 34rpx;
- font-weight: 600;
+ font-size: 36rpx;
+ font-weight: bold;
color: #303133;
flex: 1;
padding-right: 20rpx;
@@ -993,7 +1081,7 @@
.label {
width: auto;
- font-size: 30rpx;
+ font-size: 36rpx;
color: #606266;
white-space: nowrap;
margin-right: 8rpx;
@@ -1002,11 +1090,43 @@
.value {
flex: 1;
- font-size: 30rpx;
+ font-size: 36rpx;
color: #303133;
word-break: break-all;
}
}
+
+ &__row--barcode {
+ align-items: flex-start;
+ }
+
+ &__barcode-value {
+ display: flex;
+ align-items: flex-start;
+ flex-wrap: wrap;
+ flex: 1;
+ min-width: 0;
+ }
+
+ &__barcode-text {
+ flex: 1;
+ min-width: 0;
+ font-size: 36rpx;
+ color: #303133;
+ word-break: break-all;
+ }
+
+ &__barcode-toggle {
+ flex-shrink: 0;
+ margin-left: 12rpx;
+ font-size: 36rpx;
+ color: #2979ff;
+ line-height: 1.4;
+
+ &:active {
+ opacity: 0.7;
+ }
+ }
}
.selector-popup {
@@ -1019,7 +1139,7 @@
.popup-title {
font-size: 36rpx;
- font-weight: 600;
+ font-weight: bold;
color: #333;
}
@@ -1034,7 +1154,7 @@
&__title {
display: block;
font-size: 30rpx;
- font-weight: 600;
+ font-weight: bold;
color: #303133;
margin-bottom: 10rpx;
}