diff --git a/src/views/home/index.vue b/src/views/home/index.vue index ce3d203..0566d87 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -234,7 +234,7 @@
- 提示:进入系统必须选择您当前所在仓库与分库  + 提示:进入系统请选择您当前所在仓库与分库 
提交 @@ -407,6 +407,10 @@ export default { }, locCHange() { + + if(this.$isNotBlank(this.userInfo.locSubInvCode)){ + this.userInfo.locSubInvCode = ""; + } this.findSubInvByInv(); }, @@ -473,6 +477,17 @@ export default { }, submitInv() { + + if (this.$isBlank(this.userInfo.locInvCode)) { + this.$message.error("当前仓库不能为空!"); + return; + } + if (this.userInfo.customerId == 110) { + if (this.$isBlank(this.userInfo.locSubInvCode)) { + this.$message.error("当前分库不能为空!"); + return; + } + } updateInv(this.userInfo).then((res) => { if (res.code == 20000) { this.$message.success("设置成功!"); @@ -529,7 +544,7 @@ export default { } }); }, - changeInv(){ + changeInv() { this.selInvVisible = true; }, }, diff --git a/src/views/warehouse/DialogcChangeNewOrder.vue b/src/views/warehouse/DialogcChangeNewOrder.vue index 75adb82..0785326 100644 --- a/src/views/warehouse/DialogcChangeNewOrder.vue +++ b/src/views/warehouse/DialogcChangeNewOrder.vue @@ -251,6 +251,8 @@ export default { actDate: new Date(), action: null, locStorageCode: null, + fromSubInvCode: null, + invWarehouseCode: null, mainAction: null }, fromStorageOptions: [], @@ -328,6 +330,10 @@ export default { locCHange() { + + if (this.$isNotBlank(this.formData.invWarehouseCode)) { + this.formData.invWarehouseCode = ""; + } this.findStorageMethod(); this.findSubInvByInv(this.formData.locStorageCode); },