|
|
@ -162,7 +162,7 @@
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
@click.native.stop="addUser(scope.row)"
|
|
|
|
@click.native.stop="addUser(scope.row)"
|
|
|
|
>添加用户
|
|
|
|
>管理用户
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -170,7 +170,7 @@
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
@click.native.stop="addBussinessType(scope.row)"
|
|
|
|
@click.native.stop="addBussinessType(scope.row)"
|
|
|
|
>添加单据类型
|
|
|
|
>管理单据类型
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -201,7 +201,10 @@
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
:data="userData"
|
|
|
|
:data="userData"
|
|
|
|
key="row.id"
|
|
|
|
key="row.id"
|
|
|
|
style="width: 100%">
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
highlight-current-row
|
|
|
|
|
|
|
|
@current-change="loadUserBusType"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="username"
|
|
|
|
prop="username"
|
|
|
@ -218,20 +221,12 @@
|
|
|
|
min-width="30%"
|
|
|
|
min-width="30%"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
|
|
|
|
@click.native="delWarehouseUser(scope.row.id)">
|
|
|
|
|
|
|
|
移除
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
@click.native="relBusttype(scope.row)">
|
|
|
|
@click.native="relBusttype(scope.row)">
|
|
|
|
关联单据类型
|
|
|
|
关联单据类型
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -246,6 +241,9 @@
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<el-card style="width: 49%; float: right; margin-left: 0px;">
|
|
|
|
<el-card style="width: 49%; float: right; margin-left: 0px;">
|
|
|
|
|
|
|
|
<div slot="header" class="clearfix">
|
|
|
|
|
|
|
|
<span>{{ busTableTitle }}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
:data="bussinessTypeData"
|
|
|
|
:data="bussinessTypeData"
|
|
|
|
key="row.id"
|
|
|
|
key="row.id"
|
|
|
@ -261,19 +259,6 @@
|
|
|
|
label="单据类型名称"
|
|
|
|
label="单据类型名称"
|
|
|
|
min-width="30%">
|
|
|
|
min-width="30%">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="操作"
|
|
|
|
|
|
|
|
min-width="20%"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small" :disabled="!configParms.basicInv"
|
|
|
|
|
|
|
|
@click.native="delWarehouseBussinessType(scope.row.id)">
|
|
|
|
|
|
|
|
移除
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
@ -730,7 +715,6 @@ import {
|
|
|
|
deleteWarehouse, warehouseBussinessTypeList,
|
|
|
|
deleteWarehouse, warehouseBussinessTypeList,
|
|
|
|
warehouseUserList, saveWarehouseBussinessType,
|
|
|
|
warehouseUserList, saveWarehouseBussinessType,
|
|
|
|
saveWarehouseUser, updateDirector, disableWarehouse,
|
|
|
|
saveWarehouseUser, updateDirector, disableWarehouse,
|
|
|
|
deleteWarehouseUser, deleteWarehouseBussinessType,
|
|
|
|
|
|
|
|
bindThrWarehouse, unbindThrWarehouse, filterThridSubByInv, getThrsysDetail
|
|
|
|
bindThrWarehouse, unbindThrWarehouse, filterThridSubByInv, getThrsysDetail
|
|
|
|
} from "../../api/basic/invWarehouse";
|
|
|
|
} from "../../api/basic/invWarehouse";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
@ -747,6 +731,7 @@ import {findConfig} from "@/api/thrsys/spsSyncStatus";
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
import relBusUserDialog from "./invWarehouseRelBusTypes";
|
|
|
|
import relBusUserDialog from "./invWarehouseRelBusTypes";
|
|
|
|
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
|
|
|
|
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
|
|
|
|
|
|
|
|
import {filterUserBusTypeList} from "@/api/inventory/invRelBusTypes";
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
const formJson = {
|
|
|
|
id: null,
|
|
|
|
id: null,
|
|
|
@ -872,6 +857,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
busTotal: 0,
|
|
|
|
busTotal: 0,
|
|
|
|
curSeleUser: null,
|
|
|
|
curSeleUser: null,
|
|
|
|
|
|
|
|
busTableTitle: null
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -1238,6 +1224,8 @@ export default {
|
|
|
|
this.subRadioCheck = row.id;
|
|
|
|
this.subRadioCheck = row.id;
|
|
|
|
this.currentCode = row.code;
|
|
|
|
this.currentCode = row.code;
|
|
|
|
this.currentRow = row;
|
|
|
|
this.currentRow = row;
|
|
|
|
|
|
|
|
this.curSeleUser = null;
|
|
|
|
|
|
|
|
this.busTableTitle = row.name + " 仓库关联单据类型";
|
|
|
|
this.loadLinkData(row)
|
|
|
|
this.loadLinkData(row)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -1263,6 +1251,7 @@ export default {
|
|
|
|
this.busQuery.page = 1;
|
|
|
|
this.busQuery.page = 1;
|
|
|
|
this.userQuery.code = row.code;
|
|
|
|
this.userQuery.code = row.code;
|
|
|
|
this.busQuery.code = row.code;
|
|
|
|
this.busQuery.code = row.code;
|
|
|
|
|
|
|
|
this.curSeleUser = null;
|
|
|
|
//加载用户数据
|
|
|
|
//加载用户数据
|
|
|
|
this.loadUserList();
|
|
|
|
this.loadUserList();
|
|
|
|
|
|
|
|
|
|
|
@ -1282,16 +1271,21 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loadBusList(val) {
|
|
|
|
loadBusList(val) {
|
|
|
|
if (val != null) {
|
|
|
|
//根据是否选择用户切换不同的分页方法
|
|
|
|
this.busQuery.page = val;
|
|
|
|
if (this.curSeleUser == null) {
|
|
|
|
|
|
|
|
if (val != null) {
|
|
|
|
|
|
|
|
this.busQuery.page = val;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//加载单据类型数据
|
|
|
|
|
|
|
|
warehouseBussinessTypeList(this.busQuery).then((res) => {
|
|
|
|
|
|
|
|
this.bussinessTypeData = res.data.list;
|
|
|
|
|
|
|
|
this.busTotal = res.data.total;
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
this.$message.error("单据类型数据加载失败")
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.getUserBusTypeList(val);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//加载单据类型数据
|
|
|
|
|
|
|
|
warehouseBussinessTypeList(this.busQuery).then((res) => {
|
|
|
|
|
|
|
|
this.bussinessTypeData = res.data.list;
|
|
|
|
|
|
|
|
this.busTotal = res.data.total;
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
this.$message.error("单据类型数据加载失败")
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addUser(row) {
|
|
|
|
addUser(row) {
|
|
|
|
this.currentCode = row.code;
|
|
|
|
this.currentCode = row.code;
|
|
|
@ -1464,48 +1458,12 @@ export default {
|
|
|
|
this.$message.error("设置失败");
|
|
|
|
this.$message.error("设置失败");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
delWarehouseUser(id) {
|
|
|
|
|
|
|
|
let params = {id: id};
|
|
|
|
|
|
|
|
deleteWarehouseUser(params).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.$message.success("已移除");
|
|
|
|
|
|
|
|
for (let i = 0; i < this.userData.length; i++) {
|
|
|
|
|
|
|
|
if (this.userData[i].id == id) {
|
|
|
|
|
|
|
|
this.userData.splice(i, 1);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
this.$message.error("移除失败");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
relBusttype(row) {
|
|
|
|
relBusttype(row) {
|
|
|
|
this.curSeleUser = row;
|
|
|
|
this.curSeleUser = row;
|
|
|
|
this.relBusUserVisile = true;
|
|
|
|
this.relBusUserVisile = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
delWarehouseBussinessType(id) {
|
|
|
|
|
|
|
|
let params = {id: id};
|
|
|
|
|
|
|
|
deleteWarehouseBussinessType(params).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.$message.success("已移除");
|
|
|
|
|
|
|
|
for (let i = 0; i < this.bussinessTypeData.length; i++) {
|
|
|
|
|
|
|
|
if (this.bussinessTypeData[i].id == id) {
|
|
|
|
|
|
|
|
this.bussinessTypeData.splice(i, 1);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error("移除失败");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
this.$message.error("移除失败");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//绑定第三方仓库
|
|
|
|
//绑定第三方仓库
|
|
|
|
bindThrWarehouse() {
|
|
|
|
bindThrWarehouse() {
|
|
|
|
this.thrWareHouseVisible = false;
|
|
|
|
this.thrWareHouseVisible = false;
|
|
|
@ -1655,6 +1613,27 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
loadUserBusType(row) {
|
|
|
|
|
|
|
|
this.busTableTitle = row.employeeName + " 用户关联单据类型";
|
|
|
|
|
|
|
|
this.curSeleUser = row;
|
|
|
|
|
|
|
|
this.getUserBusTypeList(1);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getUserBusTypeList(page) {
|
|
|
|
|
|
|
|
let queryParam = {
|
|
|
|
|
|
|
|
subInvCode: this.currentCode,
|
|
|
|
|
|
|
|
userId: this.curSeleUser.userid,
|
|
|
|
|
|
|
|
page: page,
|
|
|
|
|
|
|
|
limit: 10
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
filterUserBusTypeList(queryParam).then((res) => {
|
|
|
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
|
|
|
this.bussinessTypeData = res.data.list || [];
|
|
|
|
|
|
|
|
this.bussinessTypeTotal = res.data.total || 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
|