|
|
@ -29,29 +29,32 @@
|
|
|
|
border
|
|
|
|
border
|
|
|
|
highlight-current-row
|
|
|
|
highlight-current-row
|
|
|
|
@current-change="handSubInvCurrentChange"
|
|
|
|
@current-change="handSubInvCurrentChange"
|
|
|
|
|
|
|
|
row-key="id"
|
|
|
|
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<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="name" align="center"
|
|
|
|
prop="name"
|
|
|
|
label="仓库名称"
|
|
|
|
label="仓库名称"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="code"
|
|
|
|
prop="code"
|
|
|
|
label="仓库编码" align="center"
|
|
|
|
label="仓库编码"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="parentName" align="center"
|
|
|
|
prop="parentName"
|
|
|
|
label="所属部门"
|
|
|
|
label="所属部门"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="parentInvName" align="center"
|
|
|
|
prop="parentInvName"
|
|
|
|
label="上级仓库"
|
|
|
|
label="上级仓库"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -458,6 +461,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
isExpandAll: true,
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
formMap: {
|
|
|
|
formMap: {
|
|
|
|
add: "仓库信息-新增",
|
|
|
|
add: "仓库信息-新增",
|
|
|
@ -556,7 +560,9 @@ export default {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.total = response.data.total;
|
|
|
|
this.total = response.data.total;
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
let invlist = response.data.list || [];
|
|
|
|
|
|
|
|
this.list = this.handleTree(invlist, "code", "parentCode");
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|