<template>
|
<a-card :bordered="false">
|
|
<!-- 查询区域 -->
|
<div class="table-page-search-wrapper">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-row :gutter="24">
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-form-item label="删除标记">
|
<a-input placeholder="请输入删除标记" v-model="queryParam.delFlag"></a-input>
|
</a-form-item>
|
</a-col>
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-form-item label="工单号">
|
<a-input placeholder="请输入工单号" v-model="queryParam.orderNum"></a-input>
|
</a-form-item>
|
</a-col>
|
<template v-if="toggleSearchStatus">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-form-item label="设备ID">
|
<a-input placeholder="请输入设备ID" v-model="queryParam.equipmentId"></a-input>
|
</a-form-item>
|
</a-col>
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-form-item label="规范ID">
|
<a-input placeholder="请输入规范ID" v-model="queryParam.standardId"></a-input>
|
</a-form-item>
|
</a-col>
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-form-item label="计划鉴定日期;提前70天生成工单">
|
<a-input placeholder="请输入计划鉴定日期;提前70天生成工单" v-model="queryParam.evaluationDate"></a-input>
|
</a-form-item>
|
</a-col>
|
</template>
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
<a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
<a @click="handleToggleSearch" style="margin-left: 8px">
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
</a>
|
</span>
|
</a-col>
|
|
</a-row>
|
</a-form>
|
</div>
|
|
<!-- 操作按钮区域 -->
|
<div class="table-operator">
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button type="primary" icon="download" @click="handleExportXls('技术状态鉴定工单')">导出</a-button>
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
<a-button type="primary" icon="import">导入</a-button>
|
</a-upload>
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-menu slot="overlay">
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
</a-menu>
|
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
</a-dropdown>
|
</div>
|
|
<!-- table区域-begin -->
|
<div>
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
</div>
|
|
<a-table
|
ref="table"
|
size="middle"
|
bordered
|
rowKey="id"
|
:columns="columns"
|
:dataSource="dataSource"
|
:pagination="ipagination"
|
:loading="loading"
|
class="j-table-force-nowrap"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
@change="handleTableChange">
|
|
<span slot="action" slot-scope="text, record">
|
<a @click="handleEdit(record)">编辑</a>
|
|
<a-divider type="vertical" />
|
<a-dropdown>
|
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
<a-menu slot="overlay">
|
<a-menu-item>
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a>删除</a>
|
</a-popconfirm>
|
</a-menu-item>
|
</a-menu>
|
</a-dropdown>
|
</span>
|
|
</a-table>
|
</div>
|
<!-- table区域-end -->
|
|
<!-- 表单区域 -->
|
<eamTechnicalStatusEvaluationOrder-modal ref="modalForm" @ok="modalFormOk"></eamTechnicalStatusEvaluationOrder-modal>
|
</a-card>
|
</template>
|
|
<script>
|
import '@/assets/less/TableExpand.less'
|
import EamTechnicalStatusEvaluationOrderModal from './modules/EamTechnicalStatusEvaluationOrderModal'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
export default {
|
name: "EamTechnicalStatusEvaluationOrderList",
|
mixins:[JeecgListMixin],
|
components: {
|
EamTechnicalStatusEvaluationOrderModal
|
},
|
data () {
|
return {
|
description: '技术状态鉴定工单管理页面',
|
// 表头
|
columns: [
|
{
|
title: '#',
|
dataIndex: '',
|
key:'rowIndex',
|
width:60,
|
align:"center",
|
customRender:function (t,r,index) {
|
return parseInt(index)+1;
|
}
|
},
|
{
|
title: '删除标记',
|
align:"center",
|
dataIndex: 'delFlag'
|
},
|
{
|
title: '工单号',
|
align:"center",
|
dataIndex: 'orderNum'
|
},
|
{
|
title: '设备ID',
|
align:"center",
|
dataIndex: 'equipmentId'
|
},
|
{
|
title: '规范ID',
|
align:"center",
|
dataIndex: 'standardId'
|
},
|
{
|
title: '计划鉴定日期;提前70天生成工单',
|
align:"center",
|
dataIndex: 'evaluationDate'
|
},
|
{
|
title: '锁定工单日期;提前55天锁定工单',
|
align:"center",
|
dataIndex: 'freezeOrderDate'
|
},
|
{
|
title: '工单过期日期;到期未做直接过期,并修改设备技术状态为禁用',
|
align:"center",
|
dataIndex: 'orderExpirationDate'
|
},
|
{
|
title: '实际开始时间',
|
align:"center",
|
dataIndex: 'actualStartTime'
|
},
|
{
|
title: '实际结束时间',
|
align:"center",
|
dataIndex: 'actualEndTime'
|
},
|
{
|
title: '鉴定人',
|
align:"center",
|
dataIndex: 'evaluator'
|
},
|
{
|
title: '鉴定状态;待鉴定、鉴定中、维修室主任签字、工艺人员签字、技术主管签字、设备检验员签字、已完成、已锁定、变更中、已过期',
|
align:"center",
|
dataIndex: 'evaluationStatus'
|
},
|
{
|
title: '创建方式',
|
align:"center",
|
dataIndex: 'creationMethod'
|
},
|
{
|
title: '安全装置检查结果;是、否',
|
align:"center",
|
dataIndex: 'safetyEquipmentCheckResult'
|
},
|
{
|
title: '精度参数检查结果;是、否、无',
|
align:"center",
|
dataIndex: 'precisionCheckResult'
|
},
|
{
|
title: '功能状态检查结果;是、否',
|
align:"center",
|
dataIndex: 'functionalCheckResult'
|
},
|
{
|
title: '其他检查结果;是、否、无',
|
align:"center",
|
dataIndex: 'otherCheckResult'
|
},
|
{
|
title: '维修室主任签字',
|
align:"center",
|
dataIndex: 'repairManagerSignature'
|
},
|
{
|
title: '维修室主任签字时间',
|
align:"center",
|
dataIndex: 'repairManagerSignatureTime1'
|
},
|
{
|
title: '试件检查结果;合格、不合格',
|
align:"center",
|
dataIndex: 'sampleCheckResult'
|
},
|
{
|
title: '工艺员签字',
|
align:"center",
|
dataIndex: 'processTechnicianSignature'
|
},
|
{
|
title: '工艺员签字时间',
|
align:"center",
|
dataIndex: 'processTechnicianSignatureTime'
|
},
|
{
|
title: '鉴定结果;合格、限用、禁用',
|
align:"center",
|
dataIndex: 'evaluationResult'
|
},
|
{
|
title: '限\禁用原因(多选);安全装置、设备功能、精度、试件、其他',
|
align:"center",
|
dataIndex: 'evaluationReason'
|
},
|
{
|
title: '设备检查人签字',
|
align:"center",
|
dataIndex: 'inspectorSignature'
|
},
|
{
|
title: '设备检查人签字时间',
|
align:"center",
|
dataIndex: 'inspectorSignatureTime'
|
},
|
{
|
title: '附录A HF编码',
|
align:"center",
|
dataIndex: 'hfCodeA'
|
},
|
{
|
title: '附录B HF编码',
|
align:"center",
|
dataIndex: 'hfCodeB'
|
},
|
{
|
title: '附录C HF编码',
|
align:"center",
|
dataIndex: 'hfCodeC'
|
},
|
{
|
title: '附录D HF编码',
|
align:"center",
|
dataIndex: 'hfCodeD'
|
},
|
{
|
title: '备注',
|
align:"center",
|
dataIndex: 'remark'
|
},
|
{
|
title: '操作',
|
dataIndex: 'action',
|
align:"center",
|
scopedSlots: { customRender: 'action' },
|
}
|
],
|
url: {
|
list: "/eam/eamTechnicalStatusEvaluationOrder/list",
|
delete: "/eam/eamTechnicalStatusEvaluationOrder/delete",
|
deleteBatch: "/eam/eamTechnicalStatusEvaluationOrder/deleteBatch",
|
exportXlsUrl: "eam/eamTechnicalStatusEvaluationOrder/exportXls",
|
importExcelUrl: "eam/eamTechnicalStatusEvaluationOrder/importExcel",
|
},
|
}
|
},
|
computed: {
|
importExcelUrl: function(){
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
}
|
},
|
methods: {
|
|
}
|
}
|
</script>
|
<style scoped>
|
@import '~@assets/less/common.less';
|
</style>
|