设备 三个模糊查询

yangwl
A0010407 11 months ago
parent 02e9f600d3
commit cbbfbf6de1

@ -965,16 +965,25 @@
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item label="故障描述" prop="orderDesc">
<el-input
v-model="form.orderDesc"
placeholder="请输入故障描述"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4 }"
/>
</el-form-item>
<el-col :span="8">
<el-form-item label="故障描述" prop="orderDesc">
<el-select
v-model="form.orderDesc"
@change="$forceUpdate()"
clearable
filterable
style="width: 200px"
@keyup.enter.native="handleQuery"
>
<el-option
v-for="item in orderDescOption"
:key="item.faultCode"
:label="item.faultSubclass"
:value="item.faultSubclass"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
@ -1122,6 +1131,7 @@ import ItemSelect from "./selectSingleEquipment.vue";
import ItemSelectPerson from "./selectSinglePerson.vue";
import { Message } from "element-ui";
import { getMaintenanceTeamList } from "@/api/device/equTeam";
import { listFaultDescription } from "@/api/device/faultDescription";
export default {
name: "FaultReport",
@ -1144,6 +1154,12 @@ export default {
"text-align": "center",
width: "120px",
},
auxiliaryQueryParams: {
pageNum: 1,
pageSize: 1000,
},
//
orderDescOption : [],
teamOption: [],
//
fileList: [],
@ -1282,6 +1298,7 @@ export default {
},
created() {
this.getList();
this.getOrderDesc();
},
methods: {
//
@ -1316,6 +1333,13 @@ export default {
console.log(nowDate(time));
this.form.workPlanTime = nowDate(time);
},
/** 查询维修措施列表 */
getOrderDesc() {
this.loading = true;
listFaultDescription(this.auxiliaryQueryParams).then((response) => {
this.orderDescOption = response.rows;
});
},
//
handleSelectEquipment() {
this.$refs.itemSelect.showFlag = true;

@ -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;
});
},

Loading…
Cancel
Save