From 1a96e7259e575cac0eca102bfc2d7d18c090c35a Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Wed, 19 Apr 2023 15:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=20=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=E4=BB=93=E5=BA=93=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=20=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/bussinessType.js | 74 +++--- src/api/basic/invRelBusTypes.js | 2 +- src/api/inventory/invSpace.js | 2 +- src/api/sync/spsSyncStatus.js | 10 +- src/api/system/invSubWarehouse.js | 100 +++---- src/api/system/invWarehouse.js | 19 +- src/views/inventory/InvSpaceManage.vue | 17 +- src/views/system/dept/authDept.vue | 336 ++++++++++++++---------- src/views/system/dept/invRelBusType.vue | 2 +- src/views/system/dept/invRelUsers.vue | 20 +- src/views/system/dept/invWarehouse.vue | 163 +++++++++--- src/views/system/user/authUser.vue | 78 +++++- 12 files changed, 520 insertions(+), 303 deletions(-) diff --git a/src/api/basic/bussinessType.js b/src/api/basic/bussinessType.js index a2e7431a..21815f06 100644 --- a/src/api/basic/bussinessType.js +++ b/src/api/basic/bussinessType.js @@ -1,59 +1,59 @@ import axios from "@/utils/request"; export function getBussinessType(query) { - return axios({ - url: "/udiwms/bussinessType/filter", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/bussinessType/filter", + method: "get", + params: query + }); } export function getJoinBussinessType(query) { - return axios({ - url: "/udiwms/bussinessType/joinFilter", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/bussinessType/joinFilter", + method: "get", + params: query + }); } export function deleteBussinessType(query) { - return axios({ - url: "/udiwms/bussinessType/delete", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/bussinessType/delete", + method: "post", + data: query + }); } export function updateBussinessType(query) { - return axios({ - url: "/udiwms/bussinessType/update", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/bussinessType/update", + method: "post", + data: query + }); } export function insertBussinessType(query) { - return axios({ - url: "/udiwms/bussinessType/insert", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/bussinessType/insert", + method: "post", + data: query + }); } export function getCandidateBussinessType(query) { - return axios({ - url: "/warehouse/bussinessType/candidateBussinessType", - method: 'get', - params: query - }); + return axios({ + url: "/warehouse/bussinessType/candidateBussinessType", + method: 'get', + params: query + }); } export function exportFile(query) { - return axios({ - url: "/udiwms/busstiness/file/export", - method: "post", - data: query, - headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, - responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf - }); + return axios({ + url: "/udiwms/busstiness/file/export", + method: "post", + data: query, + headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf + }); } diff --git a/src/api/basic/invRelBusTypes.js b/src/api/basic/invRelBusTypes.js index e8d02d8c..4e893e34 100644 --- a/src/api/basic/invRelBusTypes.js +++ b/src/api/basic/invRelBusTypes.js @@ -1,4 +1,4 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function filterSelectInvUser(query) { diff --git a/src/api/inventory/invSpace.js b/src/api/inventory/invSpace.js index 02ecc6fa..ed47fd96 100644 --- a/src/api/inventory/invSpace.js +++ b/src/api/inventory/invSpace.js @@ -1,4 +1,4 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function getInvSpaceList(params) { return axios({ diff --git a/src/api/sync/spsSyncStatus.js b/src/api/sync/spsSyncStatus.js index e19118cf..d3425b4a 100644 --- a/src/api/sync/spsSyncStatus.js +++ b/src/api/sync/spsSyncStatus.js @@ -1,5 +1,6 @@ import axios from "@/utils/request"; + export function filterLog(query) { return axios({ url: "/spssync/basic/udiinfo/filter", @@ -42,12 +43,3 @@ export function updateConfig(query) { }); } - -export function testConnect(query) { - return axios({ - url: "/spssync/basic/connect/test", - method: "get", - params: query - }); -} - diff --git a/src/api/system/invSubWarehouse.js b/src/api/system/invSubWarehouse.js index e4c840d5..8c970ae7 100644 --- a/src/api/system/invSubWarehouse.js +++ b/src/api/system/invSubWarehouse.js @@ -1,12 +1,12 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function filterSubAll(query) { - return axios({ - url: "/spms/sub/inv/warehouse/filter", - method: "get", - params: query - }); + return axios({ + url: "/spms/sub/inv/warehouse/filter", + method: "get", + params: query + }); } @@ -30,11 +30,11 @@ export function findByFrom(query) { export function filterSubByInv(query) { - return axios({ - url: "/spms/sub/inv/warehouse/findByInv", - method: "get", - params: query - }); + return axios({ + url: "/spms/inv/warehouse/findByUser", + method: "get", + params: query + }); } @@ -48,68 +48,68 @@ export function findByDeptUser(query) { export function filterSub(query) { - return axios({ - url: "/spms/sub/inv/warehouse/filterSub", - method: "get", - params: query - }); + return axios({ + url: "/spms/sub/inv/warehouse/filterSub", + method: "get", + params: query + }); } // 保存 export function saveSubWarehouse(data, formName, method = "post") { - let url = - formName !== "edit" - ? "/spms/sub/inv/warehouse/save" - : "/spms/sub/inv/warehouse/edit"; - return axios({ - url: url, - method: method, - data: data - }); + let url = + formName !== "edit" + ? "/spms/sub/inv/warehouse/save" + : "/spms/sub/inv/warehouse/edit"; + return axios({ + url: url, + method: method, + data: data + }); } // 删除 export function deleteSubWarehouse(data) { - return axios({ - url: "/spms/sub/inv/warehouse/delete", - method: "post", - data: data - }); + return axios({ + url: "/spms/sub/inv/warehouse/delete", + method: "post", + data: data + }); } //查询第三方系统和仓库数据关联信息 export function getSubThrsysDetail(params) { - return axios({ - url: "/spms/sub/inv/warehouse/thridSys/detail", - method: "get", - params: params - }); + return axios({ + url: "/spms/sub/inv/warehouse/thridSys/detail", + method: "get", + params: params + }); } //绑定第三方仓库 export function bindThrSubWarehouse(params) { - return axios({ - url: "/spms/sub/inv/warehouse/bindThrWarehouse", - method: "post", - params: params - }); + return axios({ + url: "/spms/sub/inv/warehouse/bindThrWarehouse", + method: "post", + params: params + }); } //解绑第三方仓库 export function unbindSubThrWarehouse(params) { - return axios({ - url: "/spms/sub/inv/warehouse/unbindThrWarehouse", - method: "post", - params: params - }); + return axios({ + url: "/spms/sub/inv/warehouse/unbindThrWarehouse", + method: "post", + params: params + }); } export function getInvWarehouseList(params) { - return axios({ - url: "/spms/sub/inv/warehouse/filterSubInvList", - method: "get", - params: params - }); + return axios({ + url: "/spms/sub/inv/warehouse/filterSubInvList", + method: "get", + params: params + }); } diff --git a/src/api/system/invWarehouse.js b/src/api/system/invWarehouse.js index 77b8892b..43d7205a 100644 --- a/src/api/system/invWarehouse.js +++ b/src/api/system/invWarehouse.js @@ -1,4 +1,4 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; // 获取列表 @@ -243,4 +243,21 @@ export function getInvListByUser(params) { } +export function selectInvById(params) { + return axios({ + url: "/spms/inv/warehouse/selectInvById", + method: "post", + data: params + }); +} + +export function getDeptById(params) { + return axios({ + url: "/warehouse/inout/getDeptById", + method: "post", + data: params + }); +} + + diff --git a/src/views/inventory/InvSpaceManage.vue b/src/views/inventory/InvSpaceManage.vue index 8a68879c..ae652229 100644 --- a/src/views/inventory/InvSpaceManage.vue +++ b/src/views/inventory/InvSpaceManage.vue @@ -2,8 +2,8 @@
- - + + @@ -11,7 +11,7 @@ type="primary" icon="el-icon-refresh" @click="onReset" - > + >重置 查询 新增货位 @@ -72,13 +72,13 @@ + placeholder="请输入货位编码" clearable> + placeholder="请输入货位名称" clearable> @@ -86,7 +86,7 @@ + placeholder="请输入货位分类" clearable> @@ -125,6 +125,7 @@ import store from "../../store"; import {filterUplLocInv} from "@/api/system/invWarehouse"; import {filterSubByInv} from "@/api/system/invSubWarehouse"; import {getInvSpaceList, saveSpace, deleteSpace} from "@/api/inventory/invSpace"; +import {isBlank} from "@/utils/strUtil"; export default { name: "invInfo", @@ -276,6 +277,10 @@ export default { this.formData = row; }, addSpace() { + if (isBlank(this.invInfo.invStorageCode)) { + this.$message.warning("请先选择仓库!"); + return; + } this.modifySpaceVisible = true; this.formName = "add"; this.resetForm(); diff --git a/src/views/system/dept/authDept.vue b/src/views/system/dept/authDept.vue index 5b88f104..2aa03b6b 100644 --- a/src/views/system/dept/authDept.vue +++ b/src/views/system/dept/authDept.vue @@ -2,7 +2,12 @@
- + - + @@ -20,22 +29,17 @@ - 重置 - 查询 - - 新增 - + + + + + + - - - + + - + + + - - + + - - + + - + - - + + 正常 禁用 + + + + + + + - + --> - @@ -170,7 +199,12 @@ {{ currentRow.name }}-用户列表 - + 重置 - 查询 - + - 帮助 - - - - + + - {{ currentRow.name }}-仓库列表 - + 重置 - 查询 - + - 帮助 - - - - - + + + @@ -292,9 +334,8 @@ - -