From bb289a3f8681892c9e58c377333c2413c32c6c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=87?= <2433098676@qq.com> Date: Mon, 17 Jul 2023 09:58:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E8=B4=A6=E5=BA=93=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=9A=84=E9=A2=84=E8=AD=A6=E8=AE=BE=E7=BD=AE=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inventory/addInvRemindSetDialog.vue | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/inventory/addInvRemindSetDialog.vue b/src/views/inventory/addInvRemindSetDialog.vue index 9a0b6e65..2e06bf34 100644 --- a/src/views/inventory/addInvRemindSetDialog.vue +++ b/src/views/inventory/addInvRemindSetDialog.vue @@ -145,7 +145,7 @@ export default { deptCode: null, invCode: null, invSpaceCode: null, - lowStock: false, + lowStock: null, lackStock: false, overStock: false, expireDate: false, @@ -166,11 +166,21 @@ export default { getInfoByInvId({invId: this.invId}).then((res) => { if (res.code === 20000) { this.formData = res.data; - this.formData.lowStock = false; - this.formData.lackStock = false; - this.formData.overStock = false; - this.formData.expireDate = false; - this.formData.recentDate = false; + if (res.data.lowStock == null) { + this.formData.lowStock = false; + } + if (res.data.lackStock == null) { + this.formData.lackStock = false; + } + if (res.data.overStock == null) { + this.formData.overStock = false; + } + if (res.data.expireDate == null) { + this.formData.expireDate = false; + } + if (res.data.recentDate == null) { + this.formData.recentDate = false; + } } else { this.$message.error(res.meesage); }