fix:收入合同
This commit is contained in:
parent
7efb1fa115
commit
19cdc0998f
|
@ -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)
|
||||||
|
}
|
|
@ -57,7 +57,6 @@ declare global {
|
||||||
const useCssVars: typeof import('vue')['useCssVars']
|
const useCssVars: typeof import('vue')['useCssVars']
|
||||||
const useId: typeof import('vue')['useId']
|
const useId: typeof import('vue')['useId']
|
||||||
const useLink: typeof import('vue-router')['useLink']
|
const useLink: typeof import('vue-router')['useLink']
|
||||||
const useModel: typeof import('vue')['useModel']
|
|
||||||
const useRoute: typeof import('vue-router')['useRoute']
|
const useRoute: typeof import('vue-router')['useRoute']
|
||||||
const useRouter: typeof import('vue-router')['useRouter']
|
const useRouter: typeof import('vue-router')['useRouter']
|
||||||
const useSlots: typeof import('vue')['useSlots']
|
const useSlots: typeof import('vue')['useSlots']
|
||||||
|
|
Loading…
Reference in New Issue