/* * @Description: * @FilePath: \base-framework\apps\finance\src\api\payment\pay-bill\typing.ts * @Author: freud * @Date: 2023-06-06 14:37:45 * @LastEditTime: 2023-11-21 12:01:16 * @LastEditors: freud * @Reference: */ import type { BasicFetchResult, BasicPageParams, FilterJson } from '@/api'; // eslint-disable-next-line @typescript-eslint/no-namespace namespace PayBillService { /** 获取付款单列表接口参数 */ export type GetPayApplyListParams = BasicPageParams & Pick; /** 获取付款单列表接口返回值 */ export type GetPayApplyListResult = BasicFetchResult; /** * PayBillItem */ export interface PayBillItem { /** * 审核人 */ approveBy?: number; /** * 审核人 */ approveByName?: null | string; /** * 审核时间 */ approveOn?: Date | null; /** * 银行账号 */ bankAct?: null | string; /** * 银行地址 */ bankAddr?: null | string; /** * 银行持有人名称 */ bankHolderName?: null | string; /** * 银行名称 */ bankName?: null | string; /** * 币别-本位币 */ bCurrencyId?: number; /** * 币别-本位币 */ bCurrencyName?: null | string; /** * 开票名头 */ billingName?: null | string; /** * 开票名头id */ billingNameId?: number; /** * 单据编号: */ billNo?: null | string; /** * 单据状态 */ billStatus?: number; /** * 单据状态 */ billStatusName?: null | string; /** * 单据类型 */ billType?: number; /** * 单据类型 */ billTypeName?: null | string; /** * 生日 */ birthday?: Date | null; /** * 实付金额-本位币 */ bRealPayAmount?: number; /** * 作废人 */ cancelBy?: number; /** * 作废人名称 */ cancelByName?: null | string; /** * 作废时间 */ cancelOn?: Date | null; /** * 作废状态 */ cancelStatus?: number; /** * 作废状态 */ cancelStatusName?: null | string; /** * 银行卡所在国家/地区 */ countryOrRegion?: number; /** * 创建人 */ createBy?: number; /** * 创建人名称 */ createByName?: null | string; /** * 创建时间 */ createOn?: Date | null; /** * 币别 */ currencyId?: number; /** * 币别 */ currencyName?: null | string; /** * 汇率 */ exchangeRate?: number; /** * IBAN代码 */ ibanCode?: null | string; /** * 内码 */ id?: number; /** * 身份证号码 */ idNo?: null | string; /** * 个人所得税 */ individualIncomeTax?: number; /** * 手机号 */ mobile?: null | string; /** * 护照到期日期 */ passportExpiryDate?: Date | null; /** * 应付金额 */ payAmount?: number; /** * 支付渠道:1 外币支付;2 邦芒;3 代扣代缴;4 公司或个体户自办;5 个体户代办-快商; */ paymentChannel?: number; /** * 支付渠道 */ paymentChannelName?: null | string; /** * 支付周期:按月付、按金额付 */ paymentCycle?: number; /** * 支付周期 */ paymentCycleName?: null | string; /** * 付款方式:1 bank account;2 paypal account; */ paymentMethod?: number; /** * 付款方式 */ paymentMethodName?: null | string; /** * 收款单位类型:1 供应商、2 兄弟单位 */ payOrgType?: number; /** * 收款单位类型 */ payOrgTypeName?: null | string; /** * 实付金额 */ realPayAmount?: number; /** * 实付币别 */ realPayCurrencyId?: number; /** * 实付币别 */ realPayCurrencyName?: null | string; /** * 实付汇率(与原币之间的汇率) */ realPayExchangeRate?: number; /** * 收款单位内码 */ rectUnitId?: number; /** * 收款单位 */ rectUnitName?: null | string; /** * 性别 */ sex?: number; /** * swift代码 */ swiftCode?: null | string; } /** * PayBillDetailBody */ export interface PayBillDetailBody { /** * 本位币币别 */ bCurrencyId?: number; /** * 本位币 */ bCurrencyName?: null | string; /** * 不含税金额本位币 */ bNoTaxAmount?: number; /** * 税额本位币金额 */ bTaxAmount?: number; /** * 价税合计本位币金额 */ bTotalAmount?: number; /** * 客户名称 */ clientName?: null | string; /** * 客户类型 */ clientType?: number; /** * 客户类型 */ clientTypeName?: null | string; /** * 币别 */ currencyId?: number; /** * 币别 */ currencyName?: null | string; /** * 汇率 */ exchangeRate?: number; /** * 收入类型名称PM、内部译员、外部译员、外部收入 */ incomeTypeName?: null | string; /** * 收入类型编码:srlx0001 PMsrlx0002 内部译员srlx0003 外部译员(采购订单过来的应付单)srlx0004 外部收入 */ incomeTypeNum?: null | string; /** * 不含税金额 */ noTaxAmount?: number; /** * 采购订单编号 */ purchaseOrderNo?: null | string; /** * 销售订单号 */ salesOrderNo?: null | string; /** * 服务类型 */ serviceType?: number; /** * 服务类型名称 */ serviceTypeName?: null | string; /** * 税额 */ taxAmount?: number; /** * 价税合计 */ totalAmount?: number; } /** 获取付款申请单详情接口返回值 */ export interface GetPayBillDetailResult { header: PayBillItem; body: PayBillDetailBody[]; } /** 获取付款申请单关联查询接口返回值 */ export interface GetPayBillJoinResult { source?: PayBillJoinQuery[] | null; up?: PaybillJoinQueryUp; } /** * PayBillJoinQuery,付款单信息列表 */ export interface PayBillJoinQuery { /** * 单据编号 */ 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; } /** * PaybillJoinQueryUp */ export interface PaybillJoinQueryUp { /** * 应付单 */ billsPayables?: BillsPayableJoinQuery[] | null; /** * 付款申请单 */ payapplies?: PayapplyJoinQuery[] | null; } /** * BillsPayableJoinQuery */ export interface BillsPayableJoinQuery { /** * 单据编号:‘YF’+YYYYMM+6位流水号 */ billNo?: null | string; /** * 单据状态:1 新建、2 审核中、3 已审核、4 重新审核 */ billStatus?: number; /** * 单据状态 */ billStatusName?: null | string; /** * 应付单类型:1 应付单、2 应付单(费用)、3 内部应付单 */ billType?: number; /** * 单据类型 */ billTypeName?: null | string; /** * 作废状态:1 已作废、0 未作废 */ cancelStatus?: number; /** * 作废状态 */ cancelStatusName?: null | string; /** * 币别 */ currencyId?: number; /** * 币别 */ currencyName?: null | string; /** * 自增ID */ id?: number; /** * 应付周期 */ payPeriod?: null | string; /** * 采购订单编号 */ purchaseOrderNo?: null | string; supplierBillingId?: number | null; /** * 供应商开票名头 */ supplierBillingName?: null | string; /** * 供应商支付渠道 */ supplierBillingType?: number | null; /** * 供应商支付渠道 */ supplierBillingTypeName?: null | string; /** * 供应商 */ supplierId?: number; /** * 供应商名称 */ supplierName?: null | string; /** * 供应商编号 */ supplierNo?: null | string; /** * 价税合计 */ totalAmount?: number; } /** * 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; } /** * PaybillCreateReq */ export interface PaybillCreateParams { /** * 原币币别 */ currencyId?: number; /** * 不含税金额 */ noTaxAmount?: number; /** * 付款组织内码 */ payOrgId?: number; /** * 收款单位内码 */ rectUnitId?: number; remark?: null | string; /** * 税额 */ taxAmount?: number; /** * 税率 */ taxRate?: number; /** * 价税合计 */ totalAmount?: number; } export interface EditActualPayBillParams { id: number; realPayCurrencyId: number; realPayExchangeRate: number; realPayAmount: number; } } export type { PayBillService };