From 9e75bf197155042942355ffe27e85e384799c818 Mon Sep 17 00:00:00 2001
From: anthonyywj2 <353682448@qq.com>
Date: Thu, 5 May 2022 14:38:31 +0800
Subject: [PATCH] =?UTF-8?q?UDI=E7=89=88=E6=9C=AC=E5=88=87=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/basic/udiInfo.js | 8 +
src/api/basic/udiRelevance.js | 8 +
src/views/basic/UdiInfoManage.vue | 50 ++++
src/views/basic/UdiInfoselectErpUdi.vue | 6 +-
src/views/basic/UdiinfoSelectVersion.vue | 294 +++++++++++++++++++++++
5 files changed, 363 insertions(+), 3 deletions(-)
create mode 100644 src/views/basic/UdiinfoSelectVersion.vue
diff --git a/src/api/basic/udiInfo.js b/src/api/basic/udiInfo.js
index 86b9edc..769f3ac 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",
@@ -23,4 +24,11 @@ export function filterByUuid(query) {
});
}
+export function filterByVersion(query) {
+ return axios({
+ url: "/udiwms/syncdi/version",
+ method: "get",
+ params: query
+ });
+}
diff --git a/src/api/basic/udiRelevance.js b/src/api/basic/udiRelevance.js
index 128873a..1243b7d 100644
--- a/src/api/basic/udiRelevance.js
+++ b/src/api/basic/udiRelevance.js
@@ -177,6 +177,14 @@ export function lockStatus(query) {
});
}
+export function changeVersion(query) {
+ return axios({
+ url: "/udi/udirel/changeVersion",
+ method: "post",
+ data: query
+ });
+}
+
diff --git a/src/views/basic/UdiInfoManage.vue b/src/views/basic/UdiInfoManage.vue
index ff2b4c1..5d82c05 100644
--- a/src/views/basic/UdiInfoManage.vue
+++ b/src/views/basic/UdiInfoManage.vue
@@ -676,6 +676,24 @@
>
+
+
+
+ 当前版本号:
+
+
+
切换版本
+
+
+
@@ -769,6 +787,23 @@
@closeUdi="closeUdi"
>
+
+
+
+
{
this.loading = false;
@@ -1303,6 +1352,7 @@ export default {
selectUdi,
selectErp,
selectLocalUdi,
+ selectUdiVersion,
},
created() {
this.getList();
diff --git a/src/views/basic/UdiInfoselectErpUdi.vue b/src/views/basic/UdiInfoselectErpUdi.vue
index 2a491df..24d482f 100644
--- a/src/views/basic/UdiInfoselectErpUdi.vue
+++ b/src/views/basic/UdiInfoselectErpUdi.vue
@@ -305,7 +305,7 @@
+
+