zhaowei
2 天以前 68155c57dff251d047081c972c3b3e5931a29bfa
技术鉴定工单页面列表增加自定义展示字段
已修改1个文件
57 ■■■■ 文件已修改
src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/technical/EamTechnicalStatusEvaluationOrderList.vue
@@ -43,8 +43,34 @@
    <!-- 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>领取</a>
@@ -53,13 +79,13 @@
           <a-divider type="vertical"/>
          </template>
          <template v-if="record.evaluationStatus == 'WAIT_EVALUATION'||record.evaluationStatus=='LOCKED'">
          <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'||record.evaluationStatus==='LOCKED'">
             <a @click="handleOrderChange(record)">变更</a>
             <a-divider type="vertical"/>
          </template>
          <a @click="handleDetail(record)">详情</a>
          <a @click="handleDetail(record)" v-if="record.evaluationStatus!=='CHANGING'">详情</a>
        </span>
    </a-table>
    <!-- table区域-end -->
@@ -177,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: '工艺员签字时间',
@@ -222,7 +253,7 @@
          {
            title: '鉴定结果',
            align: 'center',
            dataIndex: 'evaluationResult'
            dataIndex: 'evaluationResult_dictText'
          },
          {
            title: '限/禁用原因',
@@ -232,7 +263,7 @@
          {
            title: '设备检查人签字',
            align: 'center',
            dataIndex: 'inspectorSignature'
            dataIndex: 'inspectorSignature_dictText'
          },
          {
            title: '设备检查人签字时间',