From c4aa40737d601f999fea7301c8e7a5a2f23f7940 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=90=20=E5=BC=A0?= <2366389513@qq.com>
Date: Tue, 11 Jan 2022 16:51:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=A0=E5=8F=82=20accountD?=
=?UTF-8?q?ate?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ux/vw/dataInput/hq_f_outorder/detail.vue | 148 +++++++--------
.../hq_f_outorder_chickout/detail.vue | 148 +++++++--------
.../ux/vw/dataInput/hq_h_checkout/detail.vue | 148 +++++++--------
.../ux/vw/dataInput/hq_h_outorder/detail.vue | 149 +++++++--------
.../ux/vw/dataInput/hq_m_checkout/detail.vue | 148 +++++++--------
.../ux/vw/dataInput/hq_m_outorder/detail.vue | 148 +++++++--------
.../ux/vw/dataInput/hq_y_outorder/detail.vue | 169 ++++++++----------
7 files changed, 487 insertions(+), 571 deletions(-)
diff --git a/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue b/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue
index 55a9dc2f..8fed5bf5 100644
--- a/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +219,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate:""
},
page: 1,
JobversionValue: "",
@@ -191,6 +231,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist:{
+ accountDate:""
+ }
};
},
mounted() {
@@ -322,99 +365,44 @@ export default {
});
});
},
+ print() {
+ this.dialogFormVisible = true;
+ },
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
+ this.dialogFormVisible = true;
this.listLoading = true;
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist != "") {
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
+ //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
- this.$confirm("是否全部确认出库?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
});
+ this.getList();
this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
this.listLoading = false;
});
- }
+
},
/** 刷新列表 */
handleHandle(data) {
diff --git a/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue b/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue
index 258aab71..ce23408a 100644
--- a/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +219,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate:""
},
page: 1,
JobversionValue: "",
@@ -191,6 +231,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist:{
+ accountDate:""
+ }
};
},
mounted() {
@@ -321,100 +364,45 @@ export default {
message: "已取消操作",
});
});
+ },
+ print() {
+ this.dialogFormVisible = true;
},
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
+ this.dialogFormVisible = true;
this.listLoading = true;
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist != "") {
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
+ //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
- this.$confirm("是否全部确认出库?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Pass",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
});
+ this.getList();
this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
this.listLoading = false;
});
- }
+
},
/** 刷新列表 */
handleHandle(data) {
diff --git a/vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue b/vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
index 3bf6e2f7..60620da1 100644
--- a/vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +219,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate:""
},
page: 1,
JobversionValue: "",
@@ -191,6 +231,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist:{
+ accountDate:""
+ }
};
},
mounted() {
@@ -322,99 +365,44 @@ export default {
});
});
},
+ print() {
+ this.dialogFormVisible = true;
+ },
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
+ this.dialogFormVisible = true;
this.listLoading = true;
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist != "") {
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
+ //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
- this.$confirm("是否全部确认出库?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
});
+ this.getList();
this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
this.listLoading = false;
});
- }
+
},
/** 刷新列表 */
handleHandle(data) {
diff --git a/vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue b/vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
index b0a4b4c2..30777f5e 100644
--- a/vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -139,6 +178,7 @@ export default {
customerInfo: {
parentId: "",
version: "",
+ accountDate: "",
},
form: {
dicDetailID: "",
@@ -180,6 +220,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate: "",
},
page: 1,
JobversionValue: "",
@@ -191,6 +232,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist:{
+ accountDate:""
+ }
};
},
mounted() {
@@ -322,99 +366,44 @@ export default {
});
});
},
+ print() {
+ this.dialogFormVisible = true;
+ },
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
+ this.dialogFormVisible = true;
this.listLoading = true;
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist != "") {
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
+ //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
- this.$confirm("是否全部确认出库?", "提示", {
- 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.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+
+ 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.getList();
this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
this.listLoading = false;
});
- }
+
},
/** 刷新列表 */
handleHandle(data) {
diff --git a/vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue b/vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue
index c1edc1a7..a9bf7b79 100644
--- a/vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +219,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate:""
},
page: 1,
JobversionValue: "",
@@ -191,6 +231,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist:{
+ accountDate:""
+ }
};
},
mounted() {
@@ -321,100 +364,45 @@ export default {
message: "已取消操作",
});
});
+ },
+ print() {
+ this.dialogFormVisible = true;
},
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
+ this.dialogFormVisible = true;
this.listLoading = true;
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist != "") {
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
+ //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
- this.$confirm("是否全部确认出库?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPut-Pass",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
});
+ this.getList();
this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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/WmsHQMSharePartoutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
this.listLoading = false;
});
- }
+
},
/** 刷新列表 */
handleHandle(data) {
diff --git a/vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue b/vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue
index 364da8d3..feef263d 100644
--- a/vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +219,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate:""
},
page: 1,
JobversionValue: "",
@@ -191,6 +231,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist:{
+ accountDate:""
+ }
};
},
mounted() {
@@ -322,99 +365,44 @@ export default {
});
});
},
+ print() {
+ this.dialogFormVisible = true;
+ },
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
+ this.dialogFormVisible = true;
this.listLoading = true;
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ if (this.accountDatelist != "") {
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
+ //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
- this.$confirm("是否全部确认出库?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSHQMKanbanoutput/WmsHQMKanbanOutPut-Pass",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
});
+ this.getList();
this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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/WMSHQMKanbanoutput/WmsHQMKanbanOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
this.listLoading = false;
});
- }
+
},
/** 刷新列表 */
handleHandle(data) {
diff --git a/vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue b/vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue
index 4d7107a2..898b678c 100644
--- a/vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue
@@ -21,8 +21,8 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="handleCreateBills()"
- >确认出库单(支持批量)确认出库单
+
+
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +219,7 @@ export default {
version: "",
guids: "",
billNum: "",
+ accountDate: "",
},
page: 1,
JobversionValue: "",
@@ -191,6 +231,9 @@ export default {
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
+ accountDatelist: {
+ accountDate: "",
+ },
};
},
mounted() {
@@ -322,99 +365,43 @@ export default {
});
});
},
+ print() {
+ this.dialogFormVisible = true;
+ },
//出库单
handleCreateBills(row) {
- if (this.multipleSelection.length == 0) {
- this.listLoading = true;
- this.listOutPutQuery.guids = [];
- this.listOutPutQuery.version = this.customerInfo.version;
- this.listOutPutQuery.billNum = this.customerInfo.parentId;
- console.log(
- "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
- this.$confirm("是否全部确认出库?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
- this.listLoading = false;
- });
- } else {
- this.listLoading = true;
- 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);
+ this.dialogFormVisible = true;
+ this.listLoading = true;
+ this.listOutPutQuery.guids = [];
+ this.listOutPutQuery.version = this.customerInfo.version;
+ this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ 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/WmsHQCaroutput/WmsSharePartOutPut-Pass",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "生成成功",
+ type: "success",
+ duration: 2000,
});
- 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",
+ this.getList();
+ this.listLoading = false;
})
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "生成成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- this.listLoading = false;
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
- });
- this.listLoading = false;
- });
- }
+ .catch(() => {
+ this.listLoading = false;
+ });
},
/** 刷新列表 */
handleHandle(data) {