Browse Source

2023-08-31 设备和质量修改

java8
杨奉源 3 years ago
parent
commit
700f60f0bd
  1. 1
      src/api/eam/eam.js
  2. 2
      src/views/modules/eam/eamWorkOrderForCheck.vue
  3. 22
      src/views/modules/eam/eamWorkOrderForDefect.vue
  4. 21
      src/views/modules/eam/eamWorkOrderForMaintenance.vue
  5. 2
      src/views/modules/eam/eamWorkPlanForMaintenance.vue
  6. 102
      src/views/modules/reportWorkOrder/reportCheckOrder.vue
  7. 235
      src/views/modules/reportWorkOrder/reportDefectOrder.vue
  8. 195
      src/views/modules/reportWorkOrder/reportMaintenanceOrder.vue

1
src/api/eam/eam.js

@ -183,3 +183,4 @@ export const getItemLists= data => createAPI(`/pms/eam/getItemLists`,'post',data
export const deleteObjectFile= data => createAPI(`/pms/eam/deleteObjectFile`,'post',data)
export const checkSparPartImage= data => createAPI(`/pms/eam/checkSparPartImage`,'post',data)
export const refreshItem= data => createAPI(`/pms/eam/refreshItem`,'post',data)
export const reach= data => createAPI(`/pms/eam/reach`,'post',data)

2
src/views/modules/eam/eamWorkOrderForCheck.vue

@ -578,7 +578,7 @@
columnProp: 'workTime',
headerAlign: "center",
align: "center",
columnLabel: '工作时',
columnLabel: '工作时长(m)',
columnHidden: false,
columnImage: false,
columnSortable: false,

22
src/views/modules/eam/eamWorkOrderForDefect.vue

@ -610,6 +610,23 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101018,
serialNumber: '101018TableActualPlanDate',
tableId: "101018Table",
tableName: "common",
columnProp: 'reachDate',
headerAlign: "center",
align: "center",
columnLabel: '到达时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101018,
@ -636,7 +653,7 @@
columnProp: 'workTime',
headerAlign: "center",
align: "center",
columnLabel: '工作时',
columnLabel: '工作时长(m)',
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -1014,7 +1031,8 @@
result: row.result,
defectID: row.defectID,
defectDesc: row.defectDesc,
actualOperatorName: row.actualOperatorName
actualOperatorName: row.actualOperatorName,
disposalMeasures: row.disposalMeasures
}
this.detailModelFlag = true;
},

21
src/views/modules/eam/eamWorkOrderForMaintenance.vue

@ -656,6 +656,23 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101018,
serialNumber: '101018TableActualPlanDate',
tableId: "101018Table",
tableName: "common",
columnProp: 'reachDate',
headerAlign: "center",
align: "center",
columnLabel: '到达时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101018,
@ -665,7 +682,7 @@
columnProp: 'actualDate',
headerAlign: "center",
align: "center",
columnLabel: '实际执行日期',
columnLabel: '实际执行时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -682,7 +699,7 @@
columnProp: 'workTime',
headerAlign: "center",
align: "center",
columnLabel: '工作时',
columnLabel: '工作时长(m)',
columnHidden: false,
columnImage: false,
columnSortable: false,

2
src/views/modules/eam/eamWorkPlanForMaintenance.vue

@ -991,7 +991,7 @@
tableName: "维保计划表",
columnProp: 'planCycle',
headerAlign: "center",
align: "right",
align: "center",
columnLabel: '维保周期',
columnHidden: false,
columnImage: false,

102
src/views/modules/reportWorkOrder/reportCheckOrder.vue

@ -509,23 +509,23 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019TableActualOperatorName',
tableId: "101019Table",
tableName: "common",
columnProp: 'actualOperatorName',
headerAlign: "center",
align: "center",
columnLabel: '实际机修人员',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// functionId: 101019,
// serialNumber: '101019TableActualOperatorName',
// tableId: "101019Table",
// tableName: "common",
// columnProp: 'actualOperatorName',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 101019,
@ -543,40 +543,40 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019TableActualActualDate',
tableId: "101019Table",
tableName: "common",
columnProp: 'actualDate',
headerAlign: "center",
align: "center",
columnLabel: '实际执行时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019TableWorkTime',
tableId: "101019Table",
tableName: "common",
columnProp: 'workTime',
headerAlign: "center",
align: "center",
columnLabel: '工作时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// functionId: 101019,
// serialNumber: '101019TableActualActualDate',
// tableId: "101019Table",
// tableName: "common",
// columnProp: 'actualDate',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101019,
// serialNumber: '101019TableWorkTime',
// tableId: "101019Table",
// tableName: "common",
// columnProp: 'workTime',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 101019,

235
src/views/modules/reportWorkOrder/reportDefectOrder.vue

@ -78,7 +78,8 @@
fixed="right"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.status=='未开工'" @click="reportModal(scope.row)">执行</a>
<a type="text" size="small" v-if="scope.row.status=='未开工'" @click="reach(scope.row)">到达</a>
<a type="text" size="small" v-if="scope.row.status=='已到达'" @click="reportModal(scope.row)">执行</a>
</template>
</el-table-column>
</el-table>
@ -133,38 +134,40 @@
<span slot="label" style="" @click="getOperatorList()"><a>选择机修人员</a></span>
<el-input v-model="saveData.operatorName" style="width: 220px"></el-input>
</el-form-item>
<el-form-item :label="'工作起始时间:'">
<el-form-item :label="'到达时间:'">
<el-date-picker
style="width: 150px"
v-model="saveData.startDate"
v-model="saveData.reachDate"
:picker-options="pickerOptions"
type="datetime"
value-format='yyyy-MM-dd HH:mm:ss'
format='yyyy-MM-dd HH:mm:ss'
placeholder="开始时间"
:editable="false"
@focus='elDatePickerOnFocus'
@change="handleChangeTime"
>
</el-date-picker>
-
<el-date-picker
style="width: 150px"
v-model="saveData.endDate"
:picker-options="pickerOptions"
type="datetime"
value-format='yyyy-MM-dd HH:mm:ss'
format='yyyy-MM-dd HH:mm:ss'
placeholder="结束时间"
placeholder="到达时间"
:editable="false"
@focus='elDatePickerOnFocus'
@change="handleChangeTime"
disabled
>
</el-date-picker>
<!-- - -->
<!-- <el-date-picker-->
<!-- style="width: 150px"-->
<!-- v-model="saveData.finishDate"-->
<!-- :picker-options="pickerOptions"-->
<!-- type="datetime"-->
<!-- value-format='yyyy-MM-dd HH:mm:ss'-->
<!-- format='yyyy-MM-dd HH:mm:ss'-->
<!-- placeholder="结束时间"-->
<!-- :editable="false"-->
<!-- @focus='elDatePickerOnFocus'-->
<!-- @change="handleChangeTime"-->
<!-- disabled-->
<!-- >-->
<!-- </el-date-picker>-->
</el-form-item>
<el-form-item :label="'工作时长(m)'">
<el-input v-model="saveData.workTime" type="number" disabled :min="0" style="width: 60px"></el-input>
</el-form-item>
<!-- <el-form-item :label="'工作时长(m)'">-->
<!-- <el-input v-model="saveData.workTime" type="number" disabled :min="0" style="width: 60px"></el-input>-->
<!-- </el-form-item>-->
</el-form>
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()">
<el-form-item :label="'维修结果'">
@ -309,6 +312,7 @@
getOperatorList, //
queryHistoryRecord,
searchFileUrl, //
reach //
} from "@/api/eam/eam.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
@ -554,23 +558,23 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101020,
serialNumber: '101020TableActualOperatorName',
tableId: "101020Table",
tableName: "common",
columnProp: 'actualOperatorName',
headerAlign: "center",
align: "center",
columnLabel: '实际机修人员',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// functionId: 101020,
// serialNumber: '101020TableActualOperatorName',
// tableId: "101020Table",
// tableName: "common",
// columnProp: 'actualOperatorName',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 101020,
@ -588,40 +592,40 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101020,
serialNumber: '101020TableActualActualDate',
tableId: "101020Table",
tableName: "common",
columnProp: 'actualDate',
headerAlign: "center",
align: "center",
columnLabel: '实际执行时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101020,
serialNumber: '101020TableWorkTime',
tableId: "101020Table",
tableName: "common",
columnProp: 'workTime',
headerAlign: "center",
align: "center",
columnLabel: '工作时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// functionId: 101020,
// serialNumber: '101020TableActualActualDate',
// tableId: "101020Table",
// tableName: "common",
// columnProp: 'actualDate',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101020,
// serialNumber: '101020TableWorkTime',
// tableId: "101020Table",
// tableName: "common",
// columnProp: 'workTime',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 101020,
@ -663,7 +667,9 @@
objectID: '',
objectDesc: '',
checkWorkPlanId: '',
checkItemNo: ''
checkItemNo: '',
reachDate: '',
finishDate: ''
},
operatorData: {
site: this.$store.state.user.site,
@ -1116,6 +1122,38 @@
selectionChangeHandle (val) {
this.dataListSelections = val
},
//
reach (row){
let tempData = {
site: row.site,
functionType: 'C',
orderNo: row.orderNo,
status: '已到达'
}
this.$confirm(`是否确认到达?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
reach(tempData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
})
},
reportModal(row){
this.saveData = {
site: row.site,
@ -1133,7 +1171,8 @@
objectID: row.objectID,
objectDesc: row.objectDesc,
checkWorkPlanId: row.checkWorkPlanId,
checkItemNo: row.checkItemNo
checkItemNo: row.checkItemNo,
reachDate: row.reachDate
}
this.queryHistoryRecord();
this.detailModelFlag = true;
@ -1145,30 +1184,30 @@
})
return false
}
if(this.saveData.startDate === '' || this.saveData.startDate == null){
this.$alert('请输入开始时间!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(this.saveData.endDate === '' || this.saveData.endDate == null){
this.$alert('请输入结束时间!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(this.saveData.workTime === 0){
this.$alert('工作时长不能为0!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(this.saveData.workTime < 0){
this.$alert('工作时长不能小于0', '错误', {
confirmButtonText: '确定'
})
return false
}
// if(this.saveData.startDate === '' || this.saveData.startDate == null){
// this.$alert('', '', {
// confirmButtonText: ''
// })
// return false
// }
// if(this.saveData.endDate === '' || this.saveData.endDate == null){
// this.$alert('', '', {
// confirmButtonText: ''
// })
// return false
// }
// if(this.saveData.workTime === 0){
// this.$alert('0', '', {
// confirmButtonText: ''
// })
// return false
// }
// if(this.saveData.workTime < 0){
// this.$alert('0', '', {
// confirmButtonText: ''
// })
// return false
// }
if(this.saveData.result === '' || this.saveData.result == null){
this.$alert('请选择维修结果!', '错误', {
confirmButtonText: '确定'

195
src/views/modules/reportWorkOrder/reportMaintenanceOrder.vue

@ -86,7 +86,8 @@
fixed="right"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.status=='未开工'" @click="reportModal(scope.row)">执行</a>
<a type="text" size="small" v-if="scope.row.status=='未开工'" @click="reach(scope.row)">到达</a>
<a type="text" size="small" v-if="scope.row.status=='已到达'" @click="reportModal(scope.row)">执行</a>
</template>
</el-table-column>
</el-table>
@ -115,20 +116,20 @@
<span slot="label" style="" @click="getOperatorList()"><a>协同人员</a></span>
<el-input v-model="saveData.operatorName" style="width: 220px"></el-input>
</el-form-item>
<el-form-item :label="'执行日期:'">
<el-date-picker style="width: 150px" v-model="saveData.startDate" type="datetime" :editable="false" @focus='elDatePickerOnFocus'
value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="开始日期">
</el-date-picker>
-
<el-date-picker style="width: 150px" v-model="saveData.endDate" type="datetime" :editable="false" @focus='elDatePickerOnFocus'
value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="结束日期">
<el-form-item :label="'到达时间:'">
<el-date-picker style="width: 150px" disabled v-model="saveData.reachDate" type="datetime" :editable="false" @focus='elDatePickerOnFocus'
value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="到达时间">
</el-date-picker>
<!-- - -->
<!-- <el-date-picker style="width: 150px" v-model="saveData.endDate" type="datetime" :editable="false" @focus='elDatePickerOnFocus'-->
<!-- value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="结束日期">-->
<!-- </el-date-picker>-->
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()">
<el-form-item :label="'工作时长(m)'">
<el-input v-model="saveData.workTime" type="number" readonly :min="0" style="width: 60px"></el-input>
</el-form-item>
<!-- <el-form-item :label="'工作时长(m)'">-->
<!-- <el-input v-model="saveData.workTime" type="number" readonly :min="0" style="width: 60px"></el-input>-->
<!-- </el-form-item>-->
<el-form-item :label="'维保结论'">
<el-select v-model="saveData.checkResult" style="width: 100px" placeholder="请选择">
<el-option label="合格" value="合格"></el-option>
@ -363,7 +364,8 @@
queryHistoryRecord, //
eamWorkOrderReportSearch, //
getOperatorList,
refreshItem
refreshItem,
reach
} from "@/api/eam/eam.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
@ -575,23 +577,23 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101020,
serialNumber: '101020TableActualOperatorName',
tableId: "101020Table",
tableName: "common",
columnProp: 'actualOperatorName',
headerAlign: "center",
align: "center",
columnLabel: '实际机修人员',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// functionId: 101020,
// serialNumber: '101020TableActualOperatorName',
// tableId: "101020Table",
// tableName: "common",
// columnProp: 'actualOperatorName',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 101020,
@ -609,40 +611,40 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101020,
serialNumber: '101020TableActualActualDate',
tableId: "101020Table",
tableName: "common",
columnProp: 'actualDate',
headerAlign: "center",
align: "center",
columnLabel: '实际执行日期',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 101020,
serialNumber: '101020TableWorkTime',
tableId: "101020Table",
tableName: "common",
columnProp: 'workTime',
headerAlign: "center",
align: "center",
columnLabel: '工作时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// functionId: 101020,
// serialNumber: '101020TableActualActualDate',
// tableId: "101020Table",
// tableName: "common",
// columnProp: 'actualDate',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101020,
// serialNumber: '101020TableWorkTime',
// tableId: "101020Table",
// tableName: "common",
// columnProp: 'workTime',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 101020,
@ -683,6 +685,7 @@
disposalMeasures: '',
functionType: 'B',
createBy: this.$store.state.user.name,
reachDate: ''
},
columnDetailList: [
{
@ -1392,6 +1395,39 @@
selectionChangeHandle (val) {
this.dataListSelections = val
},
//
reach (row){
let tempData = {
site: row.site,
functionType: 'B',
orderNo: row.orderNo,
status: '已到达'
}
this.$confirm(`是否确认到达?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
reach(tempData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
})
},
reportModal(row){
this.saveData = {
site: row.site,
@ -1409,6 +1445,7 @@
functionType: 'B',
planDesc: row.planDesc,
propertiesCode: row.propertiesCode,
reachDate: row.reachDate
}
this.getInspectionFormData()
this.queryHistoryRecord()
@ -1416,22 +1453,22 @@
},
saveCheckReport(){
if(this.saveData.startDate === ''||this.saveData.startDate == null){
this.$message.warning('请输入开始时间!')
return
}
if(this.saveData.endDate === ''||this.saveData.endDate == null){
this.$message.warning('请输入结束时间!')
return
}
if(this.saveData.workTime === 0){
this.$message.warning('工作时长不能为0!')
return
}
if(this.saveData.workTime < 0){
this.$message.warning('工作时长不能小于0!')
return
}
// if(this.saveData.startDate === ''||this.saveData.startDate == null){
// this.$message.warning('')
// return
// }
// if(this.saveData.endDate === ''||this.saveData.endDate == null){
// this.$message.warning('')
// return
// }
// if(this.saveData.workTime === 0){
// this.$message.warning('0')
// return
// }
// if(this.saveData.workTime < 0){
// this.$message.warning('0')
// return
// }
if(this.saveData.checkResult === ''||this.saveData.checkResult == null){
this.$message.warning('请选择维保结论!')
return

Loading…
Cancel
Save