|
|
|
@ -258,7 +258,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} from '@/api/system/invWarehouse'
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
id: "",
|
|
|
|
@ -315,7 +315,7 @@ export default {
|
|
|
|
|
formData: formJson,
|
|
|
|
|
selectDeptList: [],
|
|
|
|
|
fromDeptOptions: [],
|
|
|
|
|
fromWarehouseOptions:[],
|
|
|
|
|
fromWarehouseOptions: [],
|
|
|
|
|
configParms: {},
|
|
|
|
|
formRules: {},
|
|
|
|
|
addRules: {
|
|
|
|
@ -378,13 +378,13 @@ export default {
|
|
|
|
|
this.query.page = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
findInv(val){
|
|
|
|
|
// 获取仓库列表
|
|
|
|
|
findInv(val) {
|
|
|
|
|
// 获取仓库列表
|
|
|
|
|
selectInvById(val)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if(res.code == 20000){
|
|
|
|
|
this.fromWarehouseOptions = res.data || [];
|
|
|
|
|
}
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.fromWarehouseOptions = res.data || [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -455,7 +455,7 @@ export default {
|
|
|
|
|
roles: row.roles,
|
|
|
|
|
depts: row.depts,
|
|
|
|
|
dept: row.dept,
|
|
|
|
|
warehouseName:row.warehouseName
|
|
|
|
|
warehouseName: row.warehouseName
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
this.formName = "add";
|
|
|
|
@ -465,6 +465,11 @@ export default {
|
|
|
|
|
this.formName = "edit";
|
|
|
|
|
this.formRules = this.editRules;
|
|
|
|
|
}
|
|
|
|
|
if (row.depts != null && row.depts.length > 0) {
|
|
|
|
|
this.findInv(row.depts);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
formSubmit() {
|
|
|
|
|
if (isBlank(this.formData.userName)) {
|
|
|
|
@ -483,7 +488,7 @@ export default {
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.formLoading = true;
|
|
|
|
|
this.formData.locInvCode = this.formData.warehouseName
|
|
|
|
|
this.formData.locInvCode = this.formData.warehouseName
|
|
|
|
|
let data = Object.assign({}, this.formData);
|
|
|
|
|
authAdminSave(data, this.formName).then(response => {
|
|
|
|
|
this.formLoading = false;
|
|
|
|
@ -602,6 +607,7 @@ export default {
|
|
|
|
|
this.getSyncConfig();
|
|
|
|
|
this.findDeptMethod();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询是否启用多级仓库,判断是否启用部门
|
|
|
|
|
selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|