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