diff --git a/src/api/oa/erp/contractPaymentMethod/index.ts b/src/api/oa/erp/contractPaymentMethod/index.ts new file mode 100644 index 0000000..458ee12 --- /dev/null +++ b/src/api/oa/erp/contractPaymentMethod/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ContractPaymentMethodVO, ContractPaymentMethodForm, ContractPaymentMethodQuery } from '@/api/oa/erp/contractPaymentMethod/types'; + +/** + * 查询合同付款方式列表 + * @param query + * @returns {*} + */ + +export const listContractPaymentMethod = (query?: ContractPaymentMethodQuery): AxiosPromise => { + return request({ + url: '/oa/erp/contractPaymentMethod/list', + method: 'get', + params: query + }); +}; + +/** + * 查询合同付款方式详细 + * @param paymentMethodId + */ +export const getContractPaymentMethod = (paymentMethodId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/contractPaymentMethod/' + paymentMethodId, + method: 'get' + }); +}; + +/** + * 新增合同付款方式 + * @param data + */ +export const addContractPaymentMethod = (data: ContractPaymentMethodForm) => { + return request({ + url: '/oa/erp/contractPaymentMethod', + method: 'post', + data: data + }); +}; + +/** + * 修改合同付款方式 + * @param data + */ +export const updateContractPaymentMethod = (data: ContractPaymentMethodForm) => { + return request({ + url: '/oa/erp/contractPaymentMethod', + method: 'put', + data: data + }); +}; + +/** + * 删除合同付款方式 + * @param paymentMethodId + */ +export const delContractPaymentMethod = (paymentMethodId: string | number | Array) => { + return request({ + url: '/oa/erp/contractPaymentMethod/' + paymentMethodId, + method: 'delete' + }); +}; + +/** + * 下拉框查询合同付款方式列表 + * @param query + * @returns {*} + */ +export function getErpContractPaymentMethodList (query) { + return request({ + url: '/oa/erp/contractPaymentMethod/getErpContractPaymentMethodList', + method: 'get', + params: query + }); +}; diff --git a/src/api/oa/erp/contractPaymentMethod/types.ts b/src/api/oa/erp/contractPaymentMethod/types.ts new file mode 100644 index 0000000..b58f3d1 --- /dev/null +++ b/src/api/oa/erp/contractPaymentMethod/types.ts @@ -0,0 +1,171 @@ +export interface ContractPaymentMethodVO { + /** + * 付款方式ID + */ + paymentMethodId: string | number; + + /** + * 合同ID + */ + contractId: string | number; + + /** + * 排序号 + */ + sortOrder: number; + + /** + * 付款节点ID + */ + paymentStageId: string | number; + + /** + * 支付期限 + */ + paymentDeadline: number; + + /** + * 支付比例 + */ + paymentPercentage: number; + + /** + * 发票比例 + */ + invoicePercentage: number; + + /** + * 支付金额 + */ + paymentAmount: number; + + /** + * 付款条款 + */ + paymentDescription: string; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + +} + +export interface ContractPaymentMethodForm extends BaseEntity { + /** + * 付款方式ID + */ + paymentMethodId?: string | number; + + /** + * 合同ID + */ + contractId?: string | number; + + /** + * 排序号 + */ + sortOrder?: number; + + /** + * 付款节点ID + */ + paymentStageId?: string | number; + + /** + * 支付期限 + */ + paymentDeadline?: number; + + /** + * 支付比例 + */ + paymentPercentage?: number; + + /** + * 发票比例 + */ + invoicePercentage?: number; + + /** + * 支付金额 + */ + paymentAmount?: number; + + /** + * 付款条款 + */ + paymentDescription?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface ContractPaymentMethodQuery extends PageQuery { + + /** + * 合同ID + */ + contractId?: string | number; + + /** + * 排序号 + */ + sortOrder?: number; + + /** + * 付款节点ID + */ + paymentStageId?: string | number; + + /** + * 支付期限 + */ + paymentDeadline?: number; + + /** + * 支付比例 + */ + paymentPercentage?: number; + + /** + * 发票比例 + */ + invoicePercentage?: number; + + /** + * 支付金额 + */ + paymentAmount?: number; + + /** + * 付款条款 + */ + paymentDescription?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/oa/erp/contractPaymentStage/index.ts b/src/api/oa/erp/contractPaymentStage/index.ts deleted file mode 100644 index c8f604a..0000000 --- a/src/api/oa/erp/contractPaymentStage/index.ts +++ /dev/null @@ -1,76 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { ContractPaymentStageVO, ContractPaymentStageForm, ContractPaymentStageQuery } from '@/api/oa/erp/contractPaymentStage/types'; - -/** - * 查询合同回款阶段列表 - * @param query - * @returns {*} - */ - -export const listContractPaymentStage = (query?: ContractPaymentStageQuery): AxiosPromise => { - return request({ - url: '/oa/erp/contractPaymentStage/list', - method: 'get', - params: query - }); -}; - -/** - * 查询合同回款阶段详细 - * @param contractStageId - */ -export const getContractPaymentStage = (contractStageId: string | number): AxiosPromise => { - return request({ - url: '/oa/erp/contractPaymentStage/' + contractStageId, - method: 'get' - }); -}; - -/** - * 新增合同回款阶段 - * @param data - */ -export const addContractPaymentStage = (data: ContractPaymentStageForm) => { - return request({ - url: '/oa/erp/contractPaymentStage', - method: 'post', - data: data - }); -}; - -/** - * 修改合同回款阶段 - * @param data - */ -export const updateContractPaymentStage = (data: ContractPaymentStageForm) => { - return request({ - url: '/oa/erp/contractPaymentStage', - method: 'put', - data: data - }); -}; - -/** - * 删除合同回款阶段 - * @param contractStageId - */ -export const delContractPaymentStage = (contractStageId: string | number | Array) => { - return request({ - url: '/oa/erp/contractPaymentStage/' + contractStageId, - method: 'delete' - }); -}; - -/** - * 下拉框查询合同回款阶段列表 - * @param query - * @returns {*} - */ -export function getErpContractPaymentStageList (query) { - return request({ - url: '/oa/erp/contractPaymentStage/getErpContractPaymentStageList', - method: 'get', - params: query - }); -}; diff --git a/src/api/oa/erp/contractPaymentStage/types.ts b/src/api/oa/erp/contractPaymentStage/types.ts deleted file mode 100644 index 792a70f..0000000 --- a/src/api/oa/erp/contractPaymentStage/types.ts +++ /dev/null @@ -1,256 +0,0 @@ -export interface ContractPaymentStageVO { - /** - * 合同回款阶段ID - */ - contractStageId: string | number; - - /** - * 合同ID - */ - contractId: string | number; - - /** - * 回款阶段ID - */ - paymentStageId: string | number; - - /** - * 阶段名称 - */ - stageName: string; - - /** - * 回款阶段 - */ - collectionStage: string; - - /** - * 回款比例(%) - */ - repaymentRate: number; - - /** - * 预计回款日期 - */ - expectRepaymentDate: string; - - /** - * 回款延期天数 - */ - delayDay: number; - - /** - * 实际回款日期 - */ - actualRepaymentDate: string; - - /** - * 回款标识(0否 1是) - */ - repaymentFlag: string; - - /** - * 原因说明 - */ - reasonsExplanation: string; - - /** - * 进度备注 - */ - scheduleRemark: string; - - /** - * 回款金额(预留) - */ - repaymentAmount: number; - - /** - * 排序号 - */ - sortOrder: number; - - /** - * 备注 - */ - remark: string; - - /** - * 创建部门 - */ - createDept: number; - - /** - * 创建者 - */ - createBy: number; - - /** - * 创建时间 - */ - createTime: string; - - /** - * 更新者 - */ - updateBy: number; - - /** - * 更新时间 - */ - updateTime: string; - -} - -export interface ContractPaymentStageForm extends BaseEntity { - /** - * 合同回款阶段ID - */ - contractStageId?: string | number; - - /** - * 合同ID - */ - contractId?: string | number; - - /** - * 回款阶段ID - */ - paymentStageId?: string | number; - - /** - * 阶段名称 - */ - stageName?: string; - - /** - * 回款阶段 - */ - collectionStage?: string; - - /** - * 回款比例(%) - */ - repaymentRate?: number; - - /** - * 预计回款日期 - */ - expectRepaymentDate?: string; - - /** - * 回款延期天数 - */ - delayDay?: number; - - /** - * 实际回款日期 - */ - actualRepaymentDate?: string; - - /** - * 回款标识(0否 1是) - */ - repaymentFlag?: string; - - /** - * 原因说明 - */ - reasonsExplanation?: string; - - /** - * 进度备注 - */ - scheduleRemark?: string; - - /** - * 回款金额(预留) - */ - repaymentAmount?: number; - - /** - * 排序号 - */ - sortOrder?: number; - - /** - * 备注 - */ - remark?: string; - -} - -export interface ContractPaymentStageQuery extends PageQuery { - - /** - * 合同ID - */ - contractId?: string | number; - - /** - * 回款阶段ID - */ - paymentStageId?: string | number; - - /** - * 阶段名称 - */ - stageName?: string; - - /** - * 回款阶段 - */ - collectionStage?: string; - - /** - * 回款比例(%) - */ - repaymentRate?: number; - - /** - * 预计回款日期 - */ - expectRepaymentDate?: string; - - /** - * 回款延期天数 - */ - delayDay?: number; - - /** - * 实际回款日期 - */ - actualRepaymentDate?: string; - - /** - * 回款标识(0否 1是) - */ - repaymentFlag?: string; - - /** - * 原因说明 - */ - reasonsExplanation?: string; - - /** - * 进度备注 - */ - scheduleRemark?: string; - - /** - * 回款金额(预留) - */ - repaymentAmount?: number; - - /** - * 排序号 - */ - sortOrder?: number; - - /** - * 日期范围参数 - */ - params?: any; -} - - - diff --git a/src/views/oa/erp/contractPaymentMethod/index.vue b/src/views/oa/erp/contractPaymentMethod/index.vue new file mode 100644 index 0000000..87e53e6 --- /dev/null +++ b/src/views/oa/erp/contractPaymentMethod/index.vue @@ -0,0 +1,329 @@ + + + diff --git a/src/views/oa/erp/contractPaymentStage/index.vue b/src/views/oa/erp/contractPaymentStage/index.vue deleted file mode 100644 index 93647b3..0000000 --- a/src/views/oa/erp/contractPaymentStage/index.vue +++ /dev/null @@ -1,411 +0,0 @@ - - -