From c94bffb2177db050a297c17b648cbeeaace29b87 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 9 Aug 2024 17:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouseManage/machinery/coding/component/BindIOT.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue index ff81bfe5..c1a6ee6b 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue @@ -276,6 +276,13 @@ export default { }, // 提交 submit() { + const isType = this.typeList.some((e) => e == this.IOTForm.iotType) + if (isType) { + this.$message.error( + '当前机具已绑定改IOT类型设备,不可重复绑定!', + ) + return + } try { // 校验 this.$refs.IOTForm.validate(async (valid) => {