|
|
@ -52,41 +52,49 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="queryParams.workPlanTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
placeholder="请选择计划维修时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="queryParams.workPlanDownTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
placeholder="请选择计划停机时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="维修人员" prop="workPerson">
|
|
|
|
<el-form-item label="维修人员" prop="workPerson">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.workPerson"
|
|
|
|
v-model="queryParams.workPerson"
|
|
|
|
placeholder="请输入维修人员"
|
|
|
|
placeholder="请输入维修人员"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 200px"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="维修组" prop="workTeam">
|
|
|
|
<el-form-item label="维修组" prop="workTeam">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
v-model="queryParams.workTeam"
|
|
|
|
v-model="queryParams.workTeam"
|
|
|
|
placeholder="请输入维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
style="width: 200px"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in teamOption"
|
|
|
|
|
|
|
|
:key="item.teamCode"
|
|
|
|
|
|
|
|
:label="item.teamName"
|
|
|
|
|
|
|
|
:value="item.teamCode"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="维修状态" prop="workStatus">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="queryParams.workStatus"
|
|
|
|
|
|
|
|
placeholder="请选择维修状态"
|
|
|
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in workStatusOption"
|
|
|
|
|
|
|
|
:key="item.workStatus"
|
|
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
|
|
:value="item.workStatus"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否委外" prop="workOutsource">
|
|
|
|
<el-form-item label="是否委外" prop="workOutsource">
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
@ -94,7 +102,7 @@
|
|
|
|
placeholder="请选择是否委外"
|
|
|
|
placeholder="请选择是否委外"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
style="width: 220px"
|
|
|
|
style="width: 200px"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -105,7 +113,6 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</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"
|
|
|
@ -114,6 +121,34 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划维修时间" prop="workPlanTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="queryParams.workPlanTimeArray"
|
|
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
|
|
align="right"
|
|
|
|
|
|
|
|
unlink-panels
|
|
|
|
|
|
|
|
range-separator="至"
|
|
|
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="queryParams.workPlanDownTimeArray"
|
|
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
|
|
align="right"
|
|
|
|
|
|
|
|
unlink-panels
|
|
|
|
|
|
|
|
range-separator="至"
|
|
|
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
@ -261,7 +296,9 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="维修人员" align="center" prop="workPerson" />
|
|
|
|
<el-table-column label="维修人员" align="center" prop="workPerson" />
|
|
|
|
<el-table-column label="维修组" align="center" prop="workTeam" />
|
|
|
|
<el-table-column label="维修组编码" align="center" prop="workTeam" width="100"/>
|
|
|
|
|
|
|
|
<el-table-column label="维修组名称" align="center" prop="teamName" width="100"/>
|
|
|
|
|
|
|
|
<el-table-column label="维修组人员" align="center" prop="teamPerson" width="300"/>
|
|
|
|
<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" ? "转委外" : "不委外" }}
|
|
|
@ -280,36 +317,41 @@
|
|
|
|
width="300"
|
|
|
|
width="300"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="维修用时"
|
|
|
|
label="维修开始时间"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
prop="workCostTime"
|
|
|
|
prop="workStartTime"
|
|
|
|
width="180"
|
|
|
|
width="180"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.workCostTime) }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.workStartTime) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="维修开始时间"
|
|
|
|
label="维修结束时间"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
prop="workStartTime"
|
|
|
|
prop="workEndTime"
|
|
|
|
width="180"
|
|
|
|
width="180"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.workStartTime) }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.workEndTime) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="维修结束时间"
|
|
|
|
label="维修用时"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
|
prop="workEndTime"
|
|
|
|
prop="workCostTime"
|
|
|
|
width="180"
|
|
|
|
width="180"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.workEndTime) }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.workCostTime) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="维修费用" align="center" prop="workCost" />
|
|
|
|
<el-table-column label="维修费用" align="center" prop="workCost" />
|
|
|
|
|
|
|
|
<el-table-column label="维修状态" align="center" prop="workStatus" >
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{ scope.row.workStatus == "1"?'维修结束': scope.row.workStatus == "2"?'维修中' : scope.row.workStatus == "0" ? '待维修' : '无'}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="工厂编码" align="center" prop="factoryCode" />
|
|
|
|
<el-table-column label="工厂编码" align="center" prop="factoryCode" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="操作"
|
|
|
|
label="操作"
|
|
|
@ -354,18 +396,11 @@
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
<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"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.equipmentCode"
|
|
|
|
v-model="form.equipmentCode"
|
|
|
|
placeholder="请输入设备编码"
|
|
|
|
placeholder="请输入设备编码"
|
|
|
|
style="width: 250px"
|
|
|
|
style="width: 280px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
slot="append"
|
|
|
|
slot="append"
|
|
|
@ -382,17 +417,23 @@
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
type="datetime"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
style="width: 250px"
|
|
|
|
style="width: 280px"
|
|
|
|
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="workDownMachine">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.workDownMachine">
|
|
|
|
|
|
|
|
<el-radio label="1">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio label="0">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime" v-if="form.workDownMachine == '1' ">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
type="datetime"
|
|
|
|
type="datetime"
|
|
|
|
style="width: 250px"
|
|
|
|
style="width: 280px"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择计划停机时间"
|
|
|
|
placeholder="请选择计划停机时间"
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -402,7 +443,7 @@
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.workPerson"
|
|
|
|
v-model="form.workPerson"
|
|
|
|
placeholder="请选择维修人"
|
|
|
|
placeholder="请选择维修人"
|
|
|
|
style="width: 250px"
|
|
|
|
style="width: 280px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
slot="append"
|
|
|
|
slot="append"
|
|
|
@ -416,11 +457,31 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</ItemSelectPerson>
|
|
|
|
</ItemSelectPerson>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="维修组" prop="workTeam" style="width: 250px">
|
|
|
|
<el-form-item label="维修组" prop="workTeam">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
v-model="form.workTeam"
|
|
|
|
v-model="form.workTeam"
|
|
|
|
placeholder="请输入维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
style="width: 250px"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
style="width: 280px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in teamOption"
|
|
|
|
|
|
|
|
:key="item.teamCode"
|
|
|
|
|
|
|
|
:label="item.teamName"
|
|
|
|
|
|
|
|
:value="item.teamCode"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="故障描述" prop="workFaultDesc">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.workFaultDesc"
|
|
|
|
|
|
|
|
placeholder="请输入故障描述"
|
|
|
|
|
|
|
|
style="width: 280px"
|
|
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
@ -465,7 +526,13 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime">
|
|
|
|
<el-form-item label="是否停机维修" prop="workDownMachine">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.workDownMachine">
|
|
|
|
|
|
|
|
<el-radio label="1">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio label="0">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="计划停机时间" prop="workPlanDownTime" v-if="form.workDownMachine == '1' ">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
@ -494,12 +561,23 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</ItemSelectPerson>
|
|
|
|
</ItemSelectPerson>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="维修组" prop="workTeam" style="width: 250px">
|
|
|
|
<el-form-item label="维修组" prop="workTeam">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
v-model="form.workTeam"
|
|
|
|
v-model="form.workTeam"
|
|
|
|
placeholder="请输入维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
filterable
|
|
|
|
style="width: 250px"
|
|
|
|
style="width: 250px"
|
|
|
|
/>
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in teamOption"
|
|
|
|
|
|
|
|
:key="item.teamCode"
|
|
|
|
|
|
|
|
:label="item.teamName"
|
|
|
|
|
|
|
|
:value="item.teamCode"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -578,7 +656,7 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item prop="workOutsourcingUnit" label="委外单位">
|
|
|
|
<el-form-item prop="workOutsourcingUnit" label="委外单位" v-if="form.outWorkCode == null">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.workOutsourcingUnit"
|
|
|
|
v-model="form.workOutsourcingUnit"
|
|
|
|
placeholder="请填写委外单位"
|
|
|
|
placeholder="请填写委外单位"
|
|
|
@ -587,7 +665,7 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item prop="outSourcePerson" label="委外维修人员">
|
|
|
|
<el-form-item prop="outSourcePerson" label="委外维修人员" v-if="form.outWorkCode == null">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.outSourcePerson"
|
|
|
|
v-model="form.outSourcePerson"
|
|
|
|
placeholder="请填写委外维修人员"
|
|
|
|
placeholder="请填写委外维修人员"
|
|
|
@ -596,7 +674,7 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item prop="workConnection" label="联系方式">
|
|
|
|
<el-form-item prop="workConnection" label="联系方式" v-if="form.outWorkCode == null">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.workConnection"
|
|
|
|
v-model="form.workConnection"
|
|
|
|
placeholder="请填写委外联系方式"
|
|
|
|
placeholder="请填写委外联系方式"
|
|
|
@ -607,11 +685,58 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-form-item prop="outSourceReason" label="委外原因">
|
|
|
|
<el-form-item prop="outSourceReason" label="委外原因" v-if="form.outWorkCode == null">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.outSourceReason"
|
|
|
|
v-model="form.outSourceReason"
|
|
|
|
placeholder="请输入委外原因"
|
|
|
|
placeholder="请输入委外原因"
|
|
|
|
type="textarea"
|
|
|
|
type="textarea"
|
|
|
|
|
|
|
|
style="width: 840px"
|
|
|
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="workOutsourcingUnit" label="委外单位" v-if="form.outWorkCode != null">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.workOutsourcingUnit"
|
|
|
|
|
|
|
|
placeholder="请填写委外单位"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="outSourcePerson" label="委外维修人员" v-if="form.outWorkCode != null">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.outSourcePerson"
|
|
|
|
|
|
|
|
placeholder="请填写委外维修人员"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item prop="workConnection" label="联系方式" v-if="form.outWorkCode != null">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.workConnection"
|
|
|
|
|
|
|
|
placeholder="请填写委外联系方式"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<el-form-item prop="outSourceReason" label="委外原因" v-if="form.outWorkCode != null">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.outSourceReason"
|
|
|
|
|
|
|
|
placeholder="请输入委外原因"
|
|
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 840px"
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -820,8 +945,22 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="维修状态" prop="workStatus">
|
|
|
|
<el-form-item label="维修状态" prop="workStatus">
|
|
|
|
<el-input v-model="form.workStatus" style="width: 195px">
|
|
|
|
<el-select
|
|
|
|
</el-input>
|
|
|
|
v-model="queryParams.workStatus"
|
|
|
|
|
|
|
|
placeholder="请选择维修状态"
|
|
|
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 220px"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in workStatusOption"
|
|
|
|
|
|
|
|
:key="item.workStatus"
|
|
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
|
|
:value="item.workStatus"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
@ -921,6 +1060,7 @@ import {
|
|
|
|
applyOutsource,
|
|
|
|
applyOutsource,
|
|
|
|
writeRepairOrder,
|
|
|
|
writeRepairOrder,
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
|
|
|
|
import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
import ItemSelect from "./selectSingleEquipment.vue";
|
|
|
|
import ItemSelect from "./selectSingleEquipment.vue";
|
|
|
|
import ItemSelectPerson from "./selectSinglePerson.vue";
|
|
|
|
import ItemSelectPerson from "./selectSinglePerson.vue";
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
import { Message } from "element-ui";
|
|
|
@ -931,6 +1071,8 @@ export default {
|
|
|
|
components: { ItemSelect, ItemSelectPerson, SelectSpareParts },
|
|
|
|
components: { ItemSelect, ItemSelectPerson, SelectSpareParts },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
//选择设备维修班组
|
|
|
|
|
|
|
|
teamOption: [],
|
|
|
|
optType: undefined,
|
|
|
|
optType: undefined,
|
|
|
|
// 步骤
|
|
|
|
// 步骤
|
|
|
|
repairRecordSteps: 0,
|
|
|
|
repairRecordSteps: 0,
|
|
|
@ -984,7 +1126,11 @@ export default {
|
|
|
|
attr2: null,
|
|
|
|
attr2: null,
|
|
|
|
attr3: null,
|
|
|
|
attr3: null,
|
|
|
|
factoryCode: null,
|
|
|
|
factoryCode: null,
|
|
|
|
|
|
|
|
//计划维修时间组、计划停机时间组
|
|
|
|
|
|
|
|
workPlanTimeArray: [],
|
|
|
|
|
|
|
|
workPlanDownTimeArray: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//选择是否委外
|
|
|
|
workOutsourceOption: [
|
|
|
|
workOutsourceOption: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
workOutsource: "1",
|
|
|
|
workOutsource: "1",
|
|
|
@ -995,6 +1141,7 @@ export default {
|
|
|
|
label: "不委外",
|
|
|
|
label: "不委外",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
//选择是否停机
|
|
|
|
workDownMachineOption: [
|
|
|
|
workDownMachineOption: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
workDownMachine: "1",
|
|
|
|
workDownMachine: "1",
|
|
|
@ -1005,6 +1152,49 @@ export default {
|
|
|
|
label: "不停机",
|
|
|
|
label: "不停机",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
//选择维修状态
|
|
|
|
|
|
|
|
workStatusOption: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
workStatus: "0",
|
|
|
|
|
|
|
|
label: "待维修",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
workStatus: "2",
|
|
|
|
|
|
|
|
label: "维修中",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
workStatus: "1",
|
|
|
|
|
|
|
|
label: "维修结束",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
// 日期范围选择快捷
|
|
|
|
|
|
|
|
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]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
@ -1013,6 +1203,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getTeamList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 填写维修记录步骤上一步
|
|
|
|
// 填写维修记录步骤上一步
|
|
|
@ -1032,6 +1223,16 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询维修工单列表 */
|
|
|
|
|
|
|
|
getTeamList() {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
getMaintenanceTeamList(this.queryParams).then((response) => {
|
|
|
|
|
|
|
|
console.log(response.rows);
|
|
|
|
|
|
|
|
this.teamOption = response.rows;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 新增-取消按钮
|
|
|
|
// 新增-取消按钮
|
|
|
|
cancelAddForm() {
|
|
|
|
cancelAddForm() {
|
|
|
|
this.openAdd = false;
|
|
|
|
this.openAdd = false;
|
|
|
@ -1093,6 +1294,9 @@ export default {
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
resetQuery() {
|
|
|
|
resetQuery() {
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
|
|
//计划维修时间组、计划停机时间组
|
|
|
|
|
|
|
|
this.queryParams.workPlanTimeArray = [],
|
|
|
|
|
|
|
|
this.queryParams.workPlanDownTimeArray = [],
|
|
|
|
this.handleQuery();
|
|
|
|
this.handleQuery();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框备品备件选中数据
|
|
|
|
// 多选框备品备件选中数据
|
|
|
|