diff --git a/src/api/oa/erp/afterSales/index.ts b/src/api/oa/erp/afterSales/index.ts index 0d46c05..5081e87 100644 --- a/src/api/oa/erp/afterSales/index.ts +++ b/src/api/oa/erp/afterSales/index.ts @@ -74,3 +74,15 @@ export function getErpAfterSalesList (query) { params: query }); }; + +/** + * 项目售后信息提交并发起流程 + * @param data 表单数据 + */ +export const submitAfterSalesAndFlowStart = (data: any) => { + return request({ + url: '/oa/erp/afterSales/submitAndFlowStart', + method: 'post', + data: data + }); +}; diff --git a/src/api/oa/erp/budgetInfo/index.ts b/src/api/oa/erp/budgetInfo/index.ts index 102ec18..f603184 100644 --- a/src/api/oa/erp/budgetInfo/index.ts +++ b/src/api/oa/erp/budgetInfo/index.ts @@ -57,6 +57,18 @@ export const updateErpBudgetInfo = (data: budgetInfoForm) => { }); }; +/** + * 变更项目预算 + * @param data + */ +export const changeErpBudgetInfo = (data: budgetInfoForm) => { + return request({ + url: '/oa/erp/budgetInfo/change', + method: 'post', + data: data + }); +}; + /** * 删除项目预算 * @param budgetId diff --git a/src/api/oa/erp/projectPurchase/types.ts b/src/api/oa/erp/projectPurchase/types.ts index 020b756..3f41885 100644 --- a/src/api/oa/erp/projectPurchase/types.ts +++ b/src/api/oa/erp/projectPurchase/types.ts @@ -56,6 +56,11 @@ export interface ProjectPurchaseVO { */ deputyName?: string; + /** + * 版本 + */ + version?: number; + /** * 提报人 */ @@ -164,6 +169,11 @@ export interface ProjectPurchaseForm extends BaseEntity { */ deputyId?: string | number; + /** + * 版本 + */ + version?: number; + /** * 部门ID */ @@ -332,6 +342,11 @@ export interface ProjectPurchaseQuery extends PageQuery { * 日期范围参数 */ params?: any; + + /** + * 项目经理名称 + */ + managerName?: string; } diff --git a/src/api/oa/erp/projectReport/types.ts b/src/api/oa/erp/projectReport/types.ts index bc153e2..6e5be0d 100644 --- a/src/api/oa/erp/projectReport/types.ts +++ b/src/api/oa/erp/projectReport/types.ts @@ -1,4 +1,4 @@ -export interface ProjectReportVO extends extraInfo { +export interface ProjectReportVO extends BaseEntity, extraInfo { /** * 项目周报ID */ @@ -67,6 +67,7 @@ export interface ProjectReportVO extends extraInfo { /** * 项目编码 */ + projectCode?: string; } export interface ProjectReportForm extends BaseEntity, extraInfo { @@ -142,6 +143,10 @@ export interface ProjectReportForm extends BaseEntity, extraInfo { } export interface ProjectReportQuery extends PageQuery, extraInfo { + /** + * 项目周报ID + */ + reportId: string | number; /** * 项目ID */ diff --git a/src/api/oa/erp/projectReportDetail/index.ts b/src/api/oa/erp/projectReportDetail/index.ts index 71d5d4e..d25ac1a 100644 --- a/src/api/oa/erp/projectReportDetail/index.ts +++ b/src/api/oa/erp/projectReportDetail/index.ts @@ -1,6 +1,11 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { ProjectReportDetailVO, ProjectReportDetailForm, ProjectReportDetailQuery } from '@/api/oa/erp/projectReportDetail/types'; +import { + ProjectReportDetailVO, + ProjectReportDetailForm, + ProjectReportDetailQuery, + ProjectReportAndDetailWrapper +} from '@/api/oa/erp/projectReportDetail/types'; /** * 查询项目周报明细列表 @@ -74,3 +79,15 @@ export function getErpProjectReportDetailList(query) { params: query }); } + +/** + * 提交项目周报信息并发起流程 + * @param data + */ +export const projectReportSubmitAndFlowStart = (data: ProjectReportAndDetailWrapper): AxiosPromise => { + return request({ + url: '/oa/erp/projectReportDetail/projectReportSubmitAndFlowStart', + method: 'post', + data: data + }); +}; diff --git a/src/api/oa/erp/projectReportDetail/types.ts b/src/api/oa/erp/projectReportDetail/types.ts index e7e908d..6676748 100644 --- a/src/api/oa/erp/projectReportDetail/types.ts +++ b/src/api/oa/erp/projectReportDetail/types.ts @@ -1,4 +1,5 @@ -export interface ProjectReportDetailVO { +import { ProjectReportVO, ProjectReportForm, ProjectReportQuery } from '@/api/oa/erp/projectReport/types'; +export interface ProjectReportDetailVO extends extraInfo { /** * 项目周报明细ID */ @@ -105,7 +106,7 @@ export interface ProjectReportDetailVO { activeFlag: string; } -export interface ProjectReportDetailForm extends BaseEntity { +export interface ProjectReportDetailForm extends BaseEntity, extraInfo { /** * 项目周报明细ID */ @@ -212,7 +213,7 @@ export interface ProjectReportDetailForm extends BaseEntity { activeFlag?: string; } -export interface ProjectReportDetailQuery extends PageQuery { +export interface ProjectReportDetailQuery extends PageQuery, extraInfo { /** * 项目周报ID */ @@ -313,3 +314,29 @@ export interface ProjectReportDetailQuery extends PageQuery { */ params?: any; } + +export interface extraInfo { + deptName?: string; + + managerName?: string; + + chargeName?: string; + + deputyName?: string; +} + +// 扩展的项目周报明细表单类型(包含流程相关字段) +export type ProjectReportDetailFormEx = ProjectReportDetailForm & { + flowCode?: string; + variables?: Record; + bizExt?: Record; + flowStatus?: string; + projectReportStatus?: string; + file?: any; +}; + +// 项目周报和明细包装类类型 +export type ProjectReportAndDetailWrapper = { + projectReport: ProjectReportForm; + projectDetailReport: ProjectReportDetailFormEx; +}; diff --git a/src/enums/OAEnum.ts b/src/enums/OAEnum.ts index edf3bd0..4bc0d79 100644 --- a/src/enums/OAEnum.ts +++ b/src/enums/OAEnum.ts @@ -21,6 +21,8 @@ export enum CodeRuleEnum { * 项目售后编号规则 */ AFTER_SALES = '1012', + + PROJECT_REPORT = '1011' } /** @@ -45,15 +47,13 @@ export enum ProjectCategoryEnum { /** * 预投项目 */ - PRE_INVEST = '4', + PRE_INVEST = '4' } - /** * 流程定义编码枚举 */ export enum FlowCodeEnum { - /** * 合同标识KEY */ @@ -97,4 +97,12 @@ export enum FlowCodeEnum { * 项目验收确认标识KEY */ PROJECT_ACCEPTANCE_CODE = 'OAPA', + /** + * 项目周报确认标识KEY + */ + PROJECT_REPRORT_CODE = 'XMZB', + /** + * 售后项目标识KEY + */ + AFTER_SALES_KEY = 'OAAS' } diff --git a/src/views/oa/crm/crmSupplierInfo/index.vue b/src/views/oa/crm/crmSupplierInfo/index.vue index 1755a23..53c0d8d 100644 --- a/src/views/oa/crm/crmSupplierInfo/index.vue +++ b/src/views/oa/crm/crmSupplierInfo/index.vue @@ -1,618 +1,619 @@ diff --git a/src/views/oa/erp/afterSales/edit.vue b/src/views/oa/erp/afterSales/edit.vue index 27956e1..0c7ee51 100644 --- a/src/views/oa/erp/afterSales/edit.vue +++ b/src/views/oa/erp/afterSales/edit.vue @@ -38,26 +38,40 @@ + - - - - + + + + + - - + + + + - + @@ -104,7 +118,7 @@ - + @@ -183,10 +197,10 @@ 人员费用成本 - + 新增 - + 删除 @@ -200,7 +214,7 @@ v-model="scope.row.laborId" filterable style="width: 100%" - :disabled="routeParams.type === 'view'" + :disabled="routeParams.type === 'view' || routeParams.type === 'approval'" @change="(val) => handleLaborChange(val, scope.row)" > @@ -209,7 +223,7 @@ @@ -220,13 +234,13 @@ :precision="2" controls-position="right" style="width: 100%" - :disabled="routeParams.type === 'view'" + :disabled="routeParams.type === 'view' || routeParams.type === 'approval'" /> @@ -239,10 +253,10 @@ 消耗材料明细 - + 新增 - + 删除 @@ -289,7 +303,6 @@ -