注释
This commit is contained in:
@@ -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() {
|
||||
// 验证必填信息
|
||||
|
||||
Reference in New Issue
Block a user