zhaowei
2025-07-24 1451e36b1767a4d7883e80078b371b6273e9eb41
src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue
@@ -43,32 +43,67 @@
    <!-- table区域-begin -->
    <a-table bordered rowKey="id" :columns="columns" :dataSource="dataSource" :pagination="ipagination"
             :scroll="{ x: 'max-content' }" :loading="loading" @change="handleTableChange">
      <!--安全装置检查结果-->
      <template slot="safetyEquipmentCheckResult" slot-scope="text">
        <a-switch checked-children="是" un-checked-children="否" :checked="Boolean(+text)" disabled/>
      </template>
        <span slot="action" slot-scope="text, record">
      <!--精度参数检查结果-->
      <template slot="precisionCheckResult" slot-scope="text">
        <a-switch checked-children="是" un-checked-children="否" :checked="Boolean(+text)" disabled/>
      </template>
      <!--功能状态检查结果-->
      <template slot="functionalCheckResult" slot-scope="text">
        <a-switch v-if="text!=='NONE'" checked-children="是" un-checked-children="否" :checked="text==='YES'" disabled/>
        <span v-else>无</span>
      </template>
      <!--其他检查结果-->
      <template slot="otherCheckResult" slot-scope="text">
        <a-switch v-if="text!=='NONE'" checked-children="是" un-checked-children="否" :checked="text==='YES'" disabled/>
        <span v-else>无</span>
      </template>
      <!--试件检查结果-->
      <template slot="sampleCheckResult" slot-scope="text">
        <a-switch checked-children="是" un-checked-children="否" :checked="Boolean(+text)" disabled/>
      </template>
      <span slot="action" slot-scope="text, record">
          <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'">
            <a-popconfirm title="确定领取吗?"
                          @confirm="handleReceive(record.id)">
            <a-popconfirm title="确定领取吗?" @confirm="handleReceive(record.id)">
            <a>领取</a>
          </a-popconfirm>
           <a-divider type="vertical"/>
          </template>
            <a @click="handleDetail(record)">详情</a>
          <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'||record.evaluationStatus==='LOCKED'">
             <a @click="handleOrderChange(record)">变更</a>
             <a-divider type="vertical"/>
          </template>
          <a @click="handleDetail(record)" v-if="record.evaluationStatus!=='CHANGING'">详情</a>
        </span>
    </a-table>
    <!-- table区域-end -->
    <!-- 表单区域 -->
    <!--工单弹窗-->
    <eamTechnicalStatusEvaluationOrder-modal ref="modalForm" @ok="modalFormOk"/>
    <technical-status-evaluation-approval-modal ref="technicalStatusEvaluationApprovalModal"
                                                :selectShenpiData="selectedOrderData"/>
    <!--工单变更弹窗-->
    <eamTechnicalStatusEvaluationOrderChange-modal ref="orderChangeModal" @ok="modalFormOk"/>
  </a-card>
</template>
<script>
  import EamTechnicalStatusEvaluationOrderModal from './modules/EamTechnicalStatusEvaluationOrderModal'
  import EamTechnicalStatusEvaluationOrderChangeModal from './modules/EamTechnicalStatusEvaluationOrderChangeModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import { getAction } from '@/api/manage'
  import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect'
@@ -81,7 +116,8 @@
    components: {
      TechnicalStatusEvaluationApprovalModal,
      LxSearchEquipmentSelect,
      EamTechnicalStatusEvaluationOrderModal
      EamTechnicalStatusEvaluationOrderModal,
      EamTechnicalStatusEvaluationOrderChangeModal
    },
    data() {
      return {
@@ -116,6 +152,12 @@
            title: '设备型号',
            align: 'center',
            dataIndex: 'equipmentModel',
            fixed: 'left'
          },
          {
            title: '鉴定状态',
            align: 'center',
            dataIndex: 'evaluationStatus_dictText',
            fixed: 'left'
          },
          {
@@ -154,11 +196,6 @@
            dataIndex: 'evaluator_dictText'
          },
          {
            title: '鉴定状态',
            align: 'center',
            dataIndex: 'evaluationStatus_dictText'
          },
          {
            title: '创建方式',
            align: 'center',
            dataIndex: 'creationMethod_dictText'
@@ -166,42 +203,47 @@
          {
            title: '安全装置检查结果',
            align: 'center',
            dataIndex: 'safetyEquipmentCheckResult'
            dataIndex: 'safetyEquipmentCheckResult',
            scopedSlots: { customRender: 'safetyEquipmentCheckResult' }
          },
          {
            title: '精度参数检查结果',
            align: 'center',
            dataIndex: 'precisionCheckResult'
            dataIndex: 'precisionCheckResult',
            scopedSlots: { customRender: 'precisionCheckResult' }
          },
          {
            title: '功能状态检查结果',
            align: 'center',
            dataIndex: 'functionalCheckResult'
            dataIndex: 'functionalCheckResult',
            scopedSlots: { customRender: 'functionalCheckResult' }
          },
          {
            title: '其他检查结果',
            align: 'center',
            dataIndex: 'otherCheckResult'
            dataIndex: 'otherCheckResult',
            scopedSlots: { customRender: 'otherCheckResult' }
          },
          {
            title: '维修室主任签字',
            align: 'center',
            dataIndex: 'repairManagerSignature'
            dataIndex: 'repairManagerSignature_dictText'
          },
          {
            title: '维修室主任签字时间',
            align: 'center',
            dataIndex: 'repairManagerSignatureTime1'
            dataIndex: 'repairManagerSignatureTime'
          },
          {
            title: '试件检查结果',
            align: 'center',
            dataIndex: 'sampleCheckResult'
            dataIndex: 'sampleCheckResult',
            scopedSlots: { customRender: 'sampleCheckResult' }
          },
          {
            title: '工艺员签字',
            align: 'center',
            dataIndex: 'processTechnicianSignature'
            dataIndex: 'processTechnicianSignature_dictText'
          },
          {
            title: '工艺员签字时间',
@@ -211,7 +253,7 @@
          {
            title: '鉴定结果',
            align: 'center',
            dataIndex: 'evaluationResult'
            dataIndex: 'evaluationResult_dictText'
          },
          {
            title: '限/禁用原因',
@@ -221,7 +263,7 @@
          {
            title: '设备检查人签字',
            align: 'center',
            dataIndex: 'inspectorSignature'
            dataIndex: 'inspectorSignature_dictText'
          },
          {
            title: '设备检查人签字时间',
@@ -253,7 +295,8 @@
            dataIndex: 'action',
            align: 'center',
            scopedSlots: { customRender: 'action' },
            fixed: 'right'
            fixed: 'right',
            width: 200
          }
        ],
        url: {
@@ -263,6 +306,10 @@
      }
    },
    methods: {
      /**
       * 点击领取时触发
       * @param id
       */
      handleReceive(id) {
        let that = this
        this.loading = true
@@ -284,11 +331,25 @@
          })
      },
      /**
       * 点击变更时触发
       * @param record
       */
      handleOrderChange(record) {
        this.$refs.orderChangeModal.title = '变更'
        this.$refs.orderChangeModal.add(record)
      },
      /**
       * 点击详情时触发
       * @param record
       */
      handleDetail(record) {
        this.selectedOrderData = Object.assign({}, record)
        this.$refs.technicalStatusEvaluationApprovalModal.recordDetail(record)
        this.$refs.technicalStatusEvaluationApprovalModal.title = '详情'
        this.$refs.technicalStatusEvaluationApprovalModal.visible = true
        this.$refs.technicalStatusEvaluationApprovalModal.disableSubmit = true
        this.$refs.technicalStatusEvaluationApprovalModal.handleDetail(record)
      }
    }
  }