|
|
|
@ -989,7 +989,7 @@
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.workPerson"
|
|
|
|
|
placeholder="请选择维修人"
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="append"
|
|
|
|
@ -1009,7 +1009,7 @@
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.workStatus"
|
|
|
|
|
placeholder="请选择维修状态"
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.device_repair_status"
|
|
|
|
@ -1026,7 +1026,7 @@
|
|
|
|
|
:min="0"
|
|
|
|
|
:step="1"
|
|
|
|
|
v-model="form.workCost"
|
|
|
|
|
style="width: 175px"
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
/>
|
|
|
|
|
<span> 元</span>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -1039,9 +1039,9 @@
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.workStartTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
@change="listening"
|
|
|
|
|
@change="listeningTime"
|
|
|
|
|
placeholder="请输入开始时间"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -1052,7 +1052,7 @@
|
|
|
|
|
clearable
|
|
|
|
|
v-model="form.workEndTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
@change="listeningTime"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
placeholder="请输入结束时间"
|
|
|
|
@ -1061,7 +1061,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="维修用时" prop="workCostTime">
|
|
|
|
|
<el-input v-model="form.workCostTime" style="width: 195px" disabled>
|
|
|
|
|
<el-input v-model="form.workCostTime" style="width: 250px" disabled>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -1080,35 +1080,51 @@
|
|
|
|
|
<el-cascader
|
|
|
|
|
:options="faultTypeOption"
|
|
|
|
|
v-model="form.faultType"
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
clearable
|
|
|
|
|
></el-cascader>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="原因分析" prop="workReason">
|
|
|
|
|
<el-input
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="故障原因" prop="workReason">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.workReason"
|
|
|
|
|
placeholder="请输入原因分析"
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
style="width: 940px"
|
|
|
|
|
/>
|
|
|
|
|
placeholder="请选择故障原因"
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
clearable
|
|
|
|
|
filterable
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in workReasonOption"
|
|
|
|
|
:key="item.faultCode"
|
|
|
|
|
:label="item.faultSubclass"
|
|
|
|
|
:value="item.faultSubclass"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="处理措施" prop="repairMeasures">
|
|
|
|
|
<el-input
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.repairMeasures"
|
|
|
|
|
placeholder="请输入处理措施"
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
style="width: 940px"
|
|
|
|
|
/>
|
|
|
|
|
placeholder="请选择处理措施"
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
clearable
|
|
|
|
|
filterable
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in repairMeasuresOption"
|
|
|
|
|
:key="item.faultCode"
|
|
|
|
|
:label="item.faultSubclass"
|
|
|
|
|
:value="item.faultSubclass"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -1379,7 +1395,7 @@
|
|
|
|
|
type="datetime"
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
@change="listening"
|
|
|
|
|
@change="listeningTime"
|
|
|
|
|
disabled
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -1430,29 +1446,44 @@
|
|
|
|
|
</el-col> -->
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="原因分析" prop="workReason">
|
|
|
|
|
<el-input
|
|
|
|
|
disabled
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="故障原因" prop="workReason">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.workReason"
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
style="width: 940px"
|
|
|
|
|
/>
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
disabled
|
|
|
|
|
clearable
|
|
|
|
|
filterable
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in workReasonOption"
|
|
|
|
|
:key="item.faultCode"
|
|
|
|
|
:label="item.faultSubclass"
|
|
|
|
|
:value="item.faultCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="处理措施" prop="repairMeasures">
|
|
|
|
|
<el-input
|
|
|
|
|
disabled
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.repairMeasures"
|
|
|
|
|
placeholder="请输入处理措施"
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
style="width: 940px"
|
|
|
|
|
/>
|
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
clearable
|
|
|
|
|
filterable
|
|
|
|
|
disabled
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in repairMeasuresOption"
|
|
|
|
|
:key="item.faultCode"
|
|
|
|
|
:label="item.faultSubclass"
|
|
|
|
|
:value="item.faultCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -1487,6 +1518,8 @@ import {
|
|
|
|
|
writeRepairOrder,
|
|
|
|
|
queryEquFaultTypeTree,
|
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
|
import { listFaultReason } from "@/api/device/faultReason";
|
|
|
|
|
import { listFaultMeasures } from "@/api/device/faultMeasures";
|
|
|
|
|
import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
|
import ItemSelect from "./selectSingleEquipment.vue";
|
|
|
|
|
import ItemSelectPerson from "./selectSinglePerson.vue";
|
|
|
|
@ -1533,6 +1566,10 @@ export default {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "250px",
|
|
|
|
|
},
|
|
|
|
|
//维修处理措施模糊选择
|
|
|
|
|
repairMeasuresOption : [],
|
|
|
|
|
//原因分析模糊选择
|
|
|
|
|
workReasonOption: [],
|
|
|
|
|
//检查项表格数据
|
|
|
|
|
detailList: [],
|
|
|
|
|
//维修前照片
|
|
|
|
@ -1602,6 +1639,10 @@ export default {
|
|
|
|
|
workPlanTimeArray: [],
|
|
|
|
|
workPlanDownTimeArray: [],
|
|
|
|
|
},
|
|
|
|
|
auxiliaryQueryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 1000,
|
|
|
|
|
},
|
|
|
|
|
//选择是否委外
|
|
|
|
|
workOutsourceOption: [
|
|
|
|
|
{
|
|
|
|
@ -1680,6 +1721,8 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getTeamList();
|
|
|
|
|
this.getEquFaultTypeTree();
|
|
|
|
|
this.getWorkReason();
|
|
|
|
|
this.getRepairMeasures();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 生成表头序号
|
|
|
|
@ -1743,11 +1786,24 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询维修工单列表 */
|
|
|
|
|
/** 查询维修原因列表 */
|
|
|
|
|
getWorkReason() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listFaultReason(this.auxiliaryQueryParams).then((response) => {
|
|
|
|
|
this.workReasonOption = response.rows;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询维修措施列表 */
|
|
|
|
|
getRepairMeasures() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listFaultMeasures(this.auxiliaryQueryParams).then((response) => {
|
|
|
|
|
this.repairMeasuresOption = response.rows;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询维修班组列表 */
|
|
|
|
|
getTeamList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getMaintenanceTeamList(this.queryParams).then((response) => {
|
|
|
|
|
console.log(response.rows);
|
|
|
|
|
this.teamOption = response.rows;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|