diff --git a/src/api/eam/item/itemUseRecordMain/index.ts b/src/api/eam/item/itemUseRecordMain/index.ts index ed7edda..6dde62a 100644 --- a/src/api/eam/item/itemUseRecordMain/index.ts +++ b/src/api/eam/item/itemUseRecordMain/index.ts @@ -11,12 +11,14 @@ export interface ItemUseRecordMainVO { // 查询备件使用操作主表记录列表 export const getItemUseRecordMainPage = async (params) => { + //只查询采购入库 + params.inventoryAction="PURCHASEIN" if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/eam/item-use-record-main/senior', data }) } else { - return await request.get({ url: `/eam/item-use-record-main/pageForReceipt`, params }) + return await request.get({ url: `/eam/item-use-record-main/page`, params }) } } diff --git a/src/views/eam/basic/deviceItem/deviceItem.data.ts b/src/views/eam/basic/deviceItem/deviceItem.data.ts index 6c97578..6f8d19b 100644 --- a/src/views/eam/basic/deviceItem/deviceItem.data.ts +++ b/src/views/eam/basic/deviceItem/deviceItem.data.ts @@ -12,7 +12,7 @@ export const DeviceItemRules = reactive({ export const DeviceItem = useCrudSchemas(reactive([ { - label: '设备', + label: '设备台账编号', field: 'deviceNumber', sort: 'custom', isSearch: true, @@ -22,7 +22,7 @@ export const DeviceItem = useCrudSchemas(reactive([ }, }, { - label: '备件', + label: '备件名称', field: 'itemNumber', sort: 'custom', isSearch: true, diff --git a/src/views/eam/device/deviceAccounts/index.vue b/src/views/eam/device/deviceAccounts/index.vue index 64e9993..fc8e671 100644 --- a/src/views/eam/device/deviceAccounts/index.vue +++ b/src/views/eam/device/deviceAccounts/index.vue @@ -131,7 +131,7 @@ defaultButtons.defaultAddBtn({hasPermi:'eam:device-accounts:create'}), // 新增 defaultButtons.selectQrCodeBatchBtn(null), //批量生成二维码 defaultButtons.defaultImportBtn(null), // 导入 - // defaultButtons.defaultExportBtn({hasPermi:'eam:device-accounts:export'}), // 导出 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null) // 设置 diff --git a/src/views/eam/device/deviceRepair/index.vue b/src/views/eam/device/deviceRepair/index.vue index ea93729..0429783 100644 --- a/src/views/eam/device/deviceRepair/index.vue +++ b/src/views/eam/device/deviceRepair/index.vue @@ -1,63 +1,90 @@ diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 9a242f6..778f8da 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -95,8 +95,8 @@ :detailAllSchemasRules="DeviceMaintenanceDetailRules" :apiCreate="DeviceMaintenanceDetailApi.createDeviceMaintenanceDetail" :apiUpdate="DeviceMaintenanceDetailApi.updateDeviceMaintenanceDetail" - :apiPage="DeviceMaintenanceDetailApi.getDeviceMaintenanceDetailPage" :apiDelete="DeviceMaintenanceDetailApi.deleteDeviceMaintenanceDetail" + :apiPage="DeviceMaintenanceDetailApi.getDeviceMaintenanceDetailPage" :Echo="Echo" @searchTableSuccessDetail="searchTableSuccessDetail" @detailOpenForm="detailOpenForm" diff --git a/src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts b/src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts index 679e647..27edbbe 100644 --- a/src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts +++ b/src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts @@ -1,5 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter2 } from '@/utils/formatTime' +import { dateFormatter } from '@/utils/formatTime' import { Item } from '@/views/eam/basic/item/item.data' import * as ItemApi from '@/api/eam/basic/item' import { validateHanset, validateEmail } from '@/utils/validator' @@ -15,7 +15,6 @@ export const ItemUseRecordMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, table: { - width: 150, fixed: 'left' }, }, @@ -33,23 +32,55 @@ export const ItemUseRecordMain = useCrudSchemas(reactive([ dictClass: 'string', isSearch: false, isTable: true, - table: { - width: 150 - }, tableForm: { type: 'Select' } }, { - label: '操作', - field: 'action', - isDetail: false, - isForm: false, - table: { - width: 200, - fixed: 'right' - } - } + label: '操作者', + field: 'creator', + sort: 'custom', + isSearch: false + }, + { + label: '操作时间', + field: 'createTime', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + isTable: true, + form: { + component: 'DatePicker', + componentProps: { + style: { width: '100%' }, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x' + } + }, + isForm: false, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + } + }, + // { + // label: '操作', + // field: 'action', + // isDetail: false, + // isForm: false, + // table: { + // width: 200, + // fixed: 'right' + // } + // } ])) //表单校验