Browse Source

撤销出库界面更改

1,大众看板出库单
2,大众无看板出库单
3,一次性销售出库单
4,红旗一轿出库单
这些界面为实习生所写,自己全部重写了
branch_ccpg_220107
44673626 3 years ago
parent
commit
be54a1d387
  1. 142
      vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
  2. 195
      vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
  3. 122
      vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
  4. 129
      vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue

142
vue/src/views/ux/billManage/kanbanOutOrder/detail.vue

@ -1,4 +1,4 @@
<!--FIS发运数据对比输出表-明细数据-->
<!--大众看板出库单-->
<template>
<div class="cr-body-content">
<flexbox class="content-header">
@ -13,7 +13,7 @@
type="success"
icon="el-icon-check"
size="mini"
@click="print()"
@click="handleCreateBills()"
>确认出库单</el-button
>
<el-button
@ -21,7 +21,7 @@
size="mini"
type="warning"
icon="el-icon-download"
@click="handleCancelBills()"
@click="HandleOutPutCancel()"
>取消出库(支持批量)
</el-button>
<el-button
@ -145,7 +145,7 @@
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
@click="save()"
>确认</el-button
>
</div>
@ -367,8 +367,23 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
//
handleCancelBills(row) {
save(row) {
if (this.formTitle == "撤销出库") {
this.CancelBills(row);
} else if (this.formTitle == "创建出库单") {
this.saveBills(row);
}
},
//
handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
this.formTitle = "创建出库单";
},
//
HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -376,46 +391,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/wmskanbanoutput/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({
@ -424,16 +411,8 @@ export default {
});
});
},
print() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
},
//
handleCreateBills(row) {
this.dialogFormVisible = true;
this.listLoading = true;
//
saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -442,17 +421,13 @@ 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(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios
.posts(
@ -470,13 +445,66 @@ export default {
this.accountDatelist.accountDate = "";
this.dialogFormVisible = false;
this.getList();
this.listLoading = false;
this.formLoading = false;
})
.catch(() => {
this.listLoading = false;
this.formLoading = false;
});
}
},
//
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/wmskanbanoutput/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: "调用服务出错!",
});
});
},
//
handleDelete(row) {
var params = [];

195
vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue

@ -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 = [];

122
vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue

@ -22,7 +22,7 @@
size="mini"
type="warning"
icon="el-icon-download"
@click="print()"
@click="HandleOutPutCancel()"
>取消出库(支持批量)
</el-button>
<el-button
@ -170,7 +170,7 @@
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
@click="save()"
>确认</el-button
>
</div>
@ -251,7 +251,7 @@ export default {
SkipCount: 0,
MaxResultCount: 15,
billNum: "",
version: "",
version: "",
},
listOutPutQuery: {
version: "",
@ -447,8 +447,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: "至少选择一行!",
@ -456,46 +465,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/WmsOneTimeSaleOutput/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({
@ -504,15 +485,16 @@ export default {
});
});
},
print() {
//
handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
this.formTitle = "创建出库单";
},
//
handleCreateBills(row) {
this.dialogFormVisible = true;
saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -530,8 +512,7 @@ export default {
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"红旗数据调整-全部确认出库条件:" +
JSON.stringify(this.listOutPutQuery)
"一轿车-确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
@ -557,6 +538,59 @@ 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/WmsOneTimeSaleOutput/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: "调用服务出错!",
});
});
},
//
handleDelete(row) {
var params = [];

129
vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue

@ -22,7 +22,7 @@
size="mini"
type="warning"
icon="el-icon-download"
@click="print()"
@click="HandleOutPutCancel()"
>取消出库(支持批量)
</el-button>
<el-button
@ -167,10 +167,7 @@
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button
v-loading="formLoading"
type="primary"
@click="handleCreateBills()"
<el-button v-loading="formLoading" type="primary" @click="save()"
>确认</el-button
>
</div>
@ -255,7 +252,7 @@ export default {
},
listOutPutQuery: {
version: "",
guids: "",
guids: [],
billNum: "",
accountDate: "",
},
@ -350,9 +347,7 @@ export default {
this.listQuery.version = this.customerInfo.version;
this.listQuery.billNum = this.customerInfo.parentId;
console.log(
"红旗一轿车库单导出:" + JSON.stringify(this.listQuery)
);
console.log("红旗一轿车库单导出:" + JSON.stringify(this.listQuery));
this.$axios
.posts("/api/settleaccount/WmsHQKBOutput/Export", this.listQuery)
.then((res) => {
@ -453,8 +448,15 @@ 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: "至少选择一行!",
@ -462,63 +464,88 @@ export default {
});
return;
}
let myalert = "选中项"; //使
this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
this.formTitle = "撤销出库";
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
//
handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
this.formTitle = "创建出库单";
},
//
CancelBills(row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
type: "warning",
});
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;
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Cancel",
this.listOutPutQuery
)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "操作成功",
type: "success",
duration: 2000,
});
this.getList();
});
this.$axios
.posts(
"/api/settleaccount/WmsHQKBOutput/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: "已取消操作",
message: "调用服务出错!",
});
});
},
print() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
},
//
handleCreateBills(row) {
this.dialogFormVisible = true;
saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -527,18 +554,13 @@ 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(
"红旗数据调整-全部确认出库条件:" +
JSON.stringify(this.listOutPutQuery)
);
console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios
.posts(
@ -740,10 +762,15 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
console.log("选择中行:" + JSON.stringify(this.multipleSelection));
},
/** 通过回调控制style */
cellStyle({ row, column, rowIndex, columnIndex }) {
if (column.property === "qty" || column.property === "realityNumber" || column.property === "sockQty") {
if (
column.property === "qty" ||
column.property === "realityNumber" ||
column.property === "sockQty"
) {
return { textAlign: "right" };
} else {
return { textAlign: "left" };

Loading…
Cancel
Save