diff --git a/.env.development b/.env.development index 3d5a50f..a8d313a 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = 供应商自助管理系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = '/dev-api' +VUE_APP_BASE_API = 'http://localhost:9993/dev-api/' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/' diff --git a/package.json b/package.json index 57441c3..c77df60 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "author": "LionLi", "license": "MIT", "scripts": { - "dev": "vue-cli-service serve", - "build:prod": "vue-cli-service build", + "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode development", + "build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode production", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" }, diff --git a/src/api/basic/basicHospType.js b/src/api/basic/basicHospType.js index 766b347..b7a7d02 100644 --- a/src/api/basic/basicHospType.js +++ b/src/api/basic/basicHospType.js @@ -13,12 +13,21 @@ export function getBasicHospType(query) { export function getListMenu(query) { return axios({ url: "/udiwms/basic/hosp/type/menuList", + method: "post", + data: query + }); +} + +export function getOneName(query) { + return axios({ + url: "/udiwms/basic/hosp/type/getOneName", method: "get", params: query }); } + export function saveBasicHospType(query) { return axios({ url: "/udiwms/basic/hosp/type/save", diff --git a/src/api/sync/spsSyncStatus.js b/src/api/sync/spsSyncStatus.js index d3425b4..091be2f 100644 --- a/src/api/sync/spsSyncStatus.js +++ b/src/api/sync/spsSyncStatus.js @@ -43,3 +43,12 @@ export function updateConfig(query) { }); } +export function infoByStatus(query) { + return axios({ + url: "/spssync/basic/udiinfo/infoByStatus", + method: "post", + data: query, + responseType: 'blob' + }); +} + diff --git a/src/utils/request.js b/src/utils/request.js index b02dfd7..86a9ce2 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -86,7 +86,7 @@ service.interceptors.response.use(res => { if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') { return res.data } - if (code === 401) { + if (code === 2) { if (!isRelogin.show) { isRelogin.show = true; MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { diff --git a/src/views/basic/business/stockOrder.vue b/src/views/basic/business/stockOrder.vue index 2f8f704..7fc3c66 100644 --- a/src/views/basic/business/stockOrder.vue +++ b/src/views/basic/business/stockOrder.vue @@ -152,7 +152,7 @@ - + - +