修改bug

ywj_dev
wangwei 2 years ago
parent 6fa06ff4a9
commit 2e38a086d7

@ -251,5 +251,13 @@ export function selectInvById(params) {
}); });
} }
export function getDeptById(params) {
return axios({
url: "/warehouse/inout/getDeptById",
method: "post",
data: params
});
}

@ -257,7 +257,7 @@ import {findConfig} from "@/api/sync/spsSyncStatus";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {listRole} from "@/api/system/role"; import {listRole} from "@/api/system/role";
import {selectSysParamByKey} from "@/api/system/systemParamConfig"; import {selectSysParamByKey} from "@/api/system/systemParamConfig";
import {filterList, selectInvById} from '@/api/system/invWarehouse' import {filterList, selectInvById,getDeptById} from '@/api/system/invWarehouse'
const formJson = { const formJson = {
id: "", id: "",
@ -456,6 +456,10 @@ export default {
dept: row.dept, dept: row.dept,
warehouseName: row.warehouseName warehouseName: row.warehouseName
}; };
getDeptById(row.dept)
.then((res) => {
this.formData.depts=res.data.list
})
} }
this.formName = "add"; this.formName = "add";
this.formRules = this.addRules; this.formRules = this.addRules;
@ -470,6 +474,7 @@ export default {
}, },
formSubmit() { formSubmit() {
if (isBlank(this.formData.userName)) { if (isBlank(this.formData.userName)) {
this.$message.error("用户账号不能为空"); this.$message.error("用户账号不能为空");

Loading…
Cancel
Save