采购直接入库:修复库位复制异常问题

直接入库单:过滤掉上架数量为 0 的明细
This commit is contained in:
tao
2026-01-14 11:45:51 +08:00
parent 7ef0b48117
commit 81e061d08b
4 changed files with 18 additions and 50 deletions

View File

@@ -28,7 +28,11 @@
</view>
<uni-popup ref="popup" type="bottom" border-radius="10px 10px 0 0" background-color="#fff">
<scroll-view scroll-y class="err-logs-container" v-if="errorLogs.length">
<uni-section :title="'共有' + errorLogs.length + '条错误记录'" type="line" />
<uni-section :title="'共有' + errorLogs.length + '条错误记录'" type="line">
<template v-slot:right>
<u-button size="mini" text="清空" @click="removeAllErrLogs"></u-button>
</template>
</uni-section>
<uni-card v-for="(err, index) in errorLogs" :key="err.pieceBarcode">
<template #title>
<view class="err-logs-card__title">
@@ -194,6 +198,9 @@ export default {
removeErrPiece(pieceBarcode) {
this.errorLogs = this.errorLogs.filter(i => i.pieceBarcode !== pieceBarcode);
},
removeAllErrLogs() {
this.errorLogs = [];
},
// 通过销售单号获取任务单明细
async fetchDetail() {
//当输入值明显不合法时不执行后续操作