From b3c7a7524b98ee48aaf042b9fe43f2c288110e45 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Tue, 27 Aug 2024 15:20:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=87=E5=93=81=E5=A4=87=E4=BB=B6?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/basic/moldInspection/index.ts | 4 +- .../assetsAccountControlsHistory.data.ts | 14 +-- .../fixedAssetsControlsHistory.data.ts | 14 +-- .../eam/basic/inspection/inspection.data.ts | 13 +++ src/views/eam/basic/item/index.vue | 7 +- src/views/eam/basic/item/item.data.ts | 42 +++---- src/views/eam/basic/moldInspection/index.vue | 103 ++++++++++++++++-- .../moldInspection/moldInspection.data.ts | 16 ++- .../moldMaintenance/moldMaintenance.data.ts | 16 +++ .../item/itemAccounts/itemAccounts.data.ts | 10 ++ 10 files changed, 186 insertions(+), 53 deletions(-) diff --git a/src/api/eam/basic/moldInspection/index.ts b/src/api/eam/basic/moldInspection/index.ts index 1e2d672..5f5603a 100644 --- a/src/api/eam/basic/moldInspection/index.ts +++ b/src/api/eam/basic/moldInspection/index.ts @@ -51,8 +51,8 @@ export const updateMoldItems = async (data: DeviceMoldItemsVO) => { } // 删除项记录表(设备 模具 保养 维修 巡检点检) -export const deleteDeviceMoldItems = async (id: number) => { - return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) +export const deleteDeviceMoldItems = async (id: number, remark: string) => { + return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) } // 导出项记录表(设备 模具 保养 维修 巡检点检) Excel diff --git a/src/views/eam/basic/assetsAccountControlsHistory/assetsAccountControlsHistory.data.ts b/src/views/eam/basic/assetsAccountControlsHistory/assetsAccountControlsHistory.data.ts index 5029d18..2d8d837 100644 --- a/src/views/eam/basic/assetsAccountControlsHistory/assetsAccountControlsHistory.data.ts +++ b/src/views/eam/basic/assetsAccountControlsHistory/assetsAccountControlsHistory.data.ts @@ -114,14 +114,12 @@ export const AssetsAccountControlsHistory = useCrudSchemas(reactive( field: 'user', sort: 'custom', }, - // { - // label: '状态', - // field: 'status', - // sort: 'custom', - // form: { - // component: 'Radio' - // }, - // }, + { + label: '状态', + field: 'status', + sort: 'custom', + isForm: false, + }, { label: '操作时间', field: 'createTime', diff --git a/src/views/eam/basic/inspection/inspection.data.ts b/src/views/eam/basic/inspection/inspection.data.ts index 31440d6..ebf6ecb 100644 --- a/src/views/eam/basic/inspection/inspection.data.ts +++ b/src/views/eam/basic/inspection/inspection.data.ts @@ -144,6 +144,19 @@ export const DeviceMoldItems = useCrudSchemas(reactive([ } }, + { + label: '是否点检', + field: 'isNeedInspection', + sort: 'custom', + isSearch: false, + formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => { + return trueOrFalse.find((account) => account.value == cellValue)?.label + }, + form: { + component: 'Switch', + value: false, + } + }, // { // label: '是否可用', // field: 'available', diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index 7d293f2..221e077 100644 --- a/src/views/eam/basic/item/index.vue +++ b/src/views/eam/basic/item/index.vue @@ -248,9 +248,10 @@ } if (data.activeTime == 0) data.activeTime = null if (data.expireTime == 0) data.expireTime = null - data.filePathList = [] - for (let i = 0; i < data.filePathListView.length; i++) { - data.filePathList.push(data.filePathListView[i].url) + data.fileInfoList = [] + for (let i = 0; i < data.attachmentFileList.length; i++) { + data.filePathList.push(data.attachmentFileList[i].url) + data.fileInfoList.push(data.attachmentFileList[i]) } if (formType === 'create') { await ItemApi.createItem(data) diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts index 5aeeba2..90770b2 100644 --- a/src/views/eam/basic/item/item.data.ts +++ b/src/views/eam/basic/item/item.data.ts @@ -134,11 +134,11 @@ export const Item = useCrudSchemas(reactive([ type: 'Select' } }, - // { - // label: '单价', - // field: 'singlePrice', - // sort: 'custom', - // }, + { + label: '单价', + field: 'singlePrice', + sort: 'custom', + }, { label: '重采购点', field: 'reprocurement', @@ -279,25 +279,25 @@ export const Item = useCrudSchemas(reactive([ field: 'upload', isTable: true, }, + // { + // label: '文件', + // field: 'filePathListView', + // sort: 'custom', + // isTable: false, + // table: { + // }, + // form: { + // component: 'UploadFile', + // componentProps: { + // } + // } + // }, { label: '文件', - field: 'filePathListView', - sort: 'custom', - isTable: false, - table: { - }, - form: { - component: 'UploadFile', - componentProps: { - } - } - }, - { - label: '文件', - field: 'filePathList', + field: 'attachmentFileList', sort: 'custom', isTable: false, - isForm: false, + isForm: true, table: { }, form: { @@ -312,7 +312,7 @@ export const Item = useCrudSchemas(reactive([ field: 'action', isForm: false, table: { - width: 180, + width: 200, fixed: 'right' } } diff --git a/src/views/eam/basic/moldInspection/index.vue b/src/views/eam/basic/moldInspection/index.vue index 00541f5..0d0c040 100644 --- a/src/views/eam/basic/moldInspection/index.vue +++ b/src/views/eam/basic/moldInspection/index.vue @@ -52,7 +52,32 @@ - + + + + + + + +