diff --git a/src/api/eam/basic/fixedAssets/index.ts b/src/api/eam/basic/fixedAssets/index.ts new file mode 100644 index 0000000..a8d4261 --- /dev/null +++ b/src/api/eam/basic/fixedAssets/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +export interface FixedAssetsVO { + number: string + name: string + accountingUnit: string + specifications: string + locationNumber: string + purchaseDate: Date + purchaseDept: string + supplierNumber: string + productionDate: Date + purchasePrice: number + manageDept: string + unit: string + qty: number + siteId: string + available: string + concurrencyStamp: number +} + +// 查询固定资产列表 +export const getFixedAssetsPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/fixed-assets/senior', data }) + } else { + return await request.get({ url: `/eam/fixed-assets/page`, params }) + } +} + +// 查询固定资产详情 +export const getFixedAssets = async (id: number) => { + return await request.get({ url: `/eam/fixed-assets/get?id=` + id }) +} + +// 新增固定资产 +export const createFixedAssets = async (data: FixedAssetsVO) => { + return await request.post({ url: `/eam/fixed-assets/create`, data }) +} + +// 修改固定资产 +export const updateFixedAssets = async (data: FixedAssetsVO) => { + return await request.put({ url: `/eam/fixed-assets/update`, data }) +} + +// 删除固定资产 +export const deleteFixedAssets = async (id: number) => { + return await request.delete({ url: `/eam/fixed-assets/delete?id=` + id }) +} + +// 导出固定资产 Excel +export const exportFixedAssets = async (params) => { + return await request.download({ url: `/eam/fixed-assets/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/fixed-assets/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceInternalAudit/index.ts b/src/api/eam/device/deviceInternalAudit/index.ts new file mode 100644 index 0000000..ed90b3e --- /dev/null +++ b/src/api/eam/device/deviceInternalAudit/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface DeviceInternalAuditVO { + id: number + number: string + describes: string + personer: string + fitOut: number + coating: number + injectionMolding: number + business: number + laboratory: number + it: number + qualityDepartment: number + materialFlow: number + moldPre: number + available: string +} + +// 查询设备内审业务说明列表 +export const getDeviceInternalAuditPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-internal-audit/senior', data }) + } else { + return await request.get({ url: `/eam/device-internal-audit/page`, params }) + } +} + +// 查询设备内审业务说明详情 +export const getDeviceInternalAudit = async (id: number) => { + return await request.get({ url: `/eam/device-internal-audit/get?id=` + id }) +} + +// 新增设备内审业务说明 +export const createDeviceInternalAudit = async (data: DeviceInternalAuditVO) => { + return await request.post({ url: `/eam/device-internal-audit/create`, data }) +} + +// 修改设备内审业务说明 +export const updateDeviceInternalAudit = async (data: DeviceInternalAuditVO) => { + return await request.put({ url: `/eam/device-internal-audit/update`, data }) +} + +// 删除设备内审业务说明 +export const deleteDeviceInternalAudit = async (id: number) => { + return await request.delete({ url: `/eam/device-internal-audit/delete?id=` + id }) +} + +// 导出设备内审业务说明 Excel +export const exportDeviceInternalAudit = async (params) => { + return await request.download({ url: `/eam/device-internal-audit/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-internal-audit/get-import-template' }) +} diff --git a/src/api/eam/device/deviceMaintenanceMain/index.ts b/src/api/eam/device/deviceMaintenanceMain/index.ts index 74119f6..38c5022 100644 --- a/src/api/eam/device/deviceMaintenanceMain/index.ts +++ b/src/api/eam/device/deviceMaintenanceMain/index.ts @@ -18,7 +18,6 @@ export interface DeviceMaintenanceMainVO { // 查询维修工单主列表 export const getDeviceMaintenanceMainPage = async (params) => { - params.type = 'DEVICE' if (params.isSearch) { delete params.isSearch const data = {...params} diff --git a/src/api/eam/device/deviceRepair/index.ts b/src/api/eam/device/deviceRepair/index.ts index 2071add..42b4864 100644 --- a/src/api/eam/device/deviceRepair/index.ts +++ b/src/api/eam/device/deviceRepair/index.ts @@ -17,7 +17,6 @@ export interface DeviceRepairVO { // 查询报修申请列表 export const getDeviceRepairPage = async (params) => { - params.type = 'DEVICE' if (params.isSearch) { delete params.isSearch const data = { ...params } diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 8cc85c7..831eb70 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -380,8 +380,10 @@ const open = async (type: string, row?: any, masterParmas?: any) => { formLoading.value = true try { nextTick(() => { + console.log('row11',row) formRef.value.setValues(row) }) + } finally { formLoading.value = false } diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue index 0d352d6..cf0a09a 100644 --- a/src/components/Detail/src/DetailDeviceLedger.vue +++ b/src/components/Detail/src/DetailDeviceLedger.vue @@ -594,6 +594,7 @@ const getImage = () => { if (imageParmas.value.funcCode == 'device_mould_picture') { imageFormData.value.filePathList = res } else { + console.log(444,res) fileFormData.value.filePathList = res formKey.value += 1 } diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 464a54a..2047ff7 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -6,7 +6,7 @@ name="file" v-model="valueRef" v-model:file-list="fileList" - :show-file-list="true" + :show-file-list="isShowFileList" :auto-upload="autoUpload" :action="updateUrl" :headers="uploadHeaders" @@ -28,6 +28,7 @@