diff --git a/vue/package.json b/vue/package.json
index 695289d6..94d4c662 100644
--- a/vue/package.json
+++ b/vue/package.json
@@ -61,6 +61,7 @@
"jsonlint": "1.6.3",
"jszip": "3.2.1",
"lockr": "^0.8.5",
+ "lodash": "^4.17.21",
"moment": "^2.29.1",
"normalize.css": "^7.0.0",
"nprogress": "0.2.0",
diff --git a/vue/src/views/ux/billManage/WMSOutputSumReport/index.vue b/vue/src/views/ux/billManage/WMSOutputSumReport/index.vue
index ae2418c9..80d65b82 100644
--- a/vue/src/views/ux/billManage/WMSOutputSumReport/index.vue
+++ b/vue/src/views/ux/billManage/WMSOutputSumReport/index.vue
@@ -360,8 +360,8 @@
取消
-
- 重置 -->
+ 确认
@@ -378,6 +378,7 @@ import moment from "moment";
import Lockr from "lockr";
import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
+import _ from "lodash";
export default {
name: "WMSOutputSumReport",
@@ -462,6 +463,7 @@ export default {
MaxResultCount: 15,
version: "",
state: 4,
+ isDisable: false,
accountDate: undefined,
type: undefined,
//materialGroup: undefined,
@@ -734,6 +736,7 @@ export default {
this.dataValue = "";
this.formTitle = "同步MWS至SAP";
this.isEdit = false;
+ this.isDisable = false;
this.form = {};
this.dialogAccounDateVisible = true;
this.resultData = {};
@@ -784,54 +787,110 @@ export default {
});
},
//同步到SAP
- saveDate() {
- this.$refs.formCount.validate((valid) => {
- if (valid) {
- this.formLoading = true;
- this.resultData.errSize == 0; //重新弹窗
- if (this.dataValue === "") {
- this.$message.error("必需选择过账日期!");
- this.formLoading = false;
- return;
- }
+ saveDate: _.debounce(
+ function () {
+ this.resultData.errSize == 0; //重新弹窗
+ if (this.dataValue === "") {
+ this.$message.error("必需选择过账日期!");
+ this.formLoading = false;
+ return;
+ }
- if (this.JobversionValue != "") {
- this.listQuery.version = this.JobversionValue;
- }
- this.listQuery.accountDate = this.dataValue;
- //this.listQuery.type = this.selectType; //出库类型
- console.log("同步SAP传参:" + JSON.stringify(this.listQuery));
- this.$axios
- .posts(
- "/api/settleaccount/WMSOutputSumReport/SyncSap",
- this.listQuery
- )
- .then((res) => {
- if (res === "Success") {
- this.$notify({
- title: "成功",
- message: "数据同步SAP成功!",
- type: "success",
- duration: 2000,
- });
- this.resultData.errSize = 0;
- this.resultData.successMessage = "同步SAP成功!";
- this.getList();
- } else {
- this.resultData.errTemplate = res; //指定错误模板名称,作为参数,用于错误模板下载
- this.resultData.errSize = 1; //保持大于0,用于控制错误数据下载按钮的可不可见
- this.resultData.successMessage = "同步SAP失败!";
- }
- this.formLoading = false;
- this.dialogAccounDateVisible = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.dialogAccounDateVisible = false;
- });
+ if (this.JobversionValue != "") {
+ this.listQuery.version = this.JobversionValue;
}
- });
- },
+ this.listQuery.accountDate = this.dataValue;
+ //this.listQuery.type = this.selectType; //出库类型
+ console.log("同步SAP传参:" + JSON.stringify(this.listQuery));
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSOutputSumReport/SyncSap",
+ this.listQuery
+ )
+ .then((res) => {
+ if (res === "Success") {
+ this.$notify({
+ title: "成功",
+ message: "数据同步SAP成功!",
+ type: "success",
+ duration: 2000,
+ });
+ this.resultData.errSize = 0;
+ this.resultData.successMessage = "同步SAP成功!";
+ this.getList();
+ } else {
+ this.resultData.errTemplate = res; //指定错误模板名称,作为参数,用于错误模板下载
+ this.resultData.errSize = 1; //保持大于0,用于控制错误数据下载按钮的可不可见
+ this.resultData.successMessage = "同步SAP失败!";
+ }
+
+ this.dialogAccounDateVisible = false;
+ })
+ .catch(() => {
+ this.dialogAccounDateVisible = false;
+ });
+ },
+ 2000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
+ }
+ ),
+
+ // saveDate() {
+ // this.$refs.formCount.validate((valid) => {
+ // if (valid) {
+ // //this.formLoading = true;
+ // this.isDisable = true;
+ // this.resultData.errSize == 0; //重新弹窗
+ // if (this.dataValue === "") {
+ // this.$message.error("必需选择过账日期!");
+ // this.formLoading = false;
+ // return;
+ // }
+
+ // if (this.JobversionValue != "") {
+ // this.listQuery.version = this.JobversionValue;
+ // }
+ // this.listQuery.accountDate = this.dataValue;
+ // //this.listQuery.type = this.selectType; //出库类型
+ // console.log("同步SAP传参:" + JSON.stringify(this.listQuery));
+ // this.$axios
+ // .posts(
+ // "/api/settleaccount/WMSOutputSumReport/SyncSap",
+ // this.listQuery
+ // )
+ // .then((res) => {
+ // if (res === "Success") {
+ // this.$notify({
+ // title: "成功",
+ // message: "数据同步SAP成功!",
+ // type: "success",
+ // duration: 2000,
+ // });
+ // this.resultData.errSize = 0;
+ // this.resultData.successMessage = "同步SAP成功!";
+ // this.getList();
+ // } else {
+ // this.resultData.errTemplate = res; //指定错误模板名称,作为参数,用于错误模板下载
+ // this.resultData.errSize = 1; //保持大于0,用于控制错误数据下载按钮的可不可见
+ // this.resultData.successMessage = "同步SAP失败!";
+ // }
+ // setTimeout(() => {
+ // //大数据量加载时
+ // //this.formLoading = false;
+ // this.isDisable = false;
+ // }, 2000);
+
+ // this.dialogAccounDateVisible = false;
+ // })
+ // .catch(() => {
+ // // this.formLoading = false;
+ // this.dialogAccounDateVisible = false;
+ // });
+ // }
+ // });
+ // },
//导出功能
async handleDownload() {
this.listLoading = true;
@@ -1023,8 +1082,8 @@ export default {
this.$refs[refName].resetFields();
}
this.searchContent = "";
- this.searchContentSaleCode="";
- this.searchContentMaterialCode="";
+ this.searchContentSaleCode = "";
+ this.searchContentMaterialCode = "";
this.getmaterialGroupValue = "";
this.selectType = "";
this.listQuery.type = undefined;
diff --git a/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue b/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
index e6a96c7d..3d80bf07 100644
--- a/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
+++ b/vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
@@ -10,7 +10,9 @@
>
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 出库单删除
+ 出库单删除
+
{
- this.$axios
- .posts(
- "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ );
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM");
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
+ ),
// saveBills(row) {
// this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version;
@@ -557,13 +583,55 @@ export default {
// type: "warning",
// });
// return;
- // } else {
- // if (this.accountDatelist != "") {
- // this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- // }
- // //this.listOutPutQuery.accountDate = this.accountDatelist;
- // console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
+ // }
+ // this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ // console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
+
+ // let myalert = "";
+ // var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ // "YYYY-MM"
+ // );
+ // let date = new Date();
+ // let currentMonth = moment(date).format("YYYY-MM");
+ // if (getAccountMonth < currentMonth) {
+ // myalert = "过账日期小于当前月份";
+ // this.$confirm("是否确认" + myalert + "?", "提示", {
+ // confirmButtonText: "确定",
+ // cancelButtonText: "取消",
+ // type: "warning",
+ // })
+ // .then(() => {
+ // this.$axios
+ // .posts(
+ // "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
+ // 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;
+ // });
+ // })
+ // .catch(() => {
+ // this.$message({
+ // type: "info",
+ // message: "已取消操作",
+ // });
+ // this.formLoading = false;
+ // });
+ // } else if (getAccountMonth === currentMonth) {
// this.$axios
// .posts(
// "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
@@ -585,122 +653,137 @@ export default {
// .catch(() => {
// this.formLoading = false;
// });
+ // } else {
+ // this.$message({
+ // type: "warning",
+ // message: "选择的过账日期不能大于当前月份!",
+ // });
+ // this.formLoading = false;
+ // return;
// }
// },
+
//取消出库单
- 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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- console.log(
- "过账日期:" +
- JSON.stringify(getAccountMonth) +
- "当前日期:" +
- JSON.stringify(currentMonth)
- );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ CancelBills: _.debounce(
+ function (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));
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ console.log(
+ "过账日期:" +
+ JSON.stringify(getAccountMonth) +
+ "当前日期:" +
+ JSON.stringify(currentMonth)
+ );
+ if (getAccountMonth < currentMonth) {
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.$message({
- type: "info",
- message: "调用服务出错!",
+ 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.accountDatelist.accountDate = "";
+ this.dialogFormVisible = false;
+ this.getList();
+ this.formLoading = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
+ this.$message({
+ type: "info",
+ message: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- 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: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ 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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
+ ),
// CancelBills(row) {
// if (this.accountDatelist.accountDate == "") {
// this.$message({
@@ -725,32 +808,94 @@ export default {
// this.listOutPutQuery.billNum = this.customerInfo.parentId;
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
+ // let myalert = "";
+ // var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ // "YYYY-MM"
+ // ); //选择的日期
+ // let date = new Date();
+ // let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ // console.log(
+ // "过账日期:" +
+ // JSON.stringify(getAccountMonth) +
+ // "当前日期:" +
+ // JSON.stringify(currentMonth)
+ // );
+ // if (getAccountMonth < currentMonth) {
+ // myalert = "过账日期小于当前月份";
- // 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;
+ // this.$confirm("是否确认" + myalert + "?", "提示", {
+ // confirmButtonText: "确定",
+ // cancelButtonText: "取消",
+ // type: "warning",
// })
- // .catch(() => {
- // this.formLoading = false;
- // this.$message({
- // type: "info",
- // message: "调用服务出错!",
+ // .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.accountDatelist.accountDate = "";
+ // this.dialogFormVisible = false;
+ // this.getList();
+ // this.formLoading = false;
+ // })
+ // .catch(() => {
+ // this.formLoading = false;
+ // this.$message({
+ // type: "info",
+ // message: "调用服务出错!",
+ // });
+ // });
+ // })
+ // .catch(() => {
+ // this.$message({
+ // type: "info",
+ // message: "已取消操作",
+ // });
+ // this.formLoading = false;
+ // });
+ // } else if (getAccountMonth === currentMonth) {
+ // 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: "调用服务出错!",
+ // });
// });
+ // } else {
+ // this.$message({
+ // type: "warning",
+ // message: "选择的过账日期不能大于当前月份!",
// });
+ // this.formLoading = false;
+ // return;
+ // }
// },
//删除出库单
diff --git a/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue b/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
index 955526b4..b2b3f0af 100644
--- a/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
+++ b/vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
@@ -22,7 +22,9 @@
>
-->
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 整单删除
+ 整单删除
+
{
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
+ 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;
+ });
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ this.formLoading = false;
+ });
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
+ 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;
+ });
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
+ });
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ ),
+ //取消出库单
+ CancelBills: _.debounce(
+ function (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));
- console.log(
- "无条码看板-全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- );
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM");
- // console.log(
- // "过账日期:" +
- // JSON.stringify(getAccountMonth) +
- // "当前日期:" +
- // JSON.stringify(currentMonth)
- // );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((res) => {
- const index = this.list.indexOf(row);
- if (res === "Success") {
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ if (getAccountMonth < currentMonth) {
+ 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: "确认成功!",
+ 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;
+ this.formLoading = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
+ this.$message({
+ type: "info",
+ message: "调用服务出错!",
+ });
+ });
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((res) => {
- const index = this.list.indexOf(row);
- if (res === "Success") {
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Cancel",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
this.$notify({
title: "成功",
- message: "确认成功!",
+ 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;
- });
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
- }
- },
-
- // saveBills(row) {
- // this.resultData.errSize == 0; //重新弹窗
- // this.listOutPutQuery.guids = [];
- // this.listOutPutQuery.version = this.customerInfo.version;
- // this.listOutPutQuery.billNum = this.customerInfo.parentId;
- // if (this.accountDatelist.accountDate == "") {
- // this.$message({
- // message: "请选择日期!",
- // type: "warning",
- // });
- // return;
- // } else {
- // if (this.accountDatelist != "") {
- // this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- // }
- // console.log(
- // "无条码看板-全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- // );
-
- // this.$axios
- // .posts(
- // "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
- // 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;
- // });
- // }
- // },
-
- //取消出库单
- 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));
-
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- if (getAccountMonth < currentMonth) {
- 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.$message({
- type: "info",
- message: "调用服务出错!",
- });
+ this.formLoading = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
+ this.$message({
+ type: "info",
+ message: "调用服务出错!",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- 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: "调用服务出错!",
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: 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/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: "调用服务出错!",
- // });
- // });
- // },
+ ),
//删除出库单
handleDelete(row) {
diff --git a/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue b/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
index 6144eb18..22efa063 100644
--- a/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
+++ b/vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
@@ -18,7 +18,9 @@
>
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 出库单删除
+ 出库单删除
+
{
- //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ saveBills: _.debounce(
+ function (row) {
+ 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.formLoading = false;
+ return;
+ }
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ console.log(
+ "全部确认出库条件:" +
+ JSON.stringify(this.listOutPutQuery) +
+ "选择日期:" +
+ JSON.stringify(this.accountDatelist.accountDate)
+ );
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ );
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM");
+ // console.log(
+ // "过账日期:" +
+ // JSON.stringify(getAccountMonth) +
+ // "当前日期:" +
+ // JSON.stringify(currentMonth)
+ // );
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
+ ),
//撤销出库
HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
@@ -653,127 +685,133 @@ export default {
});
},
//取消出库单
- CancelBills(row) {
- if (this.accountDatelist.accountDate == "") {
- this.$message({
- message: "请选择日期!",
- type: "warning",
- });
- this.formLoading = false;
- 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));
+ CancelBills: _.debounce(
+ function (row) {
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ this.formLoading = false;
+ 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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- console.log(
- "过账日期:" +
- JSON.stringify(getAccountMonth) +
- "当前日期:" +
- JSON.stringify(currentMonth)
- );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ console.log(
+ "过账日期:" +
+ JSON.stringify(getAccountMonth) +
+ "当前日期:" +
+ JSON.stringify(currentMonth)
+ );
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- console.log(
- "取消出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ console.log(
+ "取消出库条件:" + JSON.stringify(this.listOutPutQuery)
+ );
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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: "调用服务出错!",
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
-
+ ),
//删除出库单
handleDelete(row) {
var params = [];
diff --git a/vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue b/vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
index 61cb9a01..a0e37608 100644
--- a/vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
+++ b/vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
@@ -17,7 +17,9 @@
@value-change="JobVersionValue"
>
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 出库单删除
+ 出库单删除
+
{
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios;
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios;
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
- // saveBills(row) {
- // this.listOutPutQuery.guids = [];
- // this.listOutPutQuery.version = this.customerInfo.version;
- // this.listOutPutQuery.billNum = this.customerInfo.parentId;
- // if (this.accountDatelist.accountDate == "") {
- // this.$message({
- // message: "请选择日期!",
- // type: "warning",
- // });
- // 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/wmsSharePart90output/WmsSharePartOutPut-Pass",
- // 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;
- // });
- // }
+ ),
// },
//撤销出库
@@ -596,172 +588,127 @@ 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));
+ CancelBills: _.debounce(
+ function (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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- console.log(
- "取消出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ console.log(
+ "取消出库条件:" + JSON.stringify(this.listOutPutQuery)
+ );
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-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: "调用服务出错!",
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-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: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
+ this.formLoading = false;
});
- this.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.$message({
- type: "info",
- message: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: 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/wmsSharePart90output/WmsSharePartOutPut-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 = [];
diff --git a/vue/src/views/ux/billManage/vwOutOrder/detail.vue b/vue/src/views/ux/billManage/vwOutOrder/detail.vue
index 2e3fb6ca..360b3f0d 100644
--- a/vue/src/views/ux/billManage/vwOutOrder/detail.vue
+++ b/vue/src/views/ux/billManage/vwOutOrder/detail.vue
@@ -17,7 +17,9 @@
>确认出库单 -->
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 出库单删除
+ 出库单删除
+
取消
- 确认
+ 确认
@@ -177,6 +199,7 @@ import CRMTableHead from "../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
+import _ from "lodash";
export default {
name: "sendUnsettledDiffReport",
@@ -410,120 +433,128 @@ 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));
+ CancelBills: _.debounce(
+ function (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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- console.log(
- "过账日期:" +
- JSON.stringify(getAccountMonth) +
- "当前日期:" +
- JSON.stringify(currentMonth)
- );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ console.log(
+ "过账日期:" +
+ JSON.stringify(getAccountMonth) +
+ "当前日期:" +
+ JSON.stringify(currentMonth)
+ );
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/wmsjitoutput/WmsJitOutPut-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: "调用服务出错!",
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsjitoutput/WmsJitOutPut-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: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmsjitoutput/WmsJitOutPut-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: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsjitoutput/WmsJitOutPut-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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
+ ),
+
// CancelBills(row) {
// if (this.accountDatelist.accountDate == "") {
// this.$message({
@@ -584,97 +615,108 @@ export default {
}
this.formTitle = "创建出库单";
},
- //出库单
- saveBills(row) {
- 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.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ //出库单(加上防抖功能)
+ saveBills: _.debounce(
+ function (row) {
+ 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.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- console.log("全部确认出库条件:" + JSON.stringify(this.listOutPutQuery));
+ console.log(
+ "全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
+ );
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- );
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM");
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ );
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM");
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ //this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ //this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
+ ),
+
+ //出库单
// saveBills(row) {
// this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version;
@@ -686,15 +728,55 @@ export default {
// });
// //this.getList();
// return;
- // } else {
- // if (this.accountDatelist != "") {
- // this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- // }
- // //this.listOutPutQuery.accountDate = this.accountDatelist;
- // console.log(
- // "全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- // );
+ // }
+ // this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+
+ // console.log("全部确认出库条件:" + JSON.stringify(this.listOutPutQuery));
+ // let myalert = "";
+ // var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ // "YYYY-MM"
+ // );
+ // let date = new Date();
+ // let currentMonth = moment(date).format("YYYY-MM");
+ // if (getAccountMonth < currentMonth) {
+ // myalert = "过账日期小于当前月份";
+ // this.$confirm("是否确认" + myalert + "?", "提示", {
+ // confirmButtonText: "确定",
+ // cancelButtonText: "取消",
+ // type: "warning",
+ // })
+ // .then(() => {
+ // this.$axios
+ // .posts(
+ // "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
+ // 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;
+ // });
+ // })
+ // .catch(() => {
+ // this.$message({
+ // type: "info",
+ // message: "已取消操作",
+ // });
+ // this.formLoading = false;
+ // });
+ // } else if (getAccountMonth === currentMonth) {
// this.$axios
// .posts(
// "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
@@ -716,8 +798,16 @@ export default {
// .catch(() => {
// this.formLoading = false;
// });
+ // } else {
+ // this.$message({
+ // type: "warning",
+ // message: "选择的过账日期不能大于当前月份!",
+ // });
+ // this.formLoading = false;
+ // return;
// }
// },
+
//出库单
handleCreateBills_old(row) {
if (this.multipleSelection.length == 0) {
@@ -947,10 +1037,9 @@ export default {
this.list = response.items;
//alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount;
- setTimeout(() => {
- //大数据量加载时
- this.listLoading = false;
- }, 500);
+
+ //大数据量加载时
+ this.listLoading = false;
})
.catch(() => {
this.listLoading = false;
diff --git a/vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue b/vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue
index 5b3c9646..bfdbd7b0 100644
--- a/vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue
+++ b/vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue
@@ -9,7 +9,9 @@
@value-change="JobVersionValue"
>
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 删除出库单
+ 删除出库单
+
{
- this.$axios
- .posts(
- "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ );
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM");
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
- // saveBills(row) {
- // this.listOutPutQuery.guids = [];
- // this.listOutPutQuery.version = this.customerInfo.version;
- // this.listOutPutQuery.billNum = this.customerInfo.parentId;
- // if (this.accountDatelist.accountDate == "") {
- // this.$message({
- // message: "请选择日期!",
- // type: "warning",
- // });
- // return;
- // } 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/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass",
- // 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;
- // });
- // }
- // },
+ ),
//取消出库单
- 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));
+ CancelBills: _.debounce(
+ function (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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- console.log(
- "过账日期:" +
- JSON.stringify(getAccountMonth) +
- "当前日期:" +
- JSON.stringify(currentMonth)
- );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ console.log(
+ "过账日期:" +
+ JSON.stringify(getAccountMonth) +
+ "当前日期:" +
+ JSON.stringify(currentMonth)
+ );
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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: "调用服务出错!",
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
+ this.formLoading = false;
});
- this.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.$message({
- type: "info",
- message: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: 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/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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 = [];
diff --git a/vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue b/vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
index 87852a20..e5c46e18 100644
--- a/vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
@@ -1,4 +1,4 @@
-
+
@@ -169,6 +191,7 @@ import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
+import _ from "lodash";
export default {
name: "sendUnsettledDiffReport",
@@ -245,7 +268,7 @@ export default {
billNum: "",
},
listOutPutQuery: {
- Filters: [
+ Filters: [
{
logic: 0,
column: "state",
@@ -372,7 +395,7 @@ export default {
logic: 0,
column: column,
action: 0,
- value:this.selectJobVersionValue,
+ value: this.selectJobVersionValue,
};
this.listOutPutQuery.Filters.push(filter);
@@ -475,228 +498,128 @@ 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));
+ CancelBills: _.debounce(
+ function (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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- console.log(
- "过账日期:" +
- JSON.stringify(getAccountMonth) +
- "当前日期:" +
- JSON.stringify(currentMonth)
- );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ console.log(
+ "过账日期:" +
+ JSON.stringify(getAccountMonth) +
+ "当前日期:" +
+ JSON.stringify(currentMonth)
+ );
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-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: "调用服务出错!",
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-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: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-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: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: 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/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-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: "调用服务出错!",
- // });
- // });
- // },
- //取消出库单
- // handleCancelBills(row) {
- // if (this.multipleSelection.length == 0) {
- // 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;
- // console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
-
- // this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
- // confirmButtonText: "确定",
- // cancelButtonText: "取消",
- // type: "warning",
- // })
- // .then(() => {
- // this.$axios
- // .posts(
- // "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel",
- // this.listOutPutQuery
- // )
- // .then((response) => {
- // const index = this.list.indexOf(row);
- // this.$notify({
- // title: "成功",
- // message: "操作成功",
- // type: "success",
- // duration: 2000,
- // });
- // this.getList();
- // });
- // })
- // .catch(() => {
- // this.$message({
- // type: "info",
- // message: "已取消操作",
- // });
- // });
- // },
//确认出库单
handleCreateBills() {
this.dialogFormVisible = true;
@@ -710,99 +633,107 @@ export default {
this.getList();
},
//出库单
- saveBills(row) {
- this.listOutPutQuery.guids = [];
- this.listOutPutQuery.version = this.customerInfo.version;
- this.listOutPutQuery.billNum = this.customerInfo.parentId;
- if (this.accountDatelist.accountDate == "") {
- this.$message({
- message: "请选择日期!",
- type: "warning",
- });
- return;
- }
- this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ saveBills: _.debounce(
+ function (row) {
+ this.listOutPutQuery.guids = [];
+ this.listOutPutQuery.version = this.customerInfo.version;
+ this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- console.log(
- "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
+ console.log(
+ "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
+ );
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- );
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM");
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ );
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM");
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
+ 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;
+ this.dialogFormVisible = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
});
- this.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- this.dialogFormVisible = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
+ 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;
+ this.dialogFormVisible = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
});
- this.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- this.dialogFormVisible = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
+ ),
+
// saveBills(row) {
// this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version;
@@ -812,18 +743,59 @@ 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)
- // );
+ // }
+ // this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+
+ // console.log(
+ // "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
+ // );
+ // let myalert = "";
+ // var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ // "YYYY-MM"
+ // );
+ // let date = new Date();
+ // let currentMonth = moment(date).format("YYYY-MM");
+ // if (getAccountMonth < currentMonth) {
+ // myalert = "过账日期小于当前月份";
+ // this.$confirm("是否确认" + myalert + "?", "提示", {
+ // confirmButtonText: "确定",
+ // cancelButtonText: "取消",
+ // type: "warning",
+ // })
+ // .then(() => {
+ // this.$axios
+ // .posts(
+ // "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
+ // 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;
+ // this.dialogFormVisible = false;
+ // })
+ // .catch(() => {
+ // this.formLoading = false;
+ // });
+ // })
+ // .catch(() => {
+ // this.$message({
+ // type: "info",
+ // message: "已取消操作",
+ // });
+ // this.formLoading = false;
+ // });
+ // } else if (getAccountMonth === currentMonth) {
// this.$axios
// .posts(
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
@@ -846,8 +818,16 @@ export default {
// .catch(() => {
// this.formLoading = false;
// });
+ // } else {
+ // this.$message({
+ // type: "warning",
+ // message: "选择的过账日期不能大于当前月份!",
+ // });
+ // this.formLoading = false;
+ // return;
// }
// },
+
//删除出库单
handleDelete(row) {
var params = [];
diff --git a/vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue b/vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue
index 614b674a..71bc41a1 100644
--- a/vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue
@@ -10,7 +10,9 @@
>
确认出库单
取消出库(支持批量)
取消出库(支持批量)
+
+ 出库单删除
+ 出库单删除
+
{
- 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));
+ CancelBills: _.debounce(
+ function (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));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- ); //选择的日期
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM"); //当前月
- console.log(
- "过账日期:" +
- JSON.stringify(getAccountMonth) +
- "当前日期:" +
- JSON.stringify(currentMonth)
- );
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ ); //选择的日期
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM"); //当前月
+ console.log(
+ "过账日期:" +
+ JSON.stringify(getAccountMonth) +
+ "当前日期:" +
+ JSON.stringify(currentMonth)
+ );
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
- 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.$message({
- type: "info",
- message: "调用服务出错!",
+ 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.accountDatelist.accountDate = "";
+ this.dialogFormVisible = false;
+ this.getList();
+ this.formLoading = false;
+ })
+ .catch(() => {
+ this.formLoading = false;
+ this.$message({
+ type: "info",
+ message: "调用服务出错!",
+ });
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- 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.formLoading = false;
});
- this.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
- this.$message({
- type: "info",
- message: "调用服务出错!",
+ } else if (getAccountMonth === currentMonth) {
+ 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: "调用服务出错!",
+ });
});
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: 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/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: "调用服务出错!",
- // });
- // });
- // },
+ ),
//出库单
- saveBills(row) {
- this.listOutPutQuery.guids = [];
- this.listOutPutQuery.version = this.customerInfo.version;
- this.listOutPutQuery.billNum = this.customerInfo.parentId;
- if (this.accountDatelist.accountDate == "") {
- this.$message({
- message: "请选择日期!",
- type: "warning",
- });
- return;
- }
- this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ saveBills: _.debounce(
+ function (row) {
+ this.listOutPutQuery.guids = [];
+ this.listOutPutQuery.version = this.customerInfo.version;
+ this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
+ console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
- let myalert = "";
- var getAccountMonth = moment(this.accountDatelist.accountDate).format(
- "YYYY-MM"
- );
- let date = new Date();
- let currentMonth = moment(date).format("YYYY-MM");
- if (getAccountMonth < currentMonth) {
- myalert = "过账日期小于当前月份";
- this.$confirm("是否确认" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ let myalert = "";
+ var getAccountMonth = moment(this.accountDatelist.accountDate).format(
+ "YYYY-MM"
+ );
+ let date = new Date();
+ let currentMonth = moment(date).format("YYYY-MM");
+ if (getAccountMonth < currentMonth) {
+ myalert = "过账日期小于当前月份";
+ this.$confirm("是否确认" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.formLoading = false;
});
- this.formLoading = false;
- });
- } else if (getAccountMonth === currentMonth) {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
+ } else if (getAccountMonth === currentMonth) {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Pass",
+ 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.accountDatelist.accountDate = "";
- this.dialogFormVisible = false;
- this.getList();
- this.formLoading = false;
- })
- .catch(() => {
- this.formLoading = false;
+ } else {
+ this.$message({
+ type: "warning",
+ message: "选择的过账日期不能大于当前月份!",
});
- } else {
- this.$message({
- type: "warning",
- message: "选择的过账日期不能大于当前月份!",
- });
- this.formLoading = false;
- return;
+ this.formLoading = false;
+ return;
+ }
+ },
+ 1000,
+ {
+ leading: true, //在延迟开始前立即调用事件
+ trailing: false, //在延时结束后不调用,保证事件只被触发一次
}
- },
- // saveBills(row) {
- // this.listOutPutQuery.guids = [];
- // this.listOutPutQuery.version = this.customerInfo.version;
- // this.listOutPutQuery.billNum = this.customerInfo.parentId;
- // if (this.accountDatelist.accountDate == "") {
- // this.$message({
- // message: "请选择日期!",
- // type: "warning",
- // });
- // return;
- // } 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/WmsHQKBOutput/WmsKanbanOutPut-Pass",
- // 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;
- // });
- // }
- // },
+ ),
//删除出库单
handleDelete(row) {
var params = [];