¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model |
| | | 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"> |
| | | <a-form-model-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentCategoryId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©è®¾å¤æå±åç±»" |
| | | :disabled="formDisabled" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment_category,name,id" |
| | | v-model="model.equipmentCategoryId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç»ä¸ç¼ç " |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="num" |
| | | > |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="请è¾å
¥è®¾å¤ç¼å·" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="设å¤åç§°" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="name" |
| | | > |
| | | <a-input |
| | | v-model="model.name" |
| | | placeholder="请è¾å
¥è®¾å¤åç§°" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="model" |
| | | > |
| | | <a-input |
| | | v-model="model.model" |
| | | placeholder="请è¾å
¥åå·" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="è§æ ¼" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="specification" |
| | | > |
| | | <a-input |
| | | v-model="model.specification" |
| | | placeholder="请è¾å
¥è§æ ¼" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="æ»åç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="gpo" |
| | | > |
| | | <a-input |
| | | v-model="model.gpo" |
| | | placeholder="请è¾å
¥æ»åç" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="设å¤å¾ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentPhoto" |
| | | > |
| | | <j-image-upload |
| | | :isMultiple="false" |
| | | v-model="model.equipmentPhoto" |
| | | ></j-image-upload> |
| | | </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"> |
| | | <a-form-model-item |
| | | label="ç»´æ¤é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | | > |
| | | <a-tree-select |
| | | :disabled="formDisabled" |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ç»´æ¤é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="model.manageId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="使ç¨é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="useId" |
| | | > |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :disabled="formDisabled" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ä½¿ç¨é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="model.useId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç»´ä¿®çç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="teamId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©è´£ä»»çç»" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | v-model="model.teamId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="车é´" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryModelId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©èµè½¦é´" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_factory_model,name,id,del_flag!='1'" |
| | | v-model="model.factoryModelId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="产线" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="workCenterId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©äº§çº¿" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_work_center,name,id,del_flag!='1'" |
| | | v-model="model.workCenterId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="èµäº§å¶é å" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="constructorId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©èµäº§å¶é å" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_constructor,name,id,status!='0' and del_flag!='1'" |
| | | v-model="model.constructorId" |
| | | /> |
| | | </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"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </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"> |
| | | <a-form-model-item |
| | | label="è´¨ä¿å¼å§æ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="warrantyStart" |
| | | > |
| | | <j-date :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-form-model-item |
| | | label="è´¨ä¿ç»ææ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="warrantyEnd" |
| | | > |
| | | <j-date :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"> |
| | | <a-form-model-item |
| | | label="åºåç¼å·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryNumber" |
| | | > |
| | | <a-input |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥åºåç¼å·" |
| | | v-model="model.factoryNumber" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="åºåæ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="leaveFactoryDate" |
| | | > |
| | | <a-date-picker |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥åºåæ¥æ" |
| | | style="width: 100%;" |
| | | v-model="model.leaveFactoryDate" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="éªæ¶æ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="acceptanceCheckDate" |
| | | > |
| | | <a-date-picker |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥éªæ¶æ¥æ" |
| | | style="width: 100%;" |
| | | v-model="model.acceptanceCheckDate" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç«é¡¹å¡å·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="projectApprovalNo" |
| | | > |
| | | <a-input |
| | | v-model="model.projectApprovalNo" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥ç«é¡¹å¡å·" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="å·¥åº" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentUda1" |
| | | > |
| | | <a-input |
| | | v-model="model.equipmentUda1" |
| | | placeholder="请è¾å
¥å·¥åº" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="éé" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentUda3" |
| | | > |
| | | <a-input |
| | | v-model="model.equipmentUda3" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥éé" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="éé计éåä½" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentUda4" |
| | | > |
| | | <a-input |
| | | v-model="model.equipmentUda4" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥éé计éåä½ID" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="å®è£
ä½ç½®" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="location" |
| | | > |
| | | <a-input |
| | | v-model="model.location" |
| | | placeholder="请è¾å
¥å®è£
ä½ç½®" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="åè½ä½ç½®" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentUda5" |
| | | > |
| | | <a-input |
| | | v-model="model.equipmentUda5" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥åè½ä½ç½®" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="èµéæ¥æº" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="fundSource" |
| | | > |
| | | <a-input |
| | | v-model="model.fundSource" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥èµéæ¥æº" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="èµäº§æ¥æºå½å®¶" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="sourceCountry" |
| | | > |
| | | <a-input |
| | | v-model="model.sourceCountry" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥èµäº§æ¥æºå½å®¶" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="å®å
¨é
ç½®" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="securityConfiguration" |
| | | > |
| | | <a-input |
| | | v-model="model.securityConfiguration" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥å®å
¨é
ç½®" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="å·å´ç³»ç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="coolingSystem" |
| | | > |
| | | <a-input |
| | | v-model="model.coolingSystem" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥å·å´ç³»ç»" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="çç«å¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="fireExtinguisher" |
| | | > |
| | | <a-input |
| | | v-model="model.fireExtinguisher" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥çç«å¨" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="çç«å¨æææ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="fireExtinguisherValidityPeriod" |
| | | > |
| | | <a-input |
| | | v-model="model.fireExtinguisherValidityPeriod" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥çç«å¨æææ" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="æä½ç³»ç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="operatingSystem" |
| | | > |
| | | <a-input |
| | | v-model="model.operatingSystem" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥æä½ç³»ç»" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç³»ç»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="system" |
| | | > |
| | | <a-input |
| | | v-model="model.system" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥ç³»ç»" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="端å£" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="port" |
| | | > |
| | | <a-input |
| | | v-model="model.port" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥ç«¯å£" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="åæ æ°é" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="coordinateNum" |
| | | > |
| | | <a-input-number |
| | | v-model="model.coordinateNum" |
| | | :disabled="formDisabled" |
| | | placeholder="请è¾å
¥åæ æ°é" |
| | | style="width: 100%" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="夿³¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="remark" |
| | | > |
| | | <a-input |
| | | v-model="model.remark" |
| | | placeholder="请è¾å
¥å¤æ³¨" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-divider |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | >ABCæ è¯</a-divider> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="æ
éé¢ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="standardE" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©æ
éé¢ç" |
| | | :disabled="formDisabled" |
| | | :triggerChange="true" |
| | | dictCode="ABC-standardE" |
| | | @change="standardResultCompute" |
| | | v-model="model.standardE" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6" v-if="needSpecific"> |
| | | <a-form-model-item |
| | | 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" |
| | | /> |
| | | </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"> |
| | | <a-form-model-item |
| | | label="设å¤ç²¾åº¦ç®¡ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="precisionParameters" |
| | | > |
| | | <a-switch |
| | | :disabled="formDisabled" |
| | | checked-children="æ¯" |
| | | un-checked-children="å¦" |
| | | :checked="model.precisionParameters == '1'" |
| | | @change="handle2Switch(model.precisionParameters)" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="6" |
| | | v-if="model.precisionParameters == '1'" |
| | | > |
| | | <a-form-model-item |
| | | label="设å¤ç²¾åº¦æ¨¡ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="precisionParametersTemplateId" |
| | | > |
| | | <a-input-search |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©è®¾å¤ç²¾åº¦æ¨¡æ¿" |
| | | enter-button |
| | | @search="onSearchPrecisionParametersTemplate()" |
| | | :read-only="true" |
| | | v-model="model.precisionParametersTemplateId_dictText" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="å·¥èºæ¨¡ç管ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="processParameters" |
| | | > |
| | | <a-switch |
| | | :disabled="formDisabled" |
| | | checked-children="æ¯" |
| | | un-checked-children="å¦" |
| | | :checked="model.processParameters == '1'" |
| | | @change="handleSwitch(model.processParameters)" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="6" |
| | | v-if="model.processParameters == '1'" |
| | | > |
| | | <a-form-model-item |
| | | label="设å¤å·¥èºæ¨¡ç" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="precisionParametersTemplateId" |
| | | > |
| | | <a-input-search |
| | | :disabled="formDisabled" |
| | | placeholder="è¯·éæ©è®¾å¤å·¥èºæ¨¡æ¿" |
| | | enter-button |
| | | @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" |
| | | @sendProcessParametersTemplateRecord='sendProcessParametersTemplateRecord' |
| | | ></process-parameters-template-list> |
| | | <precision-parameters-template-list |
| | | ref="PrecisionParametersTemplateList" |
| | | @sendPrecisionParametersTemplateRecord='sendPrecisionParametersTemplateRecord' |
| | | ></precision-parameters-template-list> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | <script> |
| | | import { httpAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut, getAction } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import moment from 'moment' |
| | | import ProcessParametersTemplateList from './serach/ProcessParametersTemplateList' |
| | | import PrecisionParametersTemplateList from './serach/PrecisionParametersTemplateList' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | export default { |
| | | name: "EquipmentModal", |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | validateDuplicateValue, |
| | | ProcessParametersTemplateList, |
| | | PrecisionParametersTemplateList, |
| | | }, |
| | | props: { |
| | | disableSubmit: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | width: 1500, |
| | | visible: false, |
| | | model: { |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | num: [ |
| | | { required: true, message: '请è¾å
¥è®¾å¤ç¼å·!' }, |
| | | { min: 2, max: 30, message: 'é¿åº¦å¨ 2 å° 30 个å符', trigger: 'blur' }, |
| | | { validator: this.validateNum }, |
| | | ], |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥è®¾å¤åç§°!' }, |
| | | { min: 2, max: 30, message: 'é¿åº¦å¨ 2 å° 30 个å符', trigger: 'blur' }, |
| | | { validator: this.validateName }, |
| | | ], |
| | | teamId: [ |
| | | { required: true, message: 'è¯·éæ©è´£ä»»çç»!' }, |
| | | ], |
| | | processParametersTemplateName: [ |
| | | { required: true, message: 'è¯·éæ©å·¥èºåæ°æ¨¡æ¿!' }, |
| | | ], |
| | | precisionParametersTemplateName: [ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤ç²¾åº¦æ¨¡æ¿!' }, |
| | | ], |
| | | remark: [ |
| | | { min: 0, max: 100, message: 'é¿åº¦ä¸è¶
è¿ 100 个å符', trigger: 'blur' }, |
| | | ], |
| | | equipmentCategoryId: [ |
| | | { required: true, message: '请éå设å¤ç±»å«!' }, |
| | | ], |
| | | specification:[ |
| | | { required: true, message: '请éå设å¤è§æ ¼!' }, |
| | | ], |
| | | model:[ |
| | | { required: true, message: '请éå设å¤åå·!' }, |
| | | ], |
| | | equipmentImportanceId:[ |
| | | { required: true, message: '请éå设å¤ABCæ è¯!' }, |
| | | ], |
| | | manageId:[ |
| | | { required: true, message: 'è¯·éæ©ç»´æ¤é¨é¨!' }, |
| | | ], |
| | | useId:[ |
| | | { required: true, message: 'è¯·éæ©ä½¿ç¨é¨é¨é¨é¨!' }, |
| | | ], |
| | | specificEquipment:[ |
| | | { required: true, message: 'è¯·éæ©å
³é®è®¾å¤æ è¯!' }, |
| | | ], |
| | | equipmentStatus:[ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤ç¶æ!' }, |
| | | ], |
| | | technologyStatus:[ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤ç¶æ!' }, |
| | | ], |
| | | workCenterId:[ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤äº§çº¿!' }, |
| | | ], |
| | | factoryModelId:[ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤è½¦é´!' }, |
| | | ], |
| | | warrantyStart:[ |
| | | { required: true, message: 'è¯·éæ©å¼å§æ¥æ!' }, |
| | | ], |
| | | warrantyEnd:[ |
| | | { required: true, message: 'è¯·éæ©ç»ææ¥æ!' }, |
| | | ], |
| | | propertyStatus:[ |
| | | { required: true, message: 'è¯·éæ©èµäº§ç¶æ!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | | add: "/eam/equipment/add", |
| | | edit: "/eam/equipment/edit", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | treeData: [], |
| | | needSpecific:false, |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.initOptions(); |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit(record) { |
| | | console.log(this.disabled) |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk() { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if (!this.model.id) { |
| | | httpurl += this.url.add; |
| | | method = 'post'; |
| | | } else { |
| | | httpurl += this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | httpAction(httpurl, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | validateNum(rule, value, callback) { |
| | | var params = { |
| | | tableName: 'mom_eam_equipment', |
| | | fieldName: 'num', |
| | | fieldVal: value, |
| | | dataId: this.model.id, |
| | | //æ°æ®åºä¸åå¨å段del_flag并使ç¨è¯¥å段ä½ä¸ºæªå é¤çç¥ï¼çå é¤ï¼false åå é¤ï¼true |
| | | delFlag: '0', |
| | | }; |
| | | duplicateCheck(params).then((res) => { |
| | | if (res.success) { |
| | | callback(); |
| | | } else { |
| | | callback("ç¼å·å·²åå¨!"); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //éªè¯ åç§° |
| | | validateName(rule, value, callback) { |
| | | var params = { |
| | | tableName: 'mom_eam_equipment', |
| | | fieldName: 'name', |
| | | fieldVal: value, |
| | | dataId: this.model.id, |
| | | //æ°æ®åºä¸åå¨å段del_flag并使ç¨è¯¥å段ä½ä¸ºæªå é¤çç¥ï¼çå é¤ï¼false åå é¤ï¼true |
| | | delFlag: '0', |
| | | }; |
| | | duplicateCheck(params).then((res) => { |
| | | if (res.success) { |
| | | callback(); |
| | | } else { |
| | | callback("åç§°å·²åå¨!"); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleSwitch(processParameters) { |
| | | if ('1' == processParameters) { |
| | | this.model.processParameters = '0' |
| | | } else { |
| | | this.model.processParameters = '1' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | handle2Switch(precisionParameters) { |
| | | if ('1' == precisionParameters) { |
| | | this.model.precisionParameters = '0' |
| | | } else { |
| | | this.model.precisionParameters = '1' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handle2Change(val) { |
| | | if (val === null) { |
| | | setTimeout(() => { |
| | | this.form.setFieldsValue({ useId: "" }); |
| | | }, 100) |
| | | } |
| | | }, |
| | | handle1Change(val) { |
| | | if (val === null) { |
| | | setTimeout(() => { |
| | | this.form.setFieldsValue({ affiliationId: "" }); |
| | | }, 100) |
| | | } |
| | | }, |
| | | |
| | | handle3Change(val) { |
| | | if (val === null) { |
| | | setTimeout(() => { |
| | | this.form.setFieldsValue({ manageId: "" }); |
| | | }, 100) |
| | | } |
| | | }, |
| | | |
| | | uploadOk(imgList) { |
| | | this.model.sysUploadList = imgList |
| | | this.equipmentPhoto = this.getSrc(imgList[0]) |
| | | // this.$set(this.model, 'photo', res); |
| | | // this.$set(this.model, 'sysUploadList', imgList); |
| | | }, |
| | | |
| | | onSearchProcessParametersTemplate() { |
| | | this.$refs.ProcessParametersTemplateList.list(); |
| | | this.$refs.ProcessParametersTemplateList.title = "鿩工èºåæ°æ¨¡æ¿"; |
| | | }, |
| | | sendProcessParametersTemplateRecord(data) { |
| | | let record = data.record; |
| | | this.model.processParametersTemplateId = record.id |
| | | this.model.processParametersTemplateId_dictText = record.name |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | | onSearchPrecisionParametersTemplate() { |
| | | this.$refs.PrecisionParametersTemplateList.list(); |
| | | this.$refs.PrecisionParametersTemplateList.title = "éæ©è®¾å¤ç²¾åº¦æ¨¡æ¿"; |
| | | }, |
| | | sendPrecisionParametersTemplateRecord(data) { |
| | | let record = data.record; |
| | | this.model.precisionParametersTemplateId = record.id |
| | | this.model.precisionParametersTemplateId_dictText= record.name |
| | | 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 sum = standardA + standardB + standardC + standardD + standardE + standardF; |
| | | console.log(sum) |
| | | if (sum >= 18) { |
| | | this.model.equipmentImportanceId = 'A' |
| | | } else if (sum >= 10 && sum <= 17) { |
| | | this.model.equipmentImportanceId = 'B' |
| | | } else { |
| | | this.model.equipmentImportanceId = 'C' |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | |
| | | }, |
| | | changeNeedSpecific(val){ |
| | | if(val=='A'){ |
| | | this.needSpecific=true; |
| | | }else{ |
| | | let that = this; |
| | | this.$confirm({ |
| | | title: 'æç¤º', |
| | | content: 'éA类设å¤ï¼æ¯å¦è¦æ·»å å
³é®è®¾å¤æ è¯ï¼', |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk() { |
| | | that.needSpecific = true; |
| | | }, |
| | | onCancel(){ |
| | | that.needSpecific = false; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disableSubmit |
| | | }, |
| | | }, |
| | | watch: { |
| | | alterFlag() { |
| | | this.$bus.$emit('queryTreeData'); |
| | | }, |
| | | }, |
| | | } |
| | | </script> |