¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal :title="title" :visible="visible" :confirmLoading="confirmLoading" :width="1300" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" fullscreen @ok="handleOk" |
| | | @cancel="handleCancel" centered cancelText="å
³é"> |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row id="outer-row" :gutter="24"> |
| | | <!--左侧åºç¡ä¿¡æ¯å--> |
| | | <a-col :span="selectShenpiData.procInstId?8:12" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="åºç¡ä¿¡æ¯"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç»ä¸ç¼ç "> |
| | | <lx-search-equipment-select v-model="model.equipmentId" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åºåä»¶å·"> |
| | | <a-input v-model="model.scrapPartNumber" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åºåä»¶æ°"> |
| | | <a-input v-model="model.scrapPartQuantity" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åºåä»·å¼"> |
| | | <a-input v-model="model.scrapPartValue" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æ¯å¦æè®¾å¤æä½è¯"> |
| | | <j-dict-select-tag dict-code="yn" type="radio" v-model="model.operationCertificate" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æ¯å¦æçµéå¯"> |
| | | <j-dict-select-tag dict-code="yn" type="radio" v-model="model.powerOffRestart" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æ¯å¦ä¸ºæ¹æ¬¡é¦ä»¶"> |
| | | <j-dict-select-tag dict-code="yn" type="radio" v-model="model.batchFirstPiece" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åå¨å ç´ "> |
| | | <j-dict-select-tag dict-code="yn" type="radio" v-model="model.variableFactors" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åå¨å ç´ å
容"> |
| | | <a-input v-model="model.variableFactorsValue_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æ§è¡ç¨åº"> |
| | | <a-input v-model="model.executeNc" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="äºæ
ç°è±¡" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-model="model.accidentPhenomenon" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="éåæªæ½" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-model="model.measure" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="é æç»æ" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-model="model.causingResults" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <!-- ä¸é´æç»é¡¹å--> |
| | | <a-col v-if="selectShenpiData.procInstId" :span="10" class="scroll-col"> |
| | | <a-tabs default-active-key="1"> |
| | | <a-tab-pane key='1' tab='æµç¨å¾'> |
| | | <img :src="imageSrc" v-if="imageSrc" style="width: 100%"/> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <!--å³ä¾§å®¡æ¹å--> |
| | | <a-col :span="selectShenpiData.procInstId?6:12" class="scroll-col"> |
| | | <a-tabs v-if="displayRegionalManagerFlag"> |
| | | <a-tab-pane tab="åºé¿ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="districtResult" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.districtResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REGIONAL_MANAGER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.districtConfirm" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REGIONAL_MANAGER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayCenterManagerFlag"> |
| | | <a-tab-pane tab="ä¸å¿ä¸»ä»»ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="centerDirectorResult" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.centerDirectorResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_CENTER_MANAGER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.centerDirectorConfirm" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_CENTER_MANAGER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayRepairFlag"> |
| | | <a-tab-pane tab="维修工确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="reportStartTime" label="ç»´ä¿®å¼å§æ¶é´" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-date-picker v-model="model.reportStartTime" value-format="YYYY-MM-DD" style="width: 100%" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="equipmentStatus" label="设å¤ç¶æ" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model="model.equipmentStatus" placeholder="请è¾å
¥è®¾å¤ç¶æ" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="causeAnalysis" label="åå åæ" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea v-model="model.causeAnalysis" placeholder="请è¾å
¥åå åæ" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="inspectionResults" label="æ£æ¥ç»æ" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea v-model="model.inspectionResults" placeholder="请è¾å
¥æ£æ¥ç»æ" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="takeSteps" label="éåæªæ½" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea v-model="model.takeSteps" placeholder="请è¾å
¥éåæªæ½" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="suggestionTakeSteps" label="建议éåæªæ½" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea v-model="model.suggestionTakeSteps" placeholder="请è¾å
¥å»ºè®®éåæªæ½" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="suggestionTakeStepsTime" label="建议éåæªæ½æ¶é´" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-date-picker v-model="model.suggestionTakeStepsTime" value-format="YYYY-MM-DD" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="repairConfirmResult" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.repairConfirmResult' dictCode='approve_reject' |
| | | disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.repairConfirmComment" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_WORKER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayRepairLeaderFlag"> |
| | | <a-tab-pane tab="维修室主任确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="repairGroupLeaderResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.repairGroupLeaderResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_TEAM_LEADER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.repairGroupLeaderComment" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_TEAM_LEADER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayRepairRegionalManagerFlag"> |
| | | <a-tab-pane tab="ç»´ä¿®åºé¿ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="repairDistrictResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.repairDistrictResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_REGIONAL_MANAGER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.repairDistrictComment" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_REPAIR_REGIONAL_MANAGER')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayTechnicalLeaderFlag"> |
| | | <a-tab-pane tab="ææ¯è´è´£äººç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="checkAgree" label="åå åææ ¸å¯¹" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.checkAgree' |
| | | dictCode='approve_reject' @change="handleCheckAgreeChange" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_RESPONSIBLE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24" v-if="model.checkAgree==='2'"> |
| | | <a-form-model-item label="ä¸åæåå åæ" prop="disagreeReason" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥ä¸åæåå " v-model="model.disagreeReason" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_RESPONSIBLE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æ´æ¹æªæ½" prop="rectificationMeasures" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æ´æ¹æªæ½" v-model="model.rectificationMeasures" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_RESPONSIBLE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="äºæ
ç»è®º" prop="accidentConclusion" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥äºæ
ç»è®º" v-model="model.accidentConclusion" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_RESPONSIBLE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="technicalDirectorResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.technicalDirectorResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_RESPONSIBLE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.technicalDirectorConfirm" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_RESPONSIBLE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayTechnicalSupervisorFlag"> |
| | | <a-tab-pane tab="ææ¯ä¸»ç®¡å®¤çº§é¢å¯¼"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="technicalDirectorLeaderResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.technicalDirectorLeaderResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_SUPERVISOR')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.technicalDirectorLeaderConfirm" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_TECHNICAL_SUPERVISOR')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displaySuperiorDepartmentFlag"> |
| | | <a-tab-pane tab="主管é¨çº§é¢å¯¼"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="technicalDirectorPartResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.technicalDirectorPartResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_SUPERIOR_DEPARTMENT')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.technicalDirectorPartConfirm" |
| | | :disabled="disableSubmit||(model.registerStatus&&model.registerStatus!=='PENDING_SUPERIOR_DEPARTMENT')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { downFile, getAction, httpAction } from '@/api/manage' |
| | | import TechnicalStatusEquipmentSelect from '../../../eam/equipment/modules/TechnicalStatusEquipmentSelect' |
| | | import LxSearchEquipmentSelect from '../../../eam/equipment/modules/LxSearchEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'ReportAccidentsRegisterApprovalModal', |
| | | components: { |
| | | LxSearchEquipmentSelect, |
| | | TechnicalStatusEquipmentSelect |
| | | }, |
| | | props: { |
| | | selectShenpiData: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: 'æä½', |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 10 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 14 } |
| | | }, |
| | | labelColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 19 } |
| | | }, |
| | | rightColLabelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 } |
| | | }, |
| | | rightColWrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 15 } |
| | | }, |
| | | confirmLoading: false, |
| | | spinning: false, |
| | | imageSrc: null, |
| | | validatorRules: { |
| | | districtResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | centerDirectorResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | reportStartTime: [{ required: true, message: 'è¯·éæ©ç»´ä¿®å¼å§æ¶é´', trigger: 'change' }], |
| | | equipmentStatus: [{ required: true, message: '请è¾å
¥è®¾å¤ç¶æ', trigger: 'change' }], |
| | | causeAnalysis: [{ required: true, message: '请è¾å
¥åå åæ', trigger: 'change' }], |
| | | inspectionResults: [{ required: true, message: '请è¾å
¥æ£æ¥ç»æ', trigger: 'change' }], |
| | | takeSteps: [{ required: true, message: '请è¾å
¥éåæªæ½', trigger: 'change' }], |
| | | suggestionTakeSteps: [{ required: true, message: '请è¾å
¥å»ºè®®éåæªæ½', trigger: 'change' }], |
| | | suggestionTakeStepsTime: [{ required: true, message: 'è¯·éæ©å»ºè®®éåæªæ½æ¶é´', trigger: 'change' }], |
| | | repairConfirmResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | repairGroupLeaderResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | repairDistrictResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | checkAgree: [{ required: true, message: 'è¯·éæ©åå åææ ¸å¯¹' }], |
| | | disagreeReason: [{ required: true, message: '请è¾å
¥ä¸åæåå ', trigger: 'change' }], |
| | | rectificationMeasures: [{ required: true, message: '请è¾å
¥æ´æ¹æªæ½', trigger: 'change' }], |
| | | accidentConclusion: [{ required: true, message: '请è¾å
¥äºæ
ç»è®º', trigger: 'change' }], |
| | | technicalDirectorResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | technicalDirectorLeaderResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | technicalDirectorPartResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }] |
| | | }, |
| | | url: { |
| | | queryById: '/eam/eamReportAccidentsRegister/queryById', |
| | | approval: '/eam/eamReportAccidentsRegister/perform', |
| | | diagramView: '/assign/flow/diagramView' |
| | | }, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | computed: { |
| | | displayRegionalManagerFlag() { |
| | | return this.model.registerStatus && ['PENDING_REGIONAL_MANAGER', 'PENDING_CENTER_MANAGER', 'PENDING_REPAIR_WORKER', 'PENDING_REPAIR_TEAM_LEADER', 'PENDING_REPAIR_REGIONAL_MANAGER', 'PENDING_TECHNICAL_RESPONSIBLE', 'PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) |
| | | }, |
| | | displayCenterManagerFlag() { |
| | | return this.model.registerStatus && ['PENDING_CENTER_MANAGER', 'PENDING_REPAIR_WORKER', 'PENDING_REPAIR_TEAM_LEADER', 'PENDING_REPAIR_REGIONAL_MANAGER', 'PENDING_TECHNICAL_RESPONSIBLE', 'PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.districtResult === '1' |
| | | }, |
| | | displayRepairFlag() { |
| | | return this.model.registerStatus && ['PENDING_REPAIR_WORKER', 'PENDING_REPAIR_TEAM_LEADER', 'PENDING_REPAIR_REGIONAL_MANAGER', 'PENDING_TECHNICAL_RESPONSIBLE', 'PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.centerDirectorResult === '1' |
| | | }, |
| | | displayRepairLeaderFlag() { |
| | | return this.model.registerStatus && ['PENDING_REPAIR_TEAM_LEADER', 'PENDING_REPAIR_REGIONAL_MANAGER', 'PENDING_TECHNICAL_RESPONSIBLE', 'PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.repairConfirmResult === '1' |
| | | }, |
| | | displayRepairRegionalManagerFlag() { |
| | | return this.model.registerStatus && ['PENDING_REPAIR_REGIONAL_MANAGER', 'PENDING_TECHNICAL_RESPONSIBLE', 'PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.repairGroupLeaderResult === '1' |
| | | }, |
| | | displayTechnicalLeaderFlag() { |
| | | return this.model.registerStatus && ['PENDING_TECHNICAL_RESPONSIBLE', 'PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.repairDistrictResult === '1' |
| | | }, |
| | | displayTechnicalSupervisorFlag() { |
| | | return this.model.registerStatus && ['PENDING_TECHNICAL_SUPERVISOR', 'PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.technicalDirectorResult === '1' |
| | | }, |
| | | displaySuperiorDepartmentFlag() { |
| | | return this.model.registerStatus && ['PENDING_SUPERIOR_DEPARTMENT', 'REPAIR_COMPLETED', 'REJECTED'].includes(this.model.registerStatus) && this.model.technicalDirectorLeaderResult === '1' |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * 主页é¢ç¹å»æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | async handleApprove(record) { |
| | | this.model = {} |
| | | this.getBasicInformationByApi(record) |
| | | this.getFlowChartImageByApi(record) |
| | | }, |
| | | |
| | | /** |
| | | * 主页é¢ç¹å»è¯¦æ
æ¶è§¦å |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | handleDetail(record) { |
| | | this.model = Object.assign({}, record) |
| | | }, |
| | | |
| | | /** |
| | | * è·ååºç¡ä¿¡æ¯ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | getBasicInformationByApi(record) { |
| | | this.spinning = true |
| | | const that = this |
| | | getAction(this.url.queryById, { id: record.dataId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.model = Object.assign({}, res.result, { repairConfirmResult: '1' }) |
| | | that.model.dataId = record.dataId |
| | | that.model.taskId = record.id |
| | | that.model.userId = record.assignee |
| | | that.model.instanceId = record.procInstId |
| | | } |
| | | else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * è·åæµç¨å¾ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | getFlowChartImageByApi(record) { |
| | | const { processDefinitionId, processInstanceId, processDefinitionKey } = record |
| | | |
| | | downFile(this.url.diagramView, { |
| | | processDefinitionId, |
| | | processInstanceId, |
| | | TaskDefinitionKey: processDefinitionKey |
| | | }, 'get') |
| | | .then((res => { |
| | | this.imageSrc = window.URL.createObjectURL(new Blob([res])) |
| | | })) |
| | | .catch(err => { |
| | | this.$notification.error({ |
| | | message: 'æ¶æ¯', |
| | | description: err.message |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | async handleOk() { |
| | | const that = this |
| | | |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = that.spinning = true |
| | | |
| | | httpAction(that.url.approval, that.model, 'post') |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('modalFormOk') |
| | | that.close() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.confirmLoading = that.spinning = false |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * åå åææ ¸å¯¹å¼åçæ¹åæ¶è§¦å |
| | | * @param value |
| | | */ |
| | | handleCheckAgreeChange(value) { |
| | | if (value === '1') delete this.model.disagreeReason |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | if (this.$refs.form) this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-spin-nested-loading { |
| | | height: 100%; |
| | | |
| | | .ant-spin-container { |
| | | height: 100%; |
| | | |
| | | .ant-form { |
| | | height: 100%; |
| | | |
| | | #outer-row { |
| | | height: 100%; |
| | | |
| | | .scroll-col { |
| | | height: 100%; |
| | | overflow: auto; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |