|
@ -178,12 +178,13 @@ |
|
|
}, |
|
|
}, |
|
|
setValue() { |
|
|
setValue() { |
|
|
var balanceQty = Number(this.dataContent.balanceQty); |
|
|
var balanceQty = Number(this.dataContent.balanceQty); |
|
|
if (this.allQty == 0) { |
|
|
if(this.allQty<0){ |
|
|
this.$refs.comMessage.showConfirmWarningModal('数量必须大于0', |
|
|
this.$refs.comMessage.showConfirmWarningModal('数量必须大于等于0', |
|
|
res => { |
|
|
res => { |
|
|
this.allQty = balanceQty; |
|
|
this.allQty = balanceQty; |
|
|
}) |
|
|
}) |
|
|
} else if (this.allQty > balanceQty) { |
|
|
}else { |
|
|
|
|
|
if (this.allQty > balanceQty) { |
|
|
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', |
|
|
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', |
|
|
res => { |
|
|
res => { |
|
|
this.allQty = balanceQty; |
|
|
this.allQty = balanceQty; |
|
@ -191,6 +192,7 @@ |
|
|
} else { |
|
|
} else { |
|
|
this.callback(); |
|
|
this.callback(); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
callback() { |
|
|
callback() { |
|
|
let qty = Number(this.allQty); |
|
|
let qty = Number(this.allQty); |
|
|