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