|
@ -12,6 +12,18 @@ |
|
|
style="width: 200px;" |
|
|
style="width: 200px;" |
|
|
class="filter-item" |
|
|
class="filter-item" |
|
|
/> |
|
|
/> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="query.region_code" |
|
|
|
|
|
clearable |
|
|
|
|
|
filterable |
|
|
|
|
|
size="small" |
|
|
|
|
|
placeholder="区域" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
style="width: 190px" |
|
|
|
|
|
@change="crud.toQuery" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option v-for="item in dict.point_region" :key="item.id" :label="item.label" :value="item.value" /> |
|
|
|
|
|
</el-select> |
|
|
<rrOperation /> |
|
|
<rrOperation /> |
|
|
</div> |
|
|
</div> |
|
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'--> |
|
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'--> |
|
@ -60,6 +72,7 @@ |
|
|
<el-table-column prop="create_by" label="创建者" /> |
|
|
<el-table-column prop="create_by" label="创建者" /> |
|
|
<el-table-column prop="create_time" label="创建时间" /> |
|
|
<el-table-column prop="create_time" label="创建时间" /> |
|
|
<el-table-column prop="parent_storage_code" label="父级系统编码" /> |
|
|
<el-table-column prop="parent_storage_code" label="父级系统编码" /> |
|
|
|
|
|
<el-table-column prop="region_code" label="区域" :formatter="formatRegion"/> |
|
|
<el-table-column v-permission="['admin','storageCell:edit','storageCell:del']" label="操作" width="150px" align="center"> |
|
|
<el-table-column v-permission="['admin','storageCell:edit','storageCell:del']" label="操作" width="150px" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<udOperation |
|
|
<udOperation |
|
@ -88,6 +101,7 @@ export default { |
|
|
name: 'StorageCell', |
|
|
name: 'StorageCell', |
|
|
components: { pagination, crudOperation, udOperation, rrOperation }, |
|
|
components: { pagination, crudOperation, udOperation, rrOperation }, |
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
|
|
|
dicts: ['point_region'], |
|
|
cruds() { |
|
|
cruds() { |
|
|
return CRUD({ title: '库位管理', url: 'api/storageCell', idField: 'storage_id', sort: 'storage_id,desc', crudMethod: { ...crudStorageCell }}) |
|
|
return CRUD({ title: '库位管理', url: 'api/storageCell', idField: 'storage_id', sort: 'storage_id,desc', crudMethod: { ...crudStorageCell }}) |
|
|
}, |
|
|
}, |
|
@ -136,6 +150,9 @@ export default { |
|
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
|
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
return true |
|
|
return true |
|
|
|
|
|
}, |
|
|
|
|
|
formatRegion(row) { |
|
|
|
|
|
return this.dict.label.point_region[row.region_code] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|