diff --git a/src/api/crm/capitalcost/index.ts b/src/api/crm/capitalcost/index.ts index a9fb2e3e6..3894fd3e2 100644 --- a/src/api/crm/capitalcost/index.ts +++ b/src/api/crm/capitalcost/index.ts @@ -1,49 +1,48 @@ -import request from '@/config/axios' - -// 资金成本 VO -export interface CapitalCostVO { - id: number // 主键 - projectCode: string // 项目编码 - paymentTerm: string // 结算账期 - creditMethod: number // 授信方式 - applicableProjects: number // 适用项目,全部产品、机票 - creditCalcCycle: number // 授信额度计算周期 - ticketIssuanceCycle: number // 出票周期 - settlementCycle: number // 结算周期 - usageDays: number // 实际资金使用天数 - annualInterestRate: number // 年利率 - remark: string // 备注 -} - -// 资金成本 API -export const CapitalCostApi = { - // 查询资金成本分页 - getCapitalCostPage: async (params: any) => { - return await request.get({ url: `/crm/capital-cost/page`, params }) - }, - - // 查询资金成本详情 - getCapitalCost: async (id: number) => { - return await request.get({ url: `/crm/capital-cost/get?id=` + id }) - }, - - // 新增资金成本 - createCapitalCost: async (data: CapitalCostVO) => { - return await request.post({ url: `/crm/capital-cost/create`, data }) - }, - - // 修改资金成本 - updateCapitalCost: async (data: CapitalCostVO) => { - return await request.put({ url: `/crm/capital-cost/update`, data }) - }, - - // 删除资金成本 - deleteCapitalCost: async (id: number) => { - return await request.delete({ url: `/crm/capital-cost/delete?id=` + id }) - }, - - // 导出资金成本 Excel - exportCapitalCost: async (params) => { - return await request.download({ url: `/crm/capital-cost/export-excel`, params }) - }, -} \ No newline at end of file +import request from '@/config/axios' + +// 资金成本 VO +export interface CapitalCostVO { + id: number // 主键 + projectCode: string // 项目编码 + paymentTerm: string // 结算账期 + creditMethod: number // 授信方式 + applicableProjects: number // 适用项目,全部产品、机票 + creditCalcCycle: number // 授信额度计算周期 + ticketIssuanceCycle: number // 出票周期 + settlementCycle: number // 结算周期 + usageDays: number // 实际资金使用天数 + annualInterestRate: number // 年利率 +} + +// 资金成本 API +export const CapitalCostApi = { + // 查询资金成本分页 + getCapitalCostPage: async (params: any) => { + return await request.get({ url: `/crm/capital-cost/page`, params }) + }, + + // 查询资金成本详情 + getCapitalCost: async (id: number) => { + return await request.get({ url: `/crm/capital-cost/get?id=` + id }) + }, + + // 新增资金成本 + createCapitalCost: async (data: CapitalCostVO) => { + return await request.post({ url: `/crm/capital-cost/create`, data }) + }, + + // 修改资金成本 + updateCapitalCost: async (data: CapitalCostVO) => { + return await request.put({ url: `/crm/capital-cost/update`, data }) + }, + + // 删除资金成本 + deleteCapitalCost: async (id: number) => { + return await request.delete({ url: `/crm/capital-cost/delete?id=` + id }) + }, + + // 导出资金成本 Excel + exportCapitalCost: async (params) => { + return await request.download({ url: `/crm/capital-cost/export-excel`, params }) + }, +} diff --git a/src/views/crm/capitalcost/CapitalCostForm.vue b/src/views/crm/capitalcost/CapitalCostForm.vue index 5bc826f85..165578c61 100644 --- a/src/views/crm/capitalcost/CapitalCostForm.vue +++ b/src/views/crm/capitalcost/CapitalCostForm.vue @@ -4,7 +4,7 @@ ref="formRef" :model="formData" :rules="formRules" - label-width="130px" + label-width="100px" v-loading="formLoading" > @@ -13,7 +13,7 @@ - + @@ -50,7 +50,7 @@ - + @@ -66,7 +66,7 @@ + \ No newline at end of file diff --git a/src/views/crm/capitalcost/index.vue b/src/views/crm/capitalcost/index.vue index b08ee2003..67ec02a57 100644 --- a/src/views/crm/capitalcost/index.vue +++ b/src/views/crm/capitalcost/index.vue @@ -25,7 +25,7 @@ class="!w-240px" > - +