From 2e38a086d73f37aaf3e812e6b2b5b16bfa478c05 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Sun, 9 Apr 2023 14:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/invWarehouse.js | 8 ++++++++ src/views/system/user/authUser.vue | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/api/system/invWarehouse.js b/src/api/system/invWarehouse.js index f0aa990..43d7205 100644 --- a/src/api/system/invWarehouse.js +++ b/src/api/system/invWarehouse.js @@ -251,5 +251,13 @@ export function selectInvById(params) { }); } +export function getDeptById(params) { + return axios({ + url: "/warehouse/inout/getDeptById", + method: "post", + data: params + }); +} + diff --git a/src/views/system/user/authUser.vue b/src/views/system/user/authUser.vue index 08574e4..7a5cbbc 100644 --- a/src/views/system/user/authUser.vue +++ b/src/views/system/user/authUser.vue @@ -257,7 +257,7 @@ import {findConfig} from "@/api/sync/spsSyncStatus"; import {isBlank} from "@/utils/strUtil"; import {listRole} from "@/api/system/role"; import {selectSysParamByKey} from "@/api/system/systemParamConfig"; -import {filterList, selectInvById} from '@/api/system/invWarehouse' +import {filterList, selectInvById,getDeptById} from '@/api/system/invWarehouse' const formJson = { id: "", @@ -456,6 +456,10 @@ export default { dept: row.dept, warehouseName: row.warehouseName }; + getDeptById(row.dept) + .then((res) => { + this.formData.depts=res.data.list + }) } this.formName = "add"; this.formRules = this.addRules; @@ -470,6 +474,7 @@ export default { }, + formSubmit() { if (isBlank(this.formData.userName)) { this.$message.error("用户账号不能为空");