From 8663c0f1a31eabe2820c98dc6524d8142afd936d Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期三, 19 六月 2024 11:54:34 +0800 Subject: [PATCH] 1、 下次技术状态鉴定时间调整 ,下次技术状态鉴定时间=验收日期+技术状态检定周期-1天 2、字段展示调整 --- src/views/eam/modules/equipmentNew/EquipmentModal.vue | 1306 ++++++++++++++++++++++++++++++----------------------------- 1 files changed, 665 insertions(+), 641 deletions(-) diff --git a/src/views/eam/modules/equipmentNew/EquipmentModal.vue b/src/views/eam/modules/equipmentNew/EquipmentModal.vue index b6d611e..a64d587 100644 --- a/src/views/eam/modules/equipmentNew/EquipmentModal.vue +++ b/src/views/eam/modules/equipmentNew/EquipmentModal.vue @@ -1,251 +1,257 @@ <template> <j-modal - :title="title" - :width="width" - :visible="visible" - :confirmLoading="confirmLoading" + :title='title' + :width='width' + :visible='visible' + :confirmLoading='confirmLoading' switchFullscreen - @ok="handleOk" - @cancel="handleCancel" - cancelText="鍏抽棴" + @ok='handleOk' + @cancel='handleCancel' + cancelText='鍏抽棴' > - <a-spin :spinning="confirmLoading"> + <a-spin :spinning='confirmLoading'> <a-form-model - ref="form" - :model="model" - :rules="validatorRules" + ref='form' + :model='model' + :rules='validatorRules' > <a-row> <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" - > 璁惧鍩虹淇℃伅 </a-divider> - <a-col :span="6"> + orientation='center' + style='font-size: large;font-style: italic;color: #66aeed;' + > 璁惧鍩虹淇℃伅 + </a-divider> + <a-col :span='6'> <a-form-model-item - label="璁惧鎵�灞炲垎绫�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentCategoryId" + label='璁惧鎵�灞炲垎绫�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentCategoryId' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨璁惧鎵�灞炲垎绫�" - :disabled="formDisabled" - :triggerChange="true" + placeholder='璇烽�夋嫨璁惧鎵�灞炲垎绫�' + :disabled='formDisabled' + :triggerChange='true' :dictCode="caytegoryParam==='all'?'mom_eam_equipment_category,name,id':'mom_eam_equipment_category,name,id,equipment_category_uda1 = '+'\''+caytegoryParam+'\''" - v-model="model.equipmentCategoryId" - @change="categoryChange" + v-model='model.equipmentCategoryId' + @change='categoryChange' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="缁熶竴缂栫爜" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="num" + label='缁熶竴缂栫爜' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='num' > <a-input - v-model="model.num" - placeholder="璇疯緭鍏ョ粺涓� 缂栧彿" - :disabled="formDisabled" + v-model='model.num' + placeholder='璇疯緭鍏ョ粺涓� 缂栧彿' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璁惧鍚嶇О" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="name" + label='璁惧鍚嶇О' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='name' > <a-input - v-model="model.name" - placeholder="璇疯緭鍏ヨ澶囧悕绉�" - :disabled="formDisabled" + v-model='model.name' + placeholder='璇疯緭鍏ヨ澶囧悕绉�' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鍨嬪彿" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="model" + label='鍨嬪彿' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='model' > <a-input - v-model="model.model" - placeholder="璇疯緭鍏ュ瀷鍙�" - :disabled="formDisabled" + v-model='model.model' + placeholder='璇疯緭鍏ュ瀷鍙�' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> </a-row> <a-row> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="瑙勬牸" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="specification" + label='瑙勬牸' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='specification' > <a-input - v-model="model.specification" - placeholder="璇疯緭鍏ヨ鏍�" - :disabled="formDisabled" + v-model='model.specification' + placeholder='璇疯緭鍏ヨ鏍�' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鎬诲姛鐜�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="gpo" + label='鎬诲姛鐜�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='gpo' > <a-input - v-model="model.gpo" - placeholder="璇疯緭鍏ユ�诲姛鐜�" - :disabled="formDisabled" + v-model='model.gpo' + placeholder='璇疯緭鍏ユ�诲姛鐜�' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="浣跨敤閮ㄩ棬" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="useId" + label='浣跨敤閮ㄩ棬' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='useId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬" - :triggerChange="true" + :disabled='formDisabled' + placeholder='璇烽�夋嫨浣跨敤閮ㄩ棬' + :triggerChange='true' dictCode="sys_depart,depart_name,id,del_flag!='1'" - v-model="model.useId" + v-model='model.useId' /> </a-form-model-item> </a-col> </a-row> <a-row> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鏄惁鐢熶骇绾胯澶�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="isLineEquip" + label='鏄惁鐢熶骇绾�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='isLine' > + <!-- type='radio'--> <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨" - :triggerChange="true" - :disabled="false" - dictCode="is_product" - v-model="model.isLineEquip" + type='radio' + placeholder='璇烽�夋嫨' + :triggerChange='true' + dictCode='is_product' + v-model='model.isLine' + @change='isLineChange' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6' v-show='isLineEquipShow'> <a-form-model-item - label="鏄惁鐢熶骇绾�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="isLine" + label='鏄惁鐢熶骇绾夸富璁惧' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='isLineEquip' > + <!-- type='radio'--> <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨" - :triggerChange="true" - :disabled="false" - dictCode="is_product" - v-model="model.isLine" + type='radio' + placeholder='璇烽�夋嫨' + :triggerChange='true' + dictCode='is_product' + v-model='model.isLineEquip' /> </a-form-model-item> </a-col> - <a-col :span="6"> + + <a-col :span='6'> <a-form-model-item - label="璁惧鍥剧墖" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentPhoto" + label='璁惧鍥剧墖' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentPhoto' > <j-image-upload - :isMultiple="false" - v-model="model.equipmentPhoto" + :isMultiple='false' + v-model='model.equipmentPhoto' ></j-image-upload> </a-form-model-item> </a-col> </a-row> <a-row> <!-- 涓績 --> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="涓績" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="workCenterId" + label='鎵�灞炰腑蹇�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='workCenterId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨涓績" - :triggerChange="true" - @change="workCenterChange" + :disabled='formDisabled' + placeholder='璇烽�夋嫨鎵�灞炰腑蹇�' + :triggerChange='true' + @change='workCenterChange' dictCode="mom_base_area,name,id,del_flag!='1' and type='1'" - v-model="model.workCenterId" + v-model='model.workCenterId' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="宸ュ尯" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="factoryModelId" + label='宸ュ尯' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='factoryModelId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨宸ュ尯" - :triggerChange="true" - @change="factoryModelChange" + :disabled='formDisabled' + placeholder='璇烽�夋嫨宸ュ尯' + :triggerChange='true' + @change='factoryModelChange' :dictCode="'mom_base_area,name,id,del_flag!=\'1\' and type=\'2\' and parent_id = ' +'\''+ model.workCenterId+'\''" - v-model="model.factoryModelId" + v-model='model.factoryModelId' /> </a-form-model-item> </a-col> <!-- 宸ユ --> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="宸ユ" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="areaId" + label='宸ユ' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='areaId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨宸ユ" - :triggerChange="true" + :disabled='formDisabled' + placeholder='璇烽�夋嫨宸ユ' + :triggerChange='true' :dictCode="'mom_base_area,name,id,del_flag!=\'1\' and type=\'3\' and parent_id = '+'\''+model.factoryModelId+'\''" - v-model="model.areaId" + v-model='model.areaId' /> </a-form-model-item> </a-col> </a-row> <a-row> <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #f20707;" - >缁存姢鍙婁娇鐢ㄤ俊鎭�</a-divider> - <a-col :span="6"> + orientation='center' + style='font-size: large;font-style: italic;color: #f20707;' + >缁存姢鍙婁娇鐢ㄤ俊鎭� + </a-divider> + <a-col :span='6'> <a-form-model-item - label="缁存姢閮ㄩ棬" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="manageId" + label='缁存姢閮ㄩ棬' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='manageId' > <!-- <a-tree-select :disabled="formDisabled" @@ -258,404 +264,407 @@ /> --> <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨缁存姢閮ㄩ棬" - :triggerChange="true" + :disabled='formDisabled' + placeholder='璇烽�夋嫨缁存姢閮ㄩ棬' + :triggerChange='true' dictCode="sys_depart,depart_name,id,del_flag!='1'" - v-model="model.manageId" + v-model='model.manageId' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="缁翠慨鐝粍" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="teamId" + label='缁翠慨鐝粍' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='teamId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨璐d换鐝粍" - :triggerChange="true" + :disabled='formDisabled' + placeholder='璇烽�夋嫨璐d换鐝粍' + :triggerChange='true' dictCode="mom_base_team,name,id,status='1' and del_flag='0'" - v-model="model.teamId" + v-model='model.teamId' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="ABC鏍囪瘑" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentImportanceId" + label='ABC鏍囪瘑' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentImportanceId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨ABC鏍囪瘑" - :triggerChange="true" - dictCode="ABC-standard-result" - @change="changeNeedSpecific" - v-model="model.equipmentImportanceId" + :disabled='formDisabled' + placeholder='璇烽�夋嫨ABC鏍囪瘑' + :triggerChange='true' + dictCode='ABC-standard-result' + @change='changeNeedSpecific' + v-model='model.equipmentImportanceId' /> </a-form-model-item> </a-col> <a-col - :span="6" - v-if="needSpecific" + :span='6' + v-if='needSpecific' > <a-form-model-item - label="鍏抽敭璁惧鏍囪瘑" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="specificEquipment" + label='鍏抽敭璁惧鏍囪瘑' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='specificEquipment' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨鍏抽敭璁惧鏍囪瘑" - :disabled="formDisabled" - :triggerChange="true" - dictCode="specific_equipment" - v-model="model.specificEquipment" + placeholder='璇烽�夋嫨鍏抽敭璁惧鏍囪瘑' + :disabled='formDisabled' + :triggerChange='true' + dictCode='specific_equipment' + v-model='model.specificEquipment' /> </a-form-model-item> </a-col> </a-row> <a-row> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="瀹夊叏閰嶇疆" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="securityConfiguration" + label='瀹夊叏閰嶇疆' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='securityConfiguration' > <a-input - v-model="model.securityConfiguration" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ畨鍏ㄩ厤缃�" + v-model='model.securityConfiguration' + :disabled='formDisabled' + placeholder='璇疯緭鍏ュ畨鍏ㄩ厤缃�' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鍐峰嵈绯荤粺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="coolingSystem" + label='鍐峰嵈绯荤粺' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='coolingSystem' > <j-dict-select-tag allow-clear - v-model="model.coolingSystem" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ喎鍗寸郴缁�" - :triggerChange="true" - dictCode="cooling_system" + v-model='model.coolingSystem' + :disabled='formDisabled' + placeholder='璇疯緭鍏ュ喎鍗寸郴缁�' + :triggerChange='true' + dictCode='cooling_system' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鐏伀鍣�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="fireExtinguisher" + label='鐏伀鍣�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='fireExtinguisher' > <a-input - v-model="model.fireExtinguisher" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ伃鐏櫒" + v-model='model.fireExtinguisher' + :disabled='formDisabled' + placeholder='璇疯緭鍏ョ伃鐏櫒' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鐏伀鍣ㄦ湁鏁堟湡" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="fireExtinguisherValidityPeriod" + label='鐏伀鍣ㄦ湁鏁堟湡' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='fireExtinguisherValidityPeriod' > <a-input - v-model="model.fireExtinguisherValidityPeriod" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ伃鐏櫒鏈夋晥鏈�" + v-model='model.fireExtinguisherValidityPeriod' + :disabled='formDisabled' + placeholder='璇疯緭鍏ョ伃鐏櫒鏈夋晥鏈�' ></a-input> </a-form-model-item> </a-col> </a-row> <a-row> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鎿嶄綔绯荤粺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="operatingSystem" + label='鎿嶄綔绯荤粺' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='operatingSystem' > <j-dict-select-tag allow-clear - placeholder="鏄惁鏈夋搷浣滅郴缁�" - :disabled="formDisabled" - :triggerChange="true" - dictCode="operation_flag" - v-model="model.operatingSystem" + placeholder='鏄惁鏈夋搷浣滅郴缁�' + :disabled='formDisabled' + :triggerChange='true' + dictCode='operation_flag' + v-model='model.operatingSystem' /> </a-form-model-item> </a-col> <a-col - :span="6" + :span='6' v-if="model.operatingSystem=='yes'" > <a-form-model-item - label="绯荤粺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="system" + label='绯荤粺' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='system' > <a-input - v-model="model.system" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ郴缁�" + v-model='model.system' + :disabled='formDisabled' + placeholder='璇疯緭鍏ョ郴缁�' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="绔彛" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="port" + label='绔彛' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='port' > <a-input - v-model="model.port" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ鍙�" + v-model='model.port' + :disabled='formDisabled' + placeholder='璇疯緭鍏ョ鍙�' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鍧愭爣鏁伴噺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="coordinateNum" + label='鍧愭爣鏁伴噺' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='coordinateNum' > <a-input-number - v-model="model.coordinateNum" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ潗鏍囨暟閲�" - style="width: 100%" + v-model='model.coordinateNum' + :disabled='formDisabled' + placeholder='璇疯緭鍏ュ潗鏍囨暟閲�' + style='width: 100%' /> </a-form-model-item> </a-col> </a-row> <a-row> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璧勪骇鍒堕�犲晢" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="constructorId" + label='璧勪骇鍒堕�犲晢' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='constructorId' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨璧勪骇鍒堕�犲晢" - :triggerChange="true" + :disabled='formDisabled' + placeholder='璇烽�夋嫨璧勪骇鍒堕�犲晢' + :triggerChange='true' dictCode="mom_base_constructor,name,id,status!='0' and del_flag!='1'" - v-model="model.constructorId" + v-model='model.constructorId' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="楠屾敹鏃ユ湡" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="acceptanceCheckDate" + label='楠屾敹鏃ユ湡' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='acceptanceCheckDate' > <a-date-picker - :disabled="formDisabled" - placeholder="璇烽�夋嫨楠屾敹鏃ユ湡" - style="width: 100%;" - v-model="model.acceptanceCheckDate" - @change="dateChange" + :disabled='formDisabled' + placeholder='璇烽�夋嫨楠屾敹鏃ユ湡' + style='width: 100%;' + v-model='model.acceptanceCheckDate' + @change='dateChange' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鎶�鏈姸鎬佹瀹氬懆鏈�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="checkPeriod" + label='鎶�鏈姸鎬佹瀹氬懆鏈�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='checkPeriod' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨鎶�鏈姸鎬佹瀹氬懆鏈� " - :triggerChange="true" - dictCode="check_period" - v-model="model.checkPeriod" - @change="dateChange" + placeholder='璇烽�夋嫨鎶�鏈姸鎬佹瀹氬懆鏈� ' + :triggerChange='true' + dictCode='check_period' + v-model='model.checkPeriod' + @change='dateChange' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="nextTechnologyStatusQualificationTime" + label='涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='nextTechnologyStatusQualificationTime' > <j-date - :disabled="true" - style="width: 100%;" - placeholder="璇烽�夋嫨鏃ユ湡" - class="query-group-cust" - v-model="model.nextTechnologyStatusQualificationTime" + :disabled='true' + style='width: 100%;' + placeholder='璇烽�夋嫨鏃ユ湡' + class='query-group-cust' + v-model='model.nextTechnologyStatusQualificationTime' ></j-date> </a-form-model-item> </a-col> </a-row> <a-row> <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" - >鐘舵�佸強鏍囪瘑</a-divider> - <a-col :span="6"> + orientation='center' + style='font-size: large;font-style: italic;color: #66aeed;' + >鐘舵�佸強鏍囪瘑 + </a-divider> + <a-col :span='6'> <a-form-model-item - label="璁惧鐘舵��" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentStatus" + label='璁惧鐘舵��' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentStatus' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇疯緭鍏ヨ澶囩姸鎬�" - :triggerChange="true" - dictCode="equipment_status" - v-model="model.equipmentStatus" + :disabled='formDisabled' + placeholder='璇疯緭鍏ヨ澶囩姸鎬�' + :triggerChange='true' + dictCode='equipment_status' + v-model='model.equipmentStatus' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鎶�鏈姸鎬�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="technologyStatus" + label='鎶�鏈姸鎬�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='technologyStatus' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇烽�夋嫨鎶�鏈姸鎬�" - :triggerChange="true" - dictCode="technology_status" - v-model="model.technologyStatus" + :disabled='formDisabled' + placeholder='璇烽�夋嫨鎶�鏈姸鎬�' + :triggerChange='true' + dictCode='technology_status' + v-model='model.technologyStatus' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璧勪骇鐘舵��" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="propertyStatus" + label='璧勪骇鐘舵��' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='propertyStatus' > <j-dict-select-tag allow-clear - :disabled="formDisabled" - placeholder="璇疯緭鍏ヨ祫浜х姸鎬�" - :triggerChange="true" - dictCode="property_status" - v-model="model.propertyStatus" + :disabled='formDisabled' + placeholder='璇疯緭鍏ヨ祫浜х姸鎬�' + :triggerChange='true' + dictCode='property_status' + v-model='model.propertyStatus' /> </a-form-model-item> </a-col> </a-row> <a-row v-if="model.propertyStatus=='warranty'"> <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" - >璐ㄤ繚鏃ユ湡</a-divider> - <a-col :span="6"> + orientation='center' + style='font-size: large;font-style: italic;color: #66aeed;' + >璐ㄤ繚鏃ユ湡 + </a-divider> + <a-col :span='6'> <a-form-model-item - label="璐ㄤ繚寮�濮嬫棩鏈�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="warrantyStart" + label='璐ㄤ繚寮�濮嬫棩鏈�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='warrantyStart' > <j-date - :disabled="formDisabled" - style="width: 100%;" - placeholder="璇烽�夋嫨寮�濮嬫棩鏈�" - class="query-group-cust" - v-model="model.warrantyStart" + :disabled='formDisabled' + style='width: 100%;' + placeholder='璇烽�夋嫨寮�濮嬫棩鏈�' + class='query-group-cust' + v-model='model.warrantyStart' ></j-date> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璐ㄤ繚缁撴潫鏃ユ湡" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="warrantyEnd" + label='璐ㄤ繚缁撴潫鏃ユ湡' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='warrantyEnd' > <j-date - :disabled="formDisabled" - style="width: 100%;" - placeholder="璇烽�夋嫨缁撴潫鏃ユ湡" - class="query-group-cust" - v-model="model.warrantyEnd" + :disabled='formDisabled' + style='width: 100%;' + placeholder='璇烽�夋嫨缁撴潫鏃ユ湡' + class='query-group-cust' + v-model='model.warrantyEnd' ></j-date> </a-form-model-item> </a-col> </a-row> <a-row> <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" - >鍑哄巶鍙婂畨瑁呬俊鎭�</a-divider> - <a-col :span="6"> + orientation='center' + style='font-size: large;font-style: italic;color: #66aeed;' + >鍑哄巶鍙婂畨瑁呬俊鎭� + </a-divider> + <a-col :span='6'> <a-form-model-item - label="鍑哄巶缂栧彿" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="factoryNumber" + label='鍑哄巶缂栧彿' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='factoryNumber' > <a-input - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ嚭鍘傜紪鍙�" - v-model="model.factoryNumber" + :disabled='formDisabled' + placeholder='璇疯緭鍏ュ嚭鍘傜紪鍙�' + v-model='model.factoryNumber' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鍑哄巶鏃ユ湡" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="leaveFactoryDate" + label='鍑哄巶鏃ユ湡' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='leaveFactoryDate' > <a-date-picker - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ嚭鍘傛棩鏈�" - style="width: 100%;" - v-model="model.leaveFactoryDate" + :disabled='formDisabled' + placeholder='璇疯緭鍏ュ嚭鍘傛棩鏈�' + style='width: 100%;' + v-model='model.leaveFactoryDate' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="绔嬮」鍗″彿" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="projectApprovalNo" + label='绔嬮」鍗″彿' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='projectApprovalNo' > <a-input - v-model="model.projectApprovalNo" - :disabled="formDisabled" - placeholder="璇疯緭鍏ョ珛椤瑰崱鍙�" + v-model='model.projectApprovalNo' + :disabled='formDisabled' + placeholder='璇疯緭鍏ョ珛椤瑰崱鍙�' ></a-input> </a-form-model-item> </a-col> @@ -675,288 +684,289 @@ ></a-input> </a-form-model-item> </a-col> --> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="閲嶉噺" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentUda3" + label='閲嶉噺' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentUda3' > <a-input - v-model="model.equipmentUda3" - :disabled="formDisabled" - placeholder="璇疯緭鍏ラ噸閲�" + v-model='model.equipmentUda3' + :disabled='formDisabled' + placeholder='璇疯緭鍏ラ噸閲�' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="閲嶉噺璁¢噺鍗曚綅" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentUda4" + label='閲嶉噺璁¢噺鍗曚綅' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentUda4' > <a-input - v-model="model.equipmentUda4" - :disabled="formDisabled" - placeholder="璇疯緭鍏ラ噸閲忚閲忓崟浣岻D" + v-model='model.equipmentUda4' + :disabled='formDisabled' + placeholder='璇疯緭鍏ラ噸閲忚閲忓崟浣岻D' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="瀹夎浣嶇疆" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="location" + label='瀹夎浣嶇疆' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='location' > <a-input - v-model="model.location" - placeholder="璇疯緭鍏ュ畨瑁呬綅缃�" - :disabled="formDisabled" + v-model='model.location' + placeholder='璇疯緭鍏ュ畨瑁呬綅缃�' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鍔熻兘浣嶇疆" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="equipmentUda5" + label='鍔熻兘浣嶇疆' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='equipmentUda5' > <a-input - v-model="model.equipmentUda5" - :disabled="formDisabled" - placeholder="璇疯緭鍏ュ姛鑳戒綅缃�" + v-model='model.equipmentUda5' + :disabled='formDisabled' + placeholder='璇疯緭鍏ュ姛鑳戒綅缃�' ></a-input> </a-form-model-item> </a-col> </a-row> <a-row> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璧勯噾鏉ユ簮" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="fundSource" + label='璧勯噾鏉ユ簮' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='fundSource' > <a-input - v-model="model.fundSource" - :disabled="formDisabled" - placeholder="璇疯緭鍏ヨ祫閲戞潵婧�" + v-model='model.fundSource' + :disabled='formDisabled' + placeholder='璇疯緭鍏ヨ祫閲戞潵婧�' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璧勪骇鏉ユ簮鍥藉" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="sourceCountry" + label='璧勪骇鏉ユ簮鍥藉' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='sourceCountry' > <a-input - v-model="model.sourceCountry" - :disabled="formDisabled" - placeholder="璇疯緭鍏ヨ祫浜ф潵婧愬浗瀹�" + v-model='model.sourceCountry' + :disabled='formDisabled' + placeholder='璇疯緭鍏ヨ祫浜ф潵婧愬浗瀹�' ></a-input> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="澶囨敞" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="remark" + label='澶囨敞' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='remark' > <a-input - v-model="model.remark" - placeholder="璇疯緭鍏ュ娉�" - :disabled="formDisabled" + v-model='model.remark' + placeholder='璇疯緭鍏ュ娉�' + :disabled='formDisabled' ></a-input> </a-form-model-item> </a-col> </a-row> <a-row hidden> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="骞冲潎浣跨敤鐜�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="standardA" + label='骞冲潎浣跨敤鐜�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='standardA' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨骞冲潎浣跨敤鐜�" - :disabled="formDisabled" - :triggerChange="true" - dictCode="ABC-standardA" - v-model="model.standardA" - @change="standardResultCompute" + placeholder='璇烽�夋嫨骞冲潎浣跨敤鐜�' + :disabled='formDisabled' + :triggerChange='true' + dictCode='ABC-standardA' + v-model='model.standardA' + @change='standardResultCompute' /> </a-form-model-item> </a-col> </a-row> <a-row hidden> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鍙浛鎹㈡��" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="standardB" + label='鍙浛鎹㈡��' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='standardB' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨鍙浛鎹㈡��" - :disabled="formDisabled" - :triggerChange="true" - dictCode="ABC-standardB" - v-model="model.standardB" - @change="standardResultCompute" + placeholder='璇烽�夋嫨鍙浛鎹㈡��' + :disabled='formDisabled' + :triggerChange='true' + dictCode='ABC-standardB' + v-model='model.standardB' + @change='standardResultCompute' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鏁呴殰褰卞搷搴�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="standardC" + label='鏁呴殰褰卞搷搴�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='standardC' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨鏁呴殰褰卞搷搴�" - :disabled="formDisabled" - :triggerChange="true" - dictCode="ABC-standardC" - v-model="model.standardC" - @change="standardResultCompute" + placeholder='璇烽�夋嫨鏁呴殰褰卞搷搴�' + :disabled='formDisabled' + :triggerChange='true' + dictCode='ABC-standardC' + v-model='model.standardC' + @change='standardResultCompute' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="鐢熶骇瓒呭樊搴�" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="standardD" + label='鐢熶骇瓒呭樊搴�' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='standardD' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨鐢熶骇瓒呭樊搴�" - :disabled="formDisabled" - :triggerChange="true" - dictCode="ABC-standardD" - v-model="model.standardD" - @change="standardResultCompute" + placeholder='璇烽�夋嫨鐢熶骇瓒呭樊搴�' + :disabled='formDisabled' + :triggerChange='true' + dictCode='ABC-standardD' + v-model='model.standardD' + @change='standardResultCompute' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="璁惧浠峰��" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="standardF" + label='璁惧浠峰��' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='standardF' > <j-dict-select-tag allow-clear - placeholder="璇烽�夋嫨璁惧浠峰��" - :disabled="formDisabled" - :triggerChange="true" - dictCode="ABC-standardF" - v-model="model.standardF" - @change="standardResultCompute" + placeholder='璇烽�夋嫨璁惧浠峰��' + :disabled='formDisabled' + :triggerChange='true' + dictCode='ABC-standardF' + v-model='model.standardF' + @change='standardResultCompute' /> </a-form-model-item> </a-col> </a-row> <a-row> <a-divider - orientation="center" - style="font-size: large;font-style: italic;color: #66aeed;" - > 绮惧害鍙婃ā鐗� </a-divider> - <a-col :span="6"> + orientation='center' + style='font-size: large;font-style: italic;color: #66aeed;' + > 绮惧害鍙婃ā鐗� + </a-divider> + <a-col :span='6'> <a-form-model-item - label="璁惧绮惧害绠$悊" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="precisionParameters" + label='璁惧绮惧害绠$悊' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='precisionParameters' > <a-switch - :disabled="formDisabled" - checked-children="鏄�" - un-checked-children="鍚�" + :disabled='formDisabled' + checked-children='鏄�' + un-checked-children='鍚�' :checked="model.precisionParameters == '1'" - @change="handle2Switch(model.precisionParameters)" + @change='handle2Switch(model.precisionParameters)' /> </a-form-model-item> </a-col> <a-col - :span="6" + :span='6' v-if="model.precisionParameters == '1'" > <a-form-model-item - label="璁惧绮惧害妯$増" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="precisionParametersTemplateId" + label='璁惧绮惧害妯$増' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='precisionParametersTemplateId' > <a-input-search - :disabled="formDisabled" - placeholder="璇烽�夋嫨璁惧绮惧害妯℃澘" + :disabled='formDisabled' + placeholder='璇烽�夋嫨璁惧绮惧害妯℃澘' enter-button - @search="onSearchPrecisionParametersTemplate()" - :read-only="true" - v-model="model.precisionParametersTemplateId_dictText" + @search='onSearchPrecisionParametersTemplate()' + :read-only='true' + v-model='model.precisionParametersTemplateId_dictText' /> </a-form-model-item> </a-col> - <a-col :span="6"> + <a-col :span='6'> <a-form-model-item - label="宸ヨ壓妯$増绠$悊" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="processParameters" + label='宸ヨ壓妯$増绠$悊' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='processParameters' > <a-switch - :disabled="formDisabled" - checked-children="鏄�" - un-checked-children="鍚�" + :disabled='formDisabled' + checked-children='鏄�' + un-checked-children='鍚�' :checked="model.processParameters == '1'" - @change="handleSwitch(model.processParameters)" + @change='handleSwitch(model.processParameters)' /> </a-form-model-item> </a-col> <a-col - :span="6" + :span='6' v-if="model.processParameters == '1'" > <a-form-model-item - label="璁惧宸ヨ壓妯$増" - :labelCol="labelCol" - :wrapperCol="wrapperCol" - prop="precisionParametersTemplateId" + label='璁惧宸ヨ壓妯$増' + :labelCol='labelCol' + :wrapperCol='wrapperCol' + prop='precisionParametersTemplateId' > <a-input-search - :disabled="formDisabled" - placeholder="璇烽�夋嫨璁惧宸ヨ壓妯℃澘" + :disabled='formDisabled' + placeholder='璇烽�夋嫨璁惧宸ヨ壓妯℃澘' enter-button - @search="onSearchProcessParametersTemplate()" - :read-only="true" - v-model="model.processParametersTemplateId_dictText" + @search='onSearchProcessParametersTemplate()' + :read-only='true' + v-model='model.processParametersTemplateId_dictText' /> </a-form-model-item> </a-col> </a-row> </a-form-model> <process-parameters-template-list - ref="ProcessParametersTemplateList" + ref='ProcessParametersTemplateList' @sendProcessParametersTemplateRecord='sendProcessParametersTemplateRecord' ></process-parameters-template-list> <precision-parameters-template-list - ref="PrecisionParametersTemplateList" - :num="model.num" + ref='PrecisionParametersTemplateList' + :num='model.num' @sendPrecisionParametersTemplateRecord='sendPrecisionParametersTemplateRecord' ></precision-parameters-template-list> </a-spin> @@ -973,13 +983,14 @@ import PrecisionParametersTemplateList from './serach/PrecisionParametersTemplateList' import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' import { JVXETypes } from '@/components/jeecg/JVxeTable' + export default { - name: "EquipmentModal", + name: 'EquipmentModal', mixins: [JVxeTableModelMixin], components: { validateDuplicateValue, ProcessParametersTemplateList, - PrecisionParametersTemplateList, + PrecisionParametersTemplateList }, props: { disableSubmit: { @@ -995,159 +1006,162 @@ }, data() { return { - title: "鎿嶄綔", + title: '鎿嶄綔', width: 1500, visible: false, model: { + equipmentStatus: '1', + isLine: 'no', + isLineEquip: 'no' }, labelCol: { xs: { span: 24 }, - sm: { span: 10 }, + sm: { span: 10 } }, wrapperCol: { xs: { span: 24 }, - sm: { span: 14 }, + sm: { span: 14 } }, - + isLineEquipShow: false, confirmLoading: false, validatorRules: { num: [ { required: true, message: '璇疯緭鍏ヨ澶囩紪鍙�!' }, // { min: 2, max: 30, message: '闀垮害鍦� 2 鍒� 30 涓瓧绗�', trigger: 'blur' }, - { validator: this.validateNum }, + { validator: this.validateNum } ], name: [ - { required: true, message: '璇疯緭鍏ヨ澶囧悕绉�!' }, + { required: true, message: '璇疯緭鍏ヨ澶囧悕绉�!' } // { min: 2, max: 30, message: '闀垮害鍦� 2 鍒� 30 涓瓧绗�', trigger: 'blur' }, // { validator: this.validateName }, ], teamId: [ - { required: true, message: '璇烽�夋嫨璐d换鐝粍!' }, + { required: true, message: '璇烽�夋嫨璐d换鐝粍!' } ], processParametersTemplateName: [ - { required: true, message: '璇烽�夋嫨宸ヨ壓鍙傛暟妯℃澘!' }, + { required: true, message: '璇烽�夋嫨宸ヨ壓鍙傛暟妯℃澘!' } ], precisionParametersTemplateName: [ - { required: true, message: '璇烽�夋嫨璁惧绮惧害妯℃澘!' }, + { required: true, message: '璇烽�夋嫨璁惧绮惧害妯℃澘!' } ], remark: [ - { min: 0, max: 100, message: '闀垮害涓嶈秴杩� 100 涓瓧绗�', trigger: 'blur' }, + { min: 0, max: 100, message: '闀垮害涓嶈秴杩� 100 涓瓧绗�', trigger: 'blur' } ], equipmentCategoryId: [ - { required: true, message: '璇烽�夊垯璁惧绫诲埆!' }, + { required: true, message: '璇烽�夊垯璁惧绫诲埆!' } ], specification: [ - { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' }, + { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' } ], model: [ - { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' }, + { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' } ], equipmentImportanceId: [ - { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' }, + { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' } ], manageId: [ - { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' }, + { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' } ], useId: [ - { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬!' }, + { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬!' } ], specificEquipment: [ - { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' }, + { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' } ], equipmentStatus: [ - { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' }, + { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' } ], technologyStatus: [ - { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' }, + { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' } ], workCenterId: [ - { required: false, message: '璇烽�夋嫨涓績!' }, + { required: false, message: '璇烽�夋嫨涓績!' } ], factoryModelId: [ - { required: false, message: '璇烽�夋嫨宸ュ尯!' }, + { required: false, message: '璇烽�夋嫨宸ュ尯!' } ], warrantyStart: [ - { required: true, message: '璇烽�夋嫨寮�濮嬫棩鏈�!' }, + { required: true, message: '璇烽�夋嫨寮�濮嬫棩鏈�!' } ], warrantyEnd: [ - { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' }, + { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' } ], propertyStatus: [ - { required: true, message: '璇烽�夋嫨璧勪骇鐘舵��!' }, + { required: true, message: '璇烽�夋嫨璧勪骇鐘舵��!' } ], system: [ - { required: true, message: '璇疯緭鍏ョ郴缁�!' }, + { required: true, message: '璇疯緭鍏ョ郴缁�!' } ], acceptanceCheckDate: [ - { required: true, message: '璇烽�夋嫨楠屾敹鏃ユ湡!' }, + { required: true, message: '璇烽�夋嫨楠屾敹鏃ユ湡!' } ], checkPeriod: [ - { required: true, message: '璇烽�夋嫨鎶�鏈姸鎬佹瀹氬懆鏈�!' }, + { required: true, message: '璇烽�夋嫨鎶�鏈姸鎬佹瀹氬懆鏈�!' } ], areaId: [ - { required: false, message: '璇烽�夋嫨宸ユ!' }, - ], + { required: false, message: '璇烽�夋嫨宸ユ!' } + ] }, url: { - add: "/eam/equipment/add", - edit: "/eam/equipment/edit", + add: '/eam/equipment/add', + edit: '/eam/equipment/edit', loadOptions: '/sys/sysDepart/loadDepartTreeOptions', - getCategoryFlag: "/eam/equipmentCategory/queryById" + getCategoryFlag: '/eam/equipmentCategory/queryById' }, treeData: [], - needSpecific: false, + needSpecific: false } }, created() { //澶囦唤model鍘熷鍊� - this.initOptions(); - this.modelDefault = JSON.parse(JSON.stringify(this.model)); + this.initOptions() + this.modelDefault = JSON.parse(JSON.stringify(this.model)) }, methods: { add() { - this.edit(this.modelDefault); + this.edit(this.modelDefault) }, edit(record) { console.log(this.disabled) - this.model = Object.assign({}, record); - if (!this.model.id) { - this.model.equipmentStatus = '1' - this.model.isLineEquip = 'no' - this.model.isLine = 'no' - } - this.visible = true; + this.model = Object.assign({}, record) + // if (!this.model.id) { + // this.model.equipmentStatus = '1' + // this.model.isLineEquip = 'no' + // this.model.isLine = 'no' + // } + this.visible = true }, close() { - this.$emit('close'); - this.visible = false; - this.$refs.form.clearValidate(); + this.$emit('close') + this.visible = false + this.$refs.form.clearValidate() }, handleOk() { - const that = this; + const that = this // 瑙﹀彂琛ㄥ崟楠岃瘉 this.$refs.form.validate(valid => { if (valid) { - that.confirmLoading = true; - let httpurl = ''; - let method = ''; + that.confirmLoading = true + let httpurl = '' + let method = '' if (!this.model.id) { - httpurl += this.url.add; - method = 'post'; + httpurl += this.url.add + method = 'post' } else { - httpurl += this.url.edit; - method = 'put'; + httpurl += this.url.edit + method = 'put' } httpAction(httpurl, this.model, method).then((res) => { if (res.success) { - that.$message.success(res.message); - that.$emit('ok'); + that.$message.success(res.message) + that.$emit('ok') } else { - that.$message.warning(res.message); + that.$message.warning(res.message) } }).finally(() => { - that.confirmLoading = false; - that.close(); + that.confirmLoading = false + that.close() }) } else { return false @@ -1164,16 +1178,26 @@ fieldVal: value, dataId: this.model.id, //鏁版嵁搴撲腑瀛樺湪瀛楁del_flag骞朵娇鐢ㄨ瀛楁浣滀负鏈垹闄ょ瓥鐣ワ紝鐪熷垹闄わ細false 鍋囧垹闄わ細true - delFlag: '0', - }; + delFlag: '0' + } duplicateCheck(params).then((res) => { if (res.success) { - callback(); + callback() } else { - callback("缂栧彿宸插瓨鍦�!"); + callback('缂栧彿宸插瓨鍦�!') } }) }, + // 鏄惁鐢熶骇绾� 褰撻�夋嫨鐢熶骇绾跨殑鏃跺�欐墠鑳介�夋嫨鏄惁鏄富璁惧 + isLineChange(e) { + console.log('value' + e) + if (e == 'yes') { + this.isLineEquipShow = true + } else { + this.isLineEquipShow = false + } + }, + //楠岃瘉 鍚嶇О validateName(rule, value, callback) { @@ -1183,13 +1207,13 @@ fieldVal: value, dataId: this.model.id, //鏁版嵁搴撲腑瀛樺湪瀛楁del_flag骞朵娇鐢ㄨ瀛楁浣滀负鏈垹闄ょ瓥鐣ワ紝鐪熷垹闄わ細false 鍋囧垹闄わ細true - delFlag: '0', - }; + delFlag: '0' + } duplicateCheck(params).then((res) => { if (res.success) { - callback(); + callback() } else { - callback("鍚嶇О宸插瓨鍦�!"); + callback('鍚嶇О宸插瓨鍦�!') } }) }, @@ -1200,7 +1224,7 @@ } else { this.model.processParameters = '1' } - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }, handle2Switch(precisionParameters) { if ('1' == precisionParameters) { @@ -1208,7 +1232,7 @@ } else { this.model.precisionParameters = '1' } - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }, initOptions() { getAction(this.url.loadOptions).then(res => { @@ -1223,14 +1247,14 @@ handle2Change(val) { if (val === null) { setTimeout(() => { - this.form.setFieldsValue({ useId: "" }); + this.form.setFieldsValue({ useId: '' }) }, 100) } }, handle1Change(val) { if (val === null) { setTimeout(() => { - this.form.setFieldsValue({ affiliationId: "" }); + this.form.setFieldsValue({ affiliationId: '' }) }, 100) } }, @@ -1238,7 +1262,7 @@ handle3Change(val) { if (val === null) { setTimeout(() => { - this.form.setFieldsValue({ manageId: "" }); + this.form.setFieldsValue({ manageId: '' }) }, 100) } }, @@ -1251,40 +1275,40 @@ }, onSearchProcessParametersTemplate() { - this.$refs.ProcessParametersTemplateList.list(); - this.$refs.ProcessParametersTemplateList.title = "閫夋嫨宸ヨ壓鍙傛暟妯℃澘"; + this.$refs.ProcessParametersTemplateList.list() + this.$refs.ProcessParametersTemplateList.title = '閫夋嫨宸ヨ壓鍙傛暟妯℃澘' }, sendProcessParametersTemplateRecord(data) { - let record = data.record; + let record = data.record this.model.processParametersTemplateId = record.id this.model.processParametersTemplateId_dictText = record.name - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }, onSearchPrecisionParametersTemplate() { if (this.model.num == '' || this.model.num == undefined || this.model.num == null) { - this.$message.warn("璇峰厛濉啓缁熶竴缂栫爜") - return false; + this.$message.warn('璇峰厛濉啓缁熶竴缂栫爜') + return false } - this.$refs.PrecisionParametersTemplateList.list(); - this.$refs.PrecisionParametersTemplateList.title = "閫夋嫨璁惧绮惧害妯℃澘"; + this.$refs.PrecisionParametersTemplateList.list() + this.$refs.PrecisionParametersTemplateList.title = '閫夋嫨璁惧绮惧害妯℃澘' }, sendPrecisionParametersTemplateRecord(data) { - let record = data.record; + let record = data.record this.model.precisionParametersTemplateId = record.id this.model.precisionParametersTemplateId_dictText = record.name - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }, standardResultCompute() { - var standardA = this.model.standardA == null || this.model.standardA == undefined || this.model.standardA == '' ? 0 : parseInt(this.model.standardA); - var standardB = this.model.standardB == null || this.model.standardB == undefined || this.model.standardB == '' ? 0 : parseInt(this.model.standardB); - var standardC = this.model.standardA == null || this.model.standardC == undefined || this.model.standardC == '' ? 0 : parseInt(this.model.standardC); - var standardD = this.model.standardD == null || this.model.standardD == undefined || this.model.standardD == '' ? 0 : parseInt(this.model.standardD); - var standardE = this.model.standardE == null || this.model.standardE == undefined || this.model.standardE == '' ? 0 : parseInt(this.model.standardE); - var standardF = this.model.standardF == null || this.model.standardF == undefined || this.model.standardF == '' ? 0 : parseInt(this.model.standardF); + var standardA = this.model.standardA == null || this.model.standardA == undefined || this.model.standardA == '' ? 0 : parseInt(this.model.standardA) + var standardB = this.model.standardB == null || this.model.standardB == undefined || this.model.standardB == '' ? 0 : parseInt(this.model.standardB) + var standardC = this.model.standardA == null || this.model.standardC == undefined || this.model.standardC == '' ? 0 : parseInt(this.model.standardC) + var standardD = this.model.standardD == null || this.model.standardD == undefined || this.model.standardD == '' ? 0 : parseInt(this.model.standardD) + var standardE = this.model.standardE == null || this.model.standardE == undefined || this.model.standardE == '' ? 0 : parseInt(this.model.standardE) + var standardF = this.model.standardF == null || this.model.standardF == undefined || this.model.standardF == '' ? 0 : parseInt(this.model.standardF) - var sum = standardA + standardB + standardC + standardD + standardE + standardF; + var sum = standardA + standardB + standardC + standardD + standardE + standardF console.log(sum) if (sum >= 18) { this.model.equipmentImportanceId = 'A' @@ -1293,89 +1317,89 @@ } else { this.model.equipmentImportanceId = 'C' } - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }, changeNeedSpecific(val) { if (val == 'A') { - this.needSpecific = true; + this.needSpecific = true } else { - let that = this; + let that = this this.$confirm({ title: '鎻愮ず', content: '闈濧绫昏澶囷紝鏄惁瑕佹坊鍔犲叧閿澶囨爣璇嗭紒', okText: '纭', cancelText: '鍙栨秷', onOk() { - that.needSpecific = true; + that.needSpecific = true }, onCancel() { - that.needSpecific = false; + that.needSpecific = false } }) } //鏀瑰彉鎶�鏈姸鎬侀壌瀹氬懆鏈� if (this.model.equipmentCategoryId !== null && this.model.equipmentCategoryId != '') { - var value = this.model.equipmentCategoryId; + var value = this.model.equipmentCategoryId getAction(this.url.getCategoryFlag, { id: value }).then(res => { if (res.result.equipmentCategoryUda1 !== 'weldingMachine' && res.result.equipmentCategoryUda11 !== 'filesCarousel' && res.result.equipmentCategoryUda1 !== 'tester') { if (val === 'A') { - this.model.checkPeriod = 365 * 3 + ''; + this.model.checkPeriod = 365 * 3 + '' } if (val === 'B' || val === 'C' || val === 'D') { - this.model.checkPeriod = 365 * 4 + ''; + this.model.checkPeriod = 365 * 4 + '' } } - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }) } }, - //璁$畻涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂达紝涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂�=楠屾敹鏃ユ湡+鎶�鏈姸鎬佹瀹氬懆鏈� + //璁$畻涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂达紝涓嬫鎶�鏈姸鎬侀壌瀹氭椂闂�=楠屾敹鏃ユ湡+鎶�鏈姸鎬佹瀹氬懆鏈�-1澶� dateChange() { - var acceptanceCheckDate = this.model.acceptanceCheckDate; - var checkPeriod = this.model.checkPeriod; + var acceptanceCheckDate = this.model.acceptanceCheckDate + var checkPeriod = this.model.checkPeriod if (acceptanceCheckDate !== null && acceptanceCheckDate !== '' && checkPeriod !== null && checkPeriod !== '') { - var nextTechnologyStatusQualificationTime = moment(acceptanceCheckDate).add(checkPeriod, 'days').format('YYYY-MM-DD'); - this.model.nextTechnologyStatusQualificationTime = nextTechnologyStatusQualificationTime; - this.model = Object.assign({}, this.model); + var nextTechnologyStatusQualificationTime = moment(acceptanceCheckDate).add(checkPeriod, 'days').subtract(1, 'days').format('YYYY-MM-DD') + this.model.nextTechnologyStatusQualificationTime = nextTechnologyStatusQualificationTime + this.model = Object.assign({}, this.model) } else { - this.model.nextTechnologyStatusQualificationTime = ''; - this.model = Object.assign({}, this.model); + this.model.nextTechnologyStatusQualificationTime = '' + this.model = Object.assign({}, this.model) } }, categoryChange(value) { getAction(this.url.getCategoryFlag, { id: value }).then(res => { if (res.result.equipmentCategoryUda1 === 'weldingMachine') { - this.model.checkPeriod = 365 * 3 + ''; + this.model.checkPeriod = 365 * 3 + '' } else if (res.result.equipmentCategoryUda1 === 'filesCarousel') { - this.model.checkPeriod = 365 * 4 + ''; + this.model.checkPeriod = 365 * 4 + '' } else if (res.result.equipmentCategoryUda1 === 'tester') { - this.model.checkPeriod = 365 * 1 + ''; + this.model.checkPeriod = 365 * 1 + '' } - this.model = Object.assign({}, this.model); + this.model = Object.assign({}, this.model) }) }, //褰撲腑蹇冩敼鍙樻椂锛屾竻绌哄伐鍖哄拰宸ユ workCenterChange() { - this.model.factoryModelId = ''; - this.model.areaId = ''; - this.model = Object.assign({}, this.model); + this.model.factoryModelId = '' + this.model.areaId = '' + this.model = Object.assign({}, this.model) }, //褰撳伐鍖烘敼鍙樻椂锛屾竻绌哄伐娈� factoryModelChange() { - this.model.areaId = ''; - this.model = Object.assign({}, this.model); - }, + this.model.areaId = '' + this.model = Object.assign({}, this.model) + } }, computed: { formDisabled() { return this.disableSubmit - }, + } }, watch: { alterFlag() { - this.$bus.$emit('queryTreeData'); - }, - }, + this.$bus.$emit('queryTreeData') + } + } } </script> \ No newline at end of file -- Gitblit v1.9.3