|
|
@ -59,6 +59,23 @@ |
|
|
|
<el-form-item label="设备产能"> |
|
|
|
<el-input v-model="form.productivity" type="number" style="width: 300px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属区域"> |
|
|
|
<el-select |
|
|
|
v-model="form.region_code" |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
size="mini" |
|
|
|
placeholder="所属区域" |
|
|
|
class="filter-item" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in regionList" |
|
|
|
:key="item.region_code" |
|
|
|
:label="item.region_name" |
|
|
|
:value="item.region_code" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="外部编码"> |
|
|
|
<el-input v-model="form.extend_code" style="width: 300px" /> |
|
|
|
</el-form-item> |
|
|
@ -89,6 +106,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="productivity" label="设备产能" /> |
|
|
|
<el-table-column prop="region_name" label="所属区域" /> |
|
|
|
<el-table-column prop="remark" label="备注" /> |
|
|
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -123,6 +141,7 @@ const defaultForm = { |
|
|
|
devicebill_id: null, |
|
|
|
remark: null, |
|
|
|
is_active: null, |
|
|
|
region_code: null, |
|
|
|
create_id: null, |
|
|
|
create_name: null, |
|
|
|
create_time: null, |
|
|
@ -160,9 +179,15 @@ export default { |
|
|
|
device_model: [ |
|
|
|
{ required: true, message: '设备类型不能为空', trigger: 'blur' } |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
regionList: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
crudDevice.getAllRegions().then(res => { |
|
|
|
this.regionList = res |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
|
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
|