diff --git a/src/api/oa/crm/flightBooking/index.ts b/src/api/oa/crm/flightBooking/index.ts index 02deea7..111a319 100644 --- a/src/api/oa/crm/flightBooking/index.ts +++ b/src/api/oa/crm/flightBooking/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { FlightBookingVO, FlightBookingForm, FlightBookingQuery } from '@/api/oa/flightBooking/types'; +import { FlightBookingVO, FlightBookingForm, FlightBookingQuery } from '@/api/oa/crm/flightBooking/types'; /** * 查询机票预订列表 @@ -33,7 +33,7 @@ export const getFlightBooking = (bookingId: string | number): AxiosPromise { return request({ - url: '/oa//crm/flightBooking', + url: '/oa/crm/flightBooking', method: 'post', data: data }); @@ -45,7 +45,7 @@ export const addFlightBooking = (data: FlightBookingForm) => { */ export const updateFlightBooking = (data: FlightBookingForm) => { return request({ - url: '/oa//crm/flightBooking', + url: '/oa/crm/flightBooking', method: 'put', data: data }); @@ -57,7 +57,7 @@ export const updateFlightBooking = (data: FlightBookingForm) => { */ export const delFlightBooking = (bookingId: string | number | Array) => { return request({ - url: '/oa//crm/flightBooking/' + bookingId, + url: '/oa/crm/flightBooking/' + bookingId, method: 'delete' }); }; @@ -69,8 +69,19 @@ export const delFlightBooking = (bookingId: string | number | Array { + return request({ + url: '/oa/crm/flightBooking/submitAndFlowStart', + method: 'post', + data: data + }); +}; diff --git a/src/api/oa/erp/projectReportDetail/types.ts b/src/api/oa/erp/projectReportDetail/types.ts index e40809b..e8efacf 100644 --- a/src/api/oa/erp/projectReportDetail/types.ts +++ b/src/api/oa/erp/projectReportDetail/types.ts @@ -323,8 +323,11 @@ export interface extraInfo { chargeName?: string; deputyName?: string; -} + beginDate?: string; + + endDate?: string; +} // 扩展的项目周报明细表单类型(包含流程相关字段) export type ProjectReportDetailFormEx = ProjectReportDetailForm & { flowCode?: string; diff --git a/src/enums/OAEnum.ts b/src/enums/OAEnum.ts index 5aef2ff..3c48351 100644 --- a/src/enums/OAEnum.ts +++ b/src/enums/OAEnum.ts @@ -138,4 +138,8 @@ export enum FlowCodeEnum { * 合同订单标识KEY */ CONTRACT_ORDER_KEY = 'htdd', + /** + * 机票预订KEY + */ + FLIGHT_BOOKING_CODE = 'JPYD' } diff --git a/src/views/oa/crm/flightBooking/edit.vue b/src/views/oa/crm/flightBooking/edit.vue index 2c343b4..8655c6c 100644 --- a/src/views/oa/crm/flightBooking/edit.vue +++ b/src/views/oa/crm/flightBooking/edit.vue @@ -1,9 +1,6 @@ -