Commit 0b4d4d6d authored by jingnan's avatar jingnan 👀

退库入库编辑数量前端取消最大数量校验

parent cc754b08
......@@ -64,10 +64,10 @@ export default {
// if (this.parentType_Inject === 'scrapUse' && this.form.extSupportingItemVO && this.reqAmount > this.form.extSupportingItemVO.reqAmount) {
// this.maxNum = this.form.extSupportingItemVO.reqAmount
// }
const maxAmount = this.$utils.subNum(this.form.outsideAmount, -this.form.backedAmount, -this.form.backAmount, -this.form.scrapCount)
if (this.parentType_Inject === '退库入库' && this.form.reqAmount > maxAmount) {
this.maxNum = maxAmount
}
// const maxAmount = this.$utils.subNum(this.form.outsideAmount, -this.form.backedAmount, -this.form.backAmount, -this.form.scrapCount)
// if (this.parentType_Inject === '退库入库' && this.form.reqAmount > maxAmount) {
// this.maxNum = maxAmount
// }
this.$emit('input', this.reqAmount)
if (this.form.id && this.parentType_Inject !== '退库入库' && !this.form.subTypeName.includes('BackItem')) {
this.changeAmount()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment