|
@ -236,6 +236,7 @@ import * as ItemApi from '@/api/eam/basic/item' |
|
|
import { emit } from 'process' |
|
|
import { emit } from 'process' |
|
|
import { verify } from 'crypto' |
|
|
import { verify } from 'crypto' |
|
|
import { watch } from 'vue'; |
|
|
import { watch } from 'vue'; |
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') |
|
|
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') |
|
|
defineOptions({ name: 'DeviceMaintenanceMain' }) |
|
|
defineOptions({ name: 'DeviceMaintenanceMain' }) |
|
@ -776,7 +777,7 @@ const detailRef = ref() |
|
|
const openDetail = async (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = async (row: any, titleName: any, titleValue: any) => { |
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) |
|
|
const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) |
|
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
row.typeDetail = deviceMoldTypeList.find((account) => account.value == row.type)?.label |
|
|
row.typeDetail = deviceMoldTypeList.find((account) => account.value == row.type)?.label |
|
|
row.deviceNumberDetail = deviceListAll.find((account) => account.number == row.deviceNumber)?.name |
|
|
row.deviceNumberDetail = deviceListAll.find((account) => account.number == row.deviceNumber)?.name |
|
@ -784,6 +785,10 @@ const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) |
|
|
row.maintenanceDetail = userListAll.find((account) => account.id == row.maintenance)?.nickname |
|
|
row.maintenanceDetail = userListAll.find((account) => account.id == row.maintenance)?.nickname |
|
|
row.declarerDetail = userListAll.find((account) => account.id == row.declarer)?.nickname |
|
|
row.declarerDetail = userListAll.find((account) => account.id == row.declarer)?.nickname |
|
|
row.verifyerDetail = userListAll.find((account) => account.id == row.verifyer)?.nickname |
|
|
row.verifyerDetail = userListAll.find((account) => account.id == row.verifyer)?.nickname |
|
|
|
|
|
row.receivingTimeDetail = dayjs(row.receivingTime).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|
|
row.completionTimeDetail = dayjs(row.completionTime).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|
|
row.applyTimeDetail = dayjs(row.applyTime).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|
|
row.verifyTimeDetail = dayjs(row.verifyTime).format('YYYY-MM-DD HH:mm:ss'); |
|
|
row.classes = row.classes+'' |
|
|
row.classes = row.classes+'' |
|
|
operatRecord.value = row; |
|
|
operatRecord.value = row; |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'DeviceMaintenanceMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'DeviceMaintenanceMain') |
|
|