From e507dd312be5bd83a1808f5e1e91f310b6c00522 Mon Sep 17 00:00:00 2001 From: lh Date: Fri, 26 Dec 2025 16:25:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=A1=B9=E7=9B=AE=E5=91=A8=E6=8A=A5=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=AE=8C=E5=96=84=EF=BC=9A=E8=A1=A8=E5=8D=95=E5=A1=AB?= =?UTF-8?q?=E5=86=99=E7=95=8C=E9=9D=A2=E4=BB=A5=E5=8F=8A=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=AD=E7=9A=84=E9=99=84=E4=BB=B6=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=A7=8B=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E3=80=81=E7=BB=93=E6=9D=9F=E6=97=A5=E6=9C=9F=E3=80=82=202.?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=91=A8=E6=8A=A5=E5=AF=BC=E5=87=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84=E3=80=82=203.=E6=9C=BA=E7=A5=A8?= =?UTF-8?q?=E9=A2=84=E8=AE=A2=E4=BB=A3=E7=A0=81=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/crm/flightBooking/index.ts | 21 +- src/api/oa/erp/projectReportDetail/types.ts | 5 +- src/enums/OAEnum.ts | 4 + src/views/oa/crm/flightBooking/edit.vue | 150 ++++----- src/views/oa/crm/flightBooking/index.vue | 73 +++-- src/views/oa/erp/projectReport/edit.vue | 317 ++++++-------------- src/views/oa/erp/projectReport/index.vue | 4 +- 7 files changed, 224 insertions(+), 350 deletions(-) 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 @@ -