diff --git a/src/api/apply/apply/index.ts b/src/api/apply/apply/index.ts index ce1aa7335..3c8e2389a 100644 --- a/src/api/apply/apply/index.ts +++ b/src/api/apply/apply/index.ts @@ -1,110 +1,116 @@ -import request from '@/config/axios' - -// 立项申请主 VO -export interface MainVO { - id: number // id - number: string // 编号 - name: string // 项目名称 - technicalField: string // 所属技术领域 - year: string // 年度 - beginDate: string // 开始时间 - endData: string // 结束时间 - directorId: string // 负责人Id - director: string // 负责人姓名 - gender: string // 负责人性别 - age: string // 年龄 - education: string // 学历 - major: string // 所学专业 - engagMajor: string // 从事专业 - position: string // 职务(职称) - phoneNo: string // 电话 - email: string // 邮箱 - fax: string // 传真 - postalCode: string // 邮编 - address: string // 通讯地址 - achievement: string // 主要业绩 - competentDeptId: string // 主管部门ID - competentDeptName: string // 主管部门 - managerId: string // 主管工程师ID - managerName: string // 主管工程师 - maintenanceUnitName: string // 维护单位名称 - maintenanceUnitId: string // 维护单位ID - undertakingUnitName: string // 承担单位名称 - undertakingUnitId: string // 承担单位ID - reviewUnitName: string // 审核单位名称 - reviewUnitId: string // 审核单位ID - state: string // 状态 - creator: string // 创建人 - createTime: Date // 创建时间 - updater: string // 更新人 - updateTime: Date // 更新时间 - deleted: number // 是否删除 -} - -// 立项申请主 API -export const MainApi = { - // 查询立项申请主分页 - getMainPage: async (params: any) => { - return await request.get({ url: `/apply/main/page`, params }) - }, - - // 查询立项申请主详情 - getMain: async (id: number) => { - return await request.get({ url: `/apply/main/get?id=` + id }) - }, - - // 新增立项申请主 - createMain: async (data: MainVO) => { - return await request.post({ url: `/apply/main/create`, data }) - }, - - // 修改立项申请主 - updateMain: async (data: MainVO) => { - return await request.put({ url: `/apply/main/update`, data }) - }, - - // 删除立项申请主 - deleteMain: async (id: number) => { - return await request.delete({ url: `/apply/main/delete?id=` + id }) - }, - - // 导出立项申请主 Excel - exportMain: async (params) => { - return await request.download({ url: `/apply/main/export-excel`, params }) - }, - -// ==================== 子表(立项详细信息) ==================== - - // 获得立项详细信息 - getInfoByApplyId: async (applyId) => { - return await request.get({ url: `/apply/main/info/get-by-apply-id?applyId=` + applyId }) - }, - -// ==================== 子表(立项单位信息) ==================== - - // 获得立项单位信息列表 - getUnitsListByApplyId: async (applyId) => { - return await request.get({ url: `/apply/main/units/list-by-apply-id?applyId=` + applyId }) - }, - -// ==================== 子表(主要参加人员) ==================== - - // 获得主要参加人员列表 - getParticipantListByApplyId: async (applyId) => { - return await request.get({ url: `/apply/main/participant/list-by-apply-id?applyId=` + applyId }) - }, - -// ==================== 子表(立项实施计划) ==================== - - // 获得立项实施计划列表 - getPlanListByApplyId: async (applyId) => { - return await request.get({ url: `/apply/main/plan/list-by-apply-id?applyId=` + applyId }) - }, - -// ==================== 子表(立项经费) ==================== - - // 获得立项经费列表 - getFundsListByApplyId: async (applyId) => { - return await request.get({ url: `/apply/main/funds/list-by-apply-id?applyId=` + applyId }) - }, -} \ No newline at end of file +import request from '@/config/axios' + +// 立项申请主 VO +export interface MainVO { + id: number // id + number: string // 编号 + name: string // 项目名称 + technicalField: string // 所属技术领域 + year: string // 年度 + beginDate: string // 开始时间 + endData: string // 结束时间 + directorId: string // 负责人Id + director: string // 负责人姓名 + gender: string // 负责人性别 + age: string // 年龄 + education: string // 学历 + major: string // 所学专业 + engagMajor: string // 从事专业 + position: string // 职务(职称) + phoneNo: string // 电话 + email: string // 邮箱 + fax: string // 传真 + postalCode: string // 邮编 + address: string // 通讯地址 + achievement: string // 主要业绩 + competentDeptId: string // 主管部门ID + competentDeptName: string // 主管部门 + managerId: string // 主管工程师ID + managerName: string // 主管工程师 + maintenanceUnitName: string // 维护单位名称 + maintenanceUnitId: string // 维护单位ID + undertakingUnitName: string // 承担单位名称 + undertakingUnitId: string // 承担单位ID + reviewUnitName: string // 审核单位名称 + reviewUnitId: string // 审核单位ID + state: string // 状态 + creator: string // 创建人 + createTime: Date // 创建时间 + updater: string // 更新人 + updateTime: Date // 更新时间 + deleted: number // 是否删除 +} + +// 立项申请主 API +export const MainApi = { + // 查询立项申请主分页 + getMainPage: async (params: any) => { + return await request.get({ url: `/apply/main/page`, params }) + }, + + // 查询立项申请主详情 + getMain: async (id: number) => { + return await request.get({ url: `/apply/main/get?id=` + id }) + }, + + // 新增立项申请主 + createMain: async (data: MainVO) => { + return await request.post({ url: `/apply/main/create`, data }) + }, + + // 修改立项申请主 + updateMain: async (data: MainVO) => { + return await request.put({ url: `/apply/main/update`, data }) + }, + + // 删除立项申请主 + deleteMain: async (id: number) => { + return await request.delete({ url: `/apply/main/delete?id=` + id }) + }, + + // 导出立项申请主 Excel + exportMain: async (params) => { + return await request.download({ url: `/apply/main/export-excel`, params }) + }, + +// ==================== 子表(立项详细信息) ==================== + + // 获得立项详细信息 + getInfoByApplyId: async (applyId) => { + return await request.get({ url: `/apply/main/info/get-by-apply-id?applyId=` + applyId }) + }, + +// ==================== 子表(立项单位信息) ==================== + + // 获得立项单位信息列表 + getUnitsListByApplyId: async (applyId) => { + return await request.get({ url: `/apply/main/units/list-by-apply-id?applyId=` + applyId }) + }, + +// ==================== 子表(主要参加人员) ==================== + + // 获得主要参加人员列表 + getParticipantListByApplyId: async (applyId) => { + return await request.get({ url: `/apply/main/participant/list-by-apply-id?applyId=` + applyId }) + }, + +// ==================== 子表(立项实施计划) ==================== + + // 获得立项实施计划列表 + getPlanListByApplyId: async (applyId) => { + return await request.get({ url: `/apply/main/plan/list-by-apply-id?applyId=` + applyId }) + }, + +// ==================== 子表(立项经费) ==================== + + // 获得立项经费列表 + getFundsListByApplyId: async (applyId) => { + return await request.get({ url: `/apply/main/funds/list-by-apply-id?applyId=` + applyId }) + }, + getRecordList: async (params: any) => { + return await request.get({ url: `/apply/main/aduit/records?itmeId=` + params }) + }, + saveRecordList: async (data: any) => { + return await request.post({ url: `/apply/main/aduit`, data }) + }, +} diff --git a/src/components/Dialog/src/Dialog.vue b/src/components/Dialog/src/Dialog.vue index 104c1dfd8..64db1d961 100644 --- a/src/components/Dialog/src/Dialog.vue +++ b/src/components/Dialog/src/Dialog.vue @@ -70,12 +70,12 @@ const dialogStyle = computed(() => { :show-close="false" >