| | |
| | | <el-input class="command-input" v-model="formData.disposeWay" maxlength="200" type="textarea" placeholder="请输入" clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <div v-if="checkAreaBind" class="warning-text"> 注:该设备已绑定区域,报废设备该区域无法正常使用,是否报废?</div> |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | |
| | | import { computed, ref } from 'vue' |
| | | import { ElMessage } from 'element-plus' |
| | | import { fieldRules } from '@ztzf/utils' |
| | | import { fwDeviceScrapSaveApi } from '@/views/basicManage/deviceStock/fwDeviceScrapApi' |
| | | import { fwDeviceScrapSaveApi,fivDevicelcheckAreaBindApi } from '@/views/basicManage/deviceStock/fwDeviceScrapApi' |
| | | import dayjs from 'dayjs' |
| | | import { saveOperationLog } from '@ztzf/apis' |
| | | import { useRoute } from 'vue-router' |
| | |
| | | dialogMode.value = mode || 'add' |
| | | visible.value = true |
| | | formData.value.deviceId = row.id |
| | | getCheckAreaBind() |
| | | } |
| | | const checkAreaBind = ref(false) |
| | | function getCheckAreaBind() { |
| | | fivDevicelcheckAreaBindApi({ |
| | | deviceId: formData.value.deviceId |
| | | }).then(res => { |
| | | checkAreaBind.value = res.data.data |
| | | }) |
| | | } |
| | | |
| | | onMounted(() => {}) |
| | | onMounted(() => { |
| | | getCheckAreaBind() |
| | | }) |
| | | |
| | | defineExpose({ open }) |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .warning-text { |
| | | width: 100%; |
| | | color: red; |
| | | font-size: 14px; |
| | | text-align: center; |
| | | margin: -10px 0 10px 0; |
| | | } |
| | | </style> |