From 09599a24120bfb2a671d1fed5d47caa6c6fbc373 Mon Sep 17 00:00:00 2001 From: x_z Date: Wed, 9 Nov 2022 18:15:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=9D=E5=AD=98=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.json | 4 +- src/api/auth/platform.js | 91 ++++++++++ src/router/index.js | 12 +- src/views/userManage/platform.vue | 293 ++++++++++++++++++++++++++++++ 4 files changed, 397 insertions(+), 3 deletions(-) create mode 100644 src/api/auth/platform.js create mode 100644 src/views/userManage/platform.vue diff --git a/public/config.json b/public/config.json index adb61bf..7f05b28 100644 --- a/public/config.json +++ b/public/config.json @@ -1,7 +1,7 @@ { "UDI_SYNC_SERVER_IP": "http://127.0.0.1:9991/", - "BASE_URL": "http://127.0.0.1:9991", - "SERVER_IP": "http://127.0.0.1:9991", + "BASE_URL": "http://127.0.0.1:9992", + "SERVER_IP": "http://127.0.0.1:9992", "WEBSOCKET_URL": "ws://127.0.0.1:9991/UDI_WMS_MC/api/websocket/", "hosp_name": "平和县医院" } diff --git a/src/api/auth/platform.js b/src/api/auth/platform.js new file mode 100644 index 0000000..855c154 --- /dev/null +++ b/src/api/auth/platform.js @@ -0,0 +1,91 @@ +import axios from "../../utils/axios"; + +export function getPlatform(query) { + return axios({ + url: "/udiwms/platform/list", + method: "get", + params: query + }); +} + +export function updatePlatform(data) { + return axios({ + url: "/udiwms/platform/update", + method: "post", + data: data + }); +} + +export function deletePlatform(data) { + return axios({ + url: "/udiwms/platform/remove", + method: "post", + data: data + }); +} + +export function linkPlatform(query) { + return axios({ + url: "/udiwms/platform/link", + method: "post", + data: query + }); +} + +//查询往来单位和自助平台关联数据 +export function getLinkPlatformList(query) { + return axios({ + url: "/udiwms/platform/getLinkPlatformList", + method: "get", + params: query + }); +} + +//解绑往来单位字典和自助平台 +export function unbindPlatform(query) { + return axios({ + url: "/udiwms/platform/unbind", + method: "post", + params: query + }); +} + +export function getTargetActions(query) { + return axios({ + url: "/udiwms/platform/getTargetActions", + method: "get", + params: query + }); +} + +export function getTargetInv(query) { + return axios({ + url: "/udiwms/platform/getTargetInv", + method: "get", + params: query + }); +} + +export function getTargetSubInv(query) { + return axios({ + url: "/udiwms/platform/getTargetSubInv", + method: "get", + params: query + }); +} + +export function testPlatformConnection(query) { + return axios({ + url: "/udiwms/platform/testPlatformConnection", + method: "get", + params: query + }) +} + +export function testUserInfo(data) { + return axios({ + url: "/udiwms/platform/testUserInfo", + method: "post", + data: data + }); +} diff --git a/src/router/index.js b/src/router/index.js index 8f08423..c8579af 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -157,6 +157,8 @@ import purPlan from "../views/purchase/purPlan"; import purPlanAudit from "../views/purchase/purPlanAudit"; import purPlanSearch from "../views/purchase/purPlanSearch"; +import platform from "../views/userManage/platform"; + // Vue.use(VueRouter); @@ -449,7 +451,15 @@ export const asyncRouterMap = [ }, ] }, - + { + path: "platform", + component: platform, + name: "医院自助平台", + icon: "", + meta: { + authRule: ["userManage/platform"] + } + }, // { // path: "bussinessType", diff --git a/src/views/userManage/platform.vue b/src/views/userManage/platform.vue new file mode 100644 index 0000000..7a47fd9 --- /dev/null +++ b/src/views/userManage/platform.vue @@ -0,0 +1,293 @@ + + +