diff --git a/vue/src/components/ImportExcel-base/index.vue b/vue/src/components/ImportExcel-base/index.vue
index fac4ea54..68487ce1 100644
--- a/vue/src/components/ImportExcel-base/index.vue
+++ b/vue/src/components/ImportExcel-base/index.vue
@@ -309,8 +309,8 @@ export default {
hqFPlatform: "红旗F平台", //红旗F平台导入
hqYPlatform: "一汽轿车", //一汽轿车平台导入
vwoutorder: "准时化出库单",
- sparepartoutorder: "大众备件出库单",
- sparepartoutorder90: "大众备件调整出库单",
+ sparepartoutorder: "大众备件无单号出库单",
+ sparepartoutorder90: "大众备件有单号出库单",
kanbanoutorder: "大众看板出库单",
HQ_H_OUTORDER: "红旗批量出库单",
HQ_M_OUTORDER: "红旗M平台出库单",
diff --git a/vue/src/router/modules/vw_menu.js b/vue/src/router/modules/vw_menu.js
index 75de3c26..bf038578 100644
--- a/vue/src/router/modules/vw_menu.js
+++ b/vue/src/router/modules/vw_menu.js
@@ -202,7 +202,7 @@ const vwMenudataRouter = {
component: () => import('@/views/ux/billManage/sparePart'),
name: 'SparePartReport',//命名路由
meta: {
- title: '大众备件手工汇总',
+ title: '大众备件数据输出',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '供货'
}
@@ -212,7 +212,7 @@ const vwMenudataRouter = {
component: () => import('@/views/ux/billManage/sparePart90'),
name: 'SparePart90Report',//命名路由
meta: {
- title: '大众备件明细输出',
+ title: '大众备件调整输出',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '工厂'
}
diff --git a/vue/src/router/modules/wms_out_order.js b/vue/src/router/modules/wms_out_order.js
index 7f5f544a..67b7ac33 100644
--- a/vue/src/router/modules/wms_out_order.js
+++ b/vue/src/router/modules/wms_out_order.js
@@ -69,6 +69,16 @@ const vwsOutOrderDataRouter = {
icon: '零件'
}
},
+ {
+ path: '/wms-unSettledSum',
+ component: () => import('@/views/ux/billManage/UnSettledSum'),
+ name: 'UnSettledSum',//命名路由
+ meta: {
+ title: '结算未结寄售核对表',
+ roles: ['SettleAccount.WMSJIT'],//控制页面角色(可以设置多个角色)
+ icon: '零件'
+ }
+ },
diff --git a/vue/src/views/ux/billManage/UnSettledSum/index.vue b/vue/src/views/ux/billManage/UnSettledSum/index.vue
new file mode 100644
index 00000000..ea75f24a
--- /dev/null
+++ b/vue/src/views/ux/billManage/UnSettledSum/index.vue
@@ -0,0 +1,839 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.column.label }}
+
+
+
+
+
+
+
+ {{ scope.row.remark }}
+
+
+ cancel
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+ 下载
+ 检验失败,下载
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vue/src/views/ux/billManage/WMSOutputDetailDiffReport/index.vue b/vue/src/views/ux/billManage/WMSOutputDetailDiffReport/index.vue
index 1fb94883..2acb0eb5 100644
--- a/vue/src/views/ux/billManage/WMSOutputDetailDiffReport/index.vue
+++ b/vue/src/views/ux/billManage/WMSOutputDetailDiffReport/index.vue
@@ -83,14 +83,15 @@
@click="handleFilter"
>搜索
-
+ v-loading="formLoading1"
+ @click="handleContinueIssue()"
+ >继续出库
+
-
@@ -259,7 +259,7 @@ export default {
SkipCount: 0,
MaxResultCount: 15,
billNum: "",
- version: "",
+ version: "",
},
listOutPutQuery: {
version: "",
@@ -358,14 +358,9 @@ export default {
this.listQuery.version = this.customerInfo.version;
this.listQuery.billNum = this.customerInfo.parentId;
- console.log(
- "大众备件出库单导出:" + JSON.stringify(this.listQuery)
- );
+ console.log("大众备件出库单导出:" + JSON.stringify(this.listQuery));
this.$axios
- .posts(
- "/api/settleaccount/wmsSharePartoutput/Export",
- this.listQuery
- )
+ .posts("/api/settleaccount/wmsSharePartoutput/Export", this.listQuery)
.then((res) => {
let fileNameOfProject = res;
this.$axios
@@ -465,73 +460,25 @@ export default {
});
}
},
- //取消出库单
- 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 = "选中项";
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
}
- 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/wmsSharePartoutput/WmsSharePartOutPut-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: "已取消操作",
- });
- });
},
- print() {
+
+ //确认出库单
+ handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
+ this.formTitle = "创建出库单";
},
+
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
- //this.formLoading = true;
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@@ -540,7 +487,6 @@ export default {
message: "请选择日期!",
type: "warning",
});
- this.getList();
return;
//this.getList();
} else {
@@ -549,7 +495,7 @@ export default {
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
console.log(
- "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
+ "全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
@@ -575,6 +521,88 @@ export default {
});
}
},
+ //撤销出库
+ HandleOutPutCancel() {
+ if (this.multipleSelection.length == 0) {
+ this.$message({
+ message: "至少选择一行!",
+ type: "warning",
+ });
+ return;
+ }
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+ //取消出库单
+ 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/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: "调用服务出错!",
+ });
+ });
+ },
+
//删除出库单
handleDelete(row) {
var params = [];
diff --git a/vue/src/views/ux/billManage/sparepartOutOrder/index.vue b/vue/src/views/ux/billManage/sparepartOutOrder/index.vue
index e3c787f5..3aae6098 100644
--- a/vue/src/views/ux/billManage/sparepartOutOrder/index.vue
+++ b/vue/src/views/ux/billManage/sparepartOutOrder/index.vue
@@ -1,4 +1,4 @@
-
+
@@ -372,73 +369,25 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
- //取消出库单
- 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/wmsSharePart90output/WmsSharePartOutPut-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: "已取消操作",
- });
- });
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
},
- print() {
+
+ //确认出库单
+ handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
+ this.formTitle = "创建出库单";
},
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
- this.listLoading = true;
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@@ -447,7 +396,6 @@ export default {
message: "请选择日期!",
type: "warning",
});
- this.getList();
return;
//this.getList();
} else {
@@ -482,6 +430,90 @@ export default {
});
}
},
+
+ //撤销出库
+ HandleOutPutCancel() {
+ if (this.multipleSelection.length == 0) {
+ this.$message({
+ message: "至少选择一行!",
+ type: "warning",
+ });
+ return;
+ }
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+
+ //取消出库单
+ 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/sparepartOutOrder90/index.vue b/vue/src/views/ux/billManage/sparepartOutOrder90/index.vue
index b98d7ff9..19bfa616 100644
--- a/vue/src/views/ux/billManage/sparepartOutOrder90/index.vue
+++ b/vue/src/views/ux/billManage/sparepartOutOrder90/index.vue
@@ -1,4 +1,4 @@
-
+
取消
- 确认
@@ -225,6 +222,7 @@ export default {
SkipCount: 0,
MaxResultCount: 15,
billNum: "",
+ state:"",
},
listOutPutQuery: {
version: "",
@@ -323,8 +321,17 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
- //取消出库单
- handleCancelBills(row) {
+
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
+ },
+
+ //撤销出库
+ HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@@ -332,58 +339,90 @@ export default {
});
return;
}
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+
+ //取消出库单
+ CancelBills(row) {
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
var params = [];
- let myalert = ""; //声明变量,其变量必须在此声明后使用
if (row) {
//单行
params.push(row.id);
- myalert = row.name;
} else {
//多选
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
- myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
- this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- });
+ this.$axios
+ .posts(
+ "/api/settleaccount/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: "已取消操作",
+ message: "调用服务出错!",
});
});
},
- //出库单
- handleCreateBills(row) {
+
+ //确认出库单
+ handleCreateBills() {
this.dialogFormVisible = true;
- this.formLoading = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "创建出库单";
+ },
+ //出库单
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@@ -392,9 +431,8 @@ export default {
message: "请选择日期!",
type: "warning",
});
- this.getList();
- return;
//this.getList();
+ return;
} else {
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
@@ -598,7 +636,9 @@ export default {
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
- console.log("大众准时化出库单导出:" + JSON.stringify(this.listOutPutQuery));
+ console.log(
+ "大众准时化出库单导出:" + JSON.stringify(this.listOutPutQuery)
+ );
this.$axios
.posts("/api/settleaccount/wmsjitoutput/Export", this.listOutPutQuery)
.then((res) => {
diff --git a/vue/src/views/ux/vw/dataInput/OnetimeSale/detail_old.vue b/vue/src/views/ux/vw/dataInput/OnetimeSale/detail_old.vue
new file mode 100644
index 00000000..8e602b5b
--- /dev/null
+++ b/vue/src/views/ux/vw/dataInput/OnetimeSale/detail_old.vue
@@ -0,0 +1,764 @@
+
+
+
+
+
+
+
+
+
+ {{ scope.column.label }}
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 9de33b08..f8acfb54 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
@@ -2,7 +2,6 @@
@@ -184,7 +178,7 @@ export default {
erpMaterialCode: [
{ required: true, message: "必须输入!", trigger: "blur" },
],
- accountDate: [
+ accountDate: [
{ required: true, message: "日期必须输入!", trigger: "blur" },
],
},
@@ -233,9 +227,9 @@ export default {
version: "",
guids: "",
billNum: "",
- accountDate:""
+ accountDate: "",
},
- listDeleteQuery: {
+ listDeleteQuery: {
billNum: "",
},
page: 1,
@@ -244,14 +238,14 @@ export default {
dialogFormVisible: false,
multipleSelection: [],
formTitle: "",
- stockQty: "",
+ stockQty: "",
drawer: false,
showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230,
isEdit: false,
- accountDatelist:{
- accountDate:""
- }
+ accountDatelist: {
+ accountDate: "",
+ },
};
},
mounted() {
@@ -313,7 +307,7 @@ export default {
},
},
methods: {
- //导出全部功能
+ //导出全部功能
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
@@ -375,8 +369,17 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
- //取消出库单
- handleCancelBills(row) {
+
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
+ },
+
+ //撤销出库
+ HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@@ -384,68 +387,93 @@ export default {
});
return;
}
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+ //取消出库单
+ CancelBills(row) {
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
var params = [];
- let myalert = ""; //声明变量,其变量必须在此声明后使用
if (row) {
//单行
params.push(row.id);
- myalert = row.name;
} else {
//多选
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
- myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
- this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- });
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSHQFKanbanoutput/WmsHQFKanbanOutPut-Cancel",
+ this.listOutPutQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "操作成功",
+ type: "success",
+ duration: 2000,
+ });
+ this.accountDatelist.accountDate = "";
+ this.dialogFormVisible = false;
+ this.getList();
+ this.formLoading = false;
})
.catch(() => {
+ this.formLoading = false;
this.$message({
type: "info",
- message: "已取消操作",
+ message: "调用服务出错!",
});
});
},
- print() {
+
+ //确认出库单
+ handleCreateBills() {
this.dialogFormVisible = true;
- if (this.$refs["accountDatelist"] !== undefined) {
+ if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
+ this.formTitle = "创建出库单";
},
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
- this.listLoading = true;
- this.listOutPutQuery.guids = [];
- this.listOutPutQuery.version = this.customerInfo.version;
- this.listOutPutQuery.billNum = this.customerInfo.parentId;
- if (this.accountDatelist.accountDate == "") {
+ 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",
@@ -455,12 +483,10 @@ export default {
//this.getList();
} else {
if (this.accountDatelist != "") {
- this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
- }
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
+ }
//this.listOutPutQuery.accountDate = this.accountDatelist;
- console.log(
- "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
+ console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios
.posts(
@@ -487,48 +513,51 @@ export default {
}
},
//删除出库单
- handleDelete(row){
+ handleDelete(row) {
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.listDeleteQuery.billNum = this.listQuery.billNum ;
+ 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.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
- this.$confirm("是否删除" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts("/api/settleaccount/WMSHQFKanbanoutput/WmsOutPutDelete", this.listDeleteQuery)
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "删除成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
+ this.$confirm("是否删除" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.$axios
+ .posts(
+ "/api/settleaccount/WMSHQFKanbanoutput/WmsOutPutDelete",
+ this.listDeleteQuery
+ )
+ .then((response) => {
+ const index = this.list.indexOf(row);
+ this.$notify({
+ title: "成功",
+ message: "删除成功",
+ type: "success",
+ duration: 2000,
});
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消操作",
+ this.getList();
});
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
});
+ });
},
/** 刷新列表 */
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 45eeeb6d..33ab2b1f 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
@@ -13,7 +13,7 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="print()"
+ @click="handleCreateBills()"
>确认出库单
取消出库(支持批量)
取消
- 确认
@@ -453,8 +450,17 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
- //取消出库单
- handleCancelBills(row) {
+
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
+ },
+
+ //撤销出库
+ HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@@ -462,68 +468,95 @@ export default {
});
return;
}
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+ //取消出库单
+ CancelBills(row) {
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
var params = [];
- let myalert = ""; //声明变量,其变量必须在此声明后使用
if (row) {
//单行
params.push(row.id);
- myalert = row.name;
} else {
//多选
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
- myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
- this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- });
+ this.$axios
+ .posts(
+ "/api/settleaccount/wmsHQFSharePartoutput/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: "已取消操作",
+ message: "调用服务出错!",
});
});
},
- print() {
+
+ handleCreateBillsEnd(row) {
+ this.dialogFormVisible = false;
+ this.getList();
+ },
+
+ //确认出库单
+ handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
+ this.formTitle = "创建出库单";
},
- handleCreateBillsEnd(row) {
- this.dialogFormVisible = false;
- this.getList();
- },
+
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
- this.listLoading = true;
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
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 06db6a22..5df742f2 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
@@ -2,7 +2,6 @@
@@ -475,8 +471,17 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
- //取消出库单
- handleCancelBills(row) {
+
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
+ },
+
+ //撤销出库
+ HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@@ -484,77 +489,159 @@ export default {
});
return;
}
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+ //取消出库单
+ CancelBills(row) {
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
var params = [];
- let myalert = ""; //声明变量,其变量必须在此声明后使用
if (row) {
//单行
params.push(row.id);
- myalert = row.name;
} else {
//多选
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
- myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
- let date = new Date();
- let min = date.getMinutes();
- date.setMinutes(min + 1); //这里加1分钟,是为了解决值改变后,系统秒数就过期限制了,无法点击“此刻”按钮, 如果监听 “系统时间”的改变,则会影响性能。
- let nowDate = moment(date).format("HH:mm:ss");
-
- this.listOutPutQuery.accountDate = date;
-
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
- this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- });
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQHSharePartoutput/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: "已取消操作",
+ message: "调用服务出错!",
});
});
},
- print() {
+ //取消出库单
+ // 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;
+
+ // let date = new Date();
+ // let min = date.getMinutes();
+ // date.setMinutes(min + 1); //这里加1分钟,是为了解决值改变后,系统秒数就过期限制了,无法点击“此刻”按钮, 如果监听 “系统时间”的改变,则会影响性能。
+ // let nowDate = moment(date).format("HH:mm:ss");
+
+ // this.listOutPutQuery.accountDate = date;
+
+ // console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
+
+ // this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ // confirmButtonText: "确定",
+ // cancelButtonText: "取消",
+ // type: "warning",
+ // })
+ // .then(() => {
+ // this.$axios
+ // .posts(
+ // "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-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;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
- //this.getList();
+ this.formTitle = "创建出库单";
},
handleCreateBillsEnd(row) {
this.dialogFormVisible = false;
this.getList();
},
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
- this.listLoading = true;
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@@ -572,9 +659,7 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
- console.log(
- "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
- );
+ console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios
.posts(
@@ -599,6 +684,7 @@ export default {
});
}
},
+
//删除出库单
handleDelete(row) {
var params = [];
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 08333649..bf53670e 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
@@ -13,7 +13,7 @@
type="success"
icon="el-icon-check"
size="mini"
- @click="print()"
+ @click="handleCreateBills()"
>确认出库单
取消出库(支持批量)
确认
@@ -376,8 +376,17 @@ export default {
this.listQuery.Filters.push(filter);
this.getList();
},
- //取消出库单
- handleCancelBills(row) {
+
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
+ },
+
+ //撤销出库
+ HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@@ -385,84 +394,150 @@ export default {
});
return;
}
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
+ this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
+ })
+ .catch(() => {
+ this.$message({
+ type: "info",
+ message: "已取消操作",
+ });
+ });
+ },
+
+ //取消出库单
+ CancelBills(row) {
+ if (this.accountDatelist.accountDate == "") {
+ this.$message({
+ message: "请选择日期!",
+ type: "warning",
+ });
+ return;
+ }
var params = [];
- let myalert = ""; //声明变量,其变量必须在此声明后使用
if (row) {
//单行
params.push(row.id);
- myalert = row.name;
} else {
//多选
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
- myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
- this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- });
+ this.$axios
+ .posts(
+ "/api/settleaccount/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: "已取消操作",
+ message: "调用服务出错!",
});
});
},
- print() {
+ //取消出库单
+ // 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;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
- // 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;
- // })
+ this.formTitle = "创建出库单";
},
handleCreateBillsEnd(row) {
this.dialogFormVisible = false;
this.getList();
},
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
- this.listLoading = true;
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
diff --git a/vue/src/views/ux/vw/dataInput/hq_unsettle_factory/index.vue b/vue/src/views/ux/vw/dataInput/hq_unsettle_factory/index.vue
index 20601d3e..a6aaebc8 100644
--- a/vue/src/views/ux/vw/dataInput/hq_unsettle_factory/index.vue
+++ b/vue/src/views/ux/vw/dataInput/hq_unsettle_factory/index.vue
@@ -217,6 +217,34 @@
size="mini"
>
+
+
+
+
+
+
+
+
+
+
+
+ 是否过滤掉当期结算数据
+
+
+
+
-
+
@@ -249,7 +278,6 @@
v-model="formCount.startTime"
type="datetime"
size="small"
-
@change="getdateValue"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="00:00:00"
@@ -262,7 +290,6 @@
-
-
@@ -396,6 +390,7 @@ export default {
],
},
showModal: false,
+ checked: true,
pickerOptionsCp5: {
disabledDate: (time) => {
let now = new Date();
@@ -492,6 +487,7 @@ export default {
warehouseDesc: undefined,
acceptNo: undefined,
kanban: undefined,
+ isContainVersion: undefined,
},
dataKenCode: "",
datachassisNumber: "",
@@ -954,6 +950,12 @@ export default {
this.listExportQuery.sapCode = this.formCount.sapCode; //3厂内物料号
}
+ if (this.checked == true) {
+ this.listExportQuery.isContainVersion = "0";
+ } else {
+ this.listExportQuery.isContainVersion = "1";
+ }
+
this.listExportQuery.begin = this.startTime
? this.startTime
: undefined;
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 2034e0ca..57849e26 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
@@ -22,7 +22,7 @@
size="mini"
type="warning"
icon="el-icon-download"
- @click="print()"
+ @click="HandleOutPutCancel()"
>取消出库(支持批量)
确认
@@ -447,55 +447,144 @@ export default {
});
}
},
+ save(row) {
+ if (this.formTitle == "撤销出库") {
+ this.CancelBills(row);
+ } else if (this.formTitle == "创建出库单") {
+ this.saveBills(row);
+ }
+ },
+
//取消出库单
- handleCancelBills(row) {
- if (this.multipleSelection.length == 0) {
+ CancelBills(row) {
+ if (this.accountDatelist.accountDate == "") {
this.$message({
- message: "至少选择一行!",
+ message: "请选择日期!",
type: "warning",
});
return;
}
var params = [];
- let myalert = ""; //声明变量,其变量必须在此声明后使用
if (row) {
//单行
params.push(row.id);
- myalert = row.name;
} else {
//多选
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
- myalert = "选中项";
}
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.guids = params;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
+ this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
+ this.$axios
+ .posts(
+ "/api/settleaccount/WmsHQCaroutput/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: "调用服务出错!",
+ });
+ });
+ },
+ //取消出库单
+ // 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/WmsHQCaroutput/WmsSharePartOutPut-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: "已取消操作",
+ // });
+ // });
+ // },
+ //撤销出库
+ HandleOutPutCancel() {
+ if (this.multipleSelection.length == 0) {
+ this.$message({
+ message: "至少选择一行!",
+ type: "warning",
+ });
+ return;
+ }
+ let myalert = "选中项"; //声明变量,其变量必须在此声明后使用
this.$confirm("是否确认取消出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
- this.$axios
- .posts(
- "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Cancel",
- this.listOutPutQuery
- )
- .then((response) => {
- const index = this.list.indexOf(row);
- this.$notify({
- title: "成功",
- message: "操作成功",
- type: "success",
- duration: 2000,
- });
- this.getList();
- });
+ this.dialogFormVisible = true;
+ if (this.$refs["accountDatelist"] !== undefined) {
+ this.$refs["accountDatelist"].resetFields();
+ }
+ this.formTitle = "撤销出库";
})
.catch(() => {
this.$message({
@@ -504,15 +593,17 @@ export default {
});
});
},
- print() {
+
+ //确认出库单
+ handleCreateBills() {
this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields();
}
+ this.formTitle = "创建出库单";
},
//出库单
- handleCreateBills(row) {
- this.dialogFormVisible = true;
+ saveBills(row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
diff --git a/vue/static/tableFieldForSearch.json b/vue/static/tableFieldForSearch.json
index fef0e508..002d099e 100644
--- a/vue/static/tableFieldForSearch.json
+++ b/vue/static/tableFieldForSearch.json
@@ -3156,24 +3156,6 @@
"fieldType": 1,
"fieldName": "materialGroup",
"setting": []
- },
- {
- "fieldId": 2,
- "formType": "select",
- "isNull": 0,
- "name": "状态",
- "options": "",
- "type": 3,
- "value": "",
- "fieldType": 0,
- "fieldName": "state",
- "setting": [
- "未处理,0",
- "申请出库,1",
- "确认出库,2",
- "不能出库,3",
- "取消出库,4"
- ]
}
]
},