|
|
|
@ -186,21 +186,24 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var idster = [];
|
|
|
|
|
if(this.codeArray.length>0){
|
|
|
|
|
for(var i=0;i<this.codeArray.length;i++){
|
|
|
|
|
idster.push(this.codeArray[i].relIdFk);
|
|
|
|
|
if(this.codeArray != null || this.codeArray!=undefined ){
|
|
|
|
|
if(this.codeArray.length>0){
|
|
|
|
|
for(var i=0;i<this.codeArray.length;i++){
|
|
|
|
|
idster.push(this.codeArray[i].relIdFk);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(idster.length>0){
|
|
|
|
|
for(var i=0;i<idster.length;i++){
|
|
|
|
|
if(idster.length>0){
|
|
|
|
|
for(var i=0;i<idster.length;i++){
|
|
|
|
|
for(var j=0;j<selection.length;j++){
|
|
|
|
|
if(idster[i]==selection[j].relIdFk){
|
|
|
|
|
this.$message.error("该产品已录入!");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var ids = [];
|
|
|
|
|
selection.forEach((obj, index) => {
|
|
|
|
|
let data = {
|
|
|
|
|