From 4683c1ca3212bc4a071d4fc2af620e274878c002 Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Fri, 12 Apr 2024 09:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E7=BC=96=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9-zzy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/store/newBuy/newDevices/newDevicesCode.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue index c8e2aca9..701b15bd 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue @@ -413,9 +413,11 @@ export default { /** 提交按钮 */ submitForm: function() { // console.log(this.codeList) - if(this.hasDuplicateField(this.codeList, 'assetsCode')){ - this.$modal.msgError("固定资产编码绑定失败,存在重复编码,请重新输入"); - return false + if(this.form.fixCode==0){ + if(this.hasDuplicateField(this.codeList, 'assetsCode')){ + this.$modal.msgError("固定资产编码绑定失败,存在重复编码,请重新输入"); + return false + } } if(this.codeList.length==0){ this.$modal.msgError("无新增编码绑定");