zhangherong
2025-03-26 ccd5b8d5eebece61106ab8d36389d69357371ac5
src/views/eam/equipment/modules/EamEquipmentModal.vue
@@ -189,7 +189,7 @@
          </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'">
@@ -238,6 +238,7 @@
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',
@@ -370,14 +371,6 @@
        }
      })
    },
    handleMdcFlagChange(checked){
      this.model.deviceType = '';
      if (checked) {
        this.validatorRules.deviceType[0].required = true
      } else {
        this.validatorRules.deviceType[0].required = false
      }
    }
  }
}
</script>