Commit 58e3462e authored by jingnan's avatar jingnan 👀

领用出库申领数量取消校验

parent bfa3bc17
......@@ -98,9 +98,9 @@ export default {
this.$refs['applyForm'].validate((valid) => {
if (valid && this.selection) {
const typeName = this.basicData.useRequestType
const maxAmount = typeName === 'scrapUse' ? this.selection.reqAmountOri : typeName === 'materialUse' ? Math.min(this.selection.unableAmount, this.selection.applyAmount) : this.selection.unableAmount
const maxWarning = typeName === 'scrapUse' ? '出库数量' : typeName === 'materialUse' ? '可用数量及可申领数量' : '可用数量'
if (this.applyForm.reqAmount > maxAmount) return this.$utils.showMessageWarning(`申领数量不能大于当前选中物料的${maxWarning}!`)
// const maxAmount = typeName === 'scrapUse' ? this.selection.reqAmountOri : typeName === 'materialUse' ? Math.min(this.selection.unableAmount, this.selection.applyAmount) : this.selection.unableAmount
// const maxWarning = typeName === 'scrapUse' ? '出库数量' : typeName === 'materialUse' ? '可用数量及可申领数量' : '可用数量'
// if (this.applyForm.reqAmount > maxAmount) return this.$utils.showMessageWarning(`申领数量不能大于当前选中物料的${maxWarning}!`)
const data = [{
'subTypeName': 'OutStorageUseItem',
'extMaterial': this.selection.extMaterial,
......
......@@ -49,21 +49,21 @@ export default {
handler(val) {
this.reqAmount = val
}
},
'form.unableAmount': {
immediate: true,
handler(val) {
val && (this.maxNum = val)
}
}
// 'form.unableAmount': {
// immediate: true,
// handler(val) {
// val && (this.maxNum = val)
// }
// }
},
created() {
},
methods: {
handleChange() {
if (this.parentType_Inject === 'scrapUse' && this.form.extSupportingItemVO && this.reqAmount > this.form.extSupportingItemVO.reqAmount) {
this.maxNum = this.form.extSupportingItemVO.reqAmount
}
// 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
......
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