diff --git a/dev_wms_client/src/api/config.js b/dev_wms_client/src/api/config.js index 73e8a9a..812b713 100644 --- a/dev_wms_client/src/api/config.js +++ b/dev_wms_client/src/api/config.js @@ -1,18 +1,24 @@ import request from "@/http/request"; -const getConfigs = () => { - return request.get('/config/getConfigs') +export const updateConfig = (params) => { + return request({ + url: '/config/updateConfig', + method: 'post', + data: params, + timeout: 10000 + }) } -const updateConfig = (params) => { - return request.post('/config/updateConfig', params) +export const queryConfigsByPage = (params) => { + return request({ + url: '/config/queryConfigsByPage', + method: 'post', + data: params, + timeout: 10000 + }) } -const getConfigsByPage = (params) => { - return request.post('/config/getConfigsByPage', params) -} - -const restartSystem = (params) => { +export const restartSystem = (params) => { return request({ url: '/system/restartSystem', method: 'post', @@ -21,19 +27,11 @@ const restartSystem = (params) => { }) } -const reloadConfig = (params) => { +export const reloadConfig = (params) => { return request({ url: '/system/reloadConfig', method: 'post', data: params, timeout: 10000 }) -} - -export { - getConfigs, - getConfigsByPage, - updateConfig, - restartSystem, - reloadConfig } \ No newline at end of file diff --git a/dev_wms_client/src/api/kateWork.js b/dev_wms_client/src/api/kateWork.js index cf74558..546c0f7 100644 --- a/dev_wms_client/src/api/kateWork.js +++ b/dev_wms_client/src/api/kateWork.js @@ -179,4 +179,13 @@ export const deleteDbsPlan = (params) => { data: params, timeout: 5000 }) +} +// 获取物料需求 +export const getGoodsRequirement = (params) => { + return request({ + url: '/kate/getGoodsRequirement', + method: 'post', + data: params, + timeout: 5000 + }) } \ No newline at end of file diff --git a/dev_wms_client/src/components/appTag.vue b/dev_wms_client/src/components/appTag.vue index 5050cb0..33f3c83 100644 --- a/dev_wms_client/src/components/appTag.vue +++ b/dev_wms_client/src/components/appTag.vue @@ -29,7 +29,7 @@ onMounted(() => { }) // 根据路由变化更新标签 watch(() => router.currentRoute.value.path, (newVal, oldVal) => { - if (newVal != oldVal) { + if (newVal !== oldVal) { // 找到path对应的tag autoScroll(router.currentRoute.value.path) } @@ -44,9 +44,7 @@ const handleClose = (tag, index) => { return } closeTag(tag) // 删除当前tag - if (router.path === tag.path) { // 如果关闭的标签不是当前路由的话,不做路由跳转 - return - } else { + if (router.path !== tag.path) { if (index === (tags.value.length - 1)) { // 关闭最后一个标签,则路由跳转至最后一个 router.push(this.tags[index].path) } else { // 路由跳转至下一个标签页 diff --git a/dev_wms_client/src/layout/clcKanban.vue b/dev_wms_client/src/layout/clcKanban.vue index ea26edb..63c1c61 100644 --- a/dev_wms_client/src/layout/clcKanban.vue +++ b/dev_wms_client/src/layout/clcKanban.vue @@ -20,16 +20,6 @@ :options="addAllOptionOfOptions(kanbanStatusOptions)" @change="search()"> - - - - - -
@@ -43,10 +33,6 @@ - 生成看板 - 导出看板 @@ -90,13 +76,12 @@