巡检工单填写记录

master
wws 1 year ago
parent 90ba20aa3f
commit 3f7054cd78

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="计划id" prop="planId"> <el-form-item v-if="false" label="计划id" prop="planId">
<el-input <el-input
v-model="queryParams.planId" v-model="queryParams.planId"
placeholder="请输入计划id" placeholder="请输入计划id"
@ -17,23 +17,23 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="单号" prop="orderCode"> <el-form-item label="单号" prop="orderCode">
<el-input <el-input
v-model="queryParams.orderCode" v-model="queryParams.orderCode"
placeholder="请输入单号" placeholder="请输入单号"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="车间" prop="planWorkshop"> <el-form-item label="车间编码" prop="planWorkshop">
<el-input <el-input
v-model="queryParams.planWorkshop" v-model="queryParams.planWorkshop"
placeholder="请输入车间" placeholder="请输入车间编码"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="产线" prop="planProdLine"> <el-form-item v-if="false" label="产线" prop="planProdLine">
<el-input <el-input
v-model="queryParams.planProdLine" v-model="queryParams.planProdLine"
placeholder="请输入产线" placeholder="请输入产线"
@ -42,14 +42,16 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="循环周期" prop="planLoop"> <el-form-item label="循环周期" prop="planLoop">
<el-input <el-select v-model="queryParams.planLoopType" placeholder="请选择循环周期" clearable>
v-model="queryParams.planLoop" <el-option
placeholder="请输入循环周期" v-for="dict in dict.type.device_loop_type"
clearable :key="dict.value"
@keyup.enter.native="handleQuery" :label="dict.label"
:value="dict.value"
/> />
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="循环执行时间开始" prop="planLoopStart"> <el-form-item v-if="false" label="循环执行时间开始" prop="planLoopStart">
<el-date-picker clearable <el-date-picker clearable
v-model="queryParams.planLoopStart" v-model="queryParams.planLoopStart"
type="date" type="date"
@ -57,7 +59,7 @@
placeholder="请选择循环执行时间开始"> placeholder="请选择循环执行时间开始">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="循环执行时间结束" prop="planLoopEnd"> <el-form-item v-if="false" label="循环执行时间结束" prop="planLoopEnd">
<el-date-picker clearable <el-date-picker clearable
v-model="queryParams.planLoopEnd" v-model="queryParams.planLoopEnd"
type="date" type="date"
@ -65,7 +67,7 @@
placeholder="请选择循环执行时间结束"> placeholder="请选择循环执行时间结束">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="实际开始时间" prop="orderStart"> <el-form-item v-if="false" label="实际开始时间" prop="orderStart">
<el-date-picker clearable <el-date-picker clearable
v-model="queryParams.orderStart" v-model="queryParams.orderStart"
type="date" type="date"
@ -73,7 +75,7 @@
placeholder="请选择实际开始时间"> placeholder="请选择实际开始时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="实际结束时间" prop="orderEnd"> <el-form-item v-if="false" label="实际结束时间" prop="orderEnd">
<el-date-picker clearable <el-date-picker clearable
v-model="queryParams.orderEnd" v-model="queryParams.orderEnd"
type="date" type="date"
@ -81,7 +83,7 @@
placeholder="请选择实际结束时间"> placeholder="请选择实际结束时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="设备编码" prop="equipmentCode"> <el-form-item v-if="false" label="设备编码" prop="equipmentCode">
<el-input <el-input
v-model="queryParams.equipmentCode" v-model="queryParams.equipmentCode"
placeholder="请输入设备编码" placeholder="请输入设备编码"
@ -89,7 +91,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="工单费用" prop="orderCost"> <el-form-item v-if="false" label="工单费用" prop="orderCost">
<el-input <el-input
v-model="queryParams.orderCost" v-model="queryParams.orderCost"
placeholder="请输入工单费用" placeholder="请输入工单费用"
@ -97,15 +99,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="责任人" prop="planPerson"> <el-form-item label="巡检人" prop="planPerson">
<el-input <el-input
v-model="queryParams.planPerson" v-model="queryParams.planPerson"
placeholder="请输入责任人" placeholder="请输入巡检人"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="工单用时" prop="orderCostTime"> <el-form-item v-if="false" label="工单用时" prop="orderCostTime">
<el-input <el-input
v-model="queryParams.orderCostTime" v-model="queryParams.orderCostTime"
placeholder="请输入工单用时" placeholder="请输入工单用时"
@ -113,7 +115,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="签字" prop="orderSignPerson"> <el-form-item v-if="false" label="签字" prop="orderSignPerson">
<el-input <el-input
v-model="queryParams.orderSignPerson" v-model="queryParams.orderSignPerson"
placeholder="请输入签字" placeholder="请输入签字"
@ -121,7 +123,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="工厂" prop="factoryCode"> <el-form-item v-if="false" label="工厂" prop="factoryCode">
<el-input <el-input
v-model="queryParams.factoryCode" v-model="queryParams.factoryCode"
placeholder="请输入工厂" placeholder="请输入工厂"
@ -129,7 +131,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="备用字段1" prop="attr1"> <el-form-item v-if="false" label="备用字段1" prop="attr1">
<el-input <el-input
v-model="queryParams.attr1" v-model="queryParams.attr1"
placeholder="请输入备用字段1" placeholder="请输入备用字段1"
@ -137,7 +139,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="备用字段2" prop="attr2"> <el-form-item v-if="false" label="备用字段2" prop="attr2">
<el-input <el-input
v-model="queryParams.attr2" v-model="queryParams.attr2"
placeholder="请输入备用字段2" placeholder="请输入备用字段2"
@ -145,7 +147,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="备用字段3" prop="attr3"> <el-form-item v-if="false" label="备用字段3" prop="attr3">
<el-input <el-input
v-model="queryParams.attr3" v-model="queryParams.attr3"
placeholder="请输入备用字段3" placeholder="请输入备用字段3"
@ -153,7 +155,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="删除标志" prop="delFlag"> <el-form-item v-if="false" label="删除标志" prop="delFlag">
<el-input <el-input
v-model="queryParams.delFlag" v-model="queryParams.delFlag"
placeholder="请输入删除标志" placeholder="请输入删除标志"
@ -251,15 +253,18 @@
<el-table v-loading="loading" :data="deviceOrderList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="deviceOrderList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="主键" align="center" prop="orderId"/> <el-table-column v-if="false" label="计划id" align="center" prop="planId"/>
<el-table-column label="计划id" align="center" prop="planId"/> <el-table-column width="150" label="计划编码" align="center" prop="planCode"/>
<el-table-column label="计划编码" align="center" prop="planCode"/> <el-table-column v-if="false" label="计划类型" align="center" prop="planType"/>
<el-table-column label="计划类型" align="center" prop="planType"/> <el-table-column width="150" label="工单号" align="center" prop="orderCode"/>
<el-table-column label="单号" align="center" prop="orderCode"/> <el-table-column label="车间编码" align="center" prop="planWorkshop"/>
<el-table-column label="车间" align="center" prop="planWorkshop"/> <el-table-column v-if="false" label="产线" align="center" prop="planProdLine"/>
<el-table-column label="产线" align="center" prop="planProdLine"/>
<el-table-column label="循环周期" align="center" prop="planLoop"/> <el-table-column label="循环周期" align="center" prop="planLoop"/>
<el-table-column label="循环周期类型" align="center" prop="planLoopType"/> <el-table-column width="100" label="循环周期类型" align="center" prop="planLoopType">
<template slot-scope="scope">
<dict-tag :options="dict.type.device_loop_type" :value="scope.row.planLoopType"/>
</template>
</el-table-column>
<el-table-column label="循环执行时间开始" align="center" prop="planLoopStart" width="180"> <el-table-column label="循环执行时间开始" align="center" prop="planLoopStart" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}</span>
@ -281,16 +286,20 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="设备编码" align="center" prop="equipmentCode"/> <el-table-column label="设备编码" align="center" prop="equipmentCode"/>
<el-table-column label="工单状态" align="center" prop="orderStatus"/> <el-table-column label="工单状态" align="center" prop="orderStatus">
<el-table-column label="工单费用" align="center" prop="orderCost"/> <template slot-scope="scope">
<el-table-column label="责任人" align="center" prop="planPerson"/> <dict-tag :options="dict.type.device_order_status" :value="scope.row.orderStatus"/>
</template>
</el-table-column>
<el-table-column v-if="false" label="工单费用" align="center" prop="orderCost"/>
<el-table-column v-if="false" label="巡检人" align="center" prop="planPerson"/>
<el-table-column label="工单用时" align="center" prop="orderCostTime"/> <el-table-column label="工单用时" align="center" prop="orderCostTime"/>
<el-table-column label="签字" align="center" prop="orderSignPerson"/> <el-table-column v-if="false" label="签字" align="center" prop="orderSignPerson"/>
<el-table-column label="工厂" align="center" prop="factoryCode"/> <el-table-column label="工厂" align="center" prop="factoryCode"/>
<el-table-column label="备用字段1" align="center" prop="attr1"/> <el-table-column v-if="false" label="备用字段1" align="center" prop="attr1"/>
<el-table-column label="备用字段2" align="center" prop="attr2"/> <el-table-column v-if="false" label="备用字段2" align="center" prop="attr2"/>
<el-table-column label="备用字段3" align="center" prop="attr3"/> <el-table-column v-if="false" label="备用字段3" align="center" prop="attr3"/>
<el-table-column label="删除标志" align="center" prop="delFlag"/> <el-table-column v-if="false" label="删除标志" align="center" prop="delFlag"/>
<el-table-column label="创建人" align="center" prop="createBy"/> <el-table-column label="创建人" align="center" prop="createBy"/>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
@ -303,7 +312,7 @@
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right"> <el-table-column width="180" label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -376,8 +385,8 @@
</el-col> </el-col>
<el-row> <el-row>
<el-form-item label="是否达标"> <el-form-item label="是否达标">
<el-radio v-model="standard.reach" label="0"></el-radio> <el-radio v-model="standard.detailReach" label="0"></el-radio>
<el-radio v-model="standard.reach" label="1"></el-radio> <el-radio v-model="standard.detailReach" label="1"></el-radio>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-row> </el-row>
@ -461,7 +470,7 @@ import {
export default { export default {
name: "DeviceOrder", name: "DeviceOrder",
dicts: ['device_order_status'], dicts: ['device_order_status','device_loop_type'],
data() { data() {
return { return {
// //
@ -488,7 +497,7 @@ export default {
pageSize: 10, pageSize: 10,
planId: null, planId: null,
planCode: null, planCode: null,
planType: null, planType: 'inspection',
orderCode: null, orderCode: null,
planWorkshop: null, planWorkshop: null,
planProdLine: null, planProdLine: null,
@ -544,7 +553,7 @@ export default {
orderId: null, orderId: null,
planId: null, planId: null,
planCode: null, planCode: null,
planType: null, planType: 'inspection',
orderCode: null, orderCode: null,
planWorkshop: null, planWorkshop: null,
planProdLine: null, planProdLine: null,

Loading…
Cancel
Save