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