修改拣货,复核发货模块;常用,全部功能页字体大小
This commit is contained in:
parent
4e9dadca94
commit
79bce45ab3
@ -411,7 +411,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
font-size: 32rpx;
|
font-size: 36rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
@ -423,13 +423,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: 24rpx;
|
font-size: 32rpx;
|
||||||
color: #2979ff;
|
color: #2979ff;
|
||||||
padding: 0 8rpx;
|
padding: 0 8rpx;
|
||||||
|
|
||||||
.edit-common-text {
|
.edit-common-text {
|
||||||
margin-left: 6rpx;
|
margin-left: 6rpx;
|
||||||
font-size: 24rpx;
|
font-size: 32rpx;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -447,19 +447,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.left-nav {
|
.left-nav {
|
||||||
width: 132rpx;
|
width: 160rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-right: 1rpx solid #f0f0f0;
|
border-right: 1rpx solid #f0f0f0;
|
||||||
padding: 12rpx 8rpx;
|
padding: 12rpx 8rpx;
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 56rpx;
|
min-height: 60rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
font-size: 22rpx;
|
font-size: 30rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
background: #f4f5f7;
|
background: #f4f5f7;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
@ -487,8 +487,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.parent-nav-item {
|
.parent-nav-item {
|
||||||
font-size: 20rpx;
|
font-size: 28rpx;
|
||||||
line-height: 1.3;
|
line-height: 1.4;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -513,11 +513,11 @@
|
|||||||
|
|
||||||
.initial-item {
|
.initial-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-width: 26rpx;
|
min-width: 32rpx;
|
||||||
height: 26rpx;
|
height: 32rpx;
|
||||||
line-height: 26rpx;
|
line-height: 32rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16rpx;
|
font-size: 20rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
|
|
||||||
@ -555,12 +555,12 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
height: 72rpx;
|
height: 72rpx;
|
||||||
padding-left: 12rpx;
|
padding-left: 12rpx;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-placeholder {
|
.search-placeholder {
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -570,7 +570,7 @@
|
|||||||
|
|
||||||
.group-section {
|
.group-section {
|
||||||
.group-title {
|
.group-title {
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #666;
|
color: #666;
|
||||||
padding: 18rpx 4rpx 10rpx;
|
padding: 18rpx 4rpx 10rpx;
|
||||||
@ -618,11 +618,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-name {
|
.item-name {
|
||||||
font-size: 22rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
line-height: 1.3;
|
line-height: 1.4;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -495,8 +495,8 @@
|
|||||||
// 4. 如果没有有效的固定菜单,检查用户菜单
|
// 4. 如果没有有效的固定菜单,检查用户菜单
|
||||||
if (userMenus && userMenus.length > 0) {
|
if (userMenus && userMenus.length > 0) {
|
||||||
console.log('从用户菜单生成快捷入口:', userMenus);
|
console.log('从用户菜单生成快捷入口:', userMenus);
|
||||||
// 首次登录默认带出前12个菜单,并将收货作业、商品查询前置
|
// 首次登录默认带出全部菜单,并将商品查询前置
|
||||||
const defaultQuickActions = this.prioritizeDefaultQuickActions(latestActions, 12);
|
const defaultQuickActions = this.prioritizeDefaultQuickActions(latestActions);
|
||||||
this.quickActions = defaultQuickActions.map(item => this.normalizeAction(item)).filter(Boolean);
|
this.quickActions = defaultQuickActions.map(item => this.normalizeAction(item)).filter(Boolean);
|
||||||
await this.saveQuickActionsOrder();
|
await this.saveQuickActionsOrder();
|
||||||
} else {
|
} else {
|
||||||
@ -515,49 +515,74 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
prioritizeDefaultQuickActions(actions, limit = 12) {
|
prioritizeDefaultQuickActions(actions) {
|
||||||
const source = Array.isArray(actions) ? actions.filter(Boolean) : [];
|
const source = Array.isArray(actions) ? actions.filter(Boolean) : [];
|
||||||
if (!source.length) {
|
if (!source.length) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 默认显示的菜单列表(按顺序匹配)
|
// 用户权限菜单超过12个时,按固定优先级取前12个
|
||||||
const defaultMenuNames = [
|
if (source.length > 12) {
|
||||||
'收货作业',
|
const defaultMenuNames = [
|
||||||
'商品查询',
|
'收货作业',
|
||||||
'订单拣货',
|
'商品查询',
|
||||||
'散单波次策略',
|
'订单拣货',
|
||||||
'团购波次策略',
|
'散单波次策略',
|
||||||
'散单拣货详情',
|
'团购波次策略',
|
||||||
'团购拣货详情',
|
'散单拣货详情',
|
||||||
'订单复核',
|
'团购拣货详情',
|
||||||
'随机入库',
|
'订单复核',
|
||||||
'移库作业'
|
'随机入库',
|
||||||
];
|
'移库作业'
|
||||||
|
];
|
||||||
|
|
||||||
|
const selectedKeys = new Set();
|
||||||
|
const prioritized = [];
|
||||||
|
|
||||||
|
defaultMenuNames.forEach((targetName) => {
|
||||||
|
const matched = source.find((item) => {
|
||||||
|
const menuName = this.sanitizeText(item?.name || item?.meta?.title);
|
||||||
|
const key = this.getMenuKey(item);
|
||||||
|
return key && !selectedKeys.has(key) && menuName === targetName;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (matched) {
|
||||||
|
const key = this.getMenuKey(matched);
|
||||||
|
selectedKeys.add(key);
|
||||||
|
prioritized.push(matched);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const remaining = source.filter((item) => {
|
||||||
|
const key = this.getMenuKey(item);
|
||||||
|
return key && !selectedKeys.has(key);
|
||||||
|
});
|
||||||
|
|
||||||
|
return [...prioritized, ...remaining].slice(0, 12);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 低于12个时,商品查询置顶,其余全部显示
|
||||||
const selectedKeys = new Set();
|
const selectedKeys = new Set();
|
||||||
const prioritized = [];
|
const prioritized = [];
|
||||||
|
|
||||||
defaultMenuNames.forEach((targetName) => {
|
const goodsQuery = source.find((item) => {
|
||||||
const matched = source.find((item) => {
|
const menuName = this.sanitizeText(item?.name || item?.meta?.title);
|
||||||
const menuName = this.sanitizeText(item?.name || item?.meta?.title);
|
const key = this.getMenuKey(item);
|
||||||
const key = this.getMenuKey(item);
|
return key && menuName === '商品查询';
|
||||||
return key && !selectedKeys.has(key) && menuName === targetName;
|
|
||||||
});
|
|
||||||
|
|
||||||
if (matched) {
|
|
||||||
const key = this.getMenuKey(matched);
|
|
||||||
selectedKeys.add(key);
|
|
||||||
prioritized.push(matched);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (goodsQuery) {
|
||||||
|
const key = this.getMenuKey(goodsQuery);
|
||||||
|
selectedKeys.add(key);
|
||||||
|
prioritized.push(goodsQuery);
|
||||||
|
}
|
||||||
|
|
||||||
const remaining = source.filter((item) => {
|
const remaining = source.filter((item) => {
|
||||||
const key = this.getMenuKey(item);
|
const key = this.getMenuKey(item);
|
||||||
return key && !selectedKeys.has(key);
|
return key && !selectedKeys.has(key);
|
||||||
});
|
});
|
||||||
|
|
||||||
return [...prioritized, ...remaining].slice(0, limit);
|
return [...prioritized, ...remaining];
|
||||||
},
|
},
|
||||||
|
|
||||||
// 辅助方法:验证和过滤菜单权限
|
// 辅助方法:验证和过滤菜单权限
|
||||||
@ -1378,7 +1403,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.edit-btn {
|
.edit-btn {
|
||||||
font-size: 24rpx;
|
font-size: 34rpx;
|
||||||
color: #2979ff;
|
color: #2979ff;
|
||||||
padding: 6rpx 12rpx;
|
padding: 6rpx 12rpx;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
@ -1523,7 +1548,7 @@
|
|||||||
|
|
||||||
.item-icon-font {
|
.item-icon-font {
|
||||||
font-family: 'uicon-iconfont' !important;
|
font-family: 'uicon-iconfont' !important;
|
||||||
font-size: 52rpx;
|
font-size: 58rpx;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@ -1550,12 +1575,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-name {
|
.item-name {
|
||||||
font-size: 30rpx;
|
font-size: 34rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.3;
|
line-height: 1.4;
|
||||||
padding: 0 5rpx;
|
padding: 0 6rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-badge {
|
.item-badge {
|
||||||
@ -1627,7 +1652,7 @@
|
|||||||
|
|
||||||
.item-icon-font {
|
.item-icon-font {
|
||||||
font-family: 'uicon-iconfont' !important;
|
font-family: 'uicon-iconfont' !important;
|
||||||
font-size: 52rpx;
|
font-size: 58rpx;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@ -1636,11 +1661,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-name {
|
.item-name {
|
||||||
font-size: 26rpx;
|
font-size: 34rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.3;
|
line-height: 1.4;
|
||||||
padding: 0 6rpx;
|
padding: 0 6rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -143,6 +143,41 @@
|
|||||||
<text class="view-mode-text">{{ viewMode === 'grid' ? '列表' : '宫格' }}</text>
|
<text class="view-mode-text">{{ viewMode === 'grid' ? '列表' : '宫格' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 多商品匹配弹窗 -->
|
||||||
|
<u-popup :show="showMultiMatchPopup" mode="bottom" :closeable="true" border-radius="20" :z-index="10100" @close="showMultiMatchPopup = false">
|
||||||
|
<view class="multi-match-popup">
|
||||||
|
<view class="multi-match-popup-title">库内有相同商品</view>
|
||||||
|
<view class="multi-match-popup-body">
|
||||||
|
<view class="multi-match-card" @click="handleMultiMatchSelect(0)">
|
||||||
|
<view class="multi-match-thumb">
|
||||||
|
<u-image
|
||||||
|
class="multi-match-image"
|
||||||
|
:src="multiMatchFirst.imageUrl || ''"
|
||||||
|
mode="aspectFill"
|
||||||
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
>
|
||||||
|
<template #error>
|
||||||
|
<view class="multi-match-image-placeholder">
|
||||||
|
<u-icon name="photo" size="40" color="#c0c4cc"></u-icon>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</u-image>
|
||||||
|
</view>
|
||||||
|
<view class="multi-match-info">
|
||||||
|
<text class="multi-match-name">{{ multiMatchFirst.skuName || '--' }}</text>
|
||||||
|
<text class="multi-match-barcode">条码:{{ multiMatchFirst.barcode || '--' }}</text>
|
||||||
|
<text class="multi-match-spec">规格:{{ multiMatchFirst.location || '--' }}</text>
|
||||||
|
<text class="multi-match-qty">计划 {{ multiMatchFirst.planQty || 0 }} / 已扫 {{ multiMatchFirst.scannedQty || 0 }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="multi-match-popup-footer">
|
||||||
|
<view class="multi-match-footer-btn" @click="showMultiMatchPopup = false">关闭</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -212,7 +247,10 @@ import voice from '@/core/utils/voice';
|
|||||||
currentGoodsIndex: 0,
|
currentGoodsIndex: 0,
|
||||||
matchedGoodsId: '',
|
matchedGoodsId: '',
|
||||||
matchedGoodsState: {},
|
matchedGoodsState: {},
|
||||||
viewMode: savedMode
|
viewMode: savedMode,
|
||||||
|
showMultiMatchPopup: false,
|
||||||
|
multiMatchFirst: {},
|
||||||
|
pendingScanCode: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -312,16 +350,37 @@ import voice from '@/core/utils/voice';
|
|||||||
const code = this.normalizeBarcode(scanCode);
|
const code = this.normalizeBarcode(scanCode);
|
||||||
if (!code) return false;
|
if (!code) return false;
|
||||||
|
|
||||||
const matchIndex = this.goodsList.findIndex(item => {
|
// 多商品匹配弹窗已打开且扫描相同条码时,跳过避免重复提示
|
||||||
|
if (this.showMultiMatchPopup && this.pendingScanCode === code) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查找所有匹配的商品
|
||||||
|
const matchIndices = [];
|
||||||
|
this.goodsList.forEach((item, idx) => {
|
||||||
const candidates = this.extractBarcodeCandidates(item);
|
const candidates = this.extractBarcodeCandidates(item);
|
||||||
return candidates.includes(code);
|
if (candidates.includes(code)) {
|
||||||
|
matchIndices.push(idx);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (matchIndex < 0) {
|
if (matchIndices.length === 0) {
|
||||||
voice.speak('无记录');
|
voice.speak('无记录');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 多个商品匹配时,弹出底部抽屉显示第一个商品详情
|
||||||
|
if (matchIndices.length > 1) {
|
||||||
|
const firstIdx = matchIndices[0];
|
||||||
|
this.multiMatchFirst = { ...this.goodsList[firstIdx] };
|
||||||
|
this.pendingScanCode = code;
|
||||||
|
this.showMultiMatchPopup = true;
|
||||||
|
voice.speak('库内有相同商品');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 仅一个商品匹配,直接处理
|
||||||
|
const matchIndex = matchIndices[0];
|
||||||
this.currentGoodsIndex = matchIndex;
|
this.currentGoodsIndex = matchIndex;
|
||||||
const matchedItem = this.goodsList[matchIndex];
|
const matchedItem = this.goodsList[matchIndex];
|
||||||
const maxQty = matchedItem?.planQty || 0;
|
const maxQty = matchedItem?.planQty || 0;
|
||||||
@ -455,6 +514,68 @@ import voice from '@/core/utils/voice';
|
|||||||
this.matchedGoodsState = {};
|
this.matchedGoodsState = {};
|
||||||
this.matchedGoodsId = '';
|
this.matchedGoodsId = '';
|
||||||
this.currentGoodsIndex = 0;
|
this.currentGoodsIndex = 0;
|
||||||
|
this.showMultiMatchPopup = false;
|
||||||
|
this.multiMatchFirst = {};
|
||||||
|
this.pendingScanCode = '';
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 多商品匹配时,选择第一个商品进行处理
|
||||||
|
*/
|
||||||
|
handleMultiMatchSelect(index) {
|
||||||
|
this.showMultiMatchPopup = false;
|
||||||
|
const code = this.pendingScanCode;
|
||||||
|
this.pendingScanCode = '';
|
||||||
|
if (!code) return;
|
||||||
|
|
||||||
|
// 重新查找匹配项,定位到第一个匹配商品并处理
|
||||||
|
const matchIndices = [];
|
||||||
|
this.goodsList.forEach((item, idx) => {
|
||||||
|
const candidates = this.extractBarcodeCandidates(item);
|
||||||
|
if (candidates.includes(code)) {
|
||||||
|
matchIndices.push(idx);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const targetIdx = matchIndices[index] ?? matchIndices[0];
|
||||||
|
if (targetIdx === undefined) return;
|
||||||
|
|
||||||
|
this.currentGoodsIndex = targetIdx;
|
||||||
|
const matchedItem = this.goodsList[targetIdx];
|
||||||
|
const maxQty = matchedItem?.planQty || 0;
|
||||||
|
const currentScanned = matchedItem?.scannedQty || 0;
|
||||||
|
|
||||||
|
if (currentScanned >= maxQty) {
|
||||||
|
uni.showToast({ title: '该商品已复核完成', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const addQty = Math.min(this.scanQty || 1, maxQty - currentScanned);
|
||||||
|
const newScanned = Math.min(currentScanned + addQty, maxQty);
|
||||||
|
|
||||||
|
this.$emit('updateScannedQty', targetIdx, newScanned);
|
||||||
|
const allDone = this.goodsList.every((item, idx) => {
|
||||||
|
const qty = idx === targetIdx ? newScanned : (item.scannedQty || 0);
|
||||||
|
return qty >= (item.planQty || 0);
|
||||||
|
});
|
||||||
|
if (allDone) {
|
||||||
|
voice.speak('数据一致');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (newScanned >= maxQty) {
|
||||||
|
const matchedId = String(matchedItem?.id || '');
|
||||||
|
if (matchedId) {
|
||||||
|
this.matchedGoodsId = matchedId;
|
||||||
|
if (typeof this.$set === 'function') {
|
||||||
|
this.$set(this.matchedGoodsState, matchedId, true);
|
||||||
|
} else {
|
||||||
|
this.matchedGoodsState[matchedId] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((this.scanQty || 1) > 1) {
|
||||||
|
this.$emit('resetScanQty');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -990,4 +1111,116 @@ import voice from '@/core/utils/voice';
|
|||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #c0c4cc;
|
color: #c0c4cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 多商品匹配弹窗 */
|
||||||
|
.multi-match-popup {
|
||||||
|
padding: 48rpx 32rpx calc(40rpx + env(safe-area-inset-bottom));
|
||||||
|
background: #ffffff;
|
||||||
|
border-top-left-radius: 20rpx;
|
||||||
|
border-top-right-radius: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-popup-title {
|
||||||
|
font-size: 38rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-popup-body {
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: stretch;
|
||||||
|
padding: 0;
|
||||||
|
background: #f8f9fa;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
border: 1rpx solid #ebeef5;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-card:active {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-thumb {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 240rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #f2f3f5;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-image-placeholder {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 240rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: #f2f3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-info {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 10rpx;
|
||||||
|
padding: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-name {
|
||||||
|
font-size: 38rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
line-height: 1.4;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-barcode,
|
||||||
|
.multi-match-spec {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #909399;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-qty {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #2979ff;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-popup-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-footer-btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
font-size: 36rpx;
|
||||||
|
background: #f5f5f5;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-match-footer-btn:active {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1108,6 +1108,10 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
|||||||
}
|
}
|
||||||
// 详情视图模式下,扫描传给 ReviewDetail 组件处理
|
// 详情视图模式下,扫描传给 ReviewDetail 组件处理
|
||||||
if (this.showDetailView && this.$refs.reviewDetail) {
|
if (this.showDetailView && this.$refs.reviewDetail) {
|
||||||
|
// 多商品匹配弹窗已打开时,忽略重复扫描,避免重复提示
|
||||||
|
if (this.$refs.reviewDetail.showMultiMatchPopup) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.keyword = scanText;
|
this.keyword = scanText;
|
||||||
const matched = this.$refs.reviewDetail.handleScanCode(scanText);
|
const matched = this.$refs.reviewDetail.handleScanCode(scanText);
|
||||||
setTimeout(() => { this.keyword = ''; }, 300);
|
setTimeout(() => { this.keyword = ''; }, 300);
|
||||||
@ -1153,6 +1157,10 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
|||||||
uni.showToast({ title: '该订单已复核完成,仅可查看', icon: 'none' });
|
uni.showToast({ title: '该订单已复核完成,仅可查看', icon: 'none' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// 多商品匹配弹窗已打开时,忽略重复扫描,避免重复提示
|
||||||
|
if (this.$refs.reviewDetail.showMultiMatchPopup) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const matched = this.$refs.reviewDetail.handleScanCode(text);
|
const matched = this.$refs.reviewDetail.handleScanCode(text);
|
||||||
if (!matched) {
|
if (!matched) {
|
||||||
uni.showToast({ title: '条码不匹配', icon: 'none' });
|
uni.showToast({ title: '条码不匹配', icon: 'none' });
|
||||||
@ -1269,6 +1277,10 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
|||||||
uni.showToast({ title: '该订单已复核完成,仅可查看', icon: 'none' });
|
uni.showToast({ title: '该订单已复核完成,仅可查看', icon: 'none' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// 多商品匹配弹窗已打开时,忽略重复扫描,避免重复提示
|
||||||
|
if (this.$refs.reviewDetail.showMultiMatchPopup) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const matched = this.$refs.reviewDetail.handleScanCode(scanResult);
|
const matched = this.$refs.reviewDetail.handleScanCode(scanResult);
|
||||||
if (!matched) {
|
if (!matched) {
|
||||||
uni.showToast({ title: '条码不匹配', icon: 'none' });
|
uni.showToast({ title: '条码不匹配', icon: 'none' });
|
||||||
|
|||||||
@ -184,6 +184,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import voice from '@/core/utils/voice';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -1251,6 +1252,7 @@
|
|||||||
title: '完成成功',
|
title: '完成成功',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
|
voice.speak('拣货完成');
|
||||||
// 通知列表页更新该波次状态为已复核
|
// 通知列表页更新该波次状态为已复核
|
||||||
const completedBatchNo = String(this.taskInfo?.batchNo || '').trim();
|
const completedBatchNo = String(this.taskInfo?.batchNo || '').trim();
|
||||||
if (completedBatchNo) {
|
if (completedBatchNo) {
|
||||||
|
|||||||
@ -1527,9 +1527,6 @@
|
|||||||
this.updateDisplayListByMode(mergedList, keyword, isBarcodeKeyword);
|
this.updateDisplayListByMode(mergedList, keyword, isBarcodeKeyword);
|
||||||
console.log('[ProductQuery] 搜索结果数量:', this.list.length);
|
console.log('[ProductQuery] 搜索结果数量:', this.list.length);
|
||||||
console.log('[ProductQuery] 搜索结果列表:', this.list);
|
console.log('[ProductQuery] 搜索结果列表:', this.list);
|
||||||
if (!silentVoice) {
|
|
||||||
this.speakQueryMessage(this.getSearchVoiceText(keyword, this.list.length));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.rawList = [];
|
this.rawList = [];
|
||||||
this.list = [];
|
this.list = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user