From 668566dff0c973b4ffdeda5d62bfeeff1a8d29c9 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Mon, 22 Apr 2024 22:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E7=AE=B1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/consolidation/consolidation.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/consolidation/consolidation.vue b/pages/consolidation/consolidation.vue index eea88be..5d2b671 100644 --- a/pages/consolidation/consolidation.vue +++ b/pages/consolidation/consolidation.vue @@ -38,7 +38,7 @@ - + @@ -244,6 +244,17 @@ export default { this.modalShow = false; this.secondNum = 0; }, + numInput(value) { + let maxQuantity = this.newMaterialList[1]?.quantity; + if (!maxQuantity) { + this.secondNum = 0; + return; + } + if (!(value * 1 < maxQuantity * 1)) { + this.secondNum = maxQuantity; + return; + } + }, // 点击拼箱 handlerSubmit() { if (this.newMaterialList.length < 2) {