fix:收入合同

This commit is contained in:
Maple 2025-08-07 16:15:23 +08:00
parent 7efb1fa115
commit 19cdc0998f
2 changed files with 64 additions and 1 deletions

View File

@ -0,0 +1,64 @@
import request from '@/utils/http'
// 合同查询参数类型
export interface ContractQueryParams {
page?: number
pageSize?: number
code?: string
customer?: string
contractStatus?: string
type?: string
signDate?: string
paymentDate?: string
performanceDeadline?: string
salespersonId?: string
departmentId?: string
projectId?: string
}
// 合同响应数据类型
export interface ContractData {
accountNumber: string
amount: number
code: string
contractId: string
contractStatus: string
contractText: string
customer: string
departmentId: string
duration: string
notes: string
page: number
pageSize: number
paymentAddress: string
paymentDate: string
performanceDeadline: string
productService: string
projectId: string
projectName: string
receivedAmount: number
salespersonDeptName: string
salespersonId: string
salespersonName: string
settlementAmount: number
signDate: string
type: string
}
// 合同列表响应类型
export interface ContractListResponse {
code: number
msg: string
rows: ContractData[]
total: number
}
const BASE_URL = '/contract'
/**
*
* @param params
*/
export function getContractList(params: ContractQueryParams) {
return request.get<ContractListResponse>(`${BASE_URL}/list`, params)
}

View File

@ -57,7 +57,6 @@ declare global {
const useCssVars: typeof import('vue')['useCssVars']
const useId: typeof import('vue')['useId']
const useLink: typeof import('vue-router')['useLink']
const useModel: typeof import('vue')['useModel']
const useRoute: typeof import('vue-router')['useRoute']
const useRouter: typeof import('vue-router')['useRouter']
const useSlots: typeof import('vue')['useSlots']