|
|
@ -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("用户账号不能为空");
|
|
|
|