领料出库功能完善
This commit is contained in:
parent
956cfee621
commit
f5bf791b1a
|
|
@ -498,8 +498,7 @@
|
|||
},
|
||||
//编码出库保存
|
||||
saveCodeOut(){
|
||||
// console.log(this.outObj)
|
||||
|
||||
if(this.maCodeList.length<=this.outObj.outNum){
|
||||
let params = this.maCodeList.map(item=>{
|
||||
let obj = {
|
||||
id:this.outObj.id,
|
||||
|
|
@ -513,22 +512,31 @@
|
|||
}
|
||||
return obj
|
||||
})
|
||||
console.log(params)
|
||||
// console.log(params)
|
||||
submitOut(params).then(response => {
|
||||
this.$modal.msgSuccess("出库成功");
|
||||
this.openCode = false;
|
||||
this.handleDialogQuery();
|
||||
this.handleQuery();
|
||||
}
|
||||
);
|
||||
|
||||
}else{
|
||||
this.$modal.msgError("所选机具编码已超出出库数量!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
//数量出库保存
|
||||
saveNumOut(){
|
||||
|
||||
this.outNumList[0].carCode = this.numOutForm.carCode
|
||||
let param = this.outNumList
|
||||
console.log(param)
|
||||
submitNumOut(param).then(response => {
|
||||
this.$modal.msgSuccess("出库成功");
|
||||
this.openNum = false;
|
||||
this.handleDialogQuery();
|
||||
this.handleQuery();
|
||||
}
|
||||
);
|
||||
|
|
@ -536,9 +544,13 @@
|
|||
|
||||
//输入出库数量
|
||||
checkNum(row){
|
||||
let maxNum = row.outNum
|
||||
if(row.inputNum<=1){
|
||||
row.inputNum = 1
|
||||
}
|
||||
if(row.inputNum>row.outNum){
|
||||
row.inputNum = maxNum;
|
||||
}
|
||||
},
|
||||
|
||||
/** 导出按钮操作 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue