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) {