This commit is contained in:
lsymicc
2025-12-10 09:32:28 +08:00
parent f80481c93d
commit 999c2bdc54
7 changed files with 76 additions and 40 deletions

View File

@@ -517,6 +517,7 @@
this.subOrderInfo = null
},
handleQuantityInput(value) {
console.log(this.subOrderInfo.quantity)
const numValue = Number(value)
if (numValue <= 0) {
this.inQuantity = ''
@@ -536,26 +537,26 @@
}
this.inQuantity = String(numValue)
},
handleQuantityInput(value) {
const numValue = Number(value)
if (numValue <= 0) {
this.inQuantity = ''
uni.showToast({
title: this.$t('inbound.bindMsg.quantityGreaterThanZero'),
icon: 'none'
})
return
}
if (numValue > this.subOrderInfo.quantity) {
this.inQuantity = String(this.subOrderInfo.quantity)
uni.showToast({
title: this.$t('inbound.bindMsg.notExceedMaxQuantity'),
icon: 'none'
})
return
}
this.inQuantity = String(numValue)
},
// handleQuantityInput(value) {
// const numValue = Number(value)
// if (numValue <= 0) {
// this.inQuantity = ''
// uni.showToast({
// title: this.$t('inbound.bindMsg.quantityGreaterThanZero'),
// icon: 'none'
// })
// return
// }
// if (numValue > this.subOrderInfo.quantity) {
// this.inQuantity = String(this.subOrderInfo.quantity)
// uni.showToast({
// title: this.$t('inbound.bindMsg.notExceedMaxQuantity'),
// icon: 'none'
// })
// return
// }
// this.inQuantity = String(numValue)
// },
// 处理绑定子单据事件
async handleBindSubOrder() {
// 验证必填信息