fix:新购工机具入库bug修改
This commit is contained in:
parent
bbc9032b70
commit
b8ff950a16
|
|
@ -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) {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -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`, //福
|
||||
|
||||
//******** 注意事项 ********* */
|
||||
|
|
|
|||
Loading…
Reference in New Issue