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: [],