Commit 67991405 authored by jingnan's avatar jingnan 👀

报废领用申领数量校验修改

parent 4707b520
......@@ -44,6 +44,11 @@ export default {
componentName: '领用出库明细',
name: 'AddOutStorageUseDetail',
components: { AddOutStorageUseDetailDialog, AdjustOccupyCom },
provide() { // 用于报废领用申领数量编辑校验
return {
useRequestType: this.basicData.useRequestType
}
},
props: {
basicData: {
type: Object,
......
......@@ -29,6 +29,13 @@ export default {
default: 0
}
},
inject: {
'useRequestType': {
default: () => {
return { useRequestType: '' }
}
}
},
data() {
return {
reqAmount: 0,
......@@ -54,6 +61,9 @@ export default {
},
methods: {
handleChange() {
if (this.useRequestType === 'scrapUse' && this.form.extSupportingItemVO && this.reqAmount > this.form.extSupportingItemVO.reqAmount) {
return this.$utils.showMessageWarning('当前物料可申领数量不足!')
}
this.$emit('input', this.reqAmount)
if (this.form.id) {
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