Browse Source

出库单加上 列表为空时,单击确认出库 给出提示

branch_ccpg_220107
44673626 2 years ago
parent
commit
68c7eacfd2
  1. 210
      vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
  2. 8
      vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
  3. 8
      vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
  4. 8
      vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
  5. 19
      vue/src/views/ux/billManage/vwOutOrder/detail.vue
  6. 8
      vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue
  7. 8
      vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
  8. 8
      vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
  9. 8
      vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue

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

@ -441,6 +441,14 @@ export default {
},
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
@ -573,95 +581,6 @@ export default {
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.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",
// 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;
// });
// } else {
// this.$message({
// type: "warning",
// message: "",
// });
// this.formLoading = false;
// return;
// }
// },
//
CancelBills: _.debounce(
@ -784,119 +703,6 @@ export default {
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));
// 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: "",
// });
// });
// })
// .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;
// }
// },
//
handleDelete(row) {

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

@ -571,6 +571,14 @@ export default {
},
//
handleCreateBills(row) {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

8
vue/src/views/ux/billManage/sparepartOutOrder/detail.vue

@ -539,6 +539,14 @@ export default {
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

8
vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue

@ -448,6 +448,14 @@ export default {
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

19
vue/src/views/ux/billManage/vwOutOrder/detail.vue

@ -609,6 +609,14 @@ export default {
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
@ -1020,6 +1028,17 @@ export default {
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
//20220921
this.listOutPutQuery.Filters = [];
var column = "state";
let filter = {
logic: 0,
column: column,
action: 0,
value: this.selectJobVersionValue,
};
this.listOutPutQuery.Filters.push(filter);
console.log(
"大众准时化出库单导出:" + JSON.stringify(this.listOutPutQuery)
);

8
vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue

@ -452,6 +452,14 @@ export default {
},
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

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

@ -551,6 +551,14 @@ export default {
},
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

8
vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue

@ -622,6 +622,14 @@ export default {
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

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

@ -554,6 +554,14 @@ export default {
},
//
handleCreateBills() {
var getdata = JSON.stringify(this.list);
if (getdata == "[]") {
this.$message({
type: "info",
message: "当前列表为空,不能执行出库操作!",
});
return;
}
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();

Loading…
Cancel
Save