From 12d10643cd8f54c020fe73701f38c6488d203d16 Mon Sep 17 00:00:00 2001 From: xs Date: Mon, 30 Mar 2026 09:02:59 +0800 Subject: [PATCH] =?UTF-8?q?1.4.0=E5=89=8D=E7=AB=AF=EF=BC=9A=20=20=20=20fea?= =?UTF-8?q?t(=E5=88=86=E6=AC=BE):=E5=AE=8C=E6=88=90=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E5=88=86=E6=AC=BE=E6=89=80=E6=9C=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/erp/finAccountInstallment/index.ts | 15 + src/api/oa/erp/finAccountInstallment/types.ts | 51 +- .../erp/finAccountInstallmentDetail/index.ts | 89 ++ .../erp/finAccountInstallmentDetail/types.ts | 171 ++++ .../oa/erp/finAccountInstallment/index.vue | 773 ++++++++++++++++++ 5 files changed, 1051 insertions(+), 48 deletions(-) create mode 100644 src/api/oa/erp/finAccountInstallmentDetail/index.ts create mode 100644 src/api/oa/erp/finAccountInstallmentDetail/types.ts create mode 100644 src/views/oa/erp/finAccountInstallment/index.vue diff --git a/src/api/oa/erp/finAccountInstallment/index.ts b/src/api/oa/erp/finAccountInstallment/index.ts index a9ccadc..8ceaf89 100644 --- a/src/api/oa/erp/finAccountInstallment/index.ts +++ b/src/api/oa/erp/finAccountInstallment/index.ts @@ -74,3 +74,18 @@ export function getErpFinAccountInstallmentList (query) { params: query }); }; + +/** + * 导入分款信息 + * @param data + */ +export const importFinAccountInstallment = (data: any) => { + return request({ + url: '/oa/erp/finAccountInstallment/import', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); +}; diff --git a/src/api/oa/erp/finAccountInstallment/types.ts b/src/api/oa/erp/finAccountInstallment/types.ts index a1ab637..e66340a 100644 --- a/src/api/oa/erp/finAccountInstallment/types.ts +++ b/src/api/oa/erp/finAccountInstallment/types.ts @@ -5,7 +5,7 @@ export interface FinAccountInstallmentVO { accountInstallmentId: string | number; /** - * 分款编号 + * 回款编号,同一批导入的回款信息 */ installmentCode: string; @@ -39,21 +39,6 @@ export interface FinAccountInstallmentVO { */ remark: string; - /** - * 发出人员 - */ - dispatchUserId: string | number; - - /** - * 发出部门 - */ - dispatchDeptId: string | number; - - /** - * 发出日期 - */ - dispatchDate: string; - /** * 分款状态(0草稿 1已发出 2分款完成) */ @@ -73,7 +58,7 @@ export interface FinAccountInstallmentForm extends BaseEntity { accountInstallmentId?: string | number; /** - * 分款编号 + * 回款编号,同一批导入的回款信息 */ installmentCode?: string; @@ -107,21 +92,6 @@ export interface FinAccountInstallmentForm extends BaseEntity { */ remark?: string; - /** - * 发出人员 - */ - dispatchUserId?: string | number; - - /** - * 发出部门 - */ - dispatchDeptId?: string | number; - - /** - * 发出日期 - */ - dispatchDate?: string; - /** * 分款状态(0草稿 1已发出 2分款完成) */ @@ -137,7 +107,7 @@ export interface FinAccountInstallmentForm extends BaseEntity { export interface FinAccountInstallmentQuery extends PageQuery { /** - * 分款编号 + * 回款编号,同一批导入的回款信息 */ installmentCode?: string; @@ -166,21 +136,6 @@ export interface FinAccountInstallmentQuery extends PageQuery { */ paymentDate?: string; - /** - * 发出人员 - */ - dispatchUserId?: string | number; - - /** - * 发出部门 - */ - dispatchDeptId?: string | number; - - /** - * 发出日期 - */ - dispatchDate?: string; - /** * 分款状态(0草稿 1已发出 2分款完成) */ diff --git a/src/api/oa/erp/finAccountInstallmentDetail/index.ts b/src/api/oa/erp/finAccountInstallmentDetail/index.ts new file mode 100644 index 0000000..a06ab00 --- /dev/null +++ b/src/api/oa/erp/finAccountInstallmentDetail/index.ts @@ -0,0 +1,89 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { FinAccountInstallmentDetailVO, FinAccountInstallmentDetailForm, FinAccountInstallmentDetailQuery } from '@/api/oa/erp/finAccountInstallmentDetail/types'; + +/** + * 查询分款明细信息列表 + * @param query + * @returns {*} + */ + +export const listFinAccountInstallmentDetail = (query?: FinAccountInstallmentDetailQuery): AxiosPromise => { + return request({ + url: '/oa/erp/finAccountInstallmentDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询分款明细信息详细 + * @param installmentDetailId + */ +export const getFinAccountInstallmentDetail = (installmentDetailId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/finAccountInstallmentDetail/' + installmentDetailId, + method: 'get' + }); +}; + +/** + * 新增分款明细信息 + * @param data + */ +export const addFinAccountInstallmentDetail = (data: FinAccountInstallmentDetailForm) => { + return request({ + url: '/oa/erp/finAccountInstallmentDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改分款明细信息 + * @param data + */ +export const updateFinAccountInstallmentDetail = (data: FinAccountInstallmentDetailForm) => { + return request({ + url: '/oa/erp/finAccountInstallmentDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除分款明细信息 + * @param installmentDetailId + */ +export const delFinAccountInstallmentDetail = (installmentDetailId: string | number | Array) => { + return request({ + url: '/oa/erp/finAccountInstallmentDetail/' + installmentDetailId, + method: 'delete' + }); +}; + +/** + * 下拉框查询分款明细信息列表 + * @param query + * @returns {*} + */ +export function getErpFinAccountInstallmentDetailList (query) { + return request({ + url: '/oa/erp/finAccountInstallmentDetail/getErpFinAccountInstallmentDetailList', + method: 'get', + params: query + }); +}; + + +/** + * 删除分款明细信息 + * @param data + */ +export const deleteInstallmentDetailByBo = (data: FinAccountInstallmentDetailForm) => { + return request({ + url: '/oa/erp/finAccountInstallmentDetail/deleteInstallmentDetailByBo', + method: 'post', + data: data + }); +}; diff --git a/src/api/oa/erp/finAccountInstallmentDetail/types.ts b/src/api/oa/erp/finAccountInstallmentDetail/types.ts new file mode 100644 index 0000000..c2b12cd --- /dev/null +++ b/src/api/oa/erp/finAccountInstallmentDetail/types.ts @@ -0,0 +1,171 @@ +export interface FinAccountInstallmentDetailVO { + /** + * 分款明细ID + */ + installmentDetailId: string | number; + + /** + * 分款ID + */ + accountInstallmentId: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 冗余,项目号 + */ + projectCode: string; + + /** + * 冗余,项目名称 + */ + projectName: string; + + /** + * 合同ID,关联erp_contract_info + */ + contractId: string | number; + + /** + * 合同编号 + */ + contractCode: string; + + /** + * 合同名称 + */ + contractName: string; + + /** + * 阶段ID,关联base_payment_stage + */ + paymentStageId: string | number; + + /** + * 分款阶段名称 + */ + paymentStageName: string; + + /** + * 分款明细金额 + */ + detailAmount: number; + + /** + * 备注 + */ + remark: string; + +} + +export interface FinAccountInstallmentDetailForm extends BaseEntity { + /** + * 分款明细ID + */ + installmentDetailId?: string | number; + + /** + * 分款ID + */ + accountInstallmentId?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 冗余,项目号 + */ + projectCode?: string; + + /** + * 冗余,项目名称 + */ + projectName?: string; + + /** + * 合同ID,关联erp_contract_info + */ + contractId?: string | number; + + /** + * 合同编号 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 阶段ID,关联base_payment_stage + */ + paymentStageId?: string | number; + + /** + * 分款阶段名称 + */ + paymentStageName?: string; + + /** + * 分款明细金额 + */ + detailAmount?: number; + + /** + * 备注 + */ + remark?: string; + +} + +export interface FinAccountInstallmentDetailQuery extends PageQuery { + + /** + * 分款ID + */ + accountInstallmentId?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 冗余,项目号 + */ + projectCode?: string; + + /** + * 冗余,项目名称 + */ + projectName?: string; + + /** + * 合同ID,关联erp_contract_info + */ + contractId?: string | number; + + /** + * 阶段ID,关联base_payment_stage + */ + paymentStageId?: string | number; + + /** + * 分款明细金额 + */ + detailAmount?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/oa/erp/finAccountInstallment/index.vue b/src/views/oa/erp/finAccountInstallment/index.vue new file mode 100644 index 0000000..67cc969 --- /dev/null +++ b/src/views/oa/erp/finAccountInstallment/index.vue @@ -0,0 +1,773 @@ + + + + +