You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

958 lines
32 KiB

<template>
<div class="mod-config">
<div>
<span @click="favoriteFunction()">
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>
</span>
</div>
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()">
<el-form-item :label="'计划编码'">
<el-input v-model="searchData.planID" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'计划描述'">
<el-input v-model="searchData.planDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'设备编码'">
<el-input v-model="searchData.objectID" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'计划执行人员'">
<el-input v-model="searchData.planOperatorName" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'计划执行日期:'">
<el-date-picker
style="width: 120px"
v-model="searchData.startDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item style="margin-top: 23px;">
<laber style="margin-left: -9px;font-size: 19px">&#10142</laber>
</el-form-item>
<el-form-item :label="' '">
<el-date-picker
style="width: 120px"
v-model="searchData.endDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button @click="searchClick()">查询</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ "导出" }}
</download-excel>
</el-form-item>
</el-form>
<el-table
:height="height"
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
prop=""
header-align="center"
align="center"
min-width="100"
fixed="right"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" v-if="scope.row.status=='未开工'" @click="reportModal(scope.row)">执行</a>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 100, 500, 1000]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-dialog title="执行点检工单" :close-on-click-modal="false" v-drag :visible.sync="detailModelFlag" width="1200px">
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()">
<el-form-item :label="'工厂编码'">
<el-input v-model="saveData.site" disabled style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'工单号'">
<el-input v-model="saveData.orderNo" disabled style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'计划执行人员'">
<el-input v-model="saveData.planOperatorName" disabled style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'执行日期:'">
<el-date-picker style="width: 150px" v-model="saveData.startDate" type="datetime"
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"
value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="结束日期">
</el-date-picker>
</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-input v-model="saveData.remark" style="width: 200px"></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>
<el-option label="不合格" value="不合格"></el-option>
</el-select>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()">
<el-button type="primary" @click="">点检单</el-button>
<el-button type="primary" @click="queryHistoryRecord()">点检记录</el-button>
</el-form>
<div class="rq ">
<el-table
:height="400"
:data="detailList"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnDetailList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
prop=""
header-align="center"
align="right"
min-width="80"
label="实测值">
<template slot-scope="scope">
<el-input v-if="scope.row.valueTypeDb=='T'&&scope.row.valueChooseFlag=='N'" v-model="scope.row.textValue" style="height: 11px;padding: 0px " filterable allow-create>;width:98%"></el-input>
<el-input v-if="scope.row.valueTypeDb=='N'&&scope.row.valueChooseFlag=='N'" v-model="scope.row.numberValue" type="number" style="height: 11px;padding: 0px " filterable allow-create>;width:98%"></el-input>
<el-select v-if="scope.row.valueTypeDb=='T'&&scope.row.valueChooseFlag=='Y'" v-model="scope.row.textValue" placeholder="请选择" style="height: 11px;padding: 0px " filterable allow-create>
<el-option
v-for="item in scope.row.availableList"
:key="index"
:label="item.availableValue"
:value="item.availableValue">
</el-option>
</el-select>
<el-select v-if="scope.row.valueTypeDb=='N'&&scope.row.valueChooseFlag=='Y'" v-model="scope.row.numberValue" placeholder="请选择" style="height: 11px;padding: 0px " filterable allow-create>
<el-option
v-for="item in scope.row.availableList"
:key="index"
:label="item.availableValue"
:value="item.availableValue">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column
prop=""
header-align="center"
align="right"
min-width="80"
label="检验结论">
<template slot-scope="scope">
<el-select v-model="scope.row.itemResult" style="height: 11px;padding: 0px" placeholder="合格">
<el-option label="合格" value="合格" style="color: green"></el-option>
<el-option label="不合格" value="不合格" style="color: red"></el-option>
</el-select>
</template>
</el-table-column>
</el-table>
</div>
<el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="saveCheckReport()">保存</el-button>
<el-button type="primary" @click="detailModelFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
eamWorkOrderSearch,
eamWorkOrderItemSearch,
saveCheckOrderReport,
queryHistoryRecord, // 查询设备的点检历史记录
} from "@/api/eam/eam.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
components: {
Chooselist
},
watch: {
saveData: {
deep: true,
handler: function (newV, oldV) {
this.saveData.workTime = Math.ceil(Math.floor(this.dayjs(this.saveData.endDate).diff(this.saveData.startDate, 'seconds') / 30) / 2)
}
},
searchData: {
deep: true,
handler: function (newV, oldV) {
this.searchData.groupID = this.searchData.groupID.toUpperCase()
}
},
modalData: {
deep: true,
handler: function (newV, oldV) {
this.modalData.groupID = this.modalData.groupID.toUpperCase()
}
}
},
data () {
return {
// 是否收藏
favorite: false,
tagNo:'',
// 导出 start
exportData: [],
exportName: "点检执行" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["点检执行"],
exportFooter: [],
exportList:[],
// 导出 end
searchData: {
site: this.$store.state.user.site,
orderNo: '',
planID: '',
planDesc: '',
objectID: '',
planOperator: '',
functionType: 'A',
status: '未开工',
startDate: '',
planDate: new Date(),
endDate: '',
page: 1,
limit: 10,
},
height: 200,
pageIndex: 1,
pageSize: 100,
totalPage: 0,
dataList: [],
dataListLoading: false,
dataListSelections: [],
modalFlag:false,
modalDisableFlag:false,
modalData:{
flag:'',
site: this.$store.state.user.site,
groupID:'',
groupDesc:'',
active:'',
},
departmentList:[],
// 展示列集
columnList: [
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019TableOrderNo',
tableId: "101019Table",
tableName: "common",
columnProp: 'planID',
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: '101019TableOrderNo',
tableId: "101019Table",
tableName: "common",
columnProp: 'planDesc',
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: '101019TableActualPlanDate',
tableId: "101019Table",
tableName: "common",
columnProp: 'planDate',
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: '101019TableOrderNo',
tableId: "101019Table",
tableName: "common",
columnProp: 'orderNo',
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: '101019TablePlanID',
tableId: "101019Table",
tableName: "common",
columnProp: 'planID',
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: '101019TablePropertiesCode',
tableId: "101019Table",
tableName: "common",
columnProp: 'propertiesCode',
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: '101019TableObjectID',
tableId: "101019Table",
tableName: "common",
columnProp: 'objectID',
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: '101019TableStatus',
tableId: "101019Table",
tableName: "common",
columnProp: 'status',
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: '101019TablePlanOperatorName',
tableId: "101019Table",
tableName: "common",
columnProp: 'planOperatorName',
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,
serialNumber: '101019TableActualOperatorName',
tableId: "101019Table",
tableName: "common",
columnProp: 'checkerName',
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,
serialNumber: '101019TableActualRemark',
tableId: "101019Table",
tableName: "common",
columnProp: 'remark',
headerAlign: "center",
align: "center",
columnLabel: '备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
],
detailModelFlag:false,
detailList:[],
saveData:{
site:'',
orderNo:'',
planOperatorName:'',
startDate: '',
endDate: '',
workTime:'',
remark:'',
mesUser:'',
planID:'',
itemList:[],
checkResult: ''
},
columnDetailList: [
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2EamPropertiesItemID',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'itemNo',
headerAlign: "center",
align: "center",
columnLabel: '点检项目编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60,
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2EamPropertiesItemDesc',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'itemDesc',
headerAlign: "center",
align: "center",
columnLabel: '点检项目名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150,
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2EamPropertiesItemRemark',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'itemRemark',
headerAlign: "center",
align: "center",
columnLabel: '点检方法说明',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150,
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2ValueType',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'valueType',
headerAlign: "center",
align: "center",
columnLabel: '检测值类型',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2DefaultValue',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'defaultValue',
headerAlign: "center",
align: "center",
columnLabel: '参照值',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2MaxValue',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'maxValue',
headerAlign: "center",
align: "center",
columnLabel: '最大值',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
{
userId: this.$store.state.user.name,
functionId: 101019,
serialNumber: '101019Table2MinValue',
tableId: "101019Table2",
tableName: "点检项目表",
columnProp: 'minValue',
headerAlign: "center",
align: "center",
columnLabel: '最小值',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
],
HistoryRecordList: [],
HistoryModelFlag: false
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 210
})
},
created () {
this.favoriteIsOk()
this.getDataList()
},
methods: {
// 校验用户是否收藏
favoriteIsOk() {
let userFavorite = {
userId: this.$store.state.user.id,
languageCode: this.$i18n.locale
}
console.log(this.$route.meta.menuId)
userFavoriteList(userFavorite).then(({data}) => {
for (let i = 0; i < data.list.length; i++) {
// let flag=false;
if(this.$route.meta.menuId==data.list[i].menuId){
this.favorite = true
// flag=true;
}
}
})
},
// 收藏 OR 取消收藏
favoriteFunction() {
let userFavorite = {
userId: this.$store.state.user.id,
functionId: this.$route.meta.menuId,
}
if (this.favorite) {
// 取消收藏
// this.$confirm(`确定取消收藏`, '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
removeUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = false
})
// })
} else {
// 收藏
saveUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = true
})
}
},
// 获取基础数据列表S
getBaseList (val,type) {
this.tagNo = val
this.$nextTick(() => {
let strVal = ''
if (val === 201) {
strVal = this.searchData.planOperator
this.$refs.baseList.init(val, strVal)
}
})
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 201) {
this.searchData.planOperator = val.AdminID
}
},
// 重置查询时间
searchClick(){
this.searchData.planDate = ''
this.getDataList()
},
// 获取数据列表
getDataList () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
eamWorkOrderSearch(this.searchData).then(({data}) => {
if (data.code == 0) {
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
}
this.dataListLoading = false
})
},
//导出excel
async createExportData() {
this.searchData.limit = -1
this.searchData.page = 1
await eamWorkOrderSearch(this.searchData).then(({data}) => {
this.exportList= data.page.list;
})
return this.exportList;
},
startDownload() {
// this.exportData = this.dataList
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
// 导出 end
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
// 当前页
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
// 多选
selectionChangeHandle (val) {
this.dataListSelections = val
},
reportModal(row){
let indata = {
site:row.site,
itemNo:row.itemNo,
planID:row.planID,
orderNo:row.orderNo,
itemType:row.functionType,
objectID:row.objectID
}
eamWorkOrderItemSearch(indata).then(({data}) => {
this.detailList = data.rows
})
this.saveData = {
site: row.site,
orderNo: row.orderNo,
planID: row.planID,
objectID: row.objectID,
planOperatorName: row.planOperatorName,
workTime: '',
remark: '',
mesUser: this.$store.state.user.name,
itemList: [],
checkResult: ''
},
this.detailModelFlag = true;
},
async saveCheckReport(){
if(this.saveData.checkResult == ''||this.saveData.checkResult == null){
this.$alert('请选择点检结论!', '错误', {
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
}
for (let i = 0; i < this.detailList.length; i++) {
if(this.detailList[i].valueTypeDb == 'N' && (this.detailList[i].numberValue == '' || this.detailList[i].numberValue == null)){
this.$alert(this.detailList[i].itemDesc+'实测值未填写!', '错误', {
confirmButtonText: '确定'
})
return false
}
if(this.detailList[i].itemResult == '' || this.detailList[i].itemResult == null){
this.detailList[i].itemResult = '合格'
}
// if(this.detailList[i].valueTypeDb == 'T' && (this.detailList[i].textValue == '' || this.detailList[i].textValue == null)){
// this.$alert(this.detailList[i].itemDesc+'实测值未填写!', '错误', {
// confirmButtonText: '确定'
// })
// return false
// }
if(this.detailList[i].valueTypeDb == 'N' && this.detailList[i].numberValue != '' && this.detailList[i].numberValue != null){
if(this.detailList[i].minValue != "" && this.detailList[i].minValue != null && this.detailList[i].minValue > this.detailList[i].numberValue){
await this.$confirm(this.detailList[i].itemDesc+'实测值小于最小值!是否继续', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).then(() =>{
return false
})
}
if(this.detailList[i].minValue!=""&&this.detailList[i].minValue!=null&&this.detailList[i].maxValue<this.detailList[i].numberValue){
// this.$alert(this.detailList[i].itemDesc+'实测值大于最大值', '错误', {
// confirmButtonText: '确定'
// })
// return false
await this.$confirm(this.detailList[i].itemDesc+'实测值大于最大值是否继续', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).then(() =>{
return false
})
}
}
}
this.saveData.itemList = JSON.parse(JSON.stringify(this.detailList))
await saveCheckOrderReport(this.saveData).then(({data}) => {
if (data && data.code == '0') {
this.getDataList()
this.detailModelFlag=false
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
},
//查询设备的点检记录
queryHistoryRecord(){
let tempData = {
site: this.saveData.site,
objectID: this.saveData.objectID,
functionType: 'A'
}
queryHistoryRecord(tempData).then(({data}) => {
this.HistoryRecordList = data.rows
})
this.HistoryModelFlag = true
},
}
}
</script>
<style >
</style>