|
|
@ -54,9 +54,9 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="报修人编号" prop="orderRepairman">
|
|
|
|
<el-form-item label="报修人编号" prop="orderRepairmanCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.orderRepairman"
|
|
|
|
v-model="queryParams.orderRepairmanCode"
|
|
|
|
placeholder="请输入报修人编号"
|
|
|
|
placeholder="请输入报修人编号"
|
|
|
|
style="width: 200px"
|
|
|
|
style="width: 200px"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
@ -171,6 +171,15 @@
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
|
|
<!-- 序号 -->
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
type="index"
|
|
|
|
|
|
|
|
width="90"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
:index="indexMethod"
|
|
|
|
|
|
|
|
label="序号"
|
|
|
|
|
|
|
|
fixed
|
|
|
|
|
|
|
|
/>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="报修单号"
|
|
|
|
label="报修单号"
|
|
|
|
align="center"
|
|
|
|
align="center"
|
|
|
@ -309,61 +318,67 @@
|
|
|
|
<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-descriptions :column="3" border>
|
|
|
|
<el-descriptions :column="3" border>
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
form.equipmentCode
|
|
|
|
form.equipmentCode
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="故障时间">{{
|
|
|
|
<el-descriptions-item label="故障时间">{{
|
|
|
|
form.orderBreakdownTime
|
|
|
|
form.orderBreakdownTime
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="报修来源">{{
|
|
|
|
<el-descriptions-item label="报修来源">{{
|
|
|
|
form.orderSource
|
|
|
|
form.orderSource
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="报修时间">{{
|
|
|
|
<el-descriptions-item label="报修时间">{{
|
|
|
|
form.orderTime
|
|
|
|
form.orderTime
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="报修人名字">{{
|
|
|
|
<el-descriptions-item label="报修人名字">{{
|
|
|
|
form.orderRepairmanName
|
|
|
|
form.orderRepairmanName
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="联系方式">{{
|
|
|
|
<el-descriptions-item label="联系方式">{{
|
|
|
|
form.orderConnection
|
|
|
|
form.orderConnection
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="故障描述">{{
|
|
|
|
<el-descriptions-item label="故障描述">{{
|
|
|
|
form.orderDesc
|
|
|
|
form.orderDesc
|
|
|
|
}}</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
|
|
|
|
<el-image
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
:src="item"
|
|
|
|
:src="item"
|
|
|
|
></el-image
|
|
|
|
></el-image
|
|
|
|
></el-descriptions-item>
|
|
|
|
></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="200">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="200">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
<dict-tag
|
|
|
|
</el-table-column>
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
:value="scope.row.detailReach"
|
|
|
|
</el-table-column>
|
|
|
|
/>
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="45">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="审核">
|
|
|
|
<el-tab-pane label="审核">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
@ -372,7 +387,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.native ="timeBackFilling"
|
|
|
|
<el-radio label="立即维修" @click.native="timeBackFilling"
|
|
|
|
>立即维修</el-radio
|
|
|
|
>立即维修</el-radio
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
@ -382,21 +397,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-select
|
|
|
|
<el-select
|
|
|
|
v-model="form.workTeam"
|
|
|
|
v-model="form.workTeam"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
filterable
|
|
|
|
filterable
|
|
|
|
style="width: 200px"
|
|
|
|
style="width: 200px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in teamOption"
|
|
|
|
v-for="item in teamOption"
|
|
|
|
:key="item.teamCode"
|
|
|
|
:key="item.teamCode"
|
|
|
|
:label="item.teamName"
|
|
|
|
:label="item.teamName"
|
|
|
|
:value="item.teamCode"
|
|
|
|
:value="item.teamCode"
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</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 == '计划性维修'">
|
|
|
@ -461,21 +476,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-select
|
|
|
|
<el-select
|
|
|
|
v-model="form.workTeam"
|
|
|
|
v-model="form.workTeam"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
placeholder="请选择维修组"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
@change="$forceUpdate()"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
filterable
|
|
|
|
filterable
|
|
|
|
style="width: 200px"
|
|
|
|
style="width: 200px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in teamOption"
|
|
|
|
v-for="item in teamOption"
|
|
|
|
:key="item.teamCode"
|
|
|
|
:key="item.teamCode"
|
|
|
|
:label="item.teamName"
|
|
|
|
:label="item.teamName"
|
|
|
|
:value="item.teamCode"
|
|
|
|
:value="item.teamCode"
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</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 == '立即维修'">
|
|
|
@ -641,7 +656,7 @@
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="报修信息审核结果">
|
|
|
|
<el-tab-pane label="报修审核结果">
|
|
|
|
<el-descriptions
|
|
|
|
<el-descriptions
|
|
|
|
:column="2"
|
|
|
|
:column="2"
|
|
|
|
border
|
|
|
|
border
|
|
|
@ -657,7 +672,7 @@
|
|
|
|
form.workPlanTime
|
|
|
|
form.workPlanTime
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="是否停机维修">{{
|
|
|
|
<el-descriptions-item label="是否停机维修">{{
|
|
|
|
form.workDownMachine
|
|
|
|
form.workDownMachine ? "是" : "否"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="计划停机时间">{{
|
|
|
|
<el-descriptions-item label="计划停机时间">{{
|
|
|
|
form.workPlanDownTime
|
|
|
|
form.workPlanDownTime
|
|
|
@ -679,7 +694,7 @@
|
|
|
|
form.workPlanTime
|
|
|
|
form.workPlanTime
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="是否停机维修">{{
|
|
|
|
<el-descriptions-item label="是否停机维修">{{
|
|
|
|
form.workDownMachine
|
|
|
|
form.workDownMachine ? "是" : "否"
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="计划停机时间">{{
|
|
|
|
<el-descriptions-item label="计划停机时间">{{
|
|
|
|
form.workPlanDownTime
|
|
|
|
form.workPlanDownTime
|
|
|
@ -714,24 +729,34 @@
|
|
|
|
form.workConnection
|
|
|
|
form.workConnection
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-descriptions :column="2"
|
|
|
|
<el-descriptions
|
|
|
|
border
|
|
|
|
:column="2"
|
|
|
|
v-if="form.repairDestination == '委外维修'">
|
|
|
|
border
|
|
|
|
<el-descriptions-item label="委外原因">{{
|
|
|
|
v-if="form.repairDestination == '委外维修'"
|
|
|
|
form.outSourceReason
|
|
|
|
>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="委外原因">{{
|
|
|
|
</el-descriptions>
|
|
|
|
form.outSourceReason
|
|
|
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
</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="200">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="200">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
|
|
|
|
:value="scope.row.detailReach"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -739,9 +764,7 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="45">
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
@ -930,13 +953,21 @@
|
|
|
|
</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="200">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="200">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
|
|
|
|
:value="scope.row.detailReach"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -944,16 +975,14 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="50">
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="45">
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="故障图片">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
<el-button @click="cancelView">返 回</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -977,7 +1006,7 @@ import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "FaultReport",
|
|
|
|
name: "FaultReport",
|
|
|
|
components: { ItemSelect, ItemSelectPerson },
|
|
|
|
components: { ItemSelect, ItemSelectPerson },
|
|
|
|
dicts: ["device_order_source"],
|
|
|
|
dicts: ["device_order_source", "device_reach_standard"],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
//选择设备维修班组
|
|
|
|
//选择设备维修班组
|
|
|
@ -1127,25 +1156,36 @@ export default {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
// 生成表头序号
|
|
|
|
|
|
|
|
indexMethod(index) {
|
|
|
|
|
|
|
|
return index + 1;
|
|
|
|
|
|
|
|
},
|
|
|
|
timeBackFilling() {
|
|
|
|
timeBackFilling() {
|
|
|
|
var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
var time = new Date(getTime); //创建一个日期对象
|
|
|
|
var time = new Date(getTime); //创建一个日期对象
|
|
|
|
function nowDate(time) {
|
|
|
|
function nowDate(time) {
|
|
|
|
var year = time.getFullYear(); // 年
|
|
|
|
var year = time.getFullYear(); // 年
|
|
|
|
var month = (time.getMonth() + 1).toString().padStart(2, '0'); // 月
|
|
|
|
var month = (time.getMonth() + 1).toString().padStart(2, "0"); // 月
|
|
|
|
var date = time.getDate().toString().padStart(2, '0'); // 日
|
|
|
|
var date = time.getDate().toString().padStart(2, "0"); // 日
|
|
|
|
var hour = time.getHours().toString().padStart(2, '0'); // 时
|
|
|
|
var hour = time.getHours().toString().padStart(2, "0"); // 时
|
|
|
|
var minute = time.getMinutes().toString().padStart(2, '0'); // 分
|
|
|
|
var minute = time.getMinutes().toString().padStart(2, "0"); // 分
|
|
|
|
var second = time.getSeconds().toString().padStart(2, '0'); // 秒
|
|
|
|
var second = time.getSeconds().toString().padStart(2, "0"); // 秒
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second
|
|
|
|
year +
|
|
|
|
)
|
|
|
|
"-" +
|
|
|
|
}
|
|
|
|
month +
|
|
|
|
console.log(time);
|
|
|
|
"-" +
|
|
|
|
console.log(nowDate(time));
|
|
|
|
date +
|
|
|
|
|
|
|
|
" " +
|
|
|
|
|
|
|
|
hour +
|
|
|
|
|
|
|
|
":" +
|
|
|
|
|
|
|
|
minute +
|
|
|
|
|
|
|
|
":" +
|
|
|
|
|
|
|
|
second
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(time);
|
|
|
|
|
|
|
|
console.log(nowDate(time));
|
|
|
|
this.form.workPlanTime = nowDate(time);
|
|
|
|
this.form.workPlanTime = nowDate(time);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//设备选择
|
|
|
|
//设备选择
|
|
|
@ -1158,7 +1198,6 @@ var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//人员选择
|
|
|
|
//人员选择
|
|
|
|
onItemSelectedPerson(obj) {
|
|
|
|
onItemSelectedPerson(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;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1180,6 +1219,10 @@ var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 取消按钮
|
|
|
|
|
|
|
|
cancelView() {
|
|
|
|
|
|
|
|
this.openView = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
// 审核返回按钮
|
|
|
|
// 审核返回按钮
|
|
|
|
cancelCheckForm() {
|
|
|
|
cancelCheckForm() {
|
|
|
|
this.viewCheck = false;
|
|
|
|
this.viewCheck = false;
|
|
|
@ -1219,6 +1262,8 @@ var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
resetQuery() {
|
|
|
|
resetQuery() {
|
|
|
|
|
|
|
|
this.queryParams.orderBreakdownTimeArray = null;
|
|
|
|
|
|
|
|
this.queryParams.orderTimeArray = null;
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
this.handleQuery();
|
|
|
|
this.handleQuery();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1285,6 +1330,7 @@ var getTime = new Date().getTime(); //获取到当前时间戳
|
|
|
|
item1.standardList.forEach((item) => {
|
|
|
|
item1.standardList.forEach((item) => {
|
|
|
|
var standard = {};
|
|
|
|
var standard = {};
|
|
|
|
standard.itemName = item1.itemName;
|
|
|
|
standard.itemName = item1.itemName;
|
|
|
|
|
|
|
|
standard.itemMethod = item1.itemMethod;
|
|
|
|
standard.standardName = item.standardName;
|
|
|
|
standard.standardName = item.standardName;
|
|
|
|
standard.detailUpLimit = item.detailUpLimit;
|
|
|
|
standard.detailUpLimit = item.detailUpLimit;
|
|
|
|
standard.detailDownLimit = item.detailDownLimit;
|
|
|
|
standard.detailDownLimit = item.detailDownLimit;
|
|
|
|