|
|
@ -1,6 +1,13 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
<el-form
|
|
|
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
:inline="true"
|
|
|
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
|
|
|
label-width="100px"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-form-item v-if="false" label="计划id" prop="planId">
|
|
|
|
<el-form-item v-if="false" label="计划id" prop="planId">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.planId"
|
|
|
|
v-model="queryParams.planId"
|
|
|
@ -9,6 +16,14 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="巡检工单号" prop="orderCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.orderCode"
|
|
|
|
|
|
|
|
placeholder="请输入巡检工单号"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划编码" prop="planCode">
|
|
|
|
<el-form-item label="计划编码" prop="planCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.planCode"
|
|
|
|
v-model="queryParams.planCode"
|
|
|
@ -17,16 +32,20 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工单号" prop="orderCode">
|
|
|
|
<el-form-item label="计划名称" prop="planName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.orderCode"
|
|
|
|
v-model="queryParams.planName"
|
|
|
|
placeholder="请输入工单号"
|
|
|
|
placeholder="请输入计划名称"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="车间编码" prop="planWorkshop">
|
|
|
|
<el-form-item label="车间编码" prop="planWorkshop">
|
|
|
|
<el-select v-model="queryParams.planWorkshop" placeholder="请选择车间" clearable>
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="queryParams.planWorkshop"
|
|
|
|
|
|
|
|
placeholder="请选择车间"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="work in workCenterList"
|
|
|
|
v-for="work in workCenterList"
|
|
|
|
:key="work.factoryCode"
|
|
|
|
:key="work.factoryCode"
|
|
|
@ -43,16 +62,6 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="循环周期" prop="planLoop">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.planLoopType" placeholder="请选择循环周期" clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.device_loop_type"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item v-if="false" label="循环周期" prop="planLoop">
|
|
|
|
<el-form-item v-if="false" label="循环周期" prop="planLoop">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.planLoop"
|
|
|
|
v-model="queryParams.planLoop"
|
|
|
@ -62,35 +71,43 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="循环执行时间开始" prop="planLoopStart">
|
|
|
|
<el-form-item v-if="false" label="循环执行时间开始" prop="planLoopStart">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.planLoopStart"
|
|
|
|
v-model="queryParams.planLoopStart"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择循环执行时间开始">
|
|
|
|
placeholder="请选择循环执行时间开始"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="循环执行时间结束" prop="planLoopEnd">
|
|
|
|
<el-form-item v-if="false" label="循环执行时间结束" prop="planLoopEnd">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.planLoopEnd"
|
|
|
|
v-model="queryParams.planLoopEnd"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择循环执行时间结束">
|
|
|
|
placeholder="请选择循环执行时间结束"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="实际开始时间" prop="orderStart">
|
|
|
|
<el-form-item v-if="false" label="实际开始时间" prop="orderStart">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.orderStart"
|
|
|
|
v-model="queryParams.orderStart"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择实际开始时间">
|
|
|
|
placeholder="请选择实际开始时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="实际结束时间" prop="orderEnd">
|
|
|
|
<el-form-item v-if="false" label="实际结束时间" prop="orderEnd">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.orderEnd"
|
|
|
|
v-model="queryParams.orderEnd"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择实际结束时间">
|
|
|
|
placeholder="请选择实际结束时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
@ -112,17 +129,19 @@
|
|
|
|
<el-form-item label="巡检人" prop="planPerson">
|
|
|
|
<el-form-item label="巡检人" prop="planPerson">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.planPerson"
|
|
|
|
v-model="queryParams.planPerson"
|
|
|
|
placeholder="请输入点检人"
|
|
|
|
placeholder="请输入巡检人"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="巡检时间" prop="orderStart">
|
|
|
|
<el-form-item label="巡检时间" prop="orderStart">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.orderStart"
|
|
|
|
v-model="queryParams.orderStart"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择点检时间">
|
|
|
|
placeholder="请选择点检时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="工单用时" prop="orderCostTime">
|
|
|
|
<el-form-item v-if="false" label="工单用时" prop="orderCostTime">
|
|
|
@ -190,11 +209,13 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="创建时间" prop="createTime">
|
|
|
|
<el-form-item v-if="false" label="创建时间" prop="createTime">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.createTime"
|
|
|
|
v-model="queryParams.createTime"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择创建时间">
|
|
|
|
placeholder="请选择创建时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="更新人" prop="updateBy">
|
|
|
|
<el-form-item v-if="false" label="更新人" prop="updateBy">
|
|
|
@ -206,13 +227,29 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="更新时间" prop="updateTime">
|
|
|
|
<el-form-item v-if="false" label="更新时间" prop="updateTime">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
v-model="queryParams.updateTime"
|
|
|
|
v-model="queryParams.updateTime"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择更新时间">
|
|
|
|
placeholder="请选择更新时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="循环周期" prop="planLoopType">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="queryParams.planLoopType"
|
|
|
|
|
|
|
|
placeholder="请选择循环周期"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.device_loop_type"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="循环范围开始" prop="planLoopStart">
|
|
|
|
<el-form-item label="循环范围开始" prop="planLoopStart">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="queryParams.loopStartArray"
|
|
|
|
v-model="queryParams.loopStartArray"
|
|
|
@ -223,7 +260,8 @@
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="循环范围结束" prop="planLoopEnd">
|
|
|
|
<el-form-item label="循环范围结束" prop="planLoopEnd">
|
|
|
@ -236,7 +274,8 @@
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="执行开始时间" prop="orderStart">
|
|
|
|
<el-form-item v-if="false" label="执行开始时间" prop="orderStart">
|
|
|
@ -249,7 +288,8 @@
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="false" label="执行结束时间" prop="orderEnd">
|
|
|
|
<el-form-item v-if="false" label="执行结束时间" prop="orderEnd">
|
|
|
@ -262,12 +302,21 @@
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleQuery"
|
|
|
|
|
|
|
|
>搜索</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
|
|
|
|
|
>重置</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
@ -318,84 +367,244 @@
|
|
|
|
>导出
|
|
|
|
>导出
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar
|
|
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
|
|
@queryTable="getList"
|
|
|
|
|
|
|
|
></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="inspectionWorkList">
|
|
|
|
<el-table v-loading="loading" :data="inspectionWorkList">
|
|
|
|
<el-table-column v-if="false" label="主键" align="center" prop="orderId" />
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="主键"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderId"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<!-- 序号 -->
|
|
|
|
<!-- 序号 -->
|
|
|
|
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号" fixed/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column v-if="false" label="计划id" align="center" prop="planId" />
|
|
|
|
type="index"
|
|
|
|
<el-table-column width="150" label="计划编码" align="center" prop="planCode" />
|
|
|
|
width="90"
|
|
|
|
<el-table-column width="150" label="计划名称" align="center" prop="planName" />
|
|
|
|
align="center"
|
|
|
|
<el-table-column v-if="false" label="计划类型" align="center" prop="planType" />
|
|
|
|
:index="indexMethod"
|
|
|
|
<el-table-column width="150" label="巡检单号" align="center" prop="orderCode" fixed>
|
|
|
|
label="序号"
|
|
|
|
<template slot-scope="scope">
|
|
|
|
fixed
|
|
|
|
<el-button
|
|
|
|
/>
|
|
|
|
type="text"
|
|
|
|
<el-table-column
|
|
|
|
@click="showWork(scope.row)"
|
|
|
|
width="150"
|
|
|
|
>{{ scope.row.orderCode }}</el-button
|
|
|
|
label="巡检工单号"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderCode"
|
|
|
|
|
|
|
|
fixed
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button type="text" @click="showWork(scope.row)">{{
|
|
|
|
|
|
|
|
scope.row.orderCode
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="计划id"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planId"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="150"
|
|
|
|
|
|
|
|
label="计划编码"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planCode"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="200"
|
|
|
|
|
|
|
|
label="计划名称"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planName"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="计划类型"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planType"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<el-table-column label="车间编码" align="center" prop="planWorkshop" />
|
|
|
|
<el-table-column label="车间编码" align="center" prop="planWorkshop" />
|
|
|
|
<el-table-column width="150" label="车间" align="center" prop="workCenterName"/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column v-if="false" label="产线" align="center" prop="planProdLine" />
|
|
|
|
width="150"
|
|
|
|
<el-table-column label="循环周期" align="center" prop="planLoop" />
|
|
|
|
label="车间"
|
|
|
|
<el-table-column width="120" label="循环周期类型" align="center" prop="planLoopType" >
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="workCenterName"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="100"
|
|
|
|
|
|
|
|
label="设备编码"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="equipmentCode"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="设备名称"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="equipmentName"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="150"
|
|
|
|
|
|
|
|
label="巡检时间"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderEnd"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.device_loop_type" :value="scope.row.planLoopType"/>
|
|
|
|
<span>{{
|
|
|
|
|
|
|
|
parseTime(scope.row.orderEnd, "{y}-{m}-{d} {h}:{i}:{s}")
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column width="120" label="循环范围开始" align="center" prop="planLoopStart">
|
|
|
|
<el-table-column label="巡检人" align="center" prop="planPerson" />
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="产线"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planProdLine"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="循环周期" align="center" prop="planLoopType" />
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="循环周期类型"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planLoopType"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}</span>
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.device_loop_type"
|
|
|
|
|
|
|
|
:value="scope.row.planLoopType"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column width="120" label="循环范围结束" align="center" prop="planLoopEnd">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="循环范围开始"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planLoopStart"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.planLoopEnd, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.planLoopStart, "{y}-{m}-{d}") }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column v-if="false" width="120" label="执行开始时间" align="center" prop="orderStart">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="循环范围结束"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="planLoopEnd"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ parseTime(scope.row.planLoopEnd, "{y}-{m}-{d}") }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="执行开始时间"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderStart"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.orderStart, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.orderStart, "{y}-{m}-{d}") }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column v-if="false" width="120" label="执行结束时间" align="center" prop="orderEnd">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="执行结束时间"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderEnd"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.orderEnd, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.orderEnd, "{y}-{m}-{d}") }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column width="100" label="设备编码" align="center" prop="equipmentCode" />
|
|
|
|
|
|
|
|
<el-table-column width="120" label="设备名称" align="center" prop="equipmentName" />
|
|
|
|
|
|
|
|
<el-table-column label="工单状态" align="center" prop="orderStatus">
|
|
|
|
<el-table-column label="工单状态" align="center" prop="orderStatus">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.device_order_status" :value="scope.row.orderStatus"/>
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.device_order_status"
|
|
|
|
|
|
|
|
:value="scope.row.orderStatus"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column v-if="false" label="工单费用" align="center" prop="orderCost" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="巡检人" align="center" prop="planPerson" />
|
|
|
|
v-if="false"
|
|
|
|
<el-table-column v-if="false" label="工单用时" align="center" prop="orderCostTime" />
|
|
|
|
label="工单费用"
|
|
|
|
<el-table-column v-if="false" label="签字" align="center" prop="orderSignPerson" />
|
|
|
|
align="center"
|
|
|
|
<el-table-column v-if="false" label="工厂" align="center" prop="factoryCode" />
|
|
|
|
prop="orderCost"
|
|
|
|
<el-table-column v-if="false" label="备用字段1" align="center" prop="attr1" />
|
|
|
|
/>
|
|
|
|
<el-table-column v-if="false" label="备用字段2" align="center" prop="attr2" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column v-if="false" label="备用字段3" align="center" prop="attr3" />
|
|
|
|
v-if="false"
|
|
|
|
<el-table-column v-if="false" label="删除标志" align="center" prop="delFlag" />
|
|
|
|
label="工单用时"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderCostTime"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="签字"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="orderSignPerson"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="工厂"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="factoryCode"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="备用字段1"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="attr1"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="备用字段2"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="attr2"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="备用字段3"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="attr3"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="删除标志"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="delFlag"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="创建时间"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="createTime"
|
|
|
|
|
|
|
|
width="180"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="更新人" align="center" prop="updateBy" />
|
|
|
|
<el-table-column label="更新人" align="center" prop="updateBy" />
|
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" width="180">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="更新时间"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="updateTime"
|
|
|
|
|
|
|
|
width="180"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.updateTime, "{y}-{m}-{d}") }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column v-if="false" label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
|
|
label="操作"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
@ -425,96 +634,112 @@
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog title="巡检详情" :visible.sync="workDetail" width="1000px">
|
|
|
|
title="巡检详情"
|
|
|
|
|
|
|
|
:visible.sync="workDetail"
|
|
|
|
|
|
|
|
width="1000px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tab-pane label="巡检信息">
|
|
|
|
<el-tab-pane label="巡检信息">
|
|
|
|
<el-descriptions title="" border :column="2">
|
|
|
|
<el-descriptions title="" border :column="2">
|
|
|
|
<el-descriptions-item label="计划编码">{{ workVO.order.planCode }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="计划编码">{{
|
|
|
|
<el-descriptions-item label="计划名称">{{ workVO.order.planName }}</el-descriptions-item>
|
|
|
|
workVO.order.planCode
|
|
|
|
<el-descriptions-item label="循环周期">{{ workVO.order.planLoop }}{{ workVO.order.planLoopType }}
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="计划名称">{{
|
|
|
|
|
|
|
|
workVO.order.planName
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="循环周期"
|
|
|
|
|
|
|
|
>{{ workVO.order.planLoop }}{{ workVO.order.planLoopType }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="工单编码">{{ workVO.order.orderCode }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="工单编码">{{
|
|
|
|
<el-descriptions-item label="车间编码">{{ workVO.order.planWorkshop }}</el-descriptions-item>
|
|
|
|
workVO.order.orderCode
|
|
|
|
<el-descriptions-item label="循环开始时间">{{ workVO.order.planLoopStart }}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="循环结束时间">{{ workVO.order.planLoopEnd }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="车间编码">{{
|
|
|
|
<el-descriptions-item v-if="false" label="执行开始时间">{{ workVO.order.orderStart }}</el-descriptions-item>
|
|
|
|
workVO.order.planWorkshop
|
|
|
|
<el-descriptions-item v-if="false" label="执行结束时间">{{ workVO.order.orderEnd }}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="巡检人">{{ workVO.order.planPerson }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="循环开始时间">{{
|
|
|
|
<el-descriptions-item label="报修单号">{{ workVO.order.repairCode }}</el-descriptions-item>
|
|
|
|
workVO.order.planLoopStart
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="循环结束时间">{{
|
|
|
|
|
|
|
|
workVO.order.planLoopEnd
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="false" label="执行开始时间">{{
|
|
|
|
|
|
|
|
workVO.order.orderStart
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item v-if="false" label="执行结束时间">{{
|
|
|
|
|
|
|
|
workVO.order.orderEnd
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="巡检人">{{
|
|
|
|
|
|
|
|
workVO.order.planPerson
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="报修单号">{{
|
|
|
|
|
|
|
|
workVO.order.repairCode
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="设备信息">
|
|
|
|
<el-tab-pane label="设备信息">
|
|
|
|
<el-descriptions class="my-margin-top" title="" :column="2" border>
|
|
|
|
<el-descriptions class="my-margin-top" title="" :column="2" border>
|
|
|
|
<el-descriptions-item label="设备编码">{{ workVO.equ.equipmentCode }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
<el-descriptions-item label="设备名称">{{ workVO.equ.equipmentName }}</el-descriptions-item>
|
|
|
|
workVO.equ.equipmentCode
|
|
|
|
<el-descriptions-item label="设备位置">{{ workVO.equ.equipmentLocation }}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="设备类型编码">{{ workVO.equ.equipmentTypeCode }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="设备名称">{{
|
|
|
|
<el-descriptions-item label="设备类型名称">{{ workVO.equ.equipmentTypeName }}</el-descriptions-item>
|
|
|
|
workVO.equ.equipmentName
|
|
|
|
<el-descriptions-item label="所属工作中心编码">{{ workVO.equ.workshopCode }}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="所属工作中心名称">{{ workVO.equ.workshopName }}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="设备位置">{{
|
|
|
|
|
|
|
|
workVO.equ.equipmentLocation
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="设备类型编码">{{
|
|
|
|
|
|
|
|
workVO.equ.equipmentTypeCode
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="设备类型名称">{{
|
|
|
|
|
|
|
|
workVO.equ.equipmentTypeName
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="所属工作中心编码">{{
|
|
|
|
|
|
|
|
workVO.equ.workshopCode
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
<el-descriptions-item label="所属工作中心名称">{{
|
|
|
|
|
|
|
|
workVO.equ.workshopName
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-table
|
|
|
|
<el-table :data="standardListVo" border style="width: 100%">
|
|
|
|
:data="standardListVo"
|
|
|
|
<el-table-column prop="itemName" label="检查项" width="180">
|
|
|
|
border
|
|
|
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="itemName"
|
|
|
|
|
|
|
|
label="检查项"
|
|
|
|
|
|
|
|
width="180">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
prop="standardName"
|
|
|
|
|
|
|
|
label="标准名称"
|
|
|
|
|
|
|
|
width="180">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
prop="standardTypeName"
|
|
|
|
prop="standardTypeName"
|
|
|
|
label="标准类型"
|
|
|
|
label="标准类型"
|
|
|
|
width="80">
|
|
|
|
width="80"
|
|
|
|
</el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="detailReach"
|
|
|
|
|
|
|
|
label="是否达标">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="detailReach" label="是否达标">
|
|
|
|
prop="actualValue"
|
|
|
|
|
|
|
|
label="实际值">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="actualValue" label="实际值">
|
|
|
|
prop="detailUpLimit"
|
|
|
|
|
|
|
|
label="上限">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限">
|
|
|
|
prop="detailDownLimit"
|
|
|
|
|
|
|
|
label="下限">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限">
|
|
|
|
prop="detailUnit"
|
|
|
|
|
|
|
|
label="单位">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="detailUnit" label="单位"> </el-table-column>
|
|
|
|
prop="picturePath"
|
|
|
|
<el-table-column prop="picturePath" label="图片">
|
|
|
|
label="图片">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-popover
|
|
|
|
<el-popover placement="right" width="300" trigger="hover">
|
|
|
|
placement="right"
|
|
|
|
|
|
|
|
width="300"
|
|
|
|
|
|
|
|
trigger="hover">
|
|
|
|
|
|
|
|
<div class="demo-image__lazy">
|
|
|
|
<div class="demo-image__lazy">
|
|
|
|
<el-empty :image-size="200" v-if="scope.row.checkPictrueList.length == 0"></el-empty>
|
|
|
|
<el-empty
|
|
|
|
<div v-for="(url, index) in scope.row.checkPictrueList" :key="index">
|
|
|
|
:image-size="200"
|
|
|
|
<el-image
|
|
|
|
v-if="scope.row.checkPictrueList.length == 0"
|
|
|
|
:src="url"
|
|
|
|
></el-empty>
|
|
|
|
></el-image>
|
|
|
|
<div
|
|
|
|
|
|
|
|
v-for="(url, index) in scope.row.checkPictrueList"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-image :src="url"></el-image>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-button slot="reference" type="primary" icon="el-icon-picture" circle></el-button>
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
slot="reference"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
icon="el-icon-picture"
|
|
|
|
|
|
|
|
circle
|
|
|
|
|
|
|
|
></el-button>
|
|
|
|
</el-popover>
|
|
|
|
</el-popover>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -542,14 +767,14 @@ import {
|
|
|
|
getInspectionWork,
|
|
|
|
getInspectionWork,
|
|
|
|
delInspectionWork,
|
|
|
|
delInspectionWork,
|
|
|
|
addInspectionWork,
|
|
|
|
addInspectionWork,
|
|
|
|
updateInspectionWork
|
|
|
|
updateInspectionWork,
|
|
|
|
} from "@/api/device/inspectionWork";
|
|
|
|
} from "@/api/device/inspectionWork";
|
|
|
|
import { listDeviceOrder } from "@/api/device/deviceOrder";
|
|
|
|
import { listDeviceOrder } from "@/api/device/deviceOrder";
|
|
|
|
import { getWorkCenter } from "@/api/device/plan";
|
|
|
|
import { getWorkCenter } from "@/api/device/plan";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "InspectionWork",
|
|
|
|
name: "InspectionWork",
|
|
|
|
dicts: ['device_order_status', 'device_loop_type'],
|
|
|
|
dicts: ["device_order_status", "device_loop_type"],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
standardListVo: [],
|
|
|
|
standardListVo: [],
|
|
|
@ -557,31 +782,35 @@ export default {
|
|
|
|
test: false,
|
|
|
|
test: false,
|
|
|
|
// 日期范围选择快捷
|
|
|
|
// 日期范围选择快捷
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
shortcuts: [{
|
|
|
|
shortcuts: [
|
|
|
|
text: '最近一周',
|
|
|
|
{
|
|
|
|
|
|
|
|
text: "最近一周",
|
|
|
|
onClick(picker) {
|
|
|
|
onClick(picker) {
|
|
|
|
const end = new Date();
|
|
|
|
const end = new Date();
|
|
|
|
const start = new Date();
|
|
|
|
const start = new Date();
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
picker.$emit("pick", [start, end]);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
},
|
|
|
|
text: '最近一个月',
|
|
|
|
{
|
|
|
|
|
|
|
|
text: "最近一个月",
|
|
|
|
onClick(picker) {
|
|
|
|
onClick(picker) {
|
|
|
|
const end = new Date();
|
|
|
|
const end = new Date();
|
|
|
|
const start = new Date();
|
|
|
|
const start = new Date();
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
picker.$emit("pick", [start, end]);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
},
|
|
|
|
text: '最近三个月',
|
|
|
|
{
|
|
|
|
|
|
|
|
text: "最近三个月",
|
|
|
|
onClick(picker) {
|
|
|
|
onClick(picker) {
|
|
|
|
const end = new Date();
|
|
|
|
const end = new Date();
|
|
|
|
const start = new Date();
|
|
|
|
const start = new Date();
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
picker.$emit("pick", [start, end]);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 初始化VO
|
|
|
|
// 初始化VO
|
|
|
|
workVO: {
|
|
|
|
workVO: {
|
|
|
@ -597,7 +826,8 @@ export default {
|
|
|
|
orderStart: null,
|
|
|
|
orderStart: null,
|
|
|
|
orderEnd: null,
|
|
|
|
orderEnd: null,
|
|
|
|
planPerson: null,
|
|
|
|
planPerson: null,
|
|
|
|
}, equ: {
|
|
|
|
},
|
|
|
|
|
|
|
|
equ: {
|
|
|
|
equipmentCode: null,
|
|
|
|
equipmentCode: null,
|
|
|
|
equipmentName: null,
|
|
|
|
equipmentName: null,
|
|
|
|
equipmentLocation: null,
|
|
|
|
equipmentLocation: null,
|
|
|
@ -605,7 +835,8 @@ export default {
|
|
|
|
equipmentTypeName: null,
|
|
|
|
equipmentTypeName: null,
|
|
|
|
workshopCode: null,
|
|
|
|
workshopCode: null,
|
|
|
|
workshopName: null,
|
|
|
|
workshopName: null,
|
|
|
|
}, detailList: []
|
|
|
|
},
|
|
|
|
|
|
|
|
detailList: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 工单详情弹窗
|
|
|
|
// 工单详情弹窗
|
|
|
|
workDetail: false,
|
|
|
|
workDetail: false,
|
|
|
@ -633,6 +864,7 @@ export default {
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
planId: null,
|
|
|
|
planId: null,
|
|
|
|
planCode: null,
|
|
|
|
planCode: null,
|
|
|
|
|
|
|
|
planName: null,
|
|
|
|
planType: "inspection",
|
|
|
|
planType: "inspection",
|
|
|
|
orderCode: null,
|
|
|
|
orderCode: null,
|
|
|
|
planWorkshop: null,
|
|
|
|
planWorkshop: null,
|
|
|
@ -644,7 +876,7 @@ export default {
|
|
|
|
orderStart: null,
|
|
|
|
orderStart: null,
|
|
|
|
orderEnd: null,
|
|
|
|
orderEnd: null,
|
|
|
|
equipmentCode: null,
|
|
|
|
equipmentCode: null,
|
|
|
|
orderStatus: '1',
|
|
|
|
orderStatus: "1",
|
|
|
|
orderCost: null,
|
|
|
|
orderCost: null,
|
|
|
|
planPerson: null,
|
|
|
|
planPerson: null,
|
|
|
|
orderCostTime: null,
|
|
|
|
orderCostTime: null,
|
|
|
@ -666,7 +898,7 @@ export default {
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {}
|
|
|
|
rules: {},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -680,17 +912,17 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 获取工作中心
|
|
|
|
// 获取工作中心
|
|
|
|
setWorkCenter() {
|
|
|
|
setWorkCenter() {
|
|
|
|
getWorkCenter().then(response => {
|
|
|
|
getWorkCenter().then((response) => {
|
|
|
|
this.workCenterList = response.data;
|
|
|
|
this.workCenterList = response.data;
|
|
|
|
})
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 展示
|
|
|
|
// 展示
|
|
|
|
showWork(row) {
|
|
|
|
showWork(row) {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.standardListVo = [];
|
|
|
|
this.standardListVo = [];
|
|
|
|
const orderId = row.orderId || this.ids
|
|
|
|
const orderId = row.orderId || this.ids;
|
|
|
|
getInspectionWork(orderId).then(response => {
|
|
|
|
getInspectionWork(orderId).then((response) => {
|
|
|
|
this.workVO = response.data;
|
|
|
|
this.workVO = response.data;
|
|
|
|
for (let i = 0; i < this.workVO.detailList.length; i++) {
|
|
|
|
for (let i = 0; i < this.workVO.detailList.length; i++) {
|
|
|
|
for (let j = 0;j < this.workVO.detailList[i].standardList.length;j++) {
|
|
|
|
for (let j = 0;j < this.workVO.detailList[i].standardList.length;j++) {
|
|
|
@ -701,12 +933,11 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.workDetail = true;
|
|
|
|
this.workDetail = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 查询巡检记录列表 */
|
|
|
|
/** 查询巡检记录列表 */
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
listDeviceOrder(this.queryParams).then(response => {
|
|
|
|
listDeviceOrder(this.queryParams).then((response) => {
|
|
|
|
this.inspectionWorkList = response.rows;
|
|
|
|
this.inspectionWorkList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
@ -734,7 +965,7 @@ export default {
|
|
|
|
orderStart: null,
|
|
|
|
orderStart: null,
|
|
|
|
orderEnd: null,
|
|
|
|
orderEnd: null,
|
|
|
|
equipmentCode: null,
|
|
|
|
equipmentCode: null,
|
|
|
|
orderStatus: '1',
|
|
|
|
orderStatus: "1",
|
|
|
|
orderCost: null,
|
|
|
|
orderCost: null,
|
|
|
|
planPerson: null,
|
|
|
|
planPerson: null,
|
|
|
|
orderCostTime: null,
|
|
|
|
orderCostTime: null,
|
|
|
@ -771,9 +1002,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.orderId)
|
|
|
|
this.ids = selection.map((item) => item.orderId);
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
this.single = selection.length !== 1;
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
@ -784,8 +1015,8 @@ export default {
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const orderId = row.orderId || this.ids
|
|
|
|
const orderId = row.orderId || this.ids;
|
|
|
|
getInspectionWork(orderId).then(response => {
|
|
|
|
getInspectionWork(orderId).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改巡检记录";
|
|
|
|
this.title = "修改巡检记录";
|
|
|
@ -793,16 +1024,16 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if (this.form.orderId != null) {
|
|
|
|
if (this.form.orderId != null) {
|
|
|
|
updateInspectionWork(this.form).then(response => {
|
|
|
|
updateInspectionWork(this.form).then((response) => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
addInspectionWork(this.form).then(response => {
|
|
|
|
addInspectionWork(this.form).then((response) => {
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -814,21 +1045,28 @@ export default {
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const orderIds = row.orderId || this.ids;
|
|
|
|
const orderIds = row.orderId || this.ids;
|
|
|
|
this.$modal.confirm('是否确认删除巡检记录编号为"' + orderIds + '"的数据项?').then(function () {
|
|
|
|
this.$modal
|
|
|
|
|
|
|
|
.confirm('是否确认删除巡检记录编号为"' + orderIds + '"的数据项?')
|
|
|
|
|
|
|
|
.then(function () {
|
|
|
|
return delInspectionWork(orderIds);
|
|
|
|
return delInspectionWork(orderIds);
|
|
|
|
}).then(() => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
}).catch(() => {
|
|
|
|
})
|
|
|
|
});
|
|
|
|
.catch(() => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
this.download('device/inspectionWork/export', {
|
|
|
|
this.download(
|
|
|
|
...this.queryParams
|
|
|
|
"device/inspectionWork/export",
|
|
|
|
}, `inspectionWork_${new Date().getTime()}.xlsx`)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
...this.queryParams,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
`inspectionWork_${new Date().getTime()}.xlsx`
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|