diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue index d23bd70b..04b19185 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue @@ -459,6 +459,23 @@ export default { if (this.codeList.length == 0) { this.$modal.msgError('无新增编码绑定') } else { + const maCodeSet = new Set() + let hasDuplicates = false + + for (const item of this.codeList) { + const maCode = item.maCode + + if (maCodeSet.has(maCode)) { + hasDuplicates = true + break + } + maCodeSet.add(maCode) + } + console.log('codeList:', this.codeList) + if (hasDuplicates) { + this.$modal.msgError('编码绑定失败,存在重复编码,请重新输入') + return // 停止提交流程 + } editPurchaseMacode(this.codeList).then(response => { console.log(this.codeList) if (response.data && response.data.length > 0) { diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesWarehousing.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesWarehousing.vue index 0a0fec87..9201f191 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesWarehousing.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesWarehousing.vue @@ -1,223 +1,181 @@ diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index df69fa1a..750c4ea9 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -43,9 +43,9 @@ module.exports = { // target: `https://z.csgmall.com.cn`, // target: `http://10.40.92.8:8080`, //超 - // target: `http://10.40.92.253:8080`,//韩 + target: `http://10.40.92.81:8080`, //韩 // target: `http://10.40.92.209:8080`,//川/ - target: `http://10.40.92.153:8080`, //帅 + // target: `http://10.40.92.153:8080`, //帅 // target: `http://10.40.92.14:8080`, //福 //******** 注意事项 ********* */