领料出库功能完善
This commit is contained in:
parent
956cfee621
commit
f5bf791b1a
|
|
@ -498,37 +498,45 @@
|
|||
},
|
||||
//编码出库保存
|
||||
saveCodeOut(){
|
||||
// console.log(this.outObj)
|
||||
if(this.maCodeList.length<=this.outObj.outNum){
|
||||
let params = this.maCodeList.map(item=>{
|
||||
let obj = {
|
||||
id:this.outObj.id,
|
||||
maId:item,
|
||||
manageType:0,
|
||||
carCode:this.codeOutForm.carCode,
|
||||
typeId:this.outObj.typeId,
|
||||
parentId:this.outObj.parentId,
|
||||
outNum:1,
|
||||
taskId:this.outObj.taskId,
|
||||
}
|
||||
return obj
|
||||
})
|
||||
// console.log(params)
|
||||
submitOut(params).then(response => {
|
||||
this.$modal.msgSuccess("出库成功");
|
||||
this.openCode = false;
|
||||
this.handleDialogQuery();
|
||||
this.handleQuery();
|
||||
}
|
||||
);
|
||||
|
||||
}else{
|
||||
this.$modal.msgError("所选机具编码已超出出库数量!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
let params = this.maCodeList.map(item=>{
|
||||
let obj = {
|
||||
id:this.outObj.id,
|
||||
maId:item,
|
||||
manageType:0,
|
||||
carCode:this.codeOutForm.carCode,
|
||||
typeId:this.outObj.typeId,
|
||||
parentId:this.outObj.parentId,
|
||||
outNum:1,
|
||||
taskId:this.outObj.taskId,
|
||||
}
|
||||
return obj
|
||||
})
|
||||
console.log(params)
|
||||
submitOut(params).then(response => {
|
||||
this.$modal.msgSuccess("出库成功");
|
||||
this.openCode = false;
|
||||
this.handleQuery();
|
||||
}
|
||||
);
|
||||
},
|
||||
//数量出库保存
|
||||
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