|
|
@ -163,7 +163,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
<el-card class="el-card" v-if="isImport">
|
|
|
|
<el-card class="el-card" >
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-form label-width="120px">
|
|
|
|
<el-form label-width="120px">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
@ -383,6 +383,7 @@ export default {
|
|
|
|
zczbhhzbapzbh: "",
|
|
|
|
zczbhhzbapzbh: "",
|
|
|
|
isCheck: 1
|
|
|
|
isCheck: 1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cpmctymc1:"",
|
|
|
|
combineLoading: false,
|
|
|
|
combineLoading: false,
|
|
|
|
combineQuery: {
|
|
|
|
combineQuery: {
|
|
|
|
idSpliUdi: false,
|
|
|
|
idSpliUdi: false,
|
|
|
@ -525,6 +526,10 @@ export default {
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleErpChange(val) {
|
|
|
|
handleErpChange(val) {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
console.log("+++"+ this.data.cpmctymc)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.cpmctymc1=val.cpmctymc;
|
|
|
|
this.currentRow = val;
|
|
|
|
this.currentRow = val;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
intentBack() {
|
|
|
|
intentBack() {
|
|
|
@ -532,52 +537,42 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
checkCombine() {
|
|
|
|
checkCombine() {
|
|
|
|
let selectData = this.multipleUdiSelection;
|
|
|
|
this.$confirm("是否确定关联DI产品名称:" + this.cpmctymc1 + ":与第三方产品名称"+this.data.cpmctymc, "提示", {
|
|
|
|
let selected = null;
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
if (this.multipleUdiSelection.length == 0) {
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
if (this.relId != null) {
|
|
|
|
type: "warning",
|
|
|
|
this.combineQuery.relId = this.relId;
|
|
|
|
})
|
|
|
|
this.combineQuery.keys.push(this.currentRow.uuid);
|
|
|
|
.then(() => {
|
|
|
|
if (this.currentRow.check) {
|
|
|
|
|
|
|
|
selected = this.currentRow;
|
|
|
|
let selectData = this.multipleUdiSelection;
|
|
|
|
}
|
|
|
|
let selected = null;
|
|
|
|
} else
|
|
|
|
if (this.multipleUdiSelection.length == 0) {
|
|
|
|
return;
|
|
|
|
if (this.relId != null) {
|
|
|
|
|
|
|
|
this.combineQuery.relId = this.relId;
|
|
|
|
|
|
|
|
this.combineQuery.keys.push(this.currentRow.uuid);
|
|
|
|
|
|
|
|
if (this.currentRow.check) {
|
|
|
|
|
|
|
|
selected = this.currentRow;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
selectData.forEach((obj) => {
|
|
|
|
selectData.forEach((obj) => {
|
|
|
|
if (obj.check) {
|
|
|
|
if (obj.check) {
|
|
|
|
selected = obj;
|
|
|
|
selected = obj;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.combineQuery.keys.push(obj.uuid);
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.combineQuery.keys.push(obj.uuid);
|
|
|
|
if (selected != null) {
|
|
|
|
});
|
|
|
|
this.$message.warning("UDI编码:" + selected.nameCode + "已被选入");
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
if (selected != null) {
|
|
|
|
}
|
|
|
|
this.$message.warning("UDI编码:" + selected.nameCode + "已被选入");
|
|
|
|
this.combineLoading = true;
|
|
|
|
return;
|
|
|
|
checkExitUdi(this.combineQuery)
|
|
|
|
}
|
|
|
|
.then((response) => {
|
|
|
|
this.combineLoading = true;
|
|
|
|
this.combineLoading = false;
|
|
|
|
checkExitUdi(this.combineQuery)
|
|
|
|
if (response.code == 20000) {
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.combineLoading = false;
|
|
|
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
|
|
|
this.combine();
|
|
|
|
|
|
|
|
// combineUdi(this.combineQuery)
|
|
|
|
|
|
|
|
// .then((response) => {
|
|
|
|
|
|
|
|
// this.combineLoading = false;
|
|
|
|
|
|
|
|
// if (response.code == 20000) {
|
|
|
|
|
|
|
|
// this.$emit("closeUdi", true);
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// this.$emit("closeUdi", false);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// .catch(() => {
|
|
|
|
|
|
|
|
// this.combineLoading = false;
|
|
|
|
|
|
|
|
// this.$emit("closeUdi", false);
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
} else if (response.code == 499) {
|
|
|
|
|
|
|
|
this.$confirm(response.message, {type: "warning"})
|
|
|
|
|
|
|
|
.then(_ => {
|
|
|
|
|
|
|
|
this.combine();
|
|
|
|
this.combine();
|
|
|
|
// combineUdi(this.combineQuery)
|
|
|
|
// combineUdi(this.combineQuery)
|
|
|
|
// .then((response) => {
|
|
|
|
// .then((response) => {
|
|
|
@ -592,19 +587,36 @@ export default {
|
|
|
|
// this.combineLoading = false;
|
|
|
|
// this.combineLoading = false;
|
|
|
|
// this.$emit("closeUdi", false);
|
|
|
|
// this.$emit("closeUdi", false);
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
})
|
|
|
|
} else if (response.code == 499) {
|
|
|
|
.catch(_ => {
|
|
|
|
this.$confirm(response.message, { type: "warning" })
|
|
|
|
|
|
|
|
.then(_ => {
|
|
|
|
this.combineQuery.keys = [];
|
|
|
|
this.combine();
|
|
|
|
});
|
|
|
|
// combineUdi(this.combineQuery)
|
|
|
|
}
|
|
|
|
// .then((response) => {
|
|
|
|
})
|
|
|
|
// this.combineLoading = false;
|
|
|
|
.catch(() => {
|
|
|
|
// if (response.code == 20000) {
|
|
|
|
this.combineLoading = false;
|
|
|
|
// this.$emit("closeUdi", true);
|
|
|
|
this.$emit("closeUdi", false);
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// this.$emit("closeUdi", false);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// .catch(() => {
|
|
|
|
|
|
|
|
// this.combineLoading = false;
|
|
|
|
|
|
|
|
// this.$emit("closeUdi", false);
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(_ => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.combineQuery.keys = [];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.combineLoading = false;
|
|
|
|
|
|
|
|
this.$emit("closeUdi", false);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
combine() {
|
|
|
|
combine() {
|
|
|
|