Commit 136e02e9 authored by wanglianghe's avatar wanglianghe

库区新增查看仓位

parent 88826839
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['ecw:warehouse-area:create']">新增库域</el-button> v-hasPermi="['ecw:warehouse-area:create']">新增库域</el-button>
<el-button type="primary" plain size="mini" @click="positionManager"
>仓位管理</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -37,6 +34,8 @@ ...@@ -37,6 +34,8 @@
v-hasPermi="['ecw:warehouse-area:delete']">删除</el-button> v-hasPermi="['ecw:warehouse-area:delete']">删除</el-button>
<el-button size="mini" type="text" @click="handleCreate(scope.row)" v-if="scope.row.pid==0" <el-button size="mini" type="text" @click="handleCreate(scope.row)" v-if="scope.row.pid==0"
v-hasPermi="['ecw:warehouse-area:create']">添加库区</el-button> v-hasPermi="['ecw:warehouse-area:create']">添加库区</el-button>
<el-button size="mini" type="text" @click="positionManager(scope.row)" v-if="scope.row.pid>0"
v-hasPermi="['ecw:warehouse-area:create']">查看仓位</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -142,8 +141,8 @@ export default { ...@@ -142,8 +141,8 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
positionManager() { positionManager(row) {
this.$router.push('/warehouse/warehouse-area-position'); this.$router.push('/warehouse/warehouse-area-position?areaId=' + row.id);
}, },
/**查询仓库 */ /**查询仓库 */
......
...@@ -221,6 +221,10 @@ computed: { ...@@ -221,6 +221,10 @@ computed: {
}, },
created() { created() {
let areaId = this.$route.query.areaId;
if(areaId) {
this.queryParams.areaId = areaId;
}
this.requestWarehouseList(); this.requestWarehouseList();
this.requestWarehouseAreaList(); this.requestWarehouseAreaList();
this.getList(); this.getList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment