领料出库去除数量限制

This commit is contained in:
76164 2024-07-29 10:11:57 +08:00
parent ae3cbecb52
commit 2cc41e1896
1 changed files with 5 additions and 6 deletions

View File

@ -484,7 +484,7 @@
:inline="true"
label-width="100px"
>
<!-- <span style="margin-right: 50px;">
<!-- <span style="margin-right: 50px;">
待出库数量{{outNum}}
</span>-->
<el-form-item label="请输入车牌号" prop="carCode">
@ -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() {