|
|
|
@ -343,20 +343,13 @@ import {
|
|
|
|
|
filterSubAll, saveSubWarehouse, deleteSubWarehouse,
|
|
|
|
|
getSubThrsysDetail, bindThrSubWarehouse, unbindSubThrWarehouse,
|
|
|
|
|
} from "@/api/system/invSubWarehouse";
|
|
|
|
|
import {getHospitalUserList, selectNotSelectUser} from "@/api/auth/authUser";
|
|
|
|
|
import {getJoinBussinessType} from "@/api/basic/bussinessType";
|
|
|
|
|
import {findConfig} from "@/api/thrsys/spsSyncStatus";
|
|
|
|
|
import {selectSysParamByKey} from "@/api/system/param/systemParamConfig";
|
|
|
|
|
import invSpaceManage from "@/views/inventory/InvSpaceManage";
|
|
|
|
|
import {
|
|
|
|
|
addWarehouseUser,
|
|
|
|
|
deleteWarehouseBussinessType,
|
|
|
|
|
deleteWarehouseUser,
|
|
|
|
|
filterInvWarehouse,
|
|
|
|
|
filterList,
|
|
|
|
|
filterThridSubByInv,
|
|
|
|
|
warehouseBussinessTypeList,
|
|
|
|
|
warehouseUserList
|
|
|
|
|
} from "@/api/system/invWarehouse";
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
@ -447,13 +440,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
getList() { //获取仓库信息
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.list = [];
|
|
|
|
|
filterSubAll(this.query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
//this.total = response.data.total;
|
|
|
|
|
let invlist = response.data || [];
|
|
|
|
|
this.list = this.handleTree(invlist, "code", "parentCode");
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -502,19 +494,17 @@ export default {
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
saveSubWarehouse(this.subData, this.formName).then((response) => {
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.loadSubData(this.subData.parentId);
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
findDeptMethod() { //新增,编辑---获取部门信息
|
|
|
|
|
let query = {
|
|
|
|
@ -745,7 +735,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message.success("删除成功");
|
|
|
|
|
this.loadSubData(row.parentId);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.deleteLoading = false;
|
|
|
|
|