From 57b89e95655aff06f9354a00d5e80b69d27a308b Mon Sep 17 00:00:00 2001 From: anthonywj Date: Sun, 26 Jun 2022 20:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8D=95=E6=8D=AE=E6=9C=AA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=88=86=E5=BA=93bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/IONewOrder.vue | 6 +++++- src/views/warehouse/addHosOrder.vue | 15 ++++++++++++++- src/views/warehouse/stockHospOrderNew.vue | 4 ++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/views/warehouse/IONewOrder.vue b/src/views/warehouse/IONewOrder.vue index 20cf356..e2be819 100644 --- a/src/views/warehouse/IONewOrder.vue +++ b/src/views/warehouse/IONewOrder.vue @@ -674,7 +674,11 @@ export default { }, invChange() { this.subInvList = []; - this.filterQuery.invWarehouseCode = ""; + + if(this.$isNotBlank(this.filterQuery.invWarehouseCode)){ + this.filterQuery.invWarehouseCode = ""; + } + let query = { pcode: this.filterQuery.locStorageCode }; diff --git a/src/views/warehouse/addHosOrder.vue b/src/views/warehouse/addHosOrder.vue index b660f05..b1bd81e 100644 --- a/src/views/warehouse/addHosOrder.vue +++ b/src/views/warehouse/addHosOrder.vue @@ -564,6 +564,11 @@ export default { this.$message.error('当前仓库不能为空'); return; } + + if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { + this.$message.error('当前分库不能为空'); + return; + } let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); tQuery.orderId = this.idQuery.id; tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); @@ -669,6 +674,10 @@ export default { this.$message.error('当前仓库不能为空'); return; } + if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { + this.$message.error('当前分库不能为空'); + return; + } if (this.$isBlank(this.formData.fromCorp)) { this.$message.error('当前往来单位不能为空'); return; @@ -874,6 +883,10 @@ export default { }, locCHange() { + + if (this.$isNotBlank(this.formData.invWarehouseCode)) { + this.formData.invWarehouseCode = ""; + } this.findStorageMethod(); this.findSubInvByInv(this.formData.locStorageCode); }, @@ -933,7 +946,7 @@ export default { findSubStorageMethod() { let cQuery = { pcode: this.formData.fromCorpId, - filter:2, + filter: 2, }; filterSubByInv(cQuery) .then((response) => { diff --git a/src/views/warehouse/stockHospOrderNew.vue b/src/views/warehouse/stockHospOrderNew.vue index 65ad1e5..6114c86 100644 --- a/src/views/warehouse/stockHospOrderNew.vue +++ b/src/views/warehouse/stockHospOrderNew.vue @@ -440,6 +440,10 @@ export default { locStorageCode: [ {required: true, message: "请选择当前仓库", trigger: "blur"} ], + + invWarehouseCode: [ + {required: true, message: "请选择当前分库", trigger: "blur"} + ], }, codeArray: [], fromOptions: [],