From d936851fb6ca3f829fd9d230ea1f1cb348e5693b Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Sun, 7 Apr 2024 17:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/views/store/warehousing/putInStore.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sgzb-ui/src/views/store/warehousing/putInStore.vue b/sgzb-ui/src/views/store/warehousing/putInStore.vue index fb777fdb..e75db71c 100644 --- a/sgzb-ui/src/views/store/warehousing/putInStore.vue +++ b/sgzb-ui/src/views/store/warehousing/putInStore.vue @@ -169,7 +169,7 @@ @@ -685,12 +685,6 @@ export default { num: [ { required: true, message: "待入库总数不能为空", trigger: "blur" } ], - unitId: [ - { required: true, message: "领料单位不能为空", trigger: "change" } - ], - proId: [ - { required: true, message: "领料工程不能为空", trigger: "change" } - ], } }; }, @@ -1109,6 +1103,10 @@ export default { this.isPutInType = true } else { this.isPutInType = false + this.$nextTick(() => { + this.$set(this.codeForm, 'unitId', null) + this.$set(this.codeForm, 'proId', null) + }) } }, // 领料单位