采购订单

This commit is contained in:
zgf committed 2023-12-24 15:12:17 +08:00
1 parent 612c69fa1a
commit 6aeb151982
21 files changed
+881 -65

No files matched your search

@@ -189,6 +189,7 @@
},
create() {
var _this = this;
$.ajax({
type: "post",
dataType: "json",
@@ -208,6 +209,19 @@
alert("加载失败");
}
});
},
hasDuplicate(array) {
const seen = new Set();
for(let i = 0; i<array.length; i++) {
const objString = JSON.stringify(array[i]);
if (seen.has(objString)) {
return true;
}
seen.add(objString);
}
return false;
}
},
});