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) => {