fix:新购工机具入库bug修改

This commit is contained in:
jackal 2024-04-20 13:00:37 +08:00
parent bbc9032b70
commit b8ff950a16
3 changed files with 654 additions and 712 deletions

View File

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

View File

@ -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`, //福
//******** 注意事项 ********* */