| | |
| | | <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-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="统一编码"> |
| | | <technical-status-equipment-select placeholder="请输入统一编码或名称搜索" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="工单号"> |
| | | <a-input placeholder="请输入工单号" v-model="queryParam.orderNum"></a-input> |
| | | <a-input placeholder="请输入工单号" v-model="queryParam.orderNum"/> |
| | | </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-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="计划鉴定日期"> |
| | | <a-date-picker v-model="queryParam.evaluationDate" style="width: 100%"/> |
| | | </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"> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="12"> |
| | | <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"> |
| | | <a-table bordered rowKey="id" :columns="columns" :dataSource="dataSource" :pagination="ipagination" |
| | | :scroll="{ x: 'max-content' }" :loading="loading" @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 v-if="record.evaluationStatus=='WAIT_EVALUATION'" title="确定领取吗?" |
| | | @confirm="handleReceive(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> |
| | | <eamTechnicalStatusEvaluationOrder-modal ref="modalForm" @ok="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import EamTechnicalStatusEvaluationOrderModal from './modules/EamTechnicalStatusEvaluationOrderModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import TechnicalStatusEquipmentSelect from '../equipment/modules/TechnicalStatusEquipmentSelect' |
| | | import { getAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: "EamTechnicalStatusEvaluationOrderList", |
| | | name: 'EamTechnicalStatusEvaluationOrderList', |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | TechnicalStatusEquipmentSelect, |
| | | EamTechnicalStatusEvaluationOrderModal |
| | | }, |
| | | data () { |
| | |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | align: 'center', |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '删除标记', |
| | | align:"center", |
| | | dataIndex: 'delFlag' |
| | | title: '统一编码', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '工单号', |
| | | align:"center", |
| | | dataIndex: 'orderNum' |
| | | align: 'center', |
| | | dataIndex: 'orderNum', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备ID', |
| | | align:"center", |
| | | dataIndex: 'equipmentId' |
| | | title: '计划鉴定日期', |
| | | align: 'center', |
| | | dataIndex: 'evaluationDate', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '规范ID', |
| | | align:"center", |
| | | dataIndex: 'standardId' |
| | | }, |
| | | { |
| | | title: '计划鉴定日期;提前70天生成工单', |
| | | align:"center", |
| | | dataIndex: 'evaluationDate' |
| | | }, |
| | | { |
| | | title: '锁定工单日期;提前55天锁定工单', |
| | | align:"center", |
| | | title: '锁定工单日期', |
| | | align: 'center', |
| | | dataIndex: 'freezeOrderDate' |
| | | }, |
| | | { |
| | | title: '工单过期日期;到期未做直接过期,并修改设备技术状态为禁用', |
| | | align:"center", |
| | | title: '工单过期日期', |
| | | align: 'center', |
| | | dataIndex: 'orderExpirationDate' |
| | | }, |
| | | { |
| | | title: '实际开始时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | }, |
| | | { |
| | | title: '实际结束时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | }, |
| | | { |
| | | title: '鉴定人', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'evaluator' |
| | | }, |
| | | { |
| | | title: '鉴定状态;待鉴定、鉴定中、维修室主任签字、工艺人员签字、技术主管签字、设备检验员签字、已完成、已锁定、变更中、已过期', |
| | | align:"center", |
| | | dataIndex: 'evaluationStatus' |
| | | title: '鉴定状态', |
| | | align: 'center', |
| | | dataIndex: 'evaluationStatus_dictText' |
| | | }, |
| | | { |
| | | title: '创建方式', |
| | | align:"center", |
| | | dataIndex: 'creationMethod' |
| | | align: 'center', |
| | | dataIndex: 'creationMethod_dictText' |
| | | }, |
| | | { |
| | | title: '安全装置检查结果;是、否', |
| | | align:"center", |
| | | title: '安全装置检查结果', |
| | | align: 'center', |
| | | dataIndex: 'safetyEquipmentCheckResult' |
| | | }, |
| | | { |
| | | title: '精度参数检查结果;是、否、无', |
| | | align:"center", |
| | | title: '精度参数检查结果', |
| | | align: 'center', |
| | | dataIndex: 'precisionCheckResult' |
| | | }, |
| | | { |
| | | title: '功能状态检查结果;是、否', |
| | | align:"center", |
| | | title: '功能状态检查结果', |
| | | align: 'center', |
| | | dataIndex: 'functionalCheckResult' |
| | | }, |
| | | { |
| | | title: '其他检查结果;是、否、无', |
| | | align:"center", |
| | | title: '其他检查结果', |
| | | align: 'center', |
| | | dataIndex: 'otherCheckResult' |
| | | }, |
| | | { |
| | | title: '维修室主任签字', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'repairManagerSignature' |
| | | }, |
| | | { |
| | | title: '维修室主任签字时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'repairManagerSignatureTime1' |
| | | }, |
| | | { |
| | | title: '试件检查结果;合格、不合格', |
| | | align:"center", |
| | | title: '试件检查结果', |
| | | align: 'center', |
| | | dataIndex: 'sampleCheckResult' |
| | | }, |
| | | { |
| | | title: '工艺员签字', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'processTechnicianSignature' |
| | | }, |
| | | { |
| | | title: '工艺员签字时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'processTechnicianSignatureTime' |
| | | }, |
| | | { |
| | | title: '鉴定结果;合格、限用、禁用', |
| | | align:"center", |
| | | title: '鉴定结果', |
| | | align: 'center', |
| | | dataIndex: 'evaluationResult' |
| | | }, |
| | | { |
| | | title: '限\禁用原因(多选);安全装置、设备功能、精度、试件、其他', |
| | | align:"center", |
| | | title: '限/禁用原因', |
| | | align: 'center', |
| | | dataIndex: 'evaluationReason' |
| | | }, |
| | | { |
| | | title: '设备检查人签字', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignature' |
| | | }, |
| | | { |
| | | title: '设备检查人签字时间', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignatureTime' |
| | | }, |
| | | { |
| | | title: '附录A HF编码', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'hfCodeA' |
| | | }, |
| | | { |
| | | title: '附录B HF编码', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'hfCodeB' |
| | | }, |
| | | { |
| | | title: '附录C HF编码', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'hfCodeC' |
| | | }, |
| | | { |
| | | title: '附录D HF编码', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'hfCodeD' |
| | | }, |
| | | { |
| | | title: '备注', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/eamTechnicalStatusEvaluationOrder/list", |
| | | delete: "/eam/eamTechnicalStatusEvaluationOrder/delete", |
| | | deleteBatch: "/eam/eamTechnicalStatusEvaluationOrder/deleteBatch", |
| | | exportXlsUrl: "eam/eamTechnicalStatusEvaluationOrder/exportXls", |
| | | importExcelUrl: "eam/eamTechnicalStatusEvaluationOrder/importExcel", |
| | | }, |
| | | list: '/eam/eamTechnicalStatusEvaluationOrder/list', |
| | | receive: '/eam/eamTechnicalStatusEvaluationOrder/collect', |
| | | 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}`; |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | handleReceive(id) { |
| | | getAction(this.url.receive, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |