| | |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-tag v-if="row.enable==='0'" size="small" type="success">正常</el-tag> |
| | | <el-tag v-if="row.enable==='1'" size="small" type="danger">停用</el-tag> |
| | | <el-tag v-if="row.enable==='Y'" size="small" type="success">正常</el-tag> |
| | | <el-tag v-if="row.enable==='N'" size="small" type="danger">停用</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-form-item> |
| | | <el-form-item required label="状态"> |
| | | <el-radio-group v-model="dialogForm.status"> |
| | | <el-radio label="0">正常</el-radio> |
| | | <el-radio label="1">停用</el-radio> |
| | | <el-radio label="Y">正常</el-radio> |
| | | <el-radio label="N">停用</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | |
| | |
| | | import Pagination from '@/components/Pagination' |
| | | import { validateCode } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import { |
| | | TMaterielAddUpdate, |
| | | TMaterielClassTree, |
| | | TMaterielClassTreeAddUpdate, |
| | | TMaterielClassTreeDelete, |
| | | TMaterielData, TMaterielDelete |
| | | } from '@/api/ProductModel' |
| | | import arrayToTree from 'array-to-tree' |
| | | import { PrentOrganization, UnitSerch } from '@/api/GeneralBasicData' |
| | | import { PrentOrganization } from '@/api/GeneralBasicData' |
| | | import { |
| | | AddUpdateDeviceManger, |
| | | AddUpdateDeviceType, DeleteDeviceManger, |
| | |
| | | devicename: '', // 设备名称 |
| | | devicetypecode: '', // 设备类型编码 |
| | | storgcode: [], // 组织编码 |
| | | status: '0', // 使用状态: 正常(0)停用(1) |
| | | status: 'Y', // 使用状态: 正常(Y)停用(N) |
| | | OperType: '' // 操作类型 |
| | | }, |
| | | dialogFormRules: { |
| | |
| | | this.dialogForm.devicename = '' |
| | | // this.dialogForm.storgcode = [] |
| | | this.dialogForm.devicetypecode = '' |
| | | this.dialogForm.status = '0' |
| | | this.dialogForm.status = 'Y' |
| | | this.$refs.dialogCascader.checkedValue = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |