| | |
| | | </a-row> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <j-image-upload text="设备图片" biz="eam_equipment_image" v-model="model.equipmentImage"></j-image-upload> |
| | | <j-image-upload text="设备图片" bizPath="eam_equipment_image" v-model="model.equipmentImage"></j-image-upload> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="equipmentManager" label="设备管理员"> |
| | | <j-search-select-tag placeholder="请选择设备管理员" v-model="model.equipmentManager" dict="sys_user,realname, username, del_flag=0" :disabled="disableSubmit"/> |
| | | <j-search-select-tag placeholder="请选择设备管理员" v-model="model.equipmentManager" dict="sys_user,realname, username, del_flag=0 and post='PCR0004' and status=1" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </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', |
| | |
| | | { required: true, message: '请选择出厂日期' } |
| | | ], |
| | | acceptanceCheckDate: [ |
| | | { required: true, message: '请选择验收日期' } |
| | | { required: false, message: '请选择验收日期' } |
| | | ], |
| | | technologyStatus: [ |
| | | { required: true, message: '请选择技术状态' } |
| | |
| | | } |
| | | }) |
| | | }, |
| | | handleMdcFlagChange(checked){ |
| | | this.model.deviceType = ''; |
| | | if (checked) { |
| | | this.validatorRules.deviceType[0].required = true |
| | | } else { |
| | | this.validatorRules.deviceType[0].required = false |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |