领料出库恢复限制
This commit is contained in:
parent
ab24cae703
commit
1497d38315
|
|
@ -539,6 +539,7 @@
|
|||
v-model.number="scope.row.inputNum"
|
||||
placeholder="请输入出库数量"
|
||||
type="number"
|
||||
@input="checkNum(scope.row)"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
|
|
@ -872,9 +873,9 @@ export default {
|
|||
// console.log(this.dialogQuery)
|
||||
getLeaseAuditListDetail(this.dialogQuery).then((response) => {
|
||||
// 待出库数量为负数时显示为 0
|
||||
response.data.rows.forEach(item => {
|
||||
/* response.data.rows.forEach(item => {
|
||||
item.outNum = item.outNum < 0 ? 0 : item.outNum
|
||||
})
|
||||
}) */
|
||||
this.dialogList = response.data.rows
|
||||
this.dialogTotal = response.data.total
|
||||
})
|
||||
|
|
@ -987,6 +988,7 @@ export default {
|
|||
},
|
||||
//编码出库保存
|
||||
saveCodeOut() {
|
||||
if (this.maCodeList.length <= this.outObj.outNum) {
|
||||
let params = this.maCodeList.map((item) => {
|
||||
let obj = {
|
||||
id: this.outObj.id,
|
||||
|
|
@ -1008,6 +1010,9 @@ export default {
|
|||
this.handleDialogQuery()
|
||||
this.handleQuery()
|
||||
})
|
||||
} else {
|
||||
this.$modal.msgError('所选机具编码已超出出库数量!')
|
||||
}
|
||||
},
|
||||
//数量出库保存
|
||||
saveNumOut() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue