Commit 136e02e9 authored by wanglianghe's avatar wanglianghe

库区新增查看仓位

parent 88826839
......@@ -7,9 +7,6 @@
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['ecw:warehouse-area:create']">新增库域</el-button>
<el-button type="primary" plain size="mini" @click="positionManager"
>仓位管理</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
......@@ -37,6 +34,8 @@
v-hasPermi="['ecw:warehouse-area:delete']">删除</el-button>
<el-button size="mini" type="text" @click="handleCreate(scope.row)" v-if="scope.row.pid==0"
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>
</el-table-column>
</el-table>
......@@ -142,8 +141,8 @@ export default {
this.getList();
},
methods: {
positionManager() {
this.$router.push('/warehouse/warehouse-area-position');
positionManager(row) {
this.$router.push('/warehouse/warehouse-area-position?areaId=' + row.id);
},
/**查询仓库 */
......
......@@ -221,6 +221,10 @@ computed: {
},
created() {
let areaId = this.$route.query.areaId;
if(areaId) {
this.queryParams.areaId = areaId;
}
this.requestWarehouseList();
this.requestWarehouseAreaList();
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