lyh
5 天以前 2de735967d33dba5da5fc87191dee543b000afaf
src/views/flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal.vue
@@ -1,11 +1,13 @@
<template>
  <j-modal :title="title" :width="1200" :visible="visible" :confirmLoading="confirmLoading"
  <j-modal :title="title" :visible="visible" :confirmLoading="confirmLoading"
           :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 :gutter="24">
          <a-col :span="8">
        <a-row id="outer-row" :gutter="24">
          <!--左侧基础信息列-->
          <a-col :span="8" class="scroll-col">
            <a-tabs>
              <a-tab-pane tab="基础信息">
                <a-row>
@@ -44,17 +46,25 @@
            </a-tabs>
          </a-col>
          <a-col :span="model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'?10:16">
          <!-- 中间明细项列-->
          <a-col
            :span="model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&model.evaluationStatus!='WAIT_EVALUATION'?10:16"
            class="scroll-col">
            <a-tabs :active-key="activeTabKey" @change="handleTabChange">
              <a-tab-pane :key="1" tab="安全装置检查" forceRender
                          v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='safety_equipment_check'||!Boolean(selectShenpiData.taskDefKey)">
                          v-if="disableSubmit||
                          selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='safety_equipment_check'||selectShenpiData.taskDefKey=='safety_equipment_check_confirm')||
                          model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&detail.safetyEquipmentCheckList.length>0">
                <j-vxe-table ref="editableDetailTable1" rowNumber bordered alwaysEdit keep-source :height="300"
                             :dataSource="detail.safetyEquipmentCheckList"
                             :columns="detail.safetyEquipmentCheckColumns">
                  <template v-slot:safetyEquipmentCheckResult="props">
                    <j-dict-select-tag v-model="props.row.safetyEquipmentCheckResult" :disabled="disableSubmit"
                    <j-dict-select-tag v-model="props.row.safetyEquipmentCheckResult"
                                       placeholder="请选择检查结果"
                                       :disabled="disableSubmit||
                                       model.evaluationStatus!='UNDER_EVALUATION'||
                                       selectShenpiData.taskDefKey=='safety_equipment_check_confirm'"
                                       @change="$refs['editableDetailTable'+activeTabKey].validateTable()"
                                       dictCode="yes_no_none" style="width: 100%"/>
                  </template>
@@ -67,14 +77,14 @@
                        <a-form-model-item prop="safetyCheckConfirmResult" :labelCol="labelColLong"
                                           :wrapperCol="wrapperColLong" label="确认类型">
                          <j-dict-select-tag type='radio' v-model='model.safetyCheckConfirmResult'
                                             dictCode='approved_rejected'
                                             placeholder="请选择确认类型"/>
                                             :disabled="disableSubmit||selectShenpiData.taskDefKey!='safety_equipment_check_confirm'"
                                             dictCode='approved_rejected'/>
                        </a-form-model-item>
                      </a-col>
                      <a-col :span="24">
                        <a-form-model-item prop="safetyCheckConfirmComment" :labelCol="labelColLong"
                                           :wrapperCol="wrapperColLong" label="确认意见">
                          <a-textarea placeholder="请输入意见" v-model="model.safetyCheckConfirmComment"/>
                        <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" label="确认意见">
                          <a-textarea placeholder="请输入意见" v-model="model.safetyCheckConfirmComment"
                                      :disabled="disableSubmit||selectShenpiData.taskDefKey!='safety_equipment_check_confirm'"/>
                        </a-form-model-item>
                      </a-col>
                    </a-row>
@@ -83,12 +93,17 @@
              </a-tab-pane>
              <a-tab-pane :key="2" tab="设备精度检查" forceRender
                          v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='equipment_precision_check'||!Boolean(selectShenpiData.taskDefKey)">
                          v-if="disableSubmit||
                          selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='equipment_precision_check'||selectShenpiData.taskDefKey=='equipment_precision_check_confirm')||
                          model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&detail.precisionCheckList.length>0">
                <j-vxe-table ref="editableDetailTable2" rowNumber bordered
                             alwaysEdit keep-source :height="300"
                             :dataSource="detail.precisionCheckList" :columns="detail.precisionCheckColumns">
                  <template v-slot:precisionCheckResult="props">
                    <a-input-number v-model="props.row.precisionCheckResult" :disabled="disableSubmit"
                    <a-input-number v-model="props.row.precisionCheckResult"
                                    :disabled="disableSubmit||
                                    model.evaluationStatus!='UNDER_EVALUATION'||
                                    selectShenpiData.taskDefKey=='equipment_precision_check_confirm'"
                                    @blur="$refs['editableDetailTable'+activeTabKey].validateTable()"
                                    placeholder="请输入检查结果" style="width: 100%"/>
                  </template>
@@ -101,14 +116,14 @@
                        <a-form-model-item prop="precisionCheckConfirmResult" :labelCol="labelColLong"
                                           :wrapperCol="wrapperColLong" label="确认类型">
                          <j-dict-select-tag type='radio' v-model='model.precisionCheckConfirmResult'
                                             dictCode='approved_rejected'
                                             placeholder="请选择确认类型"/>
                                             :disabled="disableSubmit||selectShenpiData.taskDefKey!='equipment_precision_check_confirm'"
                                             dictCode='approved_rejected'/>
                        </a-form-model-item>
                      </a-col>
                      <a-col :span="24">
                        <a-form-model-item prop="precisionCheckConfirmComment" :labelCol="labelColLong"
                                           :wrapperCol="wrapperColLong" label="确认意见">
                          <a-textarea placeholder="请输入意见" v-model="model.precisionCheckConfirmComment"/>
                        <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" label="确认意见">
                          <a-textarea placeholder="请输入意见" v-model="model.precisionCheckConfirmComment"
                                      :disabled="disableSubmit||selectShenpiData.taskDefKey!='equipment_precision_check_confirm'"/>
                        </a-form-model-item>
                      </a-col>
                    </a-row>
@@ -117,12 +132,15 @@
              </a-tab-pane>
              <a-tab-pane :key="3" tab="其他检查" forceRender
                          v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='other_check'||!Boolean(selectShenpiData.taskDefKey)">
                          v-if="disableSubmit||
                          selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='other_check'||selectShenpiData.taskDefKey=='other_check_confirm')||
                          model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&detail.otherCheckList.length>0">
                <j-vxe-table ref="editableDetailTable3" rowNumber bordered
                             alwaysEdit keep-source :height="300"
                             :dataSource="detail.otherCheckList" :columns="detail.otherCheckColumns">
                  <template v-slot:otherCheckResult="props">
                    <a-textarea v-model="props.row.otherCheckResult" :rows="1" :disabled="disableSubmit"
                    <a-textarea v-model="props.row.otherCheckResult" :rows="1"
                                :disabled="disableSubmit||model.evaluationStatus!='UNDER_EVALUATION'||selectShenpiData.taskDefKey=='other_check_confirm'"
                                @blur="$refs['editableDetailTable'+activeTabKey].validateTable()"
                                placeholder="请输入检查结果"
                                :autoSize="false"/>
@@ -137,13 +155,13 @@
                                           :wrapperCol="wrapperColLong" label="确认类型">
                          <j-dict-select-tag type='radio' v-model='model.otherCheckConfirmResult'
                                             dictCode='approved_rejected'
                                             placeholder="请选择确认类型"/>
                                             :disabled="disableSubmit||selectShenpiData.taskDefKey!='other_check_confirm'"/>
                        </a-form-model-item>
                      </a-col>
                      <a-col :span="24">
                        <a-form-model-item prop="otherCheckConfirmComment" :labelCol="labelColLong"
                                           :wrapperCol="wrapperColLong" label="确认意见">
                          <a-textarea placeholder="请输入意见" v-model="model.otherCheckConfirmComment"/>
                        <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" label="确认意见">
                          <a-textarea placeholder="请输入意见" v-model="model.otherCheckConfirmComment"
                                      :disabled="disableSubmit||selectShenpiData.taskDefKey!='other_check_confirm'"/>
                        </a-form-model-item>
                      </a-col>
                    </a-row>
@@ -153,49 +171,51 @@
              <template v-if="selectShenpiData.procInstId">
                <a-tab-pane key='4' tab='流程图'>
                  <img :src="imageSrc" alt="Fetched Image"/>
                  <img :src="imageSrc" alt="Fetched Image" style="width: 100%"/>
                </a-tab-pane>
              </template>
            </a-tabs>
          </a-col>
          <a-col :span="6" v-if="model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'">
            <a-tabs>
          <!--右侧审批列-->
          <a-col :span="6" class="scroll-col"
                 v-if="model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&model.evaluationStatus!='WAIT_EVALUATION'">
            <a-tabs v-if="displayRepairerFlag">
              <a-tab-pane tab="维修工确认">
                <a-row>
                  <a-col :span="24">
                    <a-form-model-item prop="confirmDealType" label="安全装置是否齐全" :labelCol="rightColLabelCol"
                    <a-form-model-item prop="safetyEquipmentCheckResult" label="安全装置是否齐全" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.safetyEquipmentCheckResult' dictCode='yn'
                                         :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='REPAIRER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="confirmDealType" label="设备功能是否齐全" :labelCol="rightColLabelCol"
                    <a-form-model-item prop="precisionCheckResult" label="设备功能是否齐全" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.precisionCheckResult' dictCode='yn'
                                         placeholder="请选择确认类型" :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='REPAIRER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="confirmDealType" label="精度是否达到要求" :labelCol="rightColLabelCol"
                    <a-form-model-item prop="functionalCheckResult" label="精度是否达到要求" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.functionalCheckResult' dictCode='yes_no_none'
                                         placeholder="请选择确认类型" :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='REPAIRER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="confirmDealType" label="检查是否合格" :labelCol="rightColLabelCol"
                    <a-form-model-item prop="otherCheckResult" label="其他检查是否合格" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.otherCheckResult' dictCode='yes_no_none'
                                         placeholder="请选择确认类型" :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='REPAIRER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                </a-row>
              </a-tab-pane>
            </a-tabs>
            <a-tabs>
            <a-tabs v-if="displayRepairLeaderFlag">
              <a-tab-pane tab="维修室主任确认">
                <a-row>
                  <a-col :span="24">
@@ -203,42 +223,40 @@
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.repairManagerSignatureResult'
                                         dictCode='approved_rejected'
                                         placeholder="请选择确认类型" :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='REPAIR_MANAGER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="repairManagerComment" label="确认意见" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                    <a-form-model-item label="确认意见" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol">
                      <a-textarea placeholder="请输入意见" v-model="model.repairManagerComment"
                                  :disabled="disableSubmit || completionDisable"/>
                                  :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='REPAIR_MANAGER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                </a-row>
              </a-tab-pane>
            </a-tabs>
            <a-tabs>
            <a-tabs v-if="displayTechnicianFlag">
              <a-tab-pane tab="工艺员确认">
                <a-row>
                  <a-col :span="24">
                    <a-form-model-item prop="sampleCheckResult" label="试件检查结果" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.sampleCheckResult' dictCode='yn'
                                         :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='PROCESS_TECHNICIAN_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="processTechnicianComment" label="确认意见" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                    <a-form-model-item label="确认意见" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol">
                      <a-textarea placeholder="请输入意见" v-model="model.processTechnicianComment"
                                  :disabled="disableSubmit || completionDisable"/>
                                  :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='PROCESS_TECHNICIAN_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                </a-row>
              </a-tab-pane>
            </a-tabs>
            <a-tabs>
            <a-tabs v-if="displayTechnicalLeaderFlag">
              <a-tab-pane tab="使用单位技术主管确认">
                <a-row>
                  <a-col :span="24">
@@ -246,44 +264,43 @@
                                       :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.departTechnicalLeaderSignatureResult'
                                         dictCode='approved_rejected'
                                         :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='DEPART_TECHNICAL_LEADER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="departTechnicalLeaderComment" label="确认意见" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                    <a-form-model-item label="确认意见" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol">
                      <a-textarea placeholder="请输入意见" v-model="model.departTechnicalLeaderComment"
                                  :disabled="disableSubmit || completionDisable"/>
                                  :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='DEPART_TECHNICAL_LEADER_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                </a-row>
              </a-tab-pane>
            </a-tabs>
            <a-tabs>
            <a-tabs v-if="displayInspectorFlag">
              <a-tab-pane tab="设备检验员确认">
                <a-row>
                  <a-col :span="24">
                    <a-form-model-item prop="evaluationResult" label="鉴定结果" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                      <j-dict-select-tag type='radio' v-model='model.evaluationResult'
                                         dictCode='equipment_technology_status'
                                         placeholder="请选择确认类型" :disabled="disableSubmit || inspectorConfirmDisable"/>
                                         dictCode='equipment_technology_status' @change="handleEvaluationResultChange"
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='INSPECTOR_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="evaluationReason" label="限/禁用原因" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                    <a-form-model-item prop="evaluationReason"
                                       v-if="model.evaluationResult&&model.evaluationResult!='QUALIFIED'" label="限/禁用原因"
                                       :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol">
                      <j-select-multiple v-model='model.evaluationReason'
                                         dictCode='technical_status_evaluation_result_reason'
                                         placeholder="请选择限/禁用原因"/>
                                         :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='INSPECTOR_SIGNING')"
                                         dictCode='technical_status_evaluation_result_reason' placeholder="请选择限/禁用原因"/>
                    </a-form-model-item>
                  </a-col>
                  <a-col :span="24">
                    <a-form-model-item prop="inspectorComment" label="确认意见" :labelCol="rightColLabelCol"
                                       :wrapperCol="rightColWrapperCol">
                    <a-form-model-item label="确认意见" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol">
                      <a-textarea placeholder="请输入意见" v-model="model.inspectorComment"
                                  :disabled="disableSubmit || completionDisable"/>
                                  :disabled="disableSubmit||(model.evaluationStatus&&model.evaluationStatus!='INSPECTOR_SIGNING')"/>
                    </a-form-model-item>
                  </a-col>
                </a-row>
@@ -300,7 +317,6 @@
  import { downFile, getAction, httpAction } from '@/api/manage'
  import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js'
  import { JVXETypes } from '@comp/jeecg/JVxeTable'
  import MaintenanceEquipmentSelect from '@views/eam/equipment/modules/MaintenanceEquipmentSelect'
  import TechnicalStatusEquipmentSelect from '../../../eam/equipment/modules/TechnicalStatusEquipmentSelect'
  export default {
@@ -308,7 +324,6 @@
    mixins: [JVxeTableModelMixin],
    components: {
      TechnicalStatusEquipmentSelect,
      MaintenanceEquipmentSelect
    },
    props: {
      selectShenpiData: {
@@ -349,15 +364,18 @@
        imageSrc: null,
        activeTabKey: 1,
        validatorRules: {
          confirmDealType: [
            { required: true, message: '请选择通过或驳回!' }
          ],
          confirmComment: [
            { required: true, message: '请输入确认意见!' }
          ],
          leaderConfirmComment: [
            { required: true, message: '请输入初验收意见!' }
          ]
          safetyCheckConfirmResult: [{ required: true, message: '请选择确认类型' }],
          precisionCheckConfirmResult: [{ required: true, message: '请选择确认类型' }],
          otherCheckConfirmResult: [{ required: true, message: '请选择确认类型' }],
          safetyEquipmentCheckResult: [{ required: true, message: '请选择安全装置是否齐全' }],
          precisionCheckResult: [{ required: true, message: '请选择设备功能是否齐全' }],
          functionalCheckResult: [{ required: true, message: '请选择精度是否达到要求' }],
          otherCheckResult: [{ required: true, message: '请选择其他检查是否合格' }],
          repairManagerSignatureResult: [{ required: true, message: '请选择确认类型' }],
          sampleCheckResult: [{ required: true, message: '请选择试件检查结果' }],
          departTechnicalLeaderSignatureResult: [{ required: true, message: '请选择确认类型' }],
          evaluationResult: [{ required: true, message: '请选择鉴定结果' }],
          evaluationReason: [{ required: true, message: '请选择限/禁用原因' }]
        },
        url: {
          queryById: '/eam/eamTechnicalStatusEvaluationOrder/queryById',
@@ -486,14 +504,20 @@
      }
    },
    computed: {
      confirmDisable: function() {
        return ['WAIT_ADMIN_CONFIRM', 'WAIT_INSPECTOR_CONFIRM', 'COMPLETE'].includes(this.model.maintenanceStatus)
      displayRepairerFlag() {
        return this.model.evaluationStatus && ['REPAIRER_SIGNING', 'REPAIR_MANAGER_SIGNING', 'PROCESS_TECHNICIAN_SIGNING', 'DEPART_TECHNICAL_LEADER_SIGNING', 'INSPECTOR_SIGNING', 'COMPLETED'].includes(this.model.evaluationStatus)
      },
      inspectorConfirmDisable: function() {
        return ['WAIT_INSPECTOR_CONFIRM', 'COMPLETE'].includes(this.model.maintenanceStatus)
      displayRepairLeaderFlag() {
        return this.model.evaluationStatus && ['REPAIR_MANAGER_SIGNING', 'PROCESS_TECHNICIAN_SIGNING', 'DEPART_TECHNICAL_LEADER_SIGNING', 'INSPECTOR_SIGNING', 'COMPLETED'].includes(this.model.evaluationStatus)
      },
      completionDisable: function() {
        return ['COMPLETE'].includes(this.model.maintenanceStatus)
      displayTechnicianFlag() {
        return this.model.evaluationStatus && ['PROCESS_TECHNICIAN_SIGNING', 'DEPART_TECHNICAL_LEADER_SIGNING', 'INSPECTOR_SIGNING', 'COMPLETED'].includes(this.model.evaluationStatus)
      },
      displayTechnicalLeaderFlag() {
        return this.model.evaluationStatus && ['DEPART_TECHNICAL_LEADER_SIGNING', 'INSPECTOR_SIGNING', 'COMPLETED'].includes(this.model.evaluationStatus)
      },
      displayInspectorFlag() {
        return this.model.evaluationStatus && ['INSPECTOR_SIGNING', 'COMPLETED'].includes(this.model.evaluationStatus)
      }
    },
    methods: {
@@ -502,15 +526,11 @@
       * @param record 主页面列表行记录
       */
      async handleDetail(record) {
        this.initParams()
        this.model = {}
        this.detail.safetyEquipmentCheckList = this.detail.precisionCheckList = this.detail.otherCheckList = []
        this.handleTabToFirstTable()
        this.getBasicInformationByApi(record)
        this.getFlowChartImageByApi(record)
        let res = await getAction(this.url.queryById, { id: record.dataId })
        this.model = Object.assign({}, res.result)
        this.model.dataId = record.dataId
        this.model.taskId = record.id
        this.model.userId = record.assignee
        this.model.instanceId = record.procInstId
        this.loadDetail(record.dataId)
      },
      /**
@@ -518,9 +538,39 @@
       * @param record 主页面列表行记录
       */
      recordDetail(record) {
        this.initParams()
        this.detail.safetyEquipmentCheckList = this.detail.precisionCheckList = this.detail.otherCheckList = []
        this.model = Object.assign({}, record)
        this.handleTabToFirstTable()
        this.loadDetail(record.id)
      },
      /**
       * 获取基础信息
       * @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)
              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(() => {
            this.loadDetail(record.dataId)
          })
      },
      /**
@@ -541,7 +591,7 @@
          .catch(err => {
            this.$notification.error({
              message: '消息',
              description: res.message
              description: err.message
            })
          })
      },
@@ -577,33 +627,36 @@
        this.$refs.form.validate(valid => {
          if (valid) {
            that.confirmLoading = that.spinning = true
            for (let index = 1; index <= 3; index++) {
              if (that.$refs['editableDetailTable' + index]) {
                this.model.tableDetailList = that.$refs['editableDetailTable' + index].getTableData()
                break
            // 仅在鉴定中状态传递表格列表
            if (this.model.evaluationStatus == 'UNDER_EVALUATION') {
              for (let index = 1; index <= 3; index++) {
                if (that.$refs['editableDetailTable' + index]) {
                  this.model.tableDetailList = that.$refs['editableDetailTable' + index].getTableData()
                  break
                }
              }
            }
            console.log('model', this.model.tableDetailList)
            //
            // httpAction(this.url.approval, this.model, 'put')
            //   .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
            //   })
            httpAction(this.url.approval, this.model, 'put')
              .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
          }
@@ -618,12 +671,14 @@
      //规范选择变化
      loadDetail(orderId) {
        this.spinning = true
        getAction(this.url.detail, { orderId })
          .then(res => {
            if (res.success) {
              this.detail.safetyEquipmentCheckList = res.result.filter(item => item.checkCategory == 'SAFETY_EQUIPMENT_CHECK')
              this.detail.precisionCheckList = res.result.filter(item => item.checkCategory == 'PRECISION_CHECK')
              this.detail.otherCheckList = res.result.filter(item => item.checkCategory == 'OTHER_CHECK')
              this.handleTabToFirstTable()
            }
          })
          .finally(() => {
@@ -631,17 +686,13 @@
          })
      },
      // 初始化数据
      initParams() {
        this.model = {}
        this.detail.safetyEquipmentCheckList = this.detail.precisionCheckList = this.detail.otherCheckList = []
        this.visible = true
        this.spinning = true
      // 切换tab至第一个表格
      handleTabToFirstTable() {
        this.$nextTick(() => {
          for (let index = 1; index <= 3; index++) {
            if (this.$refs['editableDetailTable' + index]) {
              this.activeTabKey = index
              return
              break
            }
          }
        })
@@ -654,6 +705,10 @@
      handleTabChange(tabKey) {
        if (this.$refs['editableDetailTable' + this.activeTabKey]) this.$refs['editableDetailTable' + this.activeTabKey].clearValidate()
        this.activeTabKey = tabKey
      },
      handleEvaluationResultChange(value) {
        if (value == 'QUALIFIED') this.model.evaluationReason = ''
      },
      /**
@@ -682,8 +737,29 @@
  }
</script>
<style scoped>
<style scoped lang="less">
  /deep/ .ant-select-dropdown-menu {
    text-align: left;
  }
  /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>