|
@ -44,7 +44,7 @@ |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
@onChange="onChange" |
|
|
@onChange="onChange" |
|
|
:tableAllSchemas="DeviceInspectionAddDetail.allSchemas" |
|
|
:tableAllSchemas="DeviceInspectionDetailFilter.allSchemas" |
|
|
:tableFormRules="DeviceInspectionAddDetailRules" |
|
|
:tableFormRules="DeviceInspectionAddDetailRules" |
|
|
:tableData="tableData" |
|
|
:tableData="tableData" |
|
|
@handleAddTable="handleAddTable" |
|
|
@handleAddTable="handleAddTable" |
|
@ -58,7 +58,7 @@ |
|
|
<Detail ref="detailRef" |
|
|
<Detail ref="detailRef" |
|
|
:isBasic="false" |
|
|
:isBasic="false" |
|
|
:allSchemas="DeviceInspectionMain.allSchemas" |
|
|
:allSchemas="DeviceInspectionMain.allSchemas" |
|
|
:detailAllSchemas="DeviceInspectionDetail.allSchemas" |
|
|
:detailAllSchemas="DeviceInspectionDetailFilter.allSchemas" |
|
|
:detailAllSchemasRules="DeviceInspectionDetailRules" |
|
|
:detailAllSchemasRules="DeviceInspectionDetailRules" |
|
|
:apiCreate="DeviceInspectionDetailApi.createDeviceInspectionDetail" |
|
|
:apiCreate="DeviceInspectionDetailApi.createDeviceInspectionDetail" |
|
|
:apiUpdate="DeviceInspectionDetailApi.updateDeviceInspectionDetail" |
|
|
:apiUpdate="DeviceInspectionDetailApi.updateDeviceInspectionDetail" |
|
@ -123,6 +123,7 @@ import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMain' |
|
|
import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMain' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import * as RepairRelationApi from '@/api/eam/basic/repairRelation' |
|
|
import * as RepairRelationApi from '@/api/eam/basic/repairRelation' |
|
|
|
|
|
import { cloneDeep } from 'lodash-es' |
|
|
|
|
|
|
|
|
// import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
// import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
@ -146,6 +147,7 @@ const verifyFormValue = ref({ |
|
|
}) |
|
|
}) |
|
|
const openRowValue = ref() |
|
|
const openRowValue = ref() |
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
|
|
const DeviceInspectionDetailFilter = ref(cloneDeep(DeviceInspectionDetail)) |
|
|
const src = ref(BASE_URL + '/jmreport/view/941184370359353344?token=' + getAccessToken()) |
|
|
const src = ref(BASE_URL + '/jmreport/view/941184370359353344?token=' + getAccessToken()) |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
@ -357,6 +359,11 @@ const formsSuccess = async (formType, data) => { |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = async (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = async (row: any, titleName: any, titleValue: any) => { |
|
|
|
|
|
if(row.status == 'COMPLETED' || row.status == 'VERIFIED'){ |
|
|
|
|
|
DeviceInspectionDetailFilter.value.allSchemas.tableColumns = DeviceInspectionDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); |
|
|
|
|
|
}else{ |
|
|
|
|
|
DeviceInspectionDetailFilter.value.allSchemas.tableColumns = DeviceInspectionDetail.allSchemas.tableColumns; |
|
|
|
|
|
} |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
row.factoryAreaNumber1 = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name |
|
|
row.factoryAreaNumber1 = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name |
|
|