diff --git a/src/views/inventory/InvCountOrderModify.vue b/src/views/inventory/InvCountOrderModify.vue index 2984a68b..b0af7c0d 100644 --- a/src/views/inventory/InvCountOrderModify.vue +++ b/src/views/inventory/InvCountOrderModify.vue @@ -531,6 +531,10 @@ export default { this.$message.warning("请先选择盘点仓库"); return; } + if (this.codeArray.length === 0) { + this.$message.warning("请先录入产品"); + return; + } //拉取整个仓库的数据 let params = { invCode: this.formData.invCode, @@ -550,6 +554,10 @@ export default { this.$message.warning("请先选择盘点仓库"); return; } + if (this.codeArray.length === 0) { + this.$message.warning("请先录入产品"); + return; + } this.productList = []; this.selectInvProductVisible = true; this.queryInvProducts(); @@ -582,6 +590,10 @@ export default { this.$message.warning("请先选盘点仓库"); return; } + if (this.codeArray.length === 0) { + this.$message.warning("请先录入产品"); + return; + } this.multiProduct = []; this.selectInvProductVisible = true; this.queryInvProducts();