|
|
@ -1,19 +1,49 @@
|
|
|
|
<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="98px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="98px">
|
|
|
|
|
|
|
|
<el-form-item label="维修单号" prop="workCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.workCode"
|
|
|
|
|
|
|
|
placeholder="请输入维修单号"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width:200px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="报修单号" prop="orderCode">
|
|
|
|
<el-form-item label="报修单号" prop="orderCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.orderCode"
|
|
|
|
v-model="queryParams.orderCode"
|
|
|
|
placeholder="请输入报修单号"
|
|
|
|
placeholder="请输入报修单号"
|
|
|
|
|
|
|
|
style="width:200px"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.equipmentCode"
|
|
|
|
|
|
|
|
placeholder="请输入设备编码"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width:200px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="是否停机维修" prop="workDownMachine">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="queryParams.workDownMachine"
|
|
|
|
|
|
|
|
placeholder="请选择是否停机"
|
|
|
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width:200px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery">
|
|
|
|
|
|
|
|
<el-option v-for="item in workDownMachineOption" :key="item.workDownMachine" :label="item.label" :value="item.workDownMachine"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="queryParams.workPlanTime"
|
|
|
|
v-model="queryParams.workPlanTime"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择计划维修时间">
|
|
|
|
placeholder="请选择计划维修时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -21,7 +51,7 @@
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="queryParams.workPlanDownTime"
|
|
|
|
v-model="queryParams.workPlanDownTime"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择计划停机时间">
|
|
|
|
placeholder="请选择计划停机时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -52,25 +82,7 @@
|
|
|
|
<el-option v-for="item in workOutsourceOption" :key="item.workOutsource" :label="item.label" :value="item.workOutsource"></el-option>
|
|
|
|
<el-option v-for="item in workOutsourceOption" :key="item.workOutsource" :label="item.label" :value="item.workOutsource"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否停机维修" prop="workDownMachine">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="queryParams.workDownMachine"
|
|
|
|
|
|
|
|
placeholder="请选择是否停机"
|
|
|
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width:220px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery">
|
|
|
|
|
|
|
|
<el-option v-for="item in workDownMachineOption" :key="item.workDownMachine" :label="item.label" :value="item.workDownMachine"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.equipmentCode"
|
|
|
|
|
|
|
|
placeholder="请输入设备编码"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="委外工单编码" prop="outWorkCode">
|
|
|
|
<el-form-item label="委外工单编码" prop="outWorkCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.outWorkCode"
|
|
|
|
v-model="queryParams.outWorkCode"
|
|
|
@ -79,15 +91,6 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂编码" prop="factoryCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.factoryCode"
|
|
|
|
|
|
|
|
placeholder="请输入工厂编码"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width:220px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</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 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-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@ -103,7 +106,7 @@
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
@click="handleAdd"
|
|
|
|
@click="handleAdd"
|
|
|
|
v-hasPermi="['device: repairOrder:add']"
|
|
|
|
v-hasPermi="['device: repairOrder:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
>快速工单</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -137,11 +140,23 @@
|
|
|
|
v-hasPermi="['device: repairOrder:export']"
|
|
|
|
v-hasPermi="['device: repairOrder:export']"
|
|
|
|
>导出</el-button>
|
|
|
|
>导出</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="success"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-document-add"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleApply"
|
|
|
|
|
|
|
|
v-hasPermi="['device: repairOrder:apply']"
|
|
|
|
|
|
|
|
>委外申请</el-button>
|
|
|
|
|
|
|
|
</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=" repairOrderList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data=" repairOrderList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
|
|
<el-table-column label="维修单号" align="center" prop="workCode" width="180"/>
|
|
|
|
<el-table-column label="报修单号" align="center" prop="orderCode" width="180"/>
|
|
|
|
<el-table-column label="报修单号" align="center" prop="orderCode" width="180"/>
|
|
|
|
<el-table-column label="设备编码" align="center" prop="equipmentCode" />
|
|
|
|
<el-table-column label="设备编码" align="center" prop="equipmentCode" />
|
|
|
|
<el-table-column label="计划维修时间" align="center" prop="workPlanTime" width="180">
|
|
|
|
<el-table-column label="计划维修时间" align="center" prop="workPlanTime" width="180">
|
|
|
@ -163,7 +178,7 @@
|
|
|
|
<el-table-column label="维修组" align="center" prop="workTeam" />
|
|
|
|
<el-table-column label="维修组" align="center" prop="workTeam" />
|
|
|
|
<el-table-column label="是否委外" align="center" prop="workOutsource" >
|
|
|
|
<el-table-column label="是否委外" align="center" prop="workOutsource" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.workOutsource == "1" ? "委外" : "不委外" }}
|
|
|
|
{{ scope.row.workOutsource == "1" ? "转委外" : "不委外" }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="委外工单编码" align="center" prop="outWorkCode" width="180"/>
|
|
|
|
<el-table-column label="委外工单编码" align="center" prop="outWorkCode" width="180"/>
|
|
|
@ -204,104 +219,223 @@
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改维修工单对话框 -->
|
|
|
|
<!-- 快速维修工单对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="openAdd" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
<el-form-item label="报修主键" prop="orderId">
|
|
|
|
|
|
|
|
<el-input v-model="form.orderId" placeholder="请输入报修主键" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="报修单号" prop="orderCode">
|
|
|
|
<el-form-item label="报修单号" prop="orderCode">
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入报修单号" />
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入报修单号" style="width:250px"/>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="是否立即处理" prop="workHandle">
|
|
|
|
|
|
|
|
<el-input v-model="form.workHandle" placeholder="请输入是否立即处理" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.equipmentCode" placeholder="请输入设备编码" style="width:250px">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
slot="append"
|
|
|
|
|
|
|
|
@click="handleSelectEquipment"
|
|
|
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
|
|
|
></el-button>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
<ItemSelect
|
|
|
|
|
|
|
|
ref="itemSelect"
|
|
|
|
|
|
|
|
@onSelected="onItemSelectedEquipment"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</ItemSelect>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
type="date"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
style="width:250px"
|
|
|
|
placeholder="请选择计划维修时间">
|
|
|
|
placeholder="请选择计划维修时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime">
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime">
|
|
|
|
<el-date-picker clearable
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
type="date"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
style="width:250px"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择计划停机时间">
|
|
|
|
placeholder="请选择计划停机时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="关联计划" prop="orderRelevance">
|
|
|
|
<el-form-item label="维修人员" prop="workPerson" >
|
|
|
|
<el-input v-model="form.orderRelevance" placeholder="请输入关联计划" />
|
|
|
|
<el-input v-model="form.workPerson" placeholder="请输入维修人员" style="width:250px">
|
|
|
|
</el-form-item>
|
|
|
|
<el-button
|
|
|
|
<el-form-item label="维修人员" prop="workPerson">
|
|
|
|
slot="append"
|
|
|
|
<el-input v-model="form.workPerson" placeholder="请输入维修人员" />
|
|
|
|
@click="handleSelectPerson"
|
|
|
|
</el-form-item>
|
|
|
|
icon="el-icon-search"
|
|
|
|
<el-form-item label="维修组" prop="workTeam">
|
|
|
|
></el-button>
|
|
|
|
<el-input v-model="form.workTeam" placeholder="请输入维修组" />
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
<ItemSelectPerson
|
|
|
|
|
|
|
|
ref="itemSelectPerson"
|
|
|
|
|
|
|
|
@onSelected="onItemSelectedPerson"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</ItemSelectPerson>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否委外" prop="workOutsource">
|
|
|
|
<el-form-item label="维修组" prop="workTeam" style="width:250px">
|
|
|
|
<el-input v-model="form.workOutsource" placeholder="请输入是否委外" />
|
|
|
|
<el-input v-model="form.workTeam" placeholder="请输入维修组" style="width:250px"/>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="是否停机维修" prop="workDownMachine">
|
|
|
|
|
|
|
|
<el-input v-model="form.workDownMachine" placeholder="请输入是否停机维修" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.equipmentCode" placeholder="请输入设备编码" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="原因分析" prop="workReason">
|
|
|
|
|
|
|
|
<el-input v-model="form.workReason" placeholder="请输入原因分析" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="故障描述" prop="workFaultDesc">
|
|
|
|
|
|
|
|
<el-input v-model="form.workFaultDesc" placeholder="请输入故障描述" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="维修用时" prop="workCostTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="form.workCostTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择维修用时">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="维修费用" prop="workCost">
|
|
|
|
|
|
|
|
<el-input v-model="form.workCost" placeholder="请输入维修费用" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="委外工单id" prop="outWorkId">
|
|
|
|
|
|
|
|
<el-input v-model="form.outWorkId" placeholder="请输入委外工单id" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="委外工单编码" prop="outWorkCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.outWorkCode" placeholder="请输入委外工单编码" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="备用字段1" prop="attr1">
|
|
|
|
|
|
|
|
<el-input v-model="form.attr1" placeholder="请输入备用字段1" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="备用字段2" prop="attr2">
|
|
|
|
|
|
|
|
<el-input v-model="form.attr2" placeholder="请输入备用字段2" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="备用字段3" prop="attr3">
|
|
|
|
|
|
|
|
<el-input v-model="form.attr3" placeholder="请输入备用字段3" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="删除标志" prop="delFlag">
|
|
|
|
|
|
|
|
<el-input v-model="form.delFlag" placeholder="请输入删除标志" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="工厂编码" prop="factoryCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入工厂编码" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
<el-button @click="cancelAddForm">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 修改维修工单对话框 -->
|
|
|
|
|
|
|
|
<el-dialog :title="title" :visible.sync="openUpdate" width="500px" append-to-body>
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
|
|
|
|
<el-form-item label="报修单号" prop="orderCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入报修单号" style="width:250px" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.equipmentCode" placeholder="请输入设备编码" style="width:250px" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
style="width:250px"
|
|
|
|
|
|
|
|
placeholder="请选择计划维修时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
style="width:250px"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
placeholder="请选择计划停机时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="维修人员" prop="workPerson" >
|
|
|
|
|
|
|
|
<el-input v-model="form.workPerson" placeholder="请输入维修人员" style="width:250px"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="维修组" prop="workTeam" style="width:250px">
|
|
|
|
|
|
|
|
<el-input v-model="form.workTeam" placeholder="请输入维修组" style="width:250px"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
|
|
|
<el-button @click="cancelUpdateForm">取 消</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 委外申请 -->
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
:title="title"
|
|
|
|
|
|
|
|
:visible.sync="openApply"
|
|
|
|
|
|
|
|
width="1000px"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode" >
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentCode"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="设备名称" prop="equipmentName" >
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentName"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="设备类型" prop="equipmentTypeName" >
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentTypeName"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="规格型号" prop="equipmentSpec" >
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentSpec"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="所在部门" prop="department">
|
|
|
|
|
|
|
|
<el-input v-model="form.department" style="width: 195px" disabled>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="所在位置" prop="equipmentLocation">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentLocation"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="workOutsourcingUnit" label="委外单位">
|
|
|
|
|
|
|
|
<el-input v-model="form.workOutsourcingUnit" placeholder="请填写委外单位" style="width: 195px"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="outSourcePerson" label="委外维修人员">
|
|
|
|
|
|
|
|
<el-input v-model="form.outSourcePerson" placeholder="请填写委外维修人员" style="width: 195px"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="workConnection" label="联系方式">
|
|
|
|
|
|
|
|
<el-input v-model="form.workConnection" placeholder="请填写委外联系方式" style="width: 195px"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<el-form-item prop="outSourceReason" label="委外原因">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.outSourceReason"
|
|
|
|
|
|
|
|
placeholder="请输入委外原因"
|
|
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="submitApplyForm">确 定</el-button>
|
|
|
|
|
|
|
|
<el-button @click="cancelApplyForm">返 回</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listRepairOrder, getRepairOrder, delRepairOrder, addRepairOrder, updateRepairOrder } from "@/api/device/repairOrder";
|
|
|
|
import { listRepairOrder, getRepairOrder, delRepairOrder, addRepairOrder, updateRepairOrder,applyOutsource } from "@/api/device/repairOrder";
|
|
|
|
|
|
|
|
import ItemSelect from "./selectSingleEquipment.vue";
|
|
|
|
|
|
|
|
import ItemSelectPerson from "./selectSinglePerson.vue";
|
|
|
|
|
|
|
|
import { Message } from 'element-ui'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: " repairOrder",
|
|
|
|
name: " repairOrder",
|
|
|
|
|
|
|
|
components: { ItemSelect,ItemSelectPerson },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
@ -320,14 +454,19 @@ export default {
|
|
|
|
repairOrderList: [],
|
|
|
|
repairOrderList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示快速工单弹出层
|
|
|
|
open: false,
|
|
|
|
openAdd: false,
|
|
|
|
|
|
|
|
// 是否显示修改工单弹出层
|
|
|
|
|
|
|
|
openUpdate: false,
|
|
|
|
|
|
|
|
// 是否显示委外申请弹出层
|
|
|
|
|
|
|
|
openApply: false,
|
|
|
|
// 查询参数
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
queryParams: {
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
orderId: null,
|
|
|
|
orderId: null,
|
|
|
|
orderCode: null,
|
|
|
|
orderCode: null,
|
|
|
|
|
|
|
|
workCode: null,
|
|
|
|
workHandle: null,
|
|
|
|
workHandle: null,
|
|
|
|
workPlanTime: null,
|
|
|
|
workPlanTime: null,
|
|
|
|
workPlanDownTime: null,
|
|
|
|
workPlanDownTime: null,
|
|
|
@ -350,7 +489,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
workOutsourceOption: [{
|
|
|
|
workOutsourceOption: [{
|
|
|
|
workOutsource: "1",
|
|
|
|
workOutsource: "1",
|
|
|
|
label: '委外'
|
|
|
|
label: '转委外'
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
workOutsource: "0",
|
|
|
|
workOutsource: "0",
|
|
|
|
label: '不委外'
|
|
|
|
label: '不委外'
|
|
|
@ -382,9 +521,19 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
// 新增取消按钮
|
|
|
|
cancel() {
|
|
|
|
cancelAddForm() {
|
|
|
|
this.open = false;
|
|
|
|
this.openAdd = false;
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 更新取消按钮
|
|
|
|
|
|
|
|
cancelUpdateForm() {
|
|
|
|
|
|
|
|
this.openUpdate = false;
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 更新取消按钮
|
|
|
|
|
|
|
|
cancelApplyForm() {
|
|
|
|
|
|
|
|
this.openApply = false;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
// 表单重置
|
|
|
@ -439,8 +588,18 @@ export default {
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.open = true;
|
|
|
|
this.openAdd = true;
|
|
|
|
this.title = "添加维修工单";
|
|
|
|
this.title = "快速工单";
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 委外申请按钮操作 */
|
|
|
|
|
|
|
|
handleApply(row) {
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
const workId = row.workId || this.ids
|
|
|
|
|
|
|
|
getRepairOrder(workId).then(response => {
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
this.openApply = true;
|
|
|
|
|
|
|
|
this.title = "委外申请";
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
@ -448,10 +607,20 @@ export default {
|
|
|
|
const workId = row.workId || this.ids
|
|
|
|
const workId = row.workId || this.ids
|
|
|
|
getRepairOrder(workId).then(response => {
|
|
|
|
getRepairOrder(workId).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.openUpdate = true;
|
|
|
|
this.title = "修改维修工单";
|
|
|
|
this.title = "修改维修工单";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交委外申请 */
|
|
|
|
|
|
|
|
submitApplyForm() {
|
|
|
|
|
|
|
|
applyOutsource(this.form).then(response => {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("委外申请成功");
|
|
|
|
|
|
|
|
this.openApply = false;
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
@ -459,19 +628,35 @@ export default {
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
updateRepairOrder(this.form).then(response => {
|
|
|
|
updateRepairOrder(this.form).then(response => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.open = false;
|
|
|
|
this.openUpdate = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
addRepairOrder(this.form).then(response => {
|
|
|
|
addRepairOrder(this.form).then(response => {
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.open = false;
|
|
|
|
this.openAdd = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//设备选择
|
|
|
|
|
|
|
|
handleSelectEquipment() {
|
|
|
|
|
|
|
|
this.$refs.itemSelect.showFlag = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//人员选择
|
|
|
|
|
|
|
|
handleSelectPerson() {
|
|
|
|
|
|
|
|
this.$refs.itemSelectPerson.showFlag = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//人员选择
|
|
|
|
|
|
|
|
onItemSelectedPerson(obj) {
|
|
|
|
|
|
|
|
this.form.workPerson = obj;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//设备选择
|
|
|
|
|
|
|
|
onItemSelectedEquipment(obj) {
|
|
|
|
|
|
|
|
this.form.equipmentCode = obj;
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const workIds = row.workId || this.ids;
|
|
|
|
const workIds = row.workId || this.ids;
|
|
|
|