|
@ -178,18 +178,20 @@ |
|
|
}, |
|
|
}, |
|
|
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 { |
|
|
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', |
|
|
if (this.allQty > balanceQty) { |
|
|
res => { |
|
|
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', |
|
|
this.allQty = balanceQty; |
|
|
res => { |
|
|
}) |
|
|
this.allQty = balanceQty; |
|
|
} else { |
|
|
}) |
|
|
this.callback(); |
|
|
} else { |
|
|
|
|
|
this.callback(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
callback() { |
|
|
callback() { |
|
|