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;
}