|
|
@ -308,164 +308,62 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tab-pane label="查看报修信息">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-descriptions :column="3" border>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
form.equipmentCode
|
|
|
|
<el-input
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
v-model="form.equipmentCode"
|
|
|
|
<el-descriptions-item label="故障时间">{{
|
|
|
|
disabled
|
|
|
|
form.orderBreakdownTime
|
|
|
|
style="width: 195px"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="报修来源">{{
|
|
|
|
</el-input>
|
|
|
|
form.orderSource
|
|
|
|
<ItemSelect
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
ref="itemSelect"
|
|
|
|
<el-descriptions-item label="报修时间">{{
|
|
|
|
@onSelected="onItemSelectedEquipment"
|
|
|
|
form.orderTime
|
|
|
|
>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</ItemSelect>
|
|
|
|
<el-descriptions-item label="报修人名字">{{
|
|
|
|
</el-form-item>
|
|
|
|
form.orderRepairmanName
|
|
|
|
</el-col>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-descriptions-item label="联系方式">{{
|
|
|
|
<el-form-item label="设备名称" prop="equipmentName">
|
|
|
|
form.orderConnection
|
|
|
|
<el-input
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
v-model="form.equipmentName"
|
|
|
|
<el-descriptions-item label="故障描述">{{
|
|
|
|
disabled
|
|
|
|
form.orderDesc
|
|
|
|
style="width: 195px"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-input>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
</el-form-item>
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
</el-col>
|
|
|
|
<el-image
|
|
|
|
<el-col :span="8">
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
<el-form-item label="设备类型" prop="equipmentTypeName">
|
|
|
|
:key="index"
|
|
|
|
<el-input
|
|
|
|
:src="item"
|
|
|
|
v-model="form.equipmentTypeName"
|
|
|
|
></el-image
|
|
|
|
disabled
|
|
|
|
></el-descriptions-item>
|
|
|
|
style="width: 195px"
|
|
|
|
</el-descriptions>
|
|
|
|
>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-input>
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
</el-form-item>
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
</el-col>
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="150">
|
|
|
|
</el-row>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
</el-table-column>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
<el-form-item label="规格型号" prop="equipmentSpec">
|
|
|
|
</el-table-column>
|
|
|
|
<el-input
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
v-model="form.equipmentSpec"
|
|
|
|
</el-table-column>
|
|
|
|
disabled
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
style="width: 195px"
|
|
|
|
</el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
</el-input>
|
|
|
|
</el-table-column>
|
|
|
|
<ItemSelect
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
ref="itemSelect"
|
|
|
|
</el-table-column>
|
|
|
|
@onSelected="onItemSelectedEquipment"
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</ItemSelect>
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
</el-form-item>
|
|
|
|
</el-table-column>
|
|
|
|
</el-col>
|
|
|
|
</el-table>
|
|
|
|
<el-col :span="8">
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-form-item label="所在部门" prop="department">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.department"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="所在位置" prop="equipmentLocation">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentLocation"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="故障时间" prop="orderBreakdownTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.orderBreakdownTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
placeholder="选择日期时间"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="报修来源" prop="orderSource">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="form.orderSource"
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.device_order_source"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="报修时间" prop="orderTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.orderTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
placeholder="报修时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="报修人编号" prop="orderRepairmanCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.orderRepairmanCode"
|
|
|
|
|
|
|
|
placeholder="请输入报修人编号"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="联系方式" prop="orderConnection">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.orderConnection"
|
|
|
|
|
|
|
|
placeholder="请输入联系方式"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</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 }"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-form-item label="故障图片" prop="orderPicture">
|
|
|
|
|
|
|
|
<FileUpload v-model="form.fileList" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
<el-tab-pane label="审核">
|
|
|
|
<el-tab-pane label="审核">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
@ -474,7 +372,7 @@
|
|
|
|
<el-radio label="计划性维修">计划性维修</el-radio>
|
|
|
|
<el-radio label="计划性维修">计划性维修</el-radio>
|
|
|
|
<el-radio label="不维修">不维修</el-radio>
|
|
|
|
<el-radio label="不维修">不维修</el-radio>
|
|
|
|
<el-radio label="委外维修">委外维修</el-radio>
|
|
|
|
<el-radio label="委外维修">委外维修</el-radio>
|
|
|
|
<el-radio label="立即维修" @click="timeBackFilling"
|
|
|
|
<el-radio label="立即维修" @click.native ="timeBackFilling"
|
|
|
|
>立即维修</el-radio
|
|
|
|
>立即维修</el-radio
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
@ -484,10 +382,21 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
|
<el-form-item prop="workTeam" label="维修组">
|
|
|
|
<el-form-item prop="workTeam" label="维修组">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
v-model="form.workTeam"
|
|
|
|
v-model="form.workTeam"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
/>
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<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-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
@ -552,10 +461,21 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
|
<el-form-item prop="workTeam" label="维修组">
|
|
|
|
<el-form-item prop="workTeam" label="维修组">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
v-model="form.workTeam"
|
|
|
|
v-model="form.workTeam"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
/>
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<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-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
@ -564,7 +484,7 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
type="datetime"
|
|
|
|
type="datetime"
|
|
|
|
placeholder=""
|
|
|
|
disabled
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -670,330 +590,162 @@
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-form-item label="设备编码" prop="equipmentCode">
|
|
|
|
<el-descriptions :column="3" border>
|
|
|
|
<el-input
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
v-model="form.equipmentCode"
|
|
|
|
form.equipmentCode
|
|
|
|
disabled
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
style="width: 195px"
|
|
|
|
<el-descriptions-item label="设备名称">{{
|
|
|
|
>
|
|
|
|
form.equipmentName
|
|
|
|
</el-input>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<ItemSelect
|
|
|
|
<el-descriptions-item label="设备类型">{{
|
|
|
|
ref="itemSelect"
|
|
|
|
form.equipmentTypeName
|
|
|
|
@onSelected="onItemSelectedEquipment"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="规格型号">{{
|
|
|
|
</ItemSelect>
|
|
|
|
form.equipmentSpec
|
|
|
|
</el-form-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-col>
|
|
|
|
<el-descriptions-item label="所在部门">{{
|
|
|
|
<el-col :span="8">
|
|
|
|
form.department
|
|
|
|
<el-form-item label="设备名称" prop="equipmentName">
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-input
|
|
|
|
<el-descriptions-item label="所在位置">{{
|
|
|
|
v-model="form.equipmentName"
|
|
|
|
form.equipmentLocation
|
|
|
|
disabled
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
style="width: 195px"
|
|
|
|
<el-descriptions-item label="故障时间">{{
|
|
|
|
>
|
|
|
|
form.orderBreakdownTime
|
|
|
|
</el-input>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-descriptions-item label="报修来源">{{
|
|
|
|
</el-col>
|
|
|
|
form.orderSource
|
|
|
|
<el-col :span="8">
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-form-item label="设备类型" prop="equipmentTypeName">
|
|
|
|
<el-descriptions-item label="报修时间">{{
|
|
|
|
<el-input
|
|
|
|
form.orderTime
|
|
|
|
v-model="form.equipmentTypeName"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
disabled
|
|
|
|
<el-descriptions-item label="报修人名字">{{
|
|
|
|
style="width: 195px"
|
|
|
|
form.orderRepairmanName
|
|
|
|
>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-input>
|
|
|
|
<el-descriptions-item label="联系方式">{{
|
|
|
|
</el-form-item>
|
|
|
|
form.orderConnection
|
|
|
|
</el-col>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-row>
|
|
|
|
<el-descriptions-item label="故障描述">{{
|
|
|
|
|
|
|
|
form.orderDesc
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
|
|
|
|
<el-image
|
|
|
|
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
:src="item"
|
|
|
|
|
|
|
|
></el-image
|
|
|
|
|
|
|
|
></el-descriptions-item>
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-tab-pane label="报修信息审核结果">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-descriptions
|
|
|
|
<el-form-item label="规格型号" prop="equipmentSpec">
|
|
|
|
:column="2"
|
|
|
|
<el-input
|
|
|
|
border
|
|
|
|
v-model="form.equipmentSpec"
|
|
|
|
v-if="form.repairDestination == '计划性维修'"
|
|
|
|
disabled
|
|
|
|
>
|
|
|
|
style="width: 195px"
|
|
|
|
<el-descriptions-item label="报修去向">{{
|
|
|
|
>
|
|
|
|
form.repairDestination
|
|
|
|
</el-input>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<ItemSelect
|
|
|
|
<el-descriptions-item label="维修组">{{
|
|
|
|
ref="itemSelect"
|
|
|
|
form.workTeam
|
|
|
|
@onSelected="onItemSelectedEquipment"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="计划维修时间">{{
|
|
|
|
</ItemSelect>
|
|
|
|
form.workPlanTime
|
|
|
|
</el-form-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-col>
|
|
|
|
<el-descriptions-item label="是否停机维修">{{
|
|
|
|
<el-col :span="8">
|
|
|
|
form.workDownMachine
|
|
|
|
<el-form-item label="所在部门" prop="department">
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-input v-model="form.department" disabled style="width: 195px">
|
|
|
|
<el-descriptions-item label="计划停机时间">{{
|
|
|
|
</el-input>
|
|
|
|
form.workPlanDownTime
|
|
|
|
</el-form-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-col>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="所在位置" prop="equipmentLocation">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.equipmentLocation"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
style="width: 195px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-descriptions
|
|
|
|
<el-col :span="8">
|
|
|
|
:column="2"
|
|
|
|
<el-form-item label="故障时间" prop="orderBreakdownTime">
|
|
|
|
border
|
|
|
|
<el-date-picker
|
|
|
|
v-if="form.repairDestination == '立即维修'"
|
|
|
|
clearable
|
|
|
|
>
|
|
|
|
v-model="form.orderBreakdownTime"
|
|
|
|
<el-descriptions-item label="报修去向">{{
|
|
|
|
type="datetime"
|
|
|
|
form.repairDestination
|
|
|
|
placeholder="选择日期时间"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
disabled
|
|
|
|
<el-descriptions-item label="维修组">{{
|
|
|
|
style="width: 195px"
|
|
|
|
form.workTeam
|
|
|
|
>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-date-picker>
|
|
|
|
<el-descriptions-item label="计划维修时间">{{
|
|
|
|
</el-form-item>
|
|
|
|
form.workPlanTime
|
|
|
|
</el-col>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-descriptions-item label="是否停机维修">{{
|
|
|
|
<el-form-item label="报修来源" prop="orderSource">
|
|
|
|
form.workDownMachine
|
|
|
|
<el-select
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
v-model="form.orderSource"
|
|
|
|
<el-descriptions-item label="计划停机时间">{{
|
|
|
|
style="width: 195px"
|
|
|
|
form.workPlanDownTime
|
|
|
|
disabled
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.device_order_source"
|
|
|
|
<el-descriptions
|
|
|
|
:key="dict.value"
|
|
|
|
:column="1"
|
|
|
|
:label="dict.label"
|
|
|
|
border
|
|
|
|
:value="dict.value"
|
|
|
|
v-if="form.repairDestination == '不维修'"
|
|
|
|
></el-option>
|
|
|
|
>
|
|
|
|
</el-select>
|
|
|
|
<el-descriptions-item label="报修去向">{{
|
|
|
|
</el-form-item>
|
|
|
|
form.repairDestination
|
|
|
|
</el-col>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-col :span="8">
|
|
|
|
</el-descriptions>
|
|
|
|
<el-form-item label="报修时间" prop="orderTime">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
<el-descriptions
|
|
|
|
clearable
|
|
|
|
:column="2"
|
|
|
|
v-model="form.orderTime"
|
|
|
|
border
|
|
|
|
type="datetime"
|
|
|
|
v-if="form.repairDestination == '委外维修'"
|
|
|
|
disabled
|
|
|
|
>
|
|
|
|
style="width: 195px"
|
|
|
|
<el-descriptions-item label="报修去向">{{
|
|
|
|
placeholder="报修时间"
|
|
|
|
form.repairDestination
|
|
|
|
>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-date-picker>
|
|
|
|
<el-descriptions-item label="委外单位">{{
|
|
|
|
</el-form-item>
|
|
|
|
form.workOutsourcingUnit
|
|
|
|
</el-col>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-row>
|
|
|
|
<el-descriptions-item label="委外人员">{{
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
form.outSourcePerson
|
|
|
|
<el-col :span="8">
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-form-item label="报修人编号" prop="orderRepairmanCode">
|
|
|
|
<el-descriptions-item label="委外联系方式">{{
|
|
|
|
<el-input
|
|
|
|
form.workConnection
|
|
|
|
v-model="form.orderRepairmanCode"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
placeholder="请输入报修人编号"
|
|
|
|
</el-descriptions>
|
|
|
|
disabled
|
|
|
|
<el-descriptions :column="2"
|
|
|
|
style="width: 195px"
|
|
|
|
border
|
|
|
|
/>
|
|
|
|
v-if="form.repairDestination == '委外维修'">
|
|
|
|
</el-form-item>
|
|
|
|
<el-descriptions-item label="委外原因">{{
|
|
|
|
</el-col>
|
|
|
|
form.outSourceReason
|
|
|
|
<el-col :span="8">
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-form-item label="联系方式" prop="orderConnection">
|
|
|
|
</el-descriptions>
|
|
|
|
<el-input
|
|
|
|
</el-tab-pane>
|
|
|
|
v-model="form.orderConnection"
|
|
|
|
|
|
|
|
placeholder="请输入联系方式"
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
disabled
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
style="width: 195px"
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="150">
|
|
|
|
/>
|
|
|
|
</el-table-column>
|
|
|
|
</el-form-item>
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
</el-col>
|
|
|
|
</el-table-column>
|
|
|
|
</el-row>
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
<el-row>
|
|
|
|
</el-table-column>
|
|
|
|
<el-form-item label="故障描述" prop="orderDesc">
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
<el-input
|
|
|
|
</el-table-column>
|
|
|
|
v-model="form.orderDesc"
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
placeholder="请输入故障描述"
|
|
|
|
</el-table-column>
|
|
|
|
type="textarea"
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
</el-table-column>
|
|
|
|
disabled
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
/>
|
|
|
|
</el-table-column>
|
|
|
|
</el-form-item>
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
</el-row>
|
|
|
|
</el-table-column>
|
|
|
|
<el-form-item label="故障图片" prop="orderPicture">
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
<el-input v-model="form.orderPicture" placeholder="请输入故障图片" />
|
|
|
|
</el-table-column>
|
|
|
|
</el-form-item>
|
|
|
|
</el-table>
|
|
|
|
<el-divider>报修信息审核</el-divider>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-row>
|
|
|
|
</el-tabs>
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<el-form-item label="报修去向" prop="repairDestination">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.repairDestination">
|
|
|
|
|
|
|
|
<el-radio label="计划性维修">计划性维修</el-radio>
|
|
|
|
|
|
|
|
<el-radio label="不维修">不维修</el-radio>
|
|
|
|
|
|
|
|
<el-radio label="委外维修">委外维修</el-radio>
|
|
|
|
|
|
|
|
<el-radio label="立即维修" @click="timeBackFilling"
|
|
|
|
|
|
|
|
>立即维修</el-radio
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="workTeam" label="维修组">
|
|
|
|
|
|
|
|
<el-input v-model="form.workTeam" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="workPlanTime" label="计划维修时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '计划性维修'">
|
|
|
|
|
|
|
|
<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-col>
|
|
|
|
|
|
|
|
<el-col
|
|
|
|
|
|
|
|
:span="8"
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
form.repairDestination == '计划性维修' &&
|
|
|
|
|
|
|
|
form.workDownMachine == '1'
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form-item prop="workPlanDownTime" label="计划停机时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col
|
|
|
|
|
|
|
|
:span="8"
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
form.repairDestination == '计划性维修' &&
|
|
|
|
|
|
|
|
form.workDownMachine == '0'
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form-item prop="workPlanDownTime" label="计划停机时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="workTeam" label="维修组">
|
|
|
|
|
|
|
|
<el-input v-model="form.workTeam" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="workPlanTime" label="计划维修时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '立即维修'">
|
|
|
|
|
|
|
|
<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-col>
|
|
|
|
|
|
|
|
<el-col
|
|
|
|
|
|
|
|
:span="8"
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
form.repairDestination == '立即维修' &&
|
|
|
|
|
|
|
|
form.workDownMachine == '1'
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form-item prop="workPlanDownTime" label="计划停机时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col
|
|
|
|
|
|
|
|
:span="8"
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
form.repairDestination == '立即维修' &&
|
|
|
|
|
|
|
|
form.workDownMachine == '0'
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form-item prop="workPlanDownTime" label="计划停机时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
v-model="form.workPlanDownTime"
|
|
|
|
|
|
|
|
type="datetime"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '委外维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="workOutsourcingUnit" label="委外单位">
|
|
|
|
|
|
|
|
<el-input v-model="form.workOutsourcingUnit" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '委外维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="outSourcePerson" label="委外维修人员">
|
|
|
|
|
|
|
|
<el-input v-model="form.outSourcePerson" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" v-if="form.repairDestination == '委外维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="workConnection" label="联系方式">
|
|
|
|
|
|
|
|
<el-input v-model="form.workConnection" disabled />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="form.repairDestination == '委外维修'">
|
|
|
|
|
|
|
|
<el-form-item prop="outSourceReason" label="委外原因">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="form.outSourceReason"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button @click="cancelCheckForm">返 回</el-button>
|
|
|
|
<el-button @click="cancelCheckForm">返 回</el-button>
|
|
|
@ -1167,40 +919,36 @@
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
<el-image v-for="(item, index) in urlLists" :key="index":src="item"></el-image></el-descriptions-item>
|
|
|
|
<el-image
|
|
|
|
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
:src="item"
|
|
|
|
|
|
|
|
></el-image
|
|
|
|
|
|
|
|
></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="150">
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="150">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
prop="standardName"
|
|
|
|
</el-table-column>
|
|
|
|
label="标准名称"
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
width="180"
|
|
|
|
</el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
prop="standardType"
|
|
|
|
</el-table-column>
|
|
|
|
label="标准类型"
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
width="100"
|
|
|
|
</el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
</el-table>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
@ -1224,6 +972,7 @@ import {
|
|
|
|
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";
|
|
|
|
|
|
|
|
import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "FaultReport",
|
|
|
|
name: "FaultReport",
|
|
|
@ -1231,6 +980,8 @@ export default {
|
|
|
|
dicts: ["device_order_source"],
|
|
|
|
dicts: ["device_order_source"],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
//选择设备维修班组
|
|
|
|
|
|
|
|
teamOption: [],
|
|
|
|
//图片存储
|
|
|
|
//图片存储
|
|
|
|
fileList: [],
|
|
|
|
fileList: [],
|
|
|
|
//设备选择
|
|
|
|
//设备选择
|
|
|
@ -1252,7 +1003,7 @@ export default {
|
|
|
|
//检查项表格数据
|
|
|
|
//检查项表格数据
|
|
|
|
checkList: [],
|
|
|
|
checkList: [],
|
|
|
|
//url表
|
|
|
|
//url表
|
|
|
|
urlLists:[],
|
|
|
|
urlLists: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
@ -1363,9 +1114,6 @@ export default {
|
|
|
|
orderTime: [
|
|
|
|
orderTime: [
|
|
|
|
{ required: true, message: "报修时间不能为空", trigger: "blur" },
|
|
|
|
{ required: true, message: "报修时间不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
orderRepairmanCode: [
|
|
|
|
|
|
|
|
{ required: true, message: "报修人编号不能为空", trigger: "blur" },
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
orderDesc: [
|
|
|
|
orderDesc: [
|
|
|
|
{ required: true, message: "故障描述不能为空", trigger: "blur" },
|
|
|
|
{ required: true, message: "故障描述不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -1379,9 +1127,26 @@ export default {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
timeBackFilling() {
|
|
|
|
timeBackFilling() {
|
|
|
|
this.form.workPlanTime = new Date();
|
|
|
|
var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
log("时间时间", new Date());
|
|
|
|
var time = new Date(getTime); //创建一个日期对象
|
|
|
|
|
|
|
|
function nowDate(time) {
|
|
|
|
|
|
|
|
var year = time.getFullYear(); // 年
|
|
|
|
|
|
|
|
var month = (time.getMonth() + 1).toString().padStart(2, '0'); // 月
|
|
|
|
|
|
|
|
var date = time.getDate().toString().padStart(2, '0'); // 日
|
|
|
|
|
|
|
|
var hour = time.getHours().toString().padStart(2, '0'); // 时
|
|
|
|
|
|
|
|
var minute = time.getMinutes().toString().padStart(2, '0'); // 分
|
|
|
|
|
|
|
|
var second = time.getSeconds().toString().padStart(2, '0'); // 秒
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(time);
|
|
|
|
|
|
|
|
console.log(nowDate(time));
|
|
|
|
|
|
|
|
this.form.workPlanTime = nowDate(time);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//设备选择
|
|
|
|
//设备选择
|
|
|
|
handleSelectEquipment() {
|
|
|
|
handleSelectEquipment() {
|
|
|
@ -1393,7 +1158,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//人员选择
|
|
|
|
//人员选择
|
|
|
|
onItemSelectedPerson(obj) {
|
|
|
|
onItemSelectedPerson(obj) {
|
|
|
|
console.log("接收参数", obj);
|
|
|
|
console.log("111111111111", obj);
|
|
|
|
this.form.orderRepairmanCode = obj[0].userName;
|
|
|
|
this.form.orderRepairmanCode = obj[0].userName;
|
|
|
|
this.form.orderRepairmanName = obj[0].nickName;
|
|
|
|
this.form.orderRepairmanName = obj[0].nickName;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1507,10 +1272,10 @@ export default {
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
var urlLists = [];
|
|
|
|
var urlLists = [];
|
|
|
|
this.form.fileList.forEach((item) => {
|
|
|
|
this.form.fileList.forEach((item) => {
|
|
|
|
urlLists.push(item.url);
|
|
|
|
urlLists.push(item.url);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.urlLists = urlLists ;
|
|
|
|
this.urlLists = urlLists;
|
|
|
|
console.log("2222222222",this.urlLists)
|
|
|
|
console.log("2222222222", this.urlLists);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.checkList = response.data.checkList;
|
|
|
|
this.checkList = response.data.checkList;
|
|
|
|
//检查项遍历
|
|
|
|
//检查项遍历
|
|
|
@ -1540,6 +1305,10 @@ export default {
|
|
|
|
handleCheck(row) {
|
|
|
|
handleCheck(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const orderId = row.orderId || this.ids;
|
|
|
|
const orderId = row.orderId || this.ids;
|
|
|
|
|
|
|
|
getMaintenanceTeamList(this.queryParams).then((response) => {
|
|
|
|
|
|
|
|
console.log(response.rows);
|
|
|
|
|
|
|
|
this.teamOption = response.rows;
|
|
|
|
|
|
|
|
});
|
|
|
|
getFaultReport(orderId).then((response) => {
|
|
|
|
getFaultReport(orderId).then((response) => {
|
|
|
|
if (response.data.files != null) {
|
|
|
|
if (response.data.files != null) {
|
|
|
|
var newFiles = [];
|
|
|
|
var newFiles = [];
|
|
|
|