报修+维修工单

master
A0010407 1 year ago
parent 9e980dadf8
commit d0a3ce7658

@ -449,6 +449,7 @@
clearable clearable
v-model="form.workPlanTime" v-model="form.workPlanTime"
type="datetime" type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择计划维修时间" placeholder="请选择计划维修时间"
> >
</el-date-picker> </el-date-picker>
@ -460,6 +461,7 @@
clearable clearable
v-model="form.workPlanDownTime" v-model="form.workPlanDownTime"
type="datetime" type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择计划停机时间" placeholder="请选择计划停机时间"
> >
</el-date-picker> </el-date-picker>

@ -42,20 +42,26 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="是否委外" prop="workOutsource"> <el-form-item label="是否委外" prop="workOutsource">
<el-input <el-select
v-model="queryParams.workOutsource" v-model="queryParams.workOutsource"
placeholder="请输入是否委外" placeholder="请选择是否委外"
@change="$forceUpdate()"
clearable clearable
@keyup.enter.native="handleQuery" style="width:220px"
/> @keyup.enter.native="handleQuery">
<el-option v-for="item in workOutsourceOption" :key="item.workOutsource" :label="item.label" :value="item.workOutsource"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否停机维修" prop="workDownMachine"> <el-form-item label="是否停机维修" prop="workDownMachine">
<el-input <el-select
v-model="queryParams.workDownMachine" v-model="queryParams.workDownMachine"
placeholder="请输入是否停机维修" placeholder="请选择是否停机"
@change="$forceUpdate()"
clearable clearable
@keyup.enter.native="handleQuery" style="width:220px"
/> @keyup.enter.native="handleQuery">
<el-option v-for="item in workDownMachineOption" :key="item.workDownMachine" :label="item.label" :value="item.workDownMachine"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="设备编码" prop="equipmentCode"> <el-form-item label="设备编码" prop="equipmentCode">
<el-input <el-input
@ -78,6 +84,7 @@
v-model="queryParams.factoryCode" v-model="queryParams.factoryCode"
placeholder="请输入工厂编码" placeholder="请输入工厂编码"
clearable clearable
style="width:220px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
@ -142,7 +149,11 @@
<span>{{ parseTime(scope.row.workPlanTime) }}</span> <span>{{ parseTime(scope.row.workPlanTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否停机维修" align="center" prop="workDownMachine" width="180"/> <el-table-column label="是否停机维修" align="center" prop="workDownMachine" width="180">
<template slot-scope="scope">
{{ scope.row.workDownMachine == "1" ? "停机" : "不停机" }}
</template>
</el-table-column>
<el-table-column label="计划停机时间" align="center" prop="workPlanDownTime" width="180"> <el-table-column label="计划停机时间" align="center" prop="workPlanDownTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.workPlanDownTime) }}</span> <span>{{ parseTime(scope.row.workPlanDownTime) }}</span>
@ -150,9 +161,12 @@
</el-table-column> </el-table-column>
<el-table-column label="维修人员" align="center" prop="workPerson" /> <el-table-column label="维修人员" align="center" prop="workPerson" />
<el-table-column label="维修组" align="center" prop="workTeam" /> <el-table-column label="维修组" align="center" prop="workTeam" />
<el-table-column label="是否委外" align="center" prop="workOutsource" /> <el-table-column label="是否委外" align="center" prop="workOutsource" >
<template slot-scope="scope">
{{ scope.row.workOutsource == "1" ? "委外" : "不委外" }}
</template>
</el-table-column>
<el-table-column label="委外工单编码" align="center" prop="outWorkCode" width="180"/> <el-table-column label="委外工单编码" align="center" prop="outWorkCode" width="180"/>
<el-table-column label="原因分析" align="center" prop="workReason" /> <el-table-column label="原因分析" align="center" prop="workReason" />
<el-table-column label="故障描述" align="center" prop="workFaultDesc" /> <el-table-column label="故障描述" align="center" prop="workFaultDesc" />
<el-table-column label="维修用时" align="center" prop="workCostTime" width="180"> <el-table-column label="维修用时" align="center" prop="workCostTime" width="180">
@ -162,7 +176,7 @@
</el-table-column> </el-table-column>
<el-table-column label="维修费用" align="center" prop="workCost" /> <el-table-column label="维修费用" align="center" prop="workCost" />
<el-table-column label="工厂编码" align="center" prop="factoryCode" /> <el-table-column label="工厂编码" align="center" prop="factoryCode" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -334,6 +348,20 @@ export default {
attr3: null, attr3: null,
factoryCode: null factoryCode: null
}, },
workOutsourceOption: [{
workOutsource: "1",
label: '委外'
}, {
workOutsource: "0",
label: '不委外'
}],
workDownMachineOption: [{
workDownMachine: "1",
label: '停机'
}, {
workDownMachine: "0",
label: '不停机'
}],
// //
form: {}, form: {},
// //

Loading…
Cancel
Save