|
|
@ -518,13 +518,21 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="故障描述" prop="workFaultDesc">
|
|
|
|
<el-form-item label="故障描述" prop="workFaultDesc">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
v-model="form.workFaultDesc"
|
|
|
|
v-model="form.workFaultDesc"
|
|
|
|
placeholder="请输入故障描述"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
filterable
|
|
|
|
style="width: 280px"
|
|
|
|
style="width: 280px"
|
|
|
|
type="textarea"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
>
|
|
|
|
/>
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in workFaultDescOption"
|
|
|
|
|
|
|
|
:key="item.faultCode"
|
|
|
|
|
|
|
|
:label="item.faultSubclass"
|
|
|
|
|
|
|
|
:value="item.faultSubclass"
|
|
|
|
|
|
|
|
></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">
|
|
|
@ -1061,7 +1069,11 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="维修用时" prop="workCostTime">
|
|
|
|
<el-form-item label="维修用时" prop="workCostTime">
|
|
|
|
<el-input v-model="form.workCostTime" style="width: 250px" disabled>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.workCostTime"
|
|
|
|
|
|
|
|
style="width: 250px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -1520,6 +1532,7 @@ import {
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
import { listFaultReason } from "@/api/device/faultReason";
|
|
|
|
import { listFaultReason } from "@/api/device/faultReason";
|
|
|
|
import { listFaultMeasures } from "@/api/device/faultMeasures";
|
|
|
|
import { listFaultMeasures } from "@/api/device/faultMeasures";
|
|
|
|
|
|
|
|
import { listFaultDescription } from "@/api/device/faultDescription";
|
|
|
|
import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
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";
|
|
|
@ -1566,8 +1579,10 @@ export default {
|
|
|
|
"text-align": "center",
|
|
|
|
"text-align": "center",
|
|
|
|
width: "250px",
|
|
|
|
width: "250px",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//故障描述
|
|
|
|
|
|
|
|
workFaultDescOption : [],
|
|
|
|
//维修处理措施模糊选择
|
|
|
|
//维修处理措施模糊选择
|
|
|
|
repairMeasuresOption : [],
|
|
|
|
repairMeasuresOption: [],
|
|
|
|
//原因分析模糊选择
|
|
|
|
//原因分析模糊选择
|
|
|
|
workReasonOption: [],
|
|
|
|
workReasonOption: [],
|
|
|
|
//检查项表格数据
|
|
|
|
//检查项表格数据
|
|
|
@ -1723,6 +1738,7 @@ export default {
|
|
|
|
this.getEquFaultTypeTree();
|
|
|
|
this.getEquFaultTypeTree();
|
|
|
|
this.getWorkReason();
|
|
|
|
this.getWorkReason();
|
|
|
|
this.getRepairMeasures();
|
|
|
|
this.getRepairMeasures();
|
|
|
|
|
|
|
|
this.getOrderDesc();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 生成表头序号
|
|
|
|
// 生成表头序号
|
|
|
@ -1738,7 +1754,13 @@ export default {
|
|
|
|
let { _data } = duration;
|
|
|
|
let { _data } = duration;
|
|
|
|
console.log("打印维修时间", _data);
|
|
|
|
console.log("打印维修时间", _data);
|
|
|
|
//拼接
|
|
|
|
//拼接
|
|
|
|
this.form.workCostTime = (_data.days*24 + _data.hours + (_data.minutes/60) + (_data.seconds/3600)).toFixed(1)+ "小时" ;
|
|
|
|
this.form.workCostTime =
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
_data.days * 24 +
|
|
|
|
|
|
|
|
_data.hours +
|
|
|
|
|
|
|
|
_data.minutes / 60 +
|
|
|
|
|
|
|
|
_data.seconds / 3600
|
|
|
|
|
|
|
|
).toFixed(1) + "小时";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//计算时间 结束维修时间-开始维修时间
|
|
|
|
//计算时间 结束维修时间-开始维修时间
|
|
|
@ -1774,6 +1796,13 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 查询故障描述列表 */
|
|
|
|
|
|
|
|
getOrderDesc() {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
listFaultDescription(this.auxiliaryQueryParams).then((response) => {
|
|
|
|
|
|
|
|
this.workFaultDescOption = response.rows;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 查询维修原因列表 */
|
|
|
|
/** 查询维修原因列表 */
|
|
|
|
getWorkReason() {
|
|
|
|
getWorkReason() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
@ -1829,8 +1858,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 查看维修记录-取消按钮
|
|
|
|
// 查看维修记录-取消按钮
|
|
|
|
cancelQueryWriteForm() {
|
|
|
|
cancelQueryWriteForm() {
|
|
|
|
this.openWrite = false;
|
|
|
|
this.queryWrite = false;
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
// 表单重置
|
|
|
|
reset() {
|
|
|
|
reset() {
|
|
|
|