Commit 93c5ae20 authored by 邓春圆's avatar 邓春圆

页面跳转,新增储位,页面回显

parent ed87f379
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item :label="$t('储位代码')" prop="code"> <el-form-item :label="$t('储位代码')" prop="code">
<el-input v-model="queryParams.code" :placeholder="$t('请输入储位代码')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.code" :placeholder="$t('请输入储位代码')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<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-position:create']">{{$t('新增储位')}}</el-button> v-hasPermi="['ecw:warehouse-area-position:create']">{{$t('新增储位')}}</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>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('库域')" align="center" prop="domainName" /> <el-table-column :label="$t('库域')" align="center" prop="domainName" />
<el-table-column :label="$t('库区')" align="center" prop="areaName" /> <el-table-column :label="$t('库区')" align="center" prop="areaName" />
<el-table-column :label="$t('货架')" align="center" prop="isShelf"> <el-table-column :label="$t('货架')" align="center" prop="isShelf">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.isShelf == 1 ? $t('') : $t('') }}</span> <span>{{ scope.row.isShelf == 1 ? $t('') : $t('') }}</span>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<span>{{ scope.row.status == CommonStatusEnum.ENABLE ? $t('') : $t('') }}</span> <span>{{ scope.row.status == CommonStatusEnum.ENABLE ? $t('') : $t('') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
...@@ -74,21 +74,21 @@ ...@@ -74,21 +74,21 @@
<el-form-item :label="$t('仓库')" prop="warehouseId"> <el-form-item :label="$t('仓库')" prop="warehouseId">
<el-select v-model="form.warehouseId" clearable @change="changeWarehouse" :disabled="parentDo != null"> <el-select v-model="form.warehouseId" clearable @change="changeWarehouse" :disabled="parentDo != null">
<el-option v-for="warehouse in warehouseList" :key="warehouse.id" :label="$l(warehouse, 'title')" :value="warehouse.id" /> <el-option v-for="warehouse in warehouseList" :key="warehouse.id" :label="$l(warehouse, 'title')" :value="warehouse.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('库域')" prop="domainId"> <el-form-item :label="$t('库域')" prop="domainId">
<el-select v-model="form.domainId" clearable @change="changeDomain" :disabled="parentDo != null"> <el-select v-model="form.domainId" clearable @change="changeDomain" :disabled="parentDo != null">
<el-option v-for="domain in domainList" :key="domain.id" :label="domain.name" :value="domain.id" /> <el-option v-for="domain in domainList" :key="domain.id" :label="domain.name" :value="domain.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('库区')" prop="areaId" > <el-form-item :label="$t('库区')" prop="areaId" >
<el-select v-model="form.areaId" clearable @change="changeArea" :disabled="parentDo != null"> <el-select v-model="form.areaId" clearable @change="changeArea" :disabled="parentDo != null">
<el-option v-for="area in areaList" :key="area.id" :label="area.name" :value="area.id" /> <el-option v-for="area in areaList" :key="area.id" :label="area.name" :value="area.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('货架')" prop="isShelf"> <el-form-item :label="$t('货架')" prop="isShelf">
<el-radio v-model.number="form.isShelf" :label="1">{{$t('是')}}</el-radio> <el-radio v-model.number="form.isShelf" :label="1">{{$t('是')}}</el-radio>
...@@ -331,6 +331,15 @@ computed: { ...@@ -331,6 +331,15 @@ computed: {
this.parentDo = null; this.parentDo = null;
this.form.status = 0; this.form.status = 0;
this.form.isShelf = 1; this.form.isShelf = 1;
let p = this.$route.query
if(p.areaId){
this.form.areaId = +p.areaId
this.form.warehouseId = +p.warehouseId
this.form.domainId = +p.domainId
this.changeWarehouse( this.form.warehouseId)
this.changeDomain(this.form.domainId)
}
this.title = this.$t("添加储位"); this.title = this.$t("添加储位");
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
......
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