| | |
| | | v-if="dialogType === 'add'" |
| | | :model="form" |
| | | :rules="rules" |
| | | label-width="120px"> |
| | | label-width="140px" |
| | | label-position="top"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="危险源" |
| | |
| | | <span>{{ form.name }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="危险源类型"> |
| | | <span>{{ getTypeLabel(form.type) }}</span> |
| | | <el-tag type="info"> |
| | | {{ getTypeLabel(form.type) }} |
| | | </el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="所在位置"> |
| | | <span>{{ form.location }}</span> |
| | |
| | | v-if="dialogType === 'edit'" |
| | | :model="form" |
| | | :rules="rules1" |
| | | label-width="120px"> |
| | | label-width="140px" |
| | | label-position="top"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="归还人" |
| | |
| | | // 表格列配置 |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "领用单号", |
| | | prop: "materialRecordCode", |
| | | width: 130, |
| | | showOverflowTooltip: true, |
| | | }, |
| | | { |
| | | label: "危险源编码", |
| | | prop: "code", |
| | | showOverflowTooltip: true, |
| | |
| | | showOverflowTooltip: true, |
| | | }, |
| | | { |
| | | label: "单号", |
| | | prop: "materialRecordCode", |
| | | showOverflowTooltip: true, |
| | | }, |
| | | { |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 200, |
| | | width: 130, |
| | | operation: [ |
| | | { |
| | | name: "归还", |