From c20befb32907e93589d52113e8f8f7e6c43f0724 Mon Sep 17 00:00:00 2001 From: x_z Date: Thu, 2 Mar 2023 17:14:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=8D=AE=E7=BC=96?= =?UTF-8?q?=E8=BE=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/IoEditOrder.vue | 8 +++++++- src/views/inout/IoEditOrderCodeDetail.vue | 7 ++++++- src/views/inventory/InvPlace.vue | 10 ++++++++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/views/inout/IoEditOrder.vue b/src/views/inout/IoEditOrder.vue index 0e476959..e238ccec 100644 --- a/src/views/inout/IoEditOrder.vue +++ b/src/views/inout/IoEditOrder.vue @@ -29,7 +29,7 @@ {{ fromTypeMap[scope.row.fromType] }} - + @@ -382,6 +382,7 @@ > @@ -534,6 +535,9 @@ export default { }, //获取订单列表 getList() { + if (isBlank(this.filterQuery.billNo)) { + return; + } this.loading = true; this.currentRow = {billNo: ""}; this.orderIds = []; @@ -575,6 +579,8 @@ export default { this.$message.success("删除成功"); this.list = []; this.detailList = []; + this.filterQuery.billNo = null; + this.clearDetailList(); } }).catch((error) => { this.$message.error("删除失败"); diff --git a/src/views/inout/IoEditOrderCodeDetail.vue b/src/views/inout/IoEditOrderCodeDetail.vue index ef1620e6..e012631e 100644 --- a/src/views/inout/IoEditOrderCodeDetail.vue +++ b/src/views/inout/IoEditOrderCodeDetail.vue @@ -116,6 +116,10 @@ export default { order: { type: Object, required: true + }, + getOrderList: { + type: Function, + required: true } }, data() { @@ -201,12 +205,13 @@ export default { let params = { createTime: this.createTime, auditTime: this.auditTime, - orderIds: this.orderIds + orderIds: [this.filterQuery.orderId] }; updateOrderInfo(params).then((res) => { if (res.code === 20000) { this.$message.success("修改成功"); this.getList(); + this.getOrderList(); } }).catch((error) => { this.$message.error(error.message); diff --git a/src/views/inventory/InvPlace.vue b/src/views/inventory/InvPlace.vue index 62cec8e7..19eebe25 100644 --- a/src/views/inventory/InvPlace.vue +++ b/src/views/inventory/InvPlace.vue @@ -258,14 +258,20 @@ export default { }); }, getSpaceList() { - let params = {invWarehouseCode: this.filterQuery.invCode}; + let params = { + invWarehouseCode: this.filterQuery.invCode, + status: 1 + }; getInvSpaceList(params).then((res) => { this.spaceList = res.data.list || []; }) }, formInvChange() { this.formData.invSpaceCode = null; - let params = {invWarehouseCode: this.formData.invCode} + let params = { + invWarehouseCode: this.formData.invCode, + status: 1 + }; getInvSpaceList(params).then((res) => { this.formSpaceList = res.data.list || []; })