This commit is contained in:
parent
89fd68034d
commit
fc3ebb9089
|
|
@ -756,6 +756,7 @@ export default {
|
||||||
this.queryParams.createBy = this.user.userName
|
this.queryParams.createBy = this.user.userName
|
||||||
// this.queryParams.companyId = this.user.companyId
|
// this.queryParams.companyId = this.user.companyId
|
||||||
this.queryParams.userId = this.user.userId
|
this.queryParams.userId = this.user.userId
|
||||||
|
try {
|
||||||
let res
|
let res
|
||||||
|
|
||||||
if (this.taskId) {
|
if (this.taskId) {
|
||||||
|
|
@ -808,6 +809,11 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.submitLoading = false
|
this.submitLoading = false
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
this.submitLoading = false
|
||||||
|
} finally {
|
||||||
|
this.submitLoading = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -836,8 +842,10 @@ export default {
|
||||||
let maxNum = row.num
|
let maxNum = row.num
|
||||||
if (row.preNum <= 1) {
|
if (row.preNum <= 1) {
|
||||||
row.preNum = 1
|
row.preNum = 1
|
||||||
} else if (row.preNum >= maxNum) {
|
} else if (row.preNum > maxNum) {
|
||||||
row.preNum = maxNum
|
// row.preNum = maxNum
|
||||||
|
// 提示: 预领数量不能大于库存数量
|
||||||
|
this.$message.error(`该设备的库存为${maxNum},预领数量不可超过此库存,请重新填写!`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/////// 设备类型树 切换
|
/////// 设备类型树 切换
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue