|
|
|
@ -17,21 +17,23 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="保养单号" prop="orderCode">
|
|
|
|
|
<el-form-item label="工单号" prop="orderCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.orderCode"
|
|
|
|
|
placeholder="请输入单号"
|
|
|
|
|
placeholder="请输入工单号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="车间" prop="planWorkshop">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.planWorkshop"
|
|
|
|
|
placeholder="请输入车间"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
<el-form-item label="车间编码" prop="planWorkshop">
|
|
|
|
|
<el-select v-model="queryParams.planWorkshop" placeholder="请选择车间" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="work in workCenterList"
|
|
|
|
|
:key="work.factoryCode"
|
|
|
|
|
:label="work.factoryName"
|
|
|
|
|
:value="work.factoryCode"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="false" label="产线" prop="planProdLine">
|
|
|
|
|
<el-input
|
|
|
|
@ -41,7 +43,27 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工单状态" prop="orderStatus">
|
|
|
|
|
<el-select v-model="queryParams.planStatus" placeholder="请选择工单状态" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.device_order_status"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</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-input
|
|
|
|
|
v-model="queryParams.planLoop"
|
|
|
|
|
placeholder="请输入循环周期"
|
|
|
|
@ -89,7 +111,15 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工单费用" prop="orderCost">
|
|
|
|
|
<el-form-item label="设备名称" prop="equipmentCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.equipmentName"
|
|
|
|
|
placeholder="请输入设备名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="false" label="工单费用" prop="orderCost">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.orderCost"
|
|
|
|
|
placeholder="请输入工单费用"
|
|
|
|
@ -97,10 +127,10 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="保养人" prop="planPerson">
|
|
|
|
|
<el-form-item label="点检人" prop="planPerson">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.planPerson"
|
|
|
|
|
placeholder="请输入保养人"
|
|
|
|
|
placeholder="请输入点检人"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
@ -161,7 +191,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建人" prop="createBy">
|
|
|
|
|
<el-form-item v-if="false" label="创建人" prop="createBy">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.createBy"
|
|
|
|
|
placeholder="请输入创建人"
|
|
|
|
@ -169,7 +199,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建时间" prop="createTime">
|
|
|
|
|
<el-form-item v-if="false" label="创建时间" prop="createTime">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.createTime"
|
|
|
|
|
type="date"
|
|
|
|
@ -177,7 +207,7 @@
|
|
|
|
|
placeholder="请选择创建时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="更新人" prop="updateBy">
|
|
|
|
|
<el-form-item v-if="false" label="更新人" prop="updateBy">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.updateBy"
|
|
|
|
|
placeholder="请输入更新人"
|
|
|
|
@ -185,7 +215,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="更新时间" prop="updateTime">
|
|
|
|
|
<el-form-item v-if="false" label="更新时间" prop="updateTime">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.updateTime"
|
|
|
|
|
type="date"
|
|
|
|
@ -193,6 +223,78 @@
|
|
|
|
|
placeholder="请选择更新时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="100px" label="循环范围开始" prop="planLoopStart">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.loopStartArray"
|
|
|
|
|
type="daterange"
|
|
|
|
|
align="right"
|
|
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="100px" label="循环范围结束" prop="planLoopEnd">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.loopEndArray"
|
|
|
|
|
type="daterange"
|
|
|
|
|
align="right"
|
|
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="100px" label="执行开始时间" prop="orderStart">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.orderStartArray"
|
|
|
|
|
type="daterange"
|
|
|
|
|
align="right"
|
|
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="100px" label="执行结束时间" prop="orderEnd">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.orderEndArray"
|
|
|
|
|
type="daterange"
|
|
|
|
|
align="right"
|
|
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="保养类型" prop="upkeep">
|
|
|
|
|
<el-select v-model="queryParams.upkeep" placeholder="请选择保养类型" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.device_upkeep_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="检验状态" prop="orderInspect">
|
|
|
|
|
<el-select v-model="queryParams.orderInspect" placeholder="请选择保养类型" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.device_inspect_status"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<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>
|
|
|
|
@ -252,37 +354,55 @@
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column v-if="false" label="主键" align="center" prop="orderId" />
|
|
|
|
|
<el-table-column v-if="false" label="计划id" align="center" prop="planId" />
|
|
|
|
|
<el-table-column label="计划编码" align="center" prop="planCode"/>
|
|
|
|
|
<el-table-column width="150" label="计划编码" align="center" prop="planCode" />
|
|
|
|
|
<el-table-column v-if="false" label="计划类型" align="center" prop="planType" />
|
|
|
|
|
<el-table-column label="保养单号" align="center" prop="orderCode"/>
|
|
|
|
|
<el-table-column label="车间" align="center" prop="planWorkshop"/>
|
|
|
|
|
<el-table-column width="150" label="巡检单号" align="center" prop="orderCode" />
|
|
|
|
|
<el-table-column label="车间编码" align="center" prop="planWorkshop" />
|
|
|
|
|
<el-table-column width="150" label="车间" align="center" prop="workCenterName"/>
|
|
|
|
|
<el-table-column v-if="false" label="产线" align="center" prop="planProdLine" />
|
|
|
|
|
<el-table-column label="循环周期" align="center" prop="planLoop" />
|
|
|
|
|
<el-table-column label="循环周期类型" align="center" prop="planLoopType"/>
|
|
|
|
|
<el-table-column label="循环执行时间开始" align="center" prop="planLoopStart" width="180">
|
|
|
|
|
<el-table-column width="120" label="循环周期类型" align="center" prop="planLoopType" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.device_loop_type" :value="scope.row.planLoopType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column width="120" label="循环范围开始" align="center" prop="planLoopStart">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="循环执行时间结束" align="center" prop="planLoopEnd" width="180">
|
|
|
|
|
<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 label="实际开始时间" align="center" prop="orderStart" width="180">
|
|
|
|
|
<el-table-column width="120" label="执行开始时间" align="center" prop="orderStart">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.orderStart, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="实际结束时间" align="center" prop="orderEnd" width="180">
|
|
|
|
|
<el-table-column width="120" label="执行结束时间" align="center" prop="orderEnd">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.orderEnd, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="设备编码" align="center" prop="equipmentCode"/>
|
|
|
|
|
<el-table-column label="设备名称" align="center" prop="equipmentName"/>
|
|
|
|
|
<el-table-column label="工单状态" align="center" prop="orderStatus"/>
|
|
|
|
|
<el-table-column label="审核状态" align="center" prop="orderInspect"/>
|
|
|
|
|
<el-table-column width="100" label="设备编码" align="center" prop="equipmentCode" />
|
|
|
|
|
<el-table-column width="120" label="设备名称" align="center" prop="equipmentName" />
|
|
|
|
|
<el-table-column width="80" label="保养类型" align="center" prop="upkeep" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.device_upkeep_type" :value="scope.row.upkeep"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工单状态" align="center" prop="orderStatus" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.device_order_status" :value="scope.row.orderStatus"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检验状态" align="center" prop="orderInspect">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.device_inspect_status" :value="scope.row.orderInspect"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工单费用" align="center" prop="orderCost"/>
|
|
|
|
|
<el-table-column label="保养人" align="center" prop="planPerson"/>
|
|
|
|
|
<el-table-column label="工单用时" align="center" prop="orderCostTime"/>
|
|
|
|
@ -307,6 +427,7 @@
|
|
|
|
|
<el-table-column width="180" label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.upkeep != '1' "
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
@ -339,9 +460,9 @@
|
|
|
|
|
title="保养结果检验"
|
|
|
|
|
:visible.sync="inspectDialog"
|
|
|
|
|
width="30%">
|
|
|
|
|
<el-radio v-model="inspect" label="0">待检验</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="1">未通过</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="2">通过</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="waiting">待检验</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="noPass">未通过</el-radio>
|
|
|
|
|
<el-radio v-model="inspect" label="pass">通过</el-radio>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="inspectDialog = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="subInspect">确 定</el-button>
|
|
|
|
@ -879,9 +1000,37 @@ import {updateInspectionWork} from "@/api/device/inspectionWork";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "UpkeepOrder",
|
|
|
|
|
dicts: ['device_order_status', 'device_loop_type','device_reach_standard'],
|
|
|
|
|
dicts: ['device_order_status', 'device_loop_type','device_reach_standard','device_upkeep_type','device_inspect_status'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 日期范围选择快捷
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
shortcuts: [{
|
|
|
|
|
text: '最近一周',
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date();
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
text: '最近一个月',
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date();
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
text: '最近三个月',
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date();
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
// 记录
|
|
|
|
|
recordList: [],
|
|
|
|
|
// 检验结果
|
|
|
|
@ -992,6 +1141,10 @@ export default {
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
equ: {equipmentName: null},
|
|
|
|
|
loopStartArray: [],
|
|
|
|
|
orderStartArray: [],
|
|
|
|
|
orderEndArray: [],
|
|
|
|
|
loopEndArray: [],
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {
|
|
|
|
@ -1318,6 +1471,10 @@ export default {
|
|
|
|
|
updateTime: null,
|
|
|
|
|
equ: {equipmentName: null},
|
|
|
|
|
timeArray:[],
|
|
|
|
|
loopStartArray: [],
|
|
|
|
|
orderStartArray: [],
|
|
|
|
|
orderEndArray: [],
|
|
|
|
|
loopEndArray: [],
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
@ -1328,6 +1485,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
|
|
|
|
this.queryParams.loopStartArray = [];
|
|
|
|
|
this.queryParams.orderStartArray = [];
|
|
|
|
|
this.queryParams.orderEndArray = [];
|
|
|
|
|
this.queryParams.loopEndArray = [];
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|