Commit e3a86916 authored by 邓春圆's avatar 邓春圆

仓域列表 代码和仓库必填

parent 0996f156
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<span>{{ scope.row.pid == 0 ? $t('库域') : $t('库区') }}</span> <span>{{ scope.row.pid == 0 ? $t('库域') : $t('库区') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('仓库')" align="center" prop="warehouse" width="180"> <el-table-column :label="$t('仓库')" align="center" prop="warehouse" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ warehouseName(scope.row.warehouseId) }}</span> <span>{{ warehouseName(scope.row.warehouseId) }}</span>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<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']">{{$t('添加库区')}}</el-button> v-hasPermi="['ecw:warehouse-area:create']">{{$t('添加库区')}}</el-button>
<el-button size="mini" type="text" @click="positionManager(scope.row)" v-if="scope.row.pid>0" <el-button size="mini" type="text" @click="positionManager(scope.row)" v-if="scope.row.pid>0"
v-hasPermi="['ecw:warehouse-area:create']">{{$t('查看储位')}}</el-button> v-hasPermi="['ecw:warehouse-area:create']">{{$t('查看储位')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -62,10 +62,10 @@ ...@@ -62,10 +62,10 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('仓库')" prop="warehouseId"> <el-form-item :label="$t('仓库')" prop="warehouseId">
<el-select v-model="form.warehouseId" clearable :disabled="parentDo"> <el-select v-model="form.warehouseId" clearable :disabled="parentDo">
<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> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">{{$t('确定')}}</el-button> <el-button type="primary" @click="submitForm">{{$t('确定')}}</el-button>
...@@ -119,6 +119,8 @@ export default { ...@@ -119,6 +119,8 @@ export default {
// 表单校验 // 表单校验
rules: { rules: {
name: [{ required: true, message: this.$t("名称不能为空"), trigger: "blur" }], name: [{ required: true, message: this.$t("名称不能为空"), trigger: "blur" }],
code: [{ required: true, message: this.$t("代码不能为空"), trigger: "blur" }],
warehouseId: [{ required: true, message: this.$t("仓库不能为空"), trigger: "blur" }],
} }
}; };
}, },
......
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