diff --git a/src/api/oa/crm/businessTripApply/index.ts b/src/api/oa/crm/businessTripApply/index.ts index b3d4ea1..4a0b33c 100644 --- a/src/api/oa/crm/businessTripApply/index.ts +++ b/src/api/oa/crm/businessTripApply/index.ts @@ -67,10 +67,22 @@ export const delBusinessTripApply = (tripId: string | number | Array { + return request({ + url: '/oa/crm/businessTripApply/submitAndFlowStart', + method: 'post', + data: data + }); }; diff --git a/src/api/oa/crm/businessTripApply/types.ts b/src/api/oa/crm/businessTripApply/types.ts index 49a2aa5..04e382f 100644 --- a/src/api/oa/crm/businessTripApply/types.ts +++ b/src/api/oa/crm/businessTripApply/types.ts @@ -238,6 +238,31 @@ export interface BusinessTripApplyForm extends BaseEntity { * 附件ID(多个用逗号分隔) */ ossId?: string | number; + + /** + * 项目名称 + */ + projectName?: string; + + /** + * 项目编码 + */ + projectCode?: string; + + /** + * 流程变量 + */ + variables?: Record; + + /** + * 业务扩展参数 + */ + bizExt?: Record; + + /** + * 流程编码 + */ + flowCode?: string; } export interface BusinessTripApplyQuery extends PageQuery { diff --git a/src/enums/OAEnum.ts b/src/enums/OAEnum.ts index 5aef2ff..52c67fd 100644 --- a/src/enums/OAEnum.ts +++ b/src/enums/OAEnum.ts @@ -38,6 +38,11 @@ export enum CodeRuleEnum { * 邮寄申请编号规则 */ MAILING_APPLY = '1016', + + /** + * 出差申请编号规则 + */ + BUSINESS_TRIP = '1017' } /** @@ -138,4 +143,9 @@ export enum FlowCodeEnum { * 合同订单标识KEY */ CONTRACT_ORDER_KEY = 'htdd', + + /** + * 出差申请标识KEY + */ + BUSINESS_TRIP_CODE = 'OABT' } diff --git a/src/router/index.ts b/src/router/index.ts index f087679..837c43c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -159,6 +159,12 @@ export const constantRoutes: RouteRecordRaw[] = [ component: () => import('@/views/oa/crm/crmQuoteInfo/edit.vue'), name: 'crmQuoteInfoView', meta: { title: '报价单查看', activeMenu: '/oa/crm/crmQuoteInfo' } + }, + { + path: 'businessTripApply/edit', + component: () => import('@/views/oa/crm/businessTripApply/edit.vue'), + name: 'BusinessTripApplyEdit', + meta: { title: '出差申请编辑', activeMenu: '/oa/crm/businessTripApply' } } ] }, diff --git a/src/views/oa/crm/businessTripApply/edit.vue b/src/views/oa/crm/businessTripApply/edit.vue new file mode 100644 index 0000000..8d1dcb0 --- /dev/null +++ b/src/views/oa/crm/businessTripApply/edit.vue @@ -0,0 +1,528 @@ + + + diff --git a/src/views/oa/crm/businessTripApply/index.vue b/src/views/oa/crm/businessTripApply/index.vue index e882c6a..a5c9dd9 100644 --- a/src/views/oa/crm/businessTripApply/index.vue +++ b/src/views/oa/crm/businessTripApply/index.vue @@ -49,7 +49,7 @@ - + 新增