diff --git a/src/api/oa/erp/projectAcceptance/index.ts b/src/api/oa/erp/projectAcceptance/index.ts new file mode 100644 index 0000000..c4c5d70 --- /dev/null +++ b/src/api/oa/erp/projectAcceptance/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProjectAcceptanceVO, ProjectAcceptanceForm, ProjectAcceptanceQuery } from '@/api/oa/erp/projectAcceptance/types'; + +/** + * 查询项目验收确认列表 + * @param query + * @returns {*} + */ + +export const listProjectAcceptance = (query?: ProjectAcceptanceQuery): AxiosPromise => { + return request({ + url: '/oa/erp/projectAcceptance/list', + method: 'get', + params: query + }); +}; + +/** + * 查询项目验收确认详细 + * @param acceptanceId + */ +export const getProjectAcceptance = (acceptanceId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/projectAcceptance/' + acceptanceId, + method: 'get' + }); +}; + +/** + * 新增项目验收确认 + * @param data + */ +export const addProjectAcceptance = (data: ProjectAcceptanceForm) => { + return request({ + url: '/oa/erp/projectAcceptance', + method: 'post', + data: data + }); +}; + +/** + * 修改项目验收确认 + * @param data + */ +export const updateProjectAcceptance = (data: ProjectAcceptanceForm) => { + return request({ + url: '/oa/erp/projectAcceptance', + method: 'put', + data: data + }); +}; + +/** + * 删除项目验收确认 + * @param acceptanceId + */ +export const delProjectAcceptance = (acceptanceId: string | number | Array) => { + return request({ + url: '/oa/erp/projectAcceptance/' + acceptanceId, + method: 'delete' + }); +}; + +/** + * 根据项目ID准备验收信息 + * @param projectId + */ +export const prepareProjectAcceptanceByProjectId = (projectId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/projectAcceptance/prepareByProjectId/' + projectId, + method: 'get' + }); +}; + +/** + * 提交项目验收确认并发起流程 + * @param data + */ +export const submitProjectAcceptanceAndFlowStart = (data: ProjectAcceptanceForm): AxiosPromise => { + return request({ + url: '/oa/erp/projectAcceptance/submitAndFlowStart', + method: 'post', + data: data + }); +}; + +/** + * 下拉框查询项目验收确认列表 + * @param query + * @returns {*} + */ +export function getErpProjectAcceptanceList (query) { + return request({ + url: '/oa/erp/projectAcceptance/getErpProjectAcceptanceList', + method: 'get', + params: query + }); +}; diff --git a/src/api/oa/erp/projectAcceptance/types.ts b/src/api/oa/erp/projectAcceptance/types.ts new file mode 100644 index 0000000..7be8f74 --- /dev/null +++ b/src/api/oa/erp/projectAcceptance/types.ts @@ -0,0 +1,229 @@ +export interface ProjectAcceptanceVO { + /** + * 验收确认ID + */ + acceptanceId: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 项目号 + */ + projectCode: string; + + /** + * 项目名称 + */ + projectName: string; + + /** + * 项目经理 + */ + managerId: string | number; + + /** + * 项目经理姓名 + */ + projectManagerName?: string; + + + /** + * 验收日期 + */ + acceptanceDate: string; + + /** + * 验收单附件 + */ + ossId: string | number; + + /** + * 验收确认编号 + */ + acceptanceCode?: string; + + /** + * 部门负责人 + */ + chargeId: string | number; + + /** + * 部门负责人姓名 + */ + chargeName?: string; + + /** + * 分管副总 + */ + deputyId: string | number; + + /** + * 分管副总姓名 + */ + deputyName?: string; + + /** + * 备注 + */ + remark: string; + + /** + * 流程状态 + */ + flowStatus?: string; + /** + * 项目状态(1暂存 2审批中 3可用) + */ + acceptanceStatus?: string; +} + +export interface ProjectAcceptanceForm extends BaseEntity { + /** + * 验收确认ID + */ + acceptanceId?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 项目号 + */ + projectCode?: string; + + /** + * 项目名称 + */ + projectName?: string; + + /** + * 项目经理 + */ + managerId?: string | number; + + /** + * 项目经理姓名 + */ + projectManagerName?: string; + + + /** + * 验收日期 + */ + acceptanceDate?: string; + + /** + * 验收单附件 + */ + ossId?: string | number; + + /** + * 验收确认编号 + */ + acceptanceCode?: string; + + /** + * 部门负责人 + */ + chargeId?: string | number; + /** + * 部门负责人姓名 + */ + chargeName?: string; + + /** + * 分管副总 + */ + deputyId?: string | number; + /** + * 分管副总姓名 + */ + deputyName?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 流程状态 + */ + flowStatus?: string; + + /** + * 项目状态(1暂存 2审批中 3可用) + */ + acceptanceStatus?: string; + + /** + * 流程编码 + */ + flowCode?: string; + + /** + * 流程变量 + */ + variables?: any; + + /** + * 业务扩展字段 + */ + bizExt?: any; + +} + +export interface ProjectAcceptanceQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 项目号 + */ + projectCode?: string; + + /** + * 项目名称 + */ + projectName?: string; + + /** + * 项目经理 + */ + managerId?: string | number; + + /** + * 验收日期 + */ + acceptanceDate?: string; + + /** + * 验收单附件 + */ + ossId?: string | number; + + /** + * 部门负责人 + */ + chargeId?: string | number; + + /** + * 分管副总 + */ + deputyId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/oa/erp/projectReceiving/index.ts b/src/api/oa/erp/projectReceiving/index.ts new file mode 100644 index 0000000..cdf7994 --- /dev/null +++ b/src/api/oa/erp/projectReceiving/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProjectReceivingVO, ProjectReceivingForm, ProjectReceivingQuery } from '@/api/oa/erp/projectReceiving/types'; + +/** + * 查询项目收货确认列表 + * @param query + * @returns {*} + */ + +export const listProjectReceiving = (query?: ProjectReceivingQuery): AxiosPromise => { + return request({ + url: '/oa/erp/projectReceiving/list', + method: 'get', + params: query + }); +}; + +/** + * 下拉框查询项目收货确认列表 + * @param query + * @returns {*} + */ +export const getErpProjectReceivingList = (query?: ProjectReceivingQuery): AxiosPromise => { + return request({ + url: '/oa/erp/projectReceiving/getErpProjectReceivingList', + method: 'get', + params: query + }); +}; + +/** + * 提交项目收货确认并发起流程 + * @param data + */ +export const submitProjectReceivingAndFlowStart = (data: ProjectReceivingForm): AxiosPromise => { + return request({ + url: '/oa/erp/projectReceiving/submitAndFlowStart', + method: 'post', + data: data + }); +}; + +/** + * 根据项目ID准备收货信息 + * @param projectId + */ +export const prepareProjectReceivingByProjectId = (projectId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/projectReceiving/prepareByProjectId/' + projectId, + method: 'get' + }); +}; + +/** + * 查询项目收货确认详细 + * @param receivingId + */ +export const getProjectReceiving = (receivingId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/projectReceiving/' + receivingId, + method: 'get' + }); +}; + +/** + * 新增项目收货确认 + * @param data + */ +export const addProjectReceiving = (data: ProjectReceivingForm) => { + return request({ + url: '/oa/erp/projectReceiving', + method: 'post', + data: data + }); +}; + +/** + * 修改项目收货确认 + * @param data + */ +export const updateProjectReceiving = (data: ProjectReceivingForm) => { + return request({ + url: '/oa/erp/projectReceiving', + method: 'put', + data: data + }); +}; + +/** + * 删除项目收货确认 + * @param receivingId + */ +export const delProjectReceiving = (receivingId: string | number | Array) => { + return request({ + url: '/oa/erp/projectReceiving/' + receivingId, + method: 'delete' + }); +}; diff --git a/src/api/oa/erp/projectReceiving/types.ts b/src/api/oa/erp/projectReceiving/types.ts new file mode 100644 index 0000000..c8a6de8 --- /dev/null +++ b/src/api/oa/erp/projectReceiving/types.ts @@ -0,0 +1,224 @@ +export interface ProjectReceivingVO { + /** + * 收货确认ID + */ + receivingId: string | number; + /** + * 项目号 + */ + projectCode: string; + + /** + * 项目名称 + */ + projectName: string; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 项目经理 + */ + managerId: string | number; + + /** + * 项目经理姓名 + */ + projectManagerName?: string; + + + /** + * 到货日期 + */ + arrivalDate: string; + + /** + * 收货单附件 + */ + ossId: string | number; + + /** + * 收货确认编号 + */ + receivingCode?: string; + + /** + * 部门负责人 + */ + chargeId: string | number; + + /** + * 部门负责人姓名 + */ + chargeName?: string; + + /** + * 分管副总 + */ + deputyId: string | number; + + /** + * 分管副总姓名 + */ + deputyName?: string; + + /** + * 备注 + */ + remark: string; + + /** + * 流程状态 + */ + flowStatus?: string; + + /** + * 项目状态(1暂存 2审批中 3可用) + */ + receivingStatus?: string; +} + +export interface ProjectReceivingForm extends BaseEntity { + /** + * 收货确认ID + */ + receivingId?: string | number; + + /** + * 项目号 + */ + projectCode?: string; + + /** + * 项目名称 + */ + projectName?: string; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 项目经理 + */ + managerId?: string | number; + + /** + * 项目经理姓名 + */ + projectManagerName?: string; + + + /** + * 到货日期 + */ + arrivalDate?: string; + + /** + * 收货单附件 + */ + ossId?: string | number; + + /** + * 收货确认编号 + */ + receivingCode?: string; + + /** + * 部门负责人 + */ + chargeId?: string | number; + /** + * 部门负责人姓名 + */ + chargeName?: string; + + /** + * 分管副总 + */ + deputyId?: string | number; + /** + * 分管副总姓名 + */ + deputyName?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 流程状态 + */ + flowStatus?: string; + + /** + * 项目状态(1暂存 2审批中 3可用) + */ + receivingStatus?: string; + + /** + * 流程编码 + */ + flowCode?: string; + + /** + * 流程变量 + */ + variables?: any; + + /** + * 业务扩展字段 + */ + bizExt?: any; + +} + +export interface ProjectReceivingQuery extends PageQuery { + + /** + * 项目号 + */ + projectCode?: string; + + /** + * 项目名称 + */ + projectName?: string; + + /** + * 项目经理 + */ + managerId?: string | number; + + /** + * 到货日期 + */ + arrivalDate?: string; + + /** + * 收货单附件 + */ + ossId?: string | number; + + /** + * 部门负责人 + */ + chargeId?: string | number; + + /** + * 分管副总 + */ + deputyId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/components/ProjectSelectDialog/index.vue b/src/components/ProjectSelectDialog/index.vue new file mode 100644 index 0000000..c9b3fda --- /dev/null +++ b/src/components/ProjectSelectDialog/index.vue @@ -0,0 +1,368 @@ + + + + + diff --git a/src/views/oa/erp/projectAcceptance/edit.vue b/src/views/oa/erp/projectAcceptance/edit.vue new file mode 100644 index 0000000..5b02998 --- /dev/null +++ b/src/views/oa/erp/projectAcceptance/edit.vue @@ -0,0 +1,315 @@ + + + diff --git a/src/views/oa/erp/projectAcceptance/index.vue b/src/views/oa/erp/projectAcceptance/index.vue new file mode 100644 index 0000000..dfc9d21 --- /dev/null +++ b/src/views/oa/erp/projectAcceptance/index.vue @@ -0,0 +1,325 @@ + + + diff --git a/src/views/oa/erp/projectReceiving/edit.vue b/src/views/oa/erp/projectReceiving/edit.vue new file mode 100644 index 0000000..38b2fc4 --- /dev/null +++ b/src/views/oa/erp/projectReceiving/edit.vue @@ -0,0 +1,314 @@ + + + diff --git a/src/views/oa/erp/projectReceiving/index.vue b/src/views/oa/erp/projectReceiving/index.vue new file mode 100644 index 0000000..000b36c --- /dev/null +++ b/src/views/oa/erp/projectReceiving/index.vue @@ -0,0 +1,319 @@ + + +