|
|
@ -1,4 +1,4 @@ |
|
|
|
<!--大众无条码看板-明细数据--> |
|
|
|
<!--大众无条码看板出库单--> |
|
|
|
<template> |
|
|
|
<div class="cr-body-content"> |
|
|
|
<flexbox class="content-header"> |
|
|
@ -34,7 +34,7 @@ |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
icon="el-icon-download" |
|
|
|
@click="print()" |
|
|
|
@click="HandleOutPutCancel()" |
|
|
|
>取消出库(支持批量) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
@ -463,8 +463,17 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//取消出库单 |
|
|
|
handleCancelBills(row) { |
|
|
|
|
|
|
|
save(row) { |
|
|
|
if (this.formTitle == "撤销出库") { |
|
|
|
this.CancelBills(row); |
|
|
|
} else if (this.formTitle == "创建出库单") { |
|
|
|
this.saveBills(row); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//撤销出库 |
|
|
|
HandleOutPutCancel() { |
|
|
|
if (this.multipleSelection.length == 0) { |
|
|
|
this.$message({ |
|
|
|
message: "至少选择一行!", |
|
|
@ -472,46 +481,18 @@ export default { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
var params = []; |
|
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
|
if (row) { |
|
|
|
//单行 |
|
|
|
params.push(row.id); |
|
|
|
myalert = row.name; |
|
|
|
} else { |
|
|
|
//多选 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let id = element.id; |
|
|
|
params.push(id); |
|
|
|
}); |
|
|
|
myalert = "选中项"; |
|
|
|
} |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.guids = params; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); |
|
|
|
|
|
|
|
let myalert = "选中项"; //声明变量,其变量必须在此声明后使用 |
|
|
|
this.$confirm("是否确认取消出库" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Cancel", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.getList(); |
|
|
|
}); |
|
|
|
this.dialogFormVisible = true; |
|
|
|
if (this.$refs["accountDatelist"] !== undefined) { |
|
|
|
this.$refs["accountDatelist"].resetFields(); |
|
|
|
} |
|
|
|
this.formTitle = "撤销出库"; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
@ -520,22 +501,18 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
print() { |
|
|
|
//创建出库单 |
|
|
|
handleCreateBills(row) { |
|
|
|
this.dialogFormVisible = true; |
|
|
|
if (this.$refs["accountDatelist"] !== undefined) { |
|
|
|
this.$refs["accountDatelist"].resetFields(); |
|
|
|
} |
|
|
|
}, |
|
|
|
//出库单 |
|
|
|
handleCreateBills(row) { |
|
|
|
this.dialogFormVisible = true; |
|
|
|
this.resultData = {}; |
|
|
|
this.formTitle = "创建出库单"; |
|
|
|
}, |
|
|
|
//出库单 |
|
|
|
save(row) { |
|
|
|
this.dialogFormVisible = true; |
|
|
|
//保存出库单 |
|
|
|
saveBills(row) { |
|
|
|
this.resultData.errSize == 0; //重新弹窗 |
|
|
|
//this.formLoading = true; |
|
|
|
this.listOutPutQuery.guids = []; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
@ -544,18 +521,16 @@ export default { |
|
|
|
message: "请选择日期!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
this.getList(); |
|
|
|
return; |
|
|
|
//this.getList(); |
|
|
|
} else { |
|
|
|
if (this.accountDatelist != "") { |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
} |
|
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
console.log( |
|
|
|
console.log( |
|
|
|
"无条码看板-全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
|
this.$axios |
|
|
|
|
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
@ -588,6 +563,122 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//取消出库单 |
|
|
|
CancelBills(row) { |
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
this.$message({ |
|
|
|
message: "请选择日期!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
var params = []; |
|
|
|
if (row) { |
|
|
|
//单行 |
|
|
|
params.push(row.id); |
|
|
|
} else { |
|
|
|
//多选 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let id = element.id; |
|
|
|
params.push(id); |
|
|
|
}); |
|
|
|
} |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.guids = params; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); |
|
|
|
|
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Cancel", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "调用服务出错!", |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //出库单 |
|
|
|
// save-00(row) { |
|
|
|
// this.dialogFormVisible = true; |
|
|
|
// this.resultData.errSize == 0; //重新弹窗 |
|
|
|
// //this.formLoading = true; |
|
|
|
// this.listOutPutQuery.guids = []; |
|
|
|
// this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
// this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
// if (this.accountDatelist.accountDate == "") { |
|
|
|
// this.$message({ |
|
|
|
// message: "请选择日期!", |
|
|
|
// type: "warning", |
|
|
|
// }); |
|
|
|
// this.getList(); |
|
|
|
// return; |
|
|
|
// //this.getList(); |
|
|
|
// } else { |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
// } |
|
|
|
// //this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
// console.log( |
|
|
|
// "无条码看板-全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
// ); |
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass-00", |
|
|
|
// this.listOutPutQuery |
|
|
|
// ) |
|
|
|
// .then((res) => { |
|
|
|
// const index = this.list.indexOf(row); |
|
|
|
// if (res === "Success") { |
|
|
|
// this.$notify({ |
|
|
|
// title: "成功", |
|
|
|
// message: "确认成功!", |
|
|
|
// type: "success", |
|
|
|
// duration: 2000, |
|
|
|
// }); |
|
|
|
// this.accountDatelist.accountDate = ""; |
|
|
|
// this.resultData.errSize = 0; |
|
|
|
// this.dialogFormVisible = false; |
|
|
|
// this.resultData.successMessage = "出库成功!"; |
|
|
|
// this.getList(); |
|
|
|
// } else { |
|
|
|
// this.dialogFormVisible = false; |
|
|
|
// this.resultData.errTemplate = res; //指定错误模板名称,作为参数,用于错误模板下载 |
|
|
|
// this.resultData.errSize = 1; //保持大于0,用于控制错误数据下载按钮的可不可见 |
|
|
|
// this.resultData.successMessage = "有错误检验信息!"; |
|
|
|
// //alert(JSON.stringify(this.resultData)); |
|
|
|
// } |
|
|
|
// this.formLoading = false; |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//删除出库单 |
|
|
|
handleDelete(row) { |
|
|
|
var params = []; |
|
|
|