From 2cc41e1896cde349052f5155e2719021a0fb78c5 Mon Sep 17 00:00:00 2001 From: 76164 <761646706@qq.com> Date: Mon, 29 Jul 2024 10:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=87=BA=E5=BA=93=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/claimAndreturn/picking/outbound/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sgzb-ui/src/views/claimAndreturn/picking/outbound/index.vue b/sgzb-ui/src/views/claimAndreturn/picking/outbound/index.vue index 3e15d819..965b48ec 100644 --- a/sgzb-ui/src/views/claimAndreturn/picking/outbound/index.vue +++ b/sgzb-ui/src/views/claimAndreturn/picking/outbound/index.vue @@ -484,7 +484,7 @@ :inline="true" label-width="100px" > - @@ -539,7 +539,6 @@ v-model.number="scope.row.inputNum" placeholder="请输入出库数量" type="number" - @input="checkNum(scope.row)" clearable style="width: 100%" /> @@ -872,6 +871,10 @@ export default { getDialogList() { // console.log(this.dialogQuery) getLeaseAuditListDetail(this.dialogQuery).then((response) => { + // 待出库数量为负数时显示为 0 + response.data.rows.forEach(item => { + item.outNum = item.outNum < 0 ? 0 : item.outNum + }) this.dialogList = response.data.rows this.dialogTotal = response.data.total }) @@ -984,7 +987,6 @@ export default { }, //编码出库保存 saveCodeOut() { - if (this.maCodeList.length <= this.outObj.outNum) { let params = this.maCodeList.map((item) => { let obj = { id: this.outObj.id, @@ -1006,9 +1008,6 @@ export default { this.handleDialogQuery() this.handleQuery() }) - } else { - this.$modal.msgError('所选机具编码已超出出库数量!') - } }, //数量出库保存 saveNumOut() {