diff --git a/src/api/basic/udiInfo.js b/src/api/basic/udiInfo.js index 23eb696..b14450c 100644 --- a/src/api/basic/udiInfo.js +++ b/src/api/basic/udiInfo.js @@ -7,6 +7,7 @@ export function getUdiInfos(query) { params: query }); } + export function filterCompany(query) { return axios({ url: "/udiwms/udiinfo/filterCompany", @@ -22,6 +23,7 @@ export function filterByUuid(query) { params: query }); } + export function filterByVersion(query) { return axios({ url: "/udiwms/syncdi/version", @@ -38,6 +40,14 @@ export function superSearch(query) { }); } +export function dlLastVersionByDi(query) { + return axios({ + url: "/udiwms/udiinfo/dlLastVersionByDi", + method: "get", + params: query + }); +} + diff --git a/src/views/basic/UdiInfoRelevance.vue b/src/views/basic/UdiInfoRelevance.vue index ca82ae8..2dc7e4c 100644 --- a/src/views/basic/UdiInfoRelevance.vue +++ b/src/views/basic/UdiInfoRelevance.vue @@ -258,6 +258,7 @@ import {combineUdi} from "../../api/basic/udiRelevance"; import {getBasicThirdSys} from "../../api/basic/basicThirdSys"; import {getInvbasdoc} from "../../api/basic/getErps"; import selectDiDetail from "@/views/basic/SelectDIDetailDialog"; +import {deleteLog} from "@/api/basic/corpExport"; export default { name: "closeDialog", @@ -349,27 +350,38 @@ export default { }); }, getSuperSeaech() { - if (this.unionQuery.nameCode == "") { - this.$message.warning("请输入查询条件"); - return; - } - this.loading = true; - superSearch(this.unionQuery) - .then((response) => { - this.loading = false; - if (response.code == 20000) { - this.udidlList = response.data.list || []; - this.total = response.data.total || 0; - } else { - this.$message.error(response.message); + + this.$confirm("此操作将访问国家库查询DI数据, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + if (this.unionQuery.nameCode == "") { + this.$message.warning("请输入完成DI信息进行查询!"); + return; } + this.loading = true; + superSearch(this.unionQuery) + .then((response) => { + this.loading = false; + if (response.code == 20000) { + this.udidlList = response.data.list || []; + this.total = response.data.total || 0; + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.loading = false; + this.udidlList = []; + this.total = 0; + }); }) .catch(() => { - this.loading = false; - this.udidlList = []; - this.total = 0; }); + }, checkSelectable(row) { return !row.check; diff --git a/src/views/basic/UdiInfoSelectLocalUdi.vue b/src/views/basic/UdiInfoSelectLocalUdi.vue index 9c940a8..fdcb546 100644 --- a/src/views/basic/UdiInfoSelectLocalUdi.vue +++ b/src/views/basic/UdiInfoSelectLocalUdi.vue @@ -477,27 +477,38 @@ export default { }, getSuperSeaech() { - if (this.unionQuery.nameCode == "") { - this.$message.warning("请输入查询条件"); - return; - } - this.loading = true; - superSearch(this.unionQuery) - .then((response) => { - this.loading = false; - if (response.code == 20000) { - this.udidlList = response.data.list || []; - this.total = response.data.total || 0; - } else { - this.$message.error(response.message); + + this.$confirm("此操作将访问国家库查询DI数据, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + if (this.unionQuery.nameCode == "") { + this.$message.warning("请输入完成DI信息进行查询!"); + return; } + this.loading = true; + superSearch(this.unionQuery) + .then((response) => { + this.loading = false; + if (response.code == 20000) { + this.udidlList = response.data.list || []; + this.total = response.data.total || 0; + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.loading = false; + this.udidlList = []; + this.total = 0; + }); }) .catch(() => { - this.loading = false; - this.udidlList = []; - this.total = 0; }); + }, combineUdiAll() { diff --git a/src/views/basic/UdiinfoSelectVersion.vue b/src/views/basic/UdiinfoSelectVersion.vue index 317f5bf..03864f0 100644 --- a/src/views/basic/UdiinfoSelectVersion.vue +++ b/src/views/basic/UdiinfoSelectVersion.vue @@ -2,8 +2,20 @@