修改订单复核,新增分拣缺货补货页面

This commit is contained in:
zm2000 2026-07-03 14:21:03 +08:00
parent 9342ce0c56
commit 6de6c0db7a
4 changed files with 152 additions and 4 deletions

View File

@ -222,6 +222,13 @@
{
"titleNView": false
}
},
{
"path" : "pages/replenishment/replenishShorts",
"style" :
{
"titleNView": false
}
}
],

View File

@ -0,0 +1,137 @@
<template>
<view class="replenish-shorts-page">
<view class="status-bar"></view>
<view class="page-header">
<view class="header-side header-side--left" @click="handleBack">
<u-icon name="arrow-left" size="18" color="#303133"></u-icon>
<text class="header-action-text">返回</text>
</view>
<text class="header-title">分拣缺货补货</text>
<view class="header-side header-side--right" @click="handleRefresh">
<text class="header-action-text">刷新</text>
</view>
</view>
<view class="page-body">
<view class="empty-card">
<text class="empty-card__title">页面建设中</text>
<text class="empty-card__desc">当前已完成顶部栏布局,可继续补充分拣缺货补货业务内容。</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
refreshAt: ''
};
},
onLoad() {
this.refreshPage();
},
methods: {
handleBack() {
uni.navigateBack({ delta: 1 });
},
handleRefresh() {
this.refreshPage();
uni.showToast({
title: '已刷新',
icon: 'none'
});
},
refreshPage() {
this.refreshAt = Date.now();
}
}
};
</script>
<style lang="scss" scoped>
.replenish-shorts-page {
min-height: 100vh;
background: #f5f7fa;
}
.status-bar {
height: var(--status-bar-height);
background: #ffffff;
}
.page-header {
height: 88rpx;
padding: 0 24rpx;
display: flex;
align-items: center;
justify-content: space-between;
background: #ffffff;
border-bottom: 1rpx solid #ebeef5;
box-sizing: border-box;
}
.header-side {
min-width: 112rpx;
display: flex;
align-items: center;
}
.header-side--left {
justify-content: flex-start;
}
.header-side--right {
justify-content: flex-end;
}
.header-title {
flex: 1;
padding: 0 16rpx;
font-size: 34rpx;
font-weight: 600;
color: #303133;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.header-action-text {
margin-left: 8rpx;
font-size: 28rpx;
color: #303133;
line-height: 1;
}
.header-side--right .header-action-text {
margin-left: 0;
color: #2979ff;
}
.page-body {
padding: 24rpx;
}
.empty-card {
padding: 40rpx 32rpx;
background: #ffffff;
border-radius: 20rpx;
box-shadow: 0 8rpx 24rpx rgba(15, 23, 42, 0.05);
}
.empty-card__title {
display: block;
font-size: 32rpx;
font-weight: 600;
color: #303133;
}
.empty-card__desc {
display: block;
margin-top: 16rpx;
font-size: 26rpx;
line-height: 1.7;
color: #606266;
}
</style>

View File

@ -145,7 +145,7 @@
</view>
<!-- 多商品匹配弹窗 -->
<u-popup v-if="showMultiMatchPopup" :show="showMultiMatchPopup" mode="bottom" :closeable="true" border-radius="20" :z-index="10100" @close="showMultiMatchPopup = false">
<u-popup v-if="showMultiMatchPopup" :show="showMultiMatchPopup" mode="bottom" :closeable="true" border-radius="20" :z-index="10100" @close="handleMultiMatchClose">
<view class="multi-match-popup">
<view class="multi-match-popup-title">库内有相同商品</view>
<view class="multi-match-popup-body">
@ -174,7 +174,7 @@
</view>
</view>
<view class="multi-match-popup-footer">
<view class="multi-match-footer-btn" @click="showMultiMatchPopup = false">关闭</view>
<view class="multi-match-footer-btn" @click="handleMultiMatchClose">关闭</view>
</view>
</view>
</u-popup>
@ -521,6 +521,10 @@ import voice from '@/core/utils/voice';
/**
* 多商品匹配时,选择第一个商品进行处理
*/
handleMultiMatchClose() {
this.showMultiMatchPopup = false;
this.pendingScanCode = '';
},
handleMultiMatchSelect(index) {
this.showMultiMatchPopup = false;
const code = this.pendingScanCode;

View File

@ -2107,7 +2107,7 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
try {
const res = await this.$http('setting.packageMaterial.search', { keyword: this.packageInputCode });
const list = Array.isArray(res?.data) ? res.data : [];
const matched = list.find(item => String(item.material_code || '') === this.packageInputCode) || list[0];
const matched = list.find(item => String(item.material_code || '') === this.packageInputCode);
if (matched) {
finalPackageCode = String(matched.id || '');
}
@ -2123,7 +2123,7 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
try {
const res = await this.$http('setting.packageMaterial.search', { keyword: this.suggestedPkg.code });
const list = Array.isArray(res?.data) ? res.data : [];
const matched = list.find(item => String(item.material_code || '') === this.suggestedPkg.code) || list[0];
const matched = list.find(item => String(item.material_code || '') === this.suggestedPkg.code);
if (matched) {
finalPackageCode = String(matched.id || '');
}