Browse Source

SBBJ-1002

master
zhaoyiran 3 weeks ago
parent
commit
cc2a5edaa0
  1. 11
      src/views/eam/device/deviceinspectionjob/index.vue

11
src/views/eam/device/deviceinspectionjob/index.vue

@ -44,7 +44,7 @@
@searchTableSuccess="searchTableSuccess"
:isBusiness="true"
@onChange="onChange"
:tableAllSchemas="DeviceInspectionAddDetail.allSchemas"
:tableAllSchemas="DeviceInspectionDetailFilter.allSchemas"
:tableFormRules="DeviceInspectionAddDetailRules"
:tableData="tableData"
@handleAddTable="handleAddTable"
@ -58,7 +58,7 @@
<Detail ref="detailRef"
:isBasic="false"
:allSchemas="DeviceInspectionMain.allSchemas"
:detailAllSchemas="DeviceInspectionDetail.allSchemas"
:detailAllSchemas="DeviceInspectionDetailFilter.allSchemas"
:detailAllSchemasRules="DeviceInspectionDetailRules"
:apiCreate="DeviceInspectionDetailApi.createDeviceInspectionDetail"
:apiUpdate="DeviceInspectionDetailApi.updateDeviceInspectionDetail"
@ -123,6 +123,7 @@ import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts'
import * as DeviceMaintenanceMainApi from '@/api/eam/device/deviceMaintenanceMain'
import { getAccessToken } from '@/utils/auth'
import * as RepairRelationApi from '@/api/eam/basic/repairRelation'
import { cloneDeep } from 'lodash-es'
// import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
@ -146,6 +147,7 @@ const verifyFormValue = ref({
})
const openRowValue = ref()
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 searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
@ -357,6 +359,11 @@ const formsSuccess = async (formType, data) => {
/** 详情操作 */
const detailRef = ref()
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 userListAll = await UserApi.getSimpleUserList()
row.factoryAreaNumber1 = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name

Loading…
Cancel
Save