|
|
@ -1055,7 +1055,7 @@
|
|
|
|
</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: 195px">
|
|
|
|
<el-input v-model="form.workCostTime" style="width: 195px" disabled>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -1069,7 +1069,7 @@
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<!-- <el-col :span="8">
|
|
|
|
<el-form-item label="故障类型" prop="faultType">
|
|
|
|
<el-form-item label="故障类型" prop="faultType">
|
|
|
|
<el-cascader
|
|
|
|
<el-cascader
|
|
|
|
:options="faultTypeOption"
|
|
|
|
:options="faultTypeOption"
|
|
|
@ -1078,7 +1078,7 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
></el-cascader>
|
|
|
|
></el-cascader>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col> -->
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
@ -1275,6 +1275,7 @@
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
v-model="scope.row.repairValue"
|
|
|
|
v-model="scope.row.repairValue"
|
|
|
|
v-if="scope.row.standardType == 'quantify'"
|
|
|
|
v-if="scope.row.standardType == 'quantify'"
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
@ -1397,7 +1398,7 @@
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<!-- <el-col :span="8">
|
|
|
|
<el-form-item label="故障类型" prop="faultType">
|
|
|
|
<el-form-item label="故障类型" prop="faultType">
|
|
|
|
<el-cascader
|
|
|
|
<el-cascader
|
|
|
|
disabled
|
|
|
|
disabled
|
|
|
@ -1407,7 +1408,7 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
></el-cascader>
|
|
|
|
></el-cascader>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col> -->
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
@ -1429,6 +1430,7 @@
|
|
|
|
:optType="optType"
|
|
|
|
:optType="optType"
|
|
|
|
:workCode="form.workCode"
|
|
|
|
:workCode="form.workCode"
|
|
|
|
:equipmentCode="form.equipmentCode"
|
|
|
|
:equipmentCode="form.equipmentCode"
|
|
|
|
|
|
|
|
:workStatus="form.workStatus"
|
|
|
|
v-if="form.workCode != null"
|
|
|
|
v-if="form.workCode != null"
|
|
|
|
></ItemSelectSpareParts>
|
|
|
|
></ItemSelectSpareParts>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
@ -1991,6 +1993,27 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 提交填写维修记录按钮 */
|
|
|
|
/** 提交填写维修记录按钮 */
|
|
|
|
submitWriteForm() {
|
|
|
|
submitWriteForm() {
|
|
|
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
|
|
|
|
if (this.form.workStatus == null || this.form.workStatus == "") {
|
|
|
|
|
|
|
|
Message.warning("维修状态不能为空");
|
|
|
|
|
|
|
|
} else if (
|
|
|
|
|
|
|
|
this.form.workPerson == null ||
|
|
|
|
|
|
|
|
this.form.workPerson == ""
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
Message.warning("维修人员不能为空");
|
|
|
|
|
|
|
|
} else if (
|
|
|
|
|
|
|
|
this.form.workStartTime == null ||
|
|
|
|
|
|
|
|
this.form.workStartTime == ""
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
Message.warning("维修开始时间不能为空");
|
|
|
|
|
|
|
|
} else if (
|
|
|
|
|
|
|
|
this.form.workEndTime == null ||
|
|
|
|
|
|
|
|
this.form.workEndTime == ""
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
Message.warning("维修结束时间不能为空");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
if (Array.isArray(this.form.afterRepairFile)) {
|
|
|
|
if (Array.isArray(this.form.afterRepairFile)) {
|
|
|
|
this.form.afterRepairFile = this.listToString(
|
|
|
|
this.form.afterRepairFile = this.listToString(
|
|
|
|
this.form.afterRepairFile
|
|
|
|
this.form.afterRepairFile
|
|
|
@ -2001,10 +2024,6 @@ export default {
|
|
|
|
this.form.faultType = this.form.faultType.join(",");
|
|
|
|
this.form.faultType = this.form.faultType.join(",");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.form.faultType);
|
|
|
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
|
|
|
|
this.form.standardList = this.detailList;
|
|
|
|
this.form.standardList = this.detailList;
|
|
|
|
//每个检查项
|
|
|
|
//每个检查项
|
|
|
|
this.form.standardList.forEach((item) => {
|
|
|
|
this.form.standardList.forEach((item) => {
|
|
|
@ -2012,7 +2031,6 @@ export default {
|
|
|
|
item.picturePath = this.listToString(item.picturePath);
|
|
|
|
item.picturePath = this.listToString(item.picturePath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log(this.form.standardList);
|
|
|
|
|
|
|
|
writeRepairOrder(this.form).then((response) => {
|
|
|
|
writeRepairOrder(this.form).then((response) => {
|
|
|
|
this.openWrite = false;
|
|
|
|
this.openWrite = false;
|
|
|
|
this.$modal.msgSuccess("填写维修记录成功!");
|
|
|
|
this.$modal.msgSuccess("填写维修记录成功!");
|
|
|
@ -2021,6 +2039,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//设备选择
|
|
|
|
//设备选择
|
|
|
@ -2139,10 +2158,6 @@ export default {
|
|
|
|
margin-left: 452px;
|
|
|
|
margin-left: 452px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-body {
|
|
|
|
|
|
|
|
margin-top: 30px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.standardUrl_body {
|
|
|
|
.standardUrl_body {
|
|
|
|
height: 400px;
|
|
|
|
height: 400px;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-y: auto;
|
|
|
|