| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="mdcFlag" label="是否实施MDC"> |
| | | <lx-switch checked-children='是' un-checked-children='否' @change="handleMdcFlagChange" v-model="model.mdcFlag" :disabled="disableSubmit"/> |
| | | <lx-switch checked-children='是' un-checked-children='否' v-model="model.mdcFlag" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6" v-if="model.mdcFlag === '1'"> |
| | |
| | | import { getAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | |
| | | export default { |
| | | name: 'EamEquipmentModal', |
| | |
| | | } |
| | | }) |
| | | }, |
| | | handleMdcFlagChange(checked){ |
| | | this.model.deviceType = ''; |
| | | if (checked) { |
| | | this.validatorRules.deviceType[0].required = true |
| | | } else { |
| | | this.validatorRules.deviceType[0].required = false |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |