|
|
@ -2,6 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
|
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
|
import * as MOldAccountsApi from '@/api/eam/mold/moldAccounts' |
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { selecUserByType } from '@/api/system/dept' |
|
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
@ -14,8 +15,8 @@ const factoryList = await selectAllFactoryArea() |
|
|
|
const deviceList = await DeviceAccountsApi.getDeviceAccountsNoPage({}) |
|
|
|
const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }) |
|
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
|
const deviceListNoPage = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) |
|
|
|
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value == 'DEVICE') |
|
|
|
const deviceListNoPage = await MOldAccountsApi.getMoldAccountsAllNoPage({}) |
|
|
|
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value == 'MOLD') |
|
|
|
const deviceDeviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
|
const isConformList = [{ |
|
|
|
label:'是', |
|
|
@ -211,7 +212,7 @@ export const DeviceSpotInspectionRecordDetailRules = reactive({ |
|
|
|
export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
{ |
|
|
|
label: '检修工单号', |
|
|
|
label: '巡检点检工单号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
@ -254,7 +255,8 @@ export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSche |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isForm: false, |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
isDetail:false, |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|