<template>
|
<a-card
|
:bordered="false"
|
title="三级保养"
|
>
|
<!-- 查询区域 -->
|
<div class="table-page-search-wrapper">
|
<a-form
|
layout="inline"
|
@keyup.enter.native="searchQuery"
|
>
|
<a-row :gutter="24">
|
<a-col
|
:md="6"
|
:sm="8"
|
>
|
<a-form-item label="统一编号">
|
<a-input
|
placeholder="请输入统一编号"
|
v-model="queryParam.equipmentNum"
|
></a-input>
|
</a-form-item>
|
</a-col>
|
<a-col
|
:md="6"
|
:sm="8"
|
>
|
<a-form-item label="保养工单编码">
|
<a-input
|
placeholder="请输入保养工单编码"
|
v-model="queryParam.num"
|
></a-input>
|
</a-form-item>
|
</a-col>
|
<a-col :span="6">
|
<a-form-item label="使用部门">
|
<j-dict-select-tag
|
dictCode="sys_depart,depart_name,id"
|
placeholder="请输入使用部门"
|
v-model="queryParam.useDepartId"
|
/>
|
</a-form-item>
|
</a-col>
|
<a-col :span="6">
|
<a-form-item label="状态">
|
<j-dict-select-tag
|
dictCode="daily_maintenance_order_status"
|
placeholder="请选择状态"
|
v-model="queryParam.status"
|
/>
|
</a-form-item>
|
</a-col>
|
</a-row>
|
<a-row :gutter="24">
|
<a-col :span="6">
|
<a-form-item label="责任班组">
|
<j-dict-select-tag
|
dictCode="mom_base_team,name,id,status='1' and del_flag='0'"
|
placeholder="请选择责任班组"
|
v-model="queryParam.teamId"
|
/>
|
</a-form-item>
|
</a-col>
|
<a-col :span="7">
|
<a-form-item label="完工时间">
|
<a-range-picker
|
style="width: 100%;"
|
format="YYYY-MM-DD HH:mm:ss"
|
v-model="finishTime"
|
@change="timeChange"
|
/>
|
</a-form-item>
|
</a-col>
|
</a-row>
|
</a-form>
|
</div>
|
<!-- 查询区域-END -->
|
|
<!-- 操作按钮区域 -->
|
<div class="table-operator">
|
<a-button
|
@click="handleAdd"
|
type="primary"
|
icon="plus"
|
v-has="'daily3MaintenanceOrder:add'"
|
>新增</a-button>
|
<a-button
|
type="primary"
|
@click="searchQuery"
|
icon="search"
|
style="margin-left: 8px"
|
>查询</a-button>
|
<a-button
|
type="primary"
|
@click="searchReset"
|
icon="reload"
|
style="margin-left: 8px"
|
>重置</a-button>
|
<a-button
|
v-show="selectedRowKeys.length == 1 && selectionRows[0].status === '5' && selectionRows[0].isNotStoveCategoryFlag == false && selectionRows[0].precisionParameters == '1' "
|
@click="handlePrintPrecision(selectionRows[0])"
|
type="primary"
|
style="margin-left: 8px"
|
>精度检验单打印
|
</a-button>
|
<a-button
|
v-show="selectedRowKeys.length == 1 && selectionRows[0].status === '5'"
|
@click="handlePrintCheck(selectionRows[0])"
|
type="primary"
|
style="margin-left: 8px"
|
>验收单打印
|
</a-button>
|
<!-- v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '8'" -->
|
<a-button
|
v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '8'"
|
@click="handlePrintInfo(selectionRows[0])"
|
type="primary"
|
style="margin-left: 8px"
|
>移交单打印
|
</a-button>
|
<a-button
|
v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '5' && selectionRows[0].isNotStoveCategoryFlag == false && selectionRows[0].precisionParameters != '1'"
|
@click="handlePrintTechnology(selectionRows[0])"
|
type="primary"
|
style="margin-left: 8px"
|
>技术状态鉴定打印
|
</a-button>
|
<a-button
|
v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '5' && selectionRows[0].isNotStoveCategoryFlag == true"
|
@click="handlePrintStove(selectionRows[0])"
|
type="primary"
|
style="margin-left: 8px"
|
>炉类检测打印
|
</a-button>
|
<!-- <a-button
|
v-if="selectedRowKeys.length > 0"
|
type="primary"
|
@click="batchAssign"
|
style="margin-left: 8px"
|
>工单派工</a-button> -->
|
<!-- <a-button
|
type="primary"
|
icon="download"
|
@click="handleExportXls('mom_eam_inspection_order')"
|
>导出</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>
|
|
<div>
|
<a-table
|
ref="table"
|
size="middle"
|
:scroll="{ x: 'calc(3500px + 50%)', y: 900 }"
|
bordered
|
rowKey="id"
|
:columns="columns"
|
:dataSource="dataSource"
|
:pagination="ipagination"
|
:loading="loading"
|
class="j-table-force-nowrap"
|
@change="handleTableChange"
|
:rowSelection="rowSelection"
|
:rowClassName="tableRowClass"
|
>
|
|
<span
|
slot="action"
|
slot-scope="text, record"
|
>
|
<a-popconfirm
|
title="确定接收工单吗?"
|
@confirm="() => handleOrderIssue(record)"
|
v-has="'daily3MaintenanceOrder:issue'"
|
>
|
<a v-show="record.status == '1'">接收</a>
|
</a-popconfirm>
|
<a-divider
|
v-show="record.status == '1'"
|
type="vertical"
|
/>
|
<!-- <a
|
v-if="record.status === '2'"
|
@click="handleOrderChange(record)"
|
>计划变更</a>
|
<a-divider
|
v-if="record.status == '2'"
|
type="vertical"
|
/> -->
|
<a-popconfirm
|
title="确定撤回工单吗?"
|
@confirm="() => handleOrderReset(record)"
|
v-has="'daily3MaintenanceOrder:issue'"
|
>
|
<a v-show="record.status == '2'">撤回</a>
|
</a-popconfirm>
|
<a-divider
|
v-show="record.status == '2'"
|
type="vertical"
|
/>
|
<!-- <a-popconfirm
|
title="确定恢复工单吗?"
|
@confirm="() => handleOrderRecover(record)"
|
v-has="'dailyMaintenanceOrder:recover'"
|
>
|
<a v-if="record.status == '7'">恢复</a>
|
</a-popconfirm>
|
<a-divider
|
v-if="record.status == '7'"
|
type="vertical"
|
/> -->
|
<!-- <a-popconfirm
|
title="确定作废工单吗?"
|
@confirm="() => handleOrderCancel(record)"
|
v-has="'dailyMaintenanceOrder:recover'"
|
>
|
<a v-if="record.status == '2'">作废</a>
|
</a-popconfirm>
|
<a-divider
|
v-if="record.status == '2'"
|
type="vertical"
|
/> -->
|
<a-popconfirm
|
title="确定领取工单吗?"
|
@confirm="() => handleOrderGet(record)"
|
v-has="'daily3MaintenanceOrder:get'"
|
>
|
<a v-show="record.status == '2' && record.assignMode == '1'">领取</a>
|
</a-popconfirm>
|
<!-- <a
|
v-if="record.status == '2' && record.assignMode == '2' "
|
@click="handleAssignOrder(record)"
|
v-has="'dailyMaintenanceOrder:assign'"
|
>派工</a>
|
<a
|
v-if="record.status == '3'&& record.assignMode == '2' && record.maintenanceUserName != null "
|
@click="handleAssignOrder(record)"
|
v-has="'dailyMaintenanceOrder:assign'"
|
>改派</a> -->
|
<!-- <a
|
v-if="record.status == '3'"
|
@click="handleAssignOrder(record)"
|
>改派</a> -->
|
<!-- <a-divider
|
v-if="record.status == '2'"
|
type="vertical"
|
/>-->
|
<a-divider
|
v-show="record.status === '2'"
|
type="vertical"
|
/>
|
<a
|
v-show="record.status === '3' || record.status === '4' "
|
@click="handleOrderExe(record)"
|
v-has="'daily3MaintenanceOrder:exe'"
|
>执行</a>
|
<a-divider
|
v-if="record.status === '3' || record.status === '4' "
|
type="vertical"
|
/>
|
<a
|
v-show="record.status === '1'"
|
@click="handleEdit(record)"
|
v-has="'daily3MaintenanceOrder:edit'"
|
>编辑</a>
|
<a-divider
|
v-show="record.status === '1'"
|
type="vertical"
|
/>
|
<!-- <a
|
v-if="record.status === '5'"
|
@click="handleFinish(record)"
|
>确认</a>
|
<a-divider
|
v-if="record.status === '5'"
|
type="vertical"
|
/> -->
|
<!-- 精度检验者操作精度检验单 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '0' )"
|
@click="handlePrecisionCheckOrder(record)"
|
v-has="'daily3MaintenanceOrder:precisionInspectionUser'"
|
>精度检验</a>
|
<!-- 维修室主任操作精度检验单 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '1' )"
|
@click="handlePrecisionCheckOrder(record)"
|
v-has="'daily3MaintenanceOrder:repairDirectorUser'"
|
>精度检验</a>
|
<!-- 设备检验员操作精度检验单 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '2' )"
|
@click="handlePrecisionCheckOrder(record)"
|
v-has="'daily3MaintenanceOrder:equipmentInspectorUser'"
|
>精度检验</a>
|
<!-- 使用单位技术主管操作精度检验单 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '3' )"
|
@click="handlePrecisionCheckOrder(record)"
|
v-has="'daily3MaintenanceOrder:useUnitDirectorUser'"
|
>精度检验</a>
|
<!-- 设备检验员签字 操作精度检验单 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '4')"
|
@click="handlePrecisionCheckOrder(record)"
|
v-has="'daily3MaintenanceOrder:equipmentInspectorSignUser'"
|
>精度检验</a>
|
<!-- 精度检验单 查看 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '5')"
|
@click="handlePrecisionCheckOrder(record)"
|
>精度检验</a>
|
<!--管理员操作精度检验单 -->
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' && (record.precisionInspectionStatus == '0' ||record.precisionInspectionStatus == '1' ||record.precisionInspectionStatus == '2' ||record.precisionInspectionStatus == '3' ||record.precisionInspectionStatus == '4' )"
|
@click="handlePrecisionCheckOrder(record)"
|
v-has="'daily3MaintenanceOrder:admin'"
|
>精度检验</a>
|
<a-divider
|
v-show="record.status === '5'&& record.isNotStoveCategoryFlag == false && record.precisionParameters == '1' "
|
type="vertical"
|
/>
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == true "
|
@click="handleStoveDetection(record)"
|
v-has="'daily3MaintenanceOrder:StoveCategory'"
|
>炉类检测</a>
|
<!-- v-show="record.status === '5' && record.isNotStoveCategoryFlag == true && (record.stoveExemptStatus == '0' ||record.stoveExemptStatus == '1' ||record.stoveExemptStatus == '2')" -->
|
<a-divider
|
v-show=" record.status === '5' && record.isNotStoveCategoryFlag == true "
|
type="vertical"
|
/>
|
<a
|
v-show=" record.status === '5' && record.isNotStoveCategoryFlag == true "
|
@click="handleStoveReport(record)"
|
v-has="'daily3MaintenanceOrder:StoveCategoryReport'"
|
>炉类报告</a>
|
<a-divider
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == true "
|
type="vertical"
|
/>
|
<a
|
v-show="record.status === '5' && record.isNotStoveCategoryFlag == false && record.precisionParameters != '1'"
|
@click="handleTechnologyStatus(record)"
|
v-has="'daily3MaintenanceOrder:TechnologyStatus'"
|
>技术状态鉴定</a>
|
<a-divider
|
v-show="record.status === '5'&& record.isNotStoveCategoryFlag == false && record.precisionParameters != '1'"
|
type="vertical"
|
/>
|
<a
|
v-show="record.status === '5' "
|
@click="handleMaintenance3Receipt(record)"
|
v-has="'daily3MaintenanceOrder:Receipt'"
|
>验收单</a>
|
<a-divider
|
v-show="record.status === '5' "
|
type="vertical"
|
/>
|
<a-dropdown>
|
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
<a-menu slot="overlay">
|
<a-menu-item>
|
<a @click="handleDetail(record)">详情</a>
|
</a-menu-item>
|
<a-menu-item>
|
<a-popconfirm
|
title="确定删除吗?"
|
@confirm="() => handleDelete(record.id)"
|
v-has="'daily3MaintenanceOrder:delete'"
|
>
|
<a v-show="record.status === '1'">删除</a>
|
</a-popconfirm>
|
</a-menu-item>
|
</a-menu>
|
</a-dropdown>
|
</span>
|
|
<span
|
slot="num"
|
slot-scope="text, record"
|
>
|
<a
|
v-if="record.status === '3' || record.status === '4' ||record.status === '5' ||record.status === '7' "
|
class="lot"
|
@click="handleOrderExe(record)"
|
>{{record.num}}</a>
|
<span v-else>{{record.num}}</span>
|
</span>
|
|
<span
|
slot="notPassReason"
|
slot-scope="text"
|
>
|
<j-ellipsis
|
:value="text"
|
:length="15"
|
/>
|
</span>
|
|
</a-table>
|
</div>
|
|
<maintenance-order3-modal
|
ref="modalForm"
|
@ok="modalFormOk"
|
></maintenance-order3-modal>
|
<finish-devolution-modal
|
ref="FinishDevolutionModal"
|
@ok="modalFormOk"
|
></finish-devolution-modal>
|
<maintenance-order-change-modal
|
ref="MaintenanceOrderChangeModal"
|
@ok="modalFormOk"
|
></maintenance-order-change-modal>
|
<equipment-precision-check-order-modal
|
ref="EquipmentPrecisionCheckOrderModal"
|
@ok="modalFormOk"
|
></equipment-precision-check-order-modal>
|
<stove-category-modal
|
ref="StoveCategoryModal"
|
@ok="modalFormOk"
|
></stove-category-modal>
|
<stove-category-report-modal
|
ref="StoveCategoryReportModal"
|
@ok="modalFormOk"
|
></stove-category-report-modal>
|
<maintenance-order-assign-modal
|
ref="MaintenanceOrderAssignModal"
|
@ok="modalFormOk"
|
></maintenance-order-assign-modal>
|
<daily-maintenance-order-exe-drawer
|
ref="DailyMaintenanceOrderExeDrawer"
|
@ok="modalFormOk"
|
></daily-maintenance-order-exe-drawer>
|
<equipment-technology-status-modal
|
ref="EquipmentTechnologyStatusModal"
|
@ok="modalFormOk"
|
></equipment-technology-status-modal>
|
<technology-status-authenticate-modal
|
ref="TechnologyStatusAuthenticateModal"
|
@ok="modalFormOk"
|
></technology-status-authenticate-modal>
|
<maintenance-3-receipt-modal
|
ref="Maintenance3ReceiptModal"
|
@ok="modalFormOk"
|
></maintenance-3-receipt-modal>
|
</a-card>
|
</template>
|
|
<script>
|
|
import '@/assets/less/TableExpand.less'
|
import { mixinDevice } from '@/utils/mixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import MaintenanceOrder3Modal from './modules/daily3MaintenanceOrder/MaintenanceOrder3Modal'
|
import FinishDevolutionModal from './modules/dailyMaintenanceOrder/FinishDevolutionModal'
|
import MaintenanceOrderChangeModal from './modules/dailyMaintenanceOrder/MaintenanceOrderChangeModal'
|
import EquipmentPrecisionCheckOrderModal from './modules/daily3MaintenanceOrder/EquipmentPrecisionCheckOrderModal'
|
import StoveCategoryModal from './modules/daily3MaintenanceOrder/StoveCategoryModal'
|
import StoveCategoryReportModal from './modules/daily3MaintenanceOrder/StoveCategoryReportModal'
|
import MaintenanceOrderAssignModal from './modules/dailyMaintenanceOrder/MaintenanceOrderAssignModal'
|
import DailyMaintenanceOrderExeDrawer from './modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer'
|
import EquipmentTechnologyStatusModal from './modules/daily3MaintenanceOrder/EquipmentTechnologyStatusModal'
|
import TechnologyStatusAuthenticateModal from './modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal'
|
import Maintenance3ReceiptModal from './modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue'
|
import { getAction, postAction, requestPut } from '@/api/manage'
|
import JEllipsis from "@/components/jeecg/JEllipsis";
|
import moment from 'moment'
|
|
export default {
|
name: 'DailyMaintenanceOrderList',
|
mixins: [JeecgListMixin, mixinDevice],
|
components: {
|
MaintenanceOrder3Modal,
|
FinishDevolutionModal,
|
MaintenanceOrderAssignModal,
|
EquipmentPrecisionCheckOrderModal,
|
DailyMaintenanceOrderExeDrawer,
|
MaintenanceOrderChangeModal,
|
StoveCategoryModal,
|
StoveCategoryReportModal,
|
EquipmentTechnologyStatusModal,
|
TechnologyStatusAuthenticateModal,
|
Maintenance3ReceiptModal,
|
JEllipsis
|
},
|
data() {
|
return {
|
description: '三级保养工单',
|
queryParam: { maintenanceType: '3' },
|
finishTime: [],
|
// 表头
|
columns: [
|
{
|
title: '#',
|
dataIndex: '',
|
key: 'rowIndex',
|
width: 60,
|
align: "center",
|
customRender: function (t, r, index) {
|
return parseInt(index) + 1;
|
}
|
},
|
{
|
title: '保养工单号',
|
align: "center",
|
dataIndex: 'num',
|
scopedSlots: { customRender: 'num' }
|
},
|
{
|
title: '统一编码',
|
align: "center",
|
dataIndex: 'equipmentNum',
|
},
|
{
|
title: '状态',
|
align: "center",
|
dataIndex: 'statusName',
|
width: 100,
|
},
|
{
|
title: '保养周期',
|
align: "center",
|
dataIndex: 'maintenanceCycleName',
|
width: 100,
|
},
|
// {
|
// title: '派工方式',
|
// align: "center",
|
// dataIndex: 'assignModeName',
|
// width: 100,
|
// },
|
|
{
|
title: '设备名称',
|
align: "center",
|
dataIndex: 'equipmentName',
|
},
|
{
|
title: '型号',
|
align: "center",
|
dataIndex: 'equipmentModel',
|
},
|
{
|
title: '验收状态',
|
align: "center",
|
dataIndex: 'checkStatusName',
|
},
|
{
|
title: '验收未通过原因',
|
align: "center",
|
dataIndex: 'notPassReason',
|
scopedSlots: { customRender: 'notPassReason' }
|
},
|
// {
|
// title: '保养标准编码',
|
// align: "center",
|
// dataIndex: 'maintenanceStandardNum',
|
// },
|
|
{
|
title: '使用部门',
|
align: "center",
|
dataIndex: 'departName'
|
},
|
{
|
title: '责任班组',
|
align: "center",
|
dataIndex: 'teamName'
|
},
|
// {
|
// title: '工时定额',
|
// align: "center",
|
// dataIndex: 'workingHourQuota'
|
// },
|
{
|
title: '计划开始时间',
|
align: "center",
|
dataIndex: 'planStartTime',
|
//width: '120px',
|
},
|
// {
|
// title: '计划结束时间',
|
// align: "center",
|
// dataIndex: 'planEndTime',
|
// //width: '120px',
|
// },
|
{
|
title: '执行时间',
|
align: "center",
|
dataIndex: 'actualStartTime',
|
//width: '120px',
|
},
|
{
|
title: '完工时间',
|
align: "center",
|
dataIndex: 'actualEndTime',
|
//width: '120px',
|
},
|
// {
|
// title: '实际用时',
|
// align: "center",
|
// dataIndex: 'actualWorkingHourQuota',
|
// },
|
// {
|
// title: '报工人',
|
// align: "center",
|
// dataIndex: 'maintenanceUserId'
|
// },
|
{
|
title: '问题及相应处理措施描述',
|
align: "center",
|
dataIndex: 'description'
|
},
|
{
|
title: '创建人',
|
align: "center",
|
dataIndex: 'createBy'
|
},
|
{
|
title: '创建日期',
|
align: "center",
|
dataIndex: 'createTime',
|
//width: '120px',
|
},
|
{
|
title: '操作',
|
dataIndex: 'action',
|
align: "center",
|
fixed: "right",
|
width: 300,
|
scopedSlots: { customRender: 'action' }
|
}
|
],
|
url: {
|
list: "/eam/dailyMaintenanceOrder/getDailyMaintenanceOrder3List",
|
delete: "/eam/dailyMaintenanceOrder/delete",
|
deleteBatch: "/eam/dailyMaintenanceOrder/deleteBatch",
|
exportXlsUrl: "/eam/dailyMaintenanceOrder/exportXls",
|
importExcelUrl: "eam/dailyMaintenanceOrder/importExcel",
|
edit: "/eam/dailyMaintenanceOrder/editStatus",
|
orderGet: "/eam/dailyMaintenanceOrder/orderGet",
|
},
|
}
|
},
|
|
computed: {
|
importExcelUrl: function () {
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
},
|
rowSelection() {
|
return {
|
type: 'checkbox',
|
onChange: (selectedRowKeys, selectedRows) => {
|
this.selectedRowKeys = selectedRowKeys;
|
this.onSelectChange(selectedRows);
|
},
|
getCheckboxProps: record => ({
|
props: {
|
disabled: record.distable
|
},
|
}),
|
selectedRowKeys: this.selectedRowKeys,
|
};
|
},
|
},
|
|
methods: {
|
|
// batchAssign() {
|
// this.$refs.MaintenanceOrderAssignModal.visible = true
|
// this.$refs.MaintenanceOrderAssignModal.title = '工单派工'
|
// this.$refs.MaintenanceOrderAssignModal.selectionRows
|
// this.$refs.MaintenanceOrderAssignModal.handleShow()
|
// this.$bus.$emit('selectionRows', this.selectionRows);
|
// },
|
onSelectChange(selectionRows) {
|
this.selectionRows = selectionRows;
|
},
|
|
handlePrintPrecision(record) {
|
let href = `${window._CONFIG['domianURL']}/jmreport/view/858844938446508032?id=` + record.id; //网站链接
|
window.open(href, "_blank");
|
},
|
|
handlePrintCheck(record) {
|
let href = `${window._CONFIG['domianURL']}/jmreport/view/858867141388996608?id=` + record.id; //网站链接
|
window.open(href, "_blank");
|
},
|
|
|
handlePrintInfo(record) {
|
let href = `${window._CONFIG['domianURL']}/jmreport/view/858930685061042176?id=` + record.id; //网站链接
|
window.open(href, "_blank");
|
},
|
|
handlePrintTechnology(record) {
|
let href = `${window._CONFIG['domianURL']}/jmreport/view/932475014657814528?id=` + record.id; //网站链接
|
window.open(href, "_blank");
|
},
|
|
handlePrintStove(record) {
|
let href = `${window._CONFIG['domianURL']}/jmreport/view/932491838782910464?id=` + record.id; //网站链接
|
window.open(href, "_blank");
|
},
|
|
handleOrderExe(record) {
|
this.$refs.DailyMaintenanceOrderExeDrawer.visible = true
|
this.$refs.DailyMaintenanceOrderExeDrawer.title = '三级保养工单执行'
|
this.$refs.DailyMaintenanceOrderExeDrawer.handleShow(record)
|
if (record.status === '3') {
|
this.$refs.DailyMaintenanceOrderExeDrawer.buttonDistable = true//保存、暂存、报工
|
this.$refs.DailyMaintenanceOrderExeDrawer.revocationDistable = true//撤销按钮
|
this.$refs.DailyMaintenanceOrderExeDrawer.SWbuttonDistable = false//开工按钮
|
} else if (record.status === '4') {
|
this.$refs.DailyMaintenanceOrderExeDrawer.buttonDistable = false
|
this.$refs.DailyMaintenanceOrderExeDrawer.revocationDistable = true
|
this.$refs.DailyMaintenanceOrderExeDrawer.SWbuttonDistable = true
|
} else if (record.status === '5') {
|
this.$refs.DailyMaintenanceOrderExeDrawer.buttonDistable = true
|
this.$refs.DailyMaintenanceOrderExeDrawer.revocationDistable = false
|
this.$refs.DailyMaintenanceOrderExeDrawer.SWbuttonDistable = true
|
} else if (record.status === '7') {
|
this.$refs.DailyMaintenanceOrderExeDrawer.buttonDistable = true
|
this.$refs.DailyMaintenanceOrderExeDrawer.revocationDistable = true
|
this.$refs.DailyMaintenanceOrderExeDrawer.SWbuttonDistable = true
|
}
|
},
|
|
handleFinish: function (record) {
|
this.$refs.FinishDevolutionModal.edit(record);
|
this.$refs.FinishDevolutionModal.title = "生产设备二级保养完工移交单";
|
this.$refs.FinishDevolutionModal.disableSubmit = false;
|
},
|
|
handlePrecisionCheckOrder: function (record) {
|
this.$refs.EquipmentPrecisionCheckOrderModal.edit(record);
|
this.$refs.EquipmentPrecisionCheckOrderModal.title = "生产设备精度检验单";
|
this.$refs.EquipmentPrecisionCheckOrderModal.disableSubmit = false;
|
},
|
|
handleTechnologyStatus: function (record) {
|
// this.$refs.EquipmentTechnologyStatusModal.edit(record);
|
// this.$refs.EquipmentTechnologyStatusModal.title = "技术状态编辑";
|
// this.$refs.EquipmentTechnologyStatusModal.disableSubmit = false;
|
this.$refs.TechnologyStatusAuthenticateModal.edit(record);
|
this.$refs.TechnologyStatusAuthenticateModal.title = "技术状态编辑";
|
this.$refs.TechnologyStatusAuthenticateModal.disableSubmit = false;
|
|
},
|
|
handleStoveDetection: function (record) {
|
this.$refs.StoveCategoryModal.edit(record);
|
this.$refs.StoveCategoryModal.title = "温度均匀性检测条件确认表";
|
this.$refs.StoveCategoryModal.disableSubmit = false;
|
},
|
handleStoveReport: function (record) {
|
this.$refs.StoveCategoryReportModal.add();
|
this.$refs.StoveCategoryReportModal.title = "炉类设备报告上传";
|
this.$refs.StoveCategoryReportModal.disableSubmit = false;
|
this.$refs.StoveCategoryReportModal.maintenanceStandardId = record.id
|
this.$refs.StoveCategoryReportModal.equipmentId = record.equipmentId
|
},
|
|
handleOrderChange: function (record) {
|
this.$refs.MaintenanceOrderChangeModal.edit(record);
|
this.$refs.MaintenanceOrderChangeModal.title = "温度均匀性检测条件确认表";
|
this.$refs.MaintenanceOrderChangeModal.disableSubmit = false;
|
},
|
|
handleMaintenance3Receipt: function (record) {
|
this.$refs.Maintenance3ReceiptModal.edit(record);
|
this.$refs.Maintenance3ReceiptModal.title = "生产设备三级保养验收单";
|
this.$refs.Maintenance3ReceiptModal.disableSubmit = false;
|
},
|
|
handleOrderIssue(record) {
|
const that = this;
|
requestPut(that.url.edit, { id: record.id, status: '2' }).then((res) => {
|
if (res.success) {
|
that.$message.success("工单下发成功!")
|
that.loadData()
|
} else {
|
that.$message.warning("工单下发失败!")
|
}
|
})
|
},
|
//撤回
|
handleOrderReset(record) {
|
const that = this;
|
requestPut(that.url.edit, { id: record.id, status: '1' }).then((res) => {
|
if (res.success) {
|
that.$message.success("工单撤回成功!")
|
that.loadData()
|
} else {
|
that.$message.warning("工单撤回失败!")
|
}
|
})
|
},
|
handleOrderGet(record) {
|
const that = this;
|
requestPut(that.url.orderGet, { id: record.id, status: '1' }).then((res) => {
|
if (res.success) {
|
that.$message.success("工单领取成功!")
|
that.loadData()
|
} else {
|
that.$message.warning("工单领取失败!")
|
}
|
})
|
},
|
//作废
|
handleOrderCancel(record) {
|
const that = this;
|
requestPut(that.url.edit, { id: record.id, status: '7' }).then((res) => {
|
if (res.success) {
|
that.$message.success("工单作废成功!")
|
that.loadData()
|
} else {
|
that.$message.warning("工单作废失败!")
|
}
|
})
|
},
|
|
//恢复
|
handleOrderRecover(record) {
|
const that = this;
|
requestPut(that.url.edit, { id: record.id, status: '2' }).then((res) => {
|
if (res.success) {
|
that.$message.success("工单恢复成功!")
|
that.loadData()
|
} else {
|
that.$message.warning("工单恢复失败!")
|
}
|
})
|
},
|
|
//改派
|
handleAssignOrder: function (record) {
|
this.$refs.MaintenanceOrderAssignModal.edit(record)
|
this.$refs.MaintenanceOrderAssignModal.title = '工单改派'
|
this.$refs.MaintenanceOrderAssignModal.disableSubmit = false
|
},
|
|
searchReset() {
|
this.onClearSelected();
|
this.queryParam = { maintenanceType: '3' }
|
this.loadData(1);
|
this.finishTime = []
|
},
|
// modalFormOk() {
|
// alert(0)
|
// // 新增/修改 成功时,重载列表
|
// this.loadData();
|
// //清空列表选中
|
// this.onClearSelected()
|
// },
|
timeChange() {
|
this.queryParam.finishStartTime = moment(this.finishTime[0]).format("YYYY-MM-DD HH:mm:ss")
|
this.queryParam.finishEndTime = moment(this.finishTime[1]).format("YYYY-MM-DD HH:mm:ss")
|
},
|
|
//预警颜色
|
tableRowClass(record, index) {
|
if ("1" == record.status || "2" == record.status) {
|
if (record.yellowWarningTime < record.currentDateTime && record.currentDateTime < record.redWarningTime) {
|
return 'yellow'
|
} else if (record.redWarningTime < record.currentDateTime && record.currentDateTime < record.planStartTime) {
|
return 'error'
|
} else if (record.planStartTime < record.currentDateTime) {
|
return 'frozenRowClass'
|
}
|
}
|
},
|
}
|
}
|
</script>
|
<style >
|
@import '~@assets/less/common.less';
|
.frozenRowClass {
|
color: #c9c9c9;
|
font-weight: bold;
|
}
|
.success {
|
color: green;
|
}
|
.error {
|
color: red;
|
font-weight: bold;
|
}
|
.yellow {
|
color: yellow;
|
font-weight: bold;
|
}
|
.fontweight {
|
font-weight: bold;
|
}
|
|
.ant-table-tbody .red {
|
background-color: red !important;
|
}
|
</style>
|