/* * @Description: * @FilePath: \base-framework\apps\finance\src\api\payment\payapply\typing.ts * @Author: freud * @Date: 2023-06-06 14:37:45 * @LastEditTime: 2023-09-08 16:20:43 * @LastEditors: freud * @Reference: */ import type { BasicFetchResult, BasicPageParams, FilterJson } from '@/api'; // eslint-disable-next-line @typescript-eslint/no-namespace namespace PayApplyService { /** 获取付款申请单列表接口参数 */ export type GetPayApplyListParams = BasicPageParams & Pick; /** 获取付款申请单列表接口返回值 */ export type GetPayApplyListResult = BasicFetchResult; export interface PayApplyItem { id: number; billNo: string; billType: number; billTypeName: string; payeeId: number; payeeNo: string; payeeName: string; rectUnitId: number; rectUnitName: string; billingNameId: number; billingName: string; currencyId: number; applyAmount: number; realApplyAmount: number; individualIncomeTax: number; exchangeRate: number; currencyName: string; bCurrencyName: string; bCurrencyId: number; bApplyAmount: number; bRealApplyAmount: number; isSend: number; isSendName: string; bankAct: string; bankAddr: string; bankName: string; bankHolderName: string; swiftCode: string; ibanCode: string; countryOrRegion: number; countryOrRegionName: string; sex: number; birthday: Date; idNo: string; paymentChannel: number; paymentChannelName: string; paymentMethod: number; paymentMethodName: string; paymentCycle: number; paymentCycleName: string; mobile: string; billStatus: number; cancelStatus: number; createByName: string; modifyBy: number; modifyOn: Date; modifyByName: string; cancelByName: string; cancelOn: Date; cancelBy: number; sendBy: number; sendOn: Date; sendByName: string; createBy: number; createOn: Date; billStatusName: string; cancelStatusName: string; applyOn: Date; passportExpiryDate: Date; remark: string; } /** * PayApplyJoinQuery,付款申请单列表 */ export interface PayApplyJoinQuery { /** * 单据编号:'FKSQ'+YYYYMM+6位流水号 */ billNo?: null | string; billStatus?: number; /** * 单据状态 */ billStatusName?: null | string; /** * 单据类型 */ billType?: number; /** * 单据类型 */ billTypeName?: null | string; /** * 作废状态:1 已作废、0 未作废 */ cancelStatus?: number; /** * 作废状态 */ cancelStatusName?: null | string; /** * 币别 */ currencyId?: number; /** * 币别 */ currencyName?: null | string; /** * 自增ID */ id?: number; /** * 支付周期: 1 按月付、2 按金额付 */ paymentCycle?: number; /** * 支付周期: 1 按月付、2 按金额付 */ paymentCycleName?: null | string; /** * 付款方式:bank account;paypal account; */ paymentMethod?: number; /** * 付款方式:bank account;paypal account; */ paymentMethodName?: null | string; supplierBillingId?: number | null; /** * 供应商开票名头 */ supplierBillingName?: null | string; /** * 供应商支付渠道 */ supplierBillingType?: number | null; /** * 供应商支付渠道 */ supplierBillingTypeName?: null | string; /** * 供应商 */ supplierId?: number; /** * 供应商名称 */ supplierName?: null | string; /** * 供应商编号 */ supplierNo?: null | string; /** * 价税合计 */ totalAmount?: number; } /** 获取付款申请单详情接口返回值 */ export interface GetPayApplyDetailResult { header: PayApplyItem; body: { purchaseOrderNo: string; salesOrderNo: string; clientType: number; clientTypeName: string; clientName: string; serviceType: number; serviceTypeName: string; incomeTypeNum: string; incomeTypeName: string; exchangeRate: number; bCurrencyId: number; bCurrencyName: string; bNoTaxAmount: number; bTaxAmount: number; bTotalAmount: number; }[]; } /** 获取付款申请单关联查询接口返回值 */ export interface GetPayApplyJoinResult { source: { id: number; billNo: string; billType: number; billTypeName: string; billStatus: number; billStatusName: string; supplierId: number; supplierNo: string; supplierName: string; supplierBillingType: number; supplierBillingTypeName: string; supplierBillingId: number; supplierBillingName: string; paymentMethod: number; paymentMethodName: string; paymentCycle: number; paymentCycleName: string; currencyId: number; currencyName: string; totalAmount: number; cancelStatus: number; cancelStatusName: string; }[]; up: { id: number; billNo: string; billType: number; billTypeName: string; billStatus: number; billStatusName: string; cancelStatus: number; payPeriod: string; purchaseOrderNo: string; supplierId: number; supplierNo: string; supplierName: string; supplierBillingType: number; supplierBillingTypeName: string; supplierBillingId: number; supplierBillingName: string; currencyId: number; currencyName: string; totalAmount: number; cancelStatusName: string; }[]; down: { id: number; billNo: string; billType: number; billTypeName: string; billStatus: number; billStatusName: string; supplierId: number; supplierNo: string; supplierName: string; supplierBillingType: number; supplierBillingTypeName: string; supplierBillingId: number; supplierBillingName: string; paymentMethod: number; paymentMethodName: string; paymentCycle: number; paymentCycleName: string; currencyId: number; currencyName: string; totalAmount: number; cancelStatus: number; cancelStatusName: string; }[]; } /** 获取下推付款申请单详情接口返回值 */ export interface GenerationPayBillsDetailResult { /** * 银行账号 */ bankAct?: null | string; /** * 银行地址 */ bankAddr?: null | string; /** * 银行卡持有人名称 */ bankHolderName?: null | string; /** * 银行名称 */ bankName?: null | string; /** * 开票名头 */ billingName?: null | string; /** * 开票名头id */ billingNameId?: number; /** * 单据类型:1 付款申请单、2 内部付款申请单 */ billType?: number; /** * 单据类型 */ billTypeName?: null | string; /** * 生日 */ birthday?: Date | null; /** * 银行卡所在国家/地区 */ countryOrRegion?: number; /** * 银行卡所在国家/地区 */ countryOrRegionName?: number; /** * 应付币别 */ currencyId?: number; /** * 应付币别 */ currencyName?: null | string; /** * IBAN代码 */ ibanCode?: null | string; /** * 身份证号 */ idNo?: null | string; invoice?: InvoiceDetailResp; /** * 手机号 */ mobile?: null | string; /** * 应付金额 */ payAmount?: number; payapplys?: PayApplyJoinQuery[] | null; /** * 付款渠道:1 外币支付;2 邦芒;3 代扣代缴;4 公司或个体户自办;5 个体户代办-快商; */ paymentChannel?: number; paymentChannelName?: null | string; /** * 付款方式:1 bank account;2 paypal account; */ paymentMethod?: number; paymentMethodName?: null | string; /** * 预付款信息 */ prepayments?: PrepaymentItem[] | null; /** * 实付金额 */ realPayAmount?: number; /** * 实付币别 */ realPayCurrencyId?: number; /** * 实付币别 */ realPayCurrencyName?: null | string; /** * 收款单位 */ rectUnitId?: number; /** * 收款单位名称 */ rectUnitName?: null | string; /** * 性别:0 女 1 男 */ sex?: number; /** * swift代码 */ swiftCode?: null | string; } export interface PrepaymentItem { /** * 单据编号:'FK'+YYYYMM+6位流水号 */ billNo?: null | string; /** * 单据类型:1 付款申请单、2 内部付款申请单 */ billType?: number; /** * 单据类型 */ billTypeName?: null | string; /** * 创建人 */ createBy?: number; /** * 创建人名称 */ createByName?: null | string; /** * 创建时间 */ createOn?: Date; /** * 应付币别 */ currencyId?: number; /** * 应付币别 */ currencyName?: null | string; id?: number; /** * 实付金额 */ realPayAmount?: number; /** * 收款单位类型 */ rectUnitId?: number; /** * 未使用金额 */ unusedAmount?: number; /** * 已使用金额 */ usedAmount?: number; } export interface GenerationPayBillsParams { payapplys: { id: number; prePayments: [ { id: number; usedAmount: number; }, ]; }; } export interface ApprovePayApplyParams { payeeId?: number; billingNameId?: number; paymentChannel?: number; id?: number; ids?: number[]; } export type GetPayStatisticsResult = { paymentChannel: number; paymentChannelName: string; data: LabelValueOptions; currentList?: LabelValueOptions; paymentChannelList?: LabelValueOptions; }[]; /** * GetInvoiceInfoResult */ export interface GetInvoiceInfoResult { /** * 发票代码 */ code?: null | string; /** * 开票日期 */ date?: null | string; details?: PayApplySupplementInvoiceDetail[] | null; /** * 发票编号 */ number?: null | string; /** * 发票类型 */ vatType?: null | number; } /** * PayApplySupplementInvoiceDetail */ export interface PayApplySupplementInvoiceDetail { /** * 金额 */ amount?: number; /** * 数 量 */ count?: number; /** * 规格型号 */ model?: null | string; /** * 服务名称 */ name?: null | string; /** * 单 价 */ price?: number; /** * 税额 */ taxAmount?: number; /** * 税率 */ taxRate?: number; /** * 单位 */ unit?: null | string; } /** * GetInvoiceDetailResult */ export interface GetInvoiceDetailResult { /** * 单据编号:'FKSQ'+YYYYMM+6位流水号 */ billNo?: null | string; billStatus?: number; /** * 单据状态 */ billStatusName?: null | string; /** * 单据类型 */ billType?: number; /** * 单据类型 */ billTypeName?: null | string; /** * 作废状态:1 已作废、0 未作废 */ cancelStatus?: number; /** * 作废状态 */ cancelStatusName?: null | string; /** * 币别 */ currencyId?: number; /** * 币别 */ currencyName?: null | string; /** * 自增ID */ id?: number; /** * 发票信息 */ invoice?: InvoiceDetailResp[] | null; /** * 支付周期: 1 按月付、2 按金额付 */ paymentCycle?: number; /** * 支付周期: 1 按月付、2 按金额付 */ paymentCycleName?: null | string; /** * 付款方式:bank account;paypal account; */ paymentMethod?: number; /** * 付款方式:bank account;paypal account; */ paymentMethodName?: null | string; supplierBillingId?: number | null; /** * 供应商开票名头 */ supplierBillingName?: null | string; /** * 供应商支付渠道 */ supplierBillingType?: number | null; /** * 供应商支付渠道 */ supplierBillingTypeName?: null | string; /** * 供应商 */ supplierId?: number; /** * 供应商名称 */ supplierName?: null | string; /** * 供应商编号 */ supplierNo?: null | string; /** * 价税合计 */ totalAmount?: number; } /** * InvoiceDetailResp */ export interface InvoiceDetailResp { /** * 开票日期 */ billingOn?: Date; /** * 购方账号 */ buyerAct?: null | string; /** * 购方地址 */ buyerAddr?: null | string; /** * 购方开户行 */ buyerBank?: null | string; /** * 购方开票名头/电子发票显示名称 */ buyerName?: null | string; /** * 购方纳税人识别号 */ buyerNsrsbh?: null | string; /** * 购方电话 */ buyerPhone?: null | string; id?: number; invoiceDetailEntries?: InvoiceDetailEntry[] | null; /** * 发票附件id */ invoiceFileId?: null | string; invoiceFileName?: null | string; /** * 核销金额 */ offsetAmount?: number; /** * 备注 */ remark?: null | string; /** * 销方银行账号 */ sellerAct?: null | string; /** * 销方地址 */ sellerAddr?: null | string; /** * 销方开户行 */ sellerBank?: null | string; /** * 销方名称 */ sellerName?: null | string; /** * 销方纳税人识别号 */ sellerNsrsbh?: null | string; /** * 销方电话 */ sellerPhone?: null | string; /** * 价税合计 */ totalAmount?: number; /** * 增值税发票类型(发票类型为vat invoice时,必填):1 增值税普通发票 2 增值税专用发票 */ vatType?: number; } /** * InvoiceDetailEntry */ export interface InvoiceDetailEntry { /** * 价税合计 */ amount?: number; /** * 是否含税 */ isTax?: number; /** * 数量 */ quantity?: null | string; /** * 服务名称其他咨询服务*翻译服务费现代服务*排版服务费/设计服务*排版服务费信息技术服务*信息服务费广播影视服务*配音服务费 */ serviceName?: null | string; /** * 税额 */ taxAmount?: number; /** * 税率 */ taxRate?: number; /** * 单位:次 */ unit?: null | string; /** * 单价 */ unitPrice?: number; } } export type { PayApplyService };