This commit is contained in:
zlwu committed 2026-06-30 23:44:22 +08:00
1 parent d84f4b944c
commit 7c838cfb2d
249 files changed
+50600 -18556

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ function unwrapData(res: any) {
function mapListQuery(query: ClueQuery = {}): Record<string, any> {
const body: Record<string, any> = {
page: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
if (query.clueName) body.clueName = query.clueName
if (query.company) body.company = query.company
@@ -197,7 +197,7 @@ export async function listClueFollow(query: ClueFollowQuery) {
data: {
clueId: String(query.clueId),
page: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
})
const data = unwrapData(res)
+1 -1
View File
@@ -13,7 +13,7 @@ function unwrapData(res: any) {
function mapListQuery(query: ApprovalQuery = {}): Record<string, any> {
const params: Record<string, any> = {
pageNum: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
;[
'contractNo',
+1 -1
View File
@@ -13,7 +13,7 @@ function unwrapData(res: any) {
function mapListQuery(query: ChangeQuery = {}): Record<string, any> {
const params: Record<string, any> = {
pageNum: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
;['contractNo', 'contractName', 'changeType', 'approvalStatus', 'beginTime', 'endTime'].forEach((key) => {
const val = (query as any)[key]
+1 -1
View File
@@ -13,7 +13,7 @@ function unwrapData(res: any) {
function mapListQuery(query: ContractQuery = {}): Record<string, any> {
const params: Record<string, any> = {
pageNum: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
const fields: (keyof ContractQuery)[] = [
'contractNo',
+1 -1
View File
@@ -13,7 +13,7 @@ function unwrapData(res: any) {
function mapListQuery(query: TemplateQuery = {}): Record<string, any> {
const params: Record<string, any> = {
pageNum: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
;['templateNo', 'templateName', 'templateType', 'beginTime', 'endTime'].forEach((key) => {
const val = (query as any)[key]
+3 -3
View File
@@ -25,7 +25,7 @@ function unwrapData(res: any) {
function mapListQuery(query: OpportunityQuery = {}): Record<string, any> {
const body: Record<string, any> = {
page: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
if (query.opportunityName) body.opportunityName = query.opportunityName
if (query.customerName) body.customerName = query.customerName
@@ -177,7 +177,7 @@ export async function listOpportunityProduct(query?: OpportunityProductQuery) {
url: `${BASE}/product/list`,
data: {
page: query?.pageNum ?? 1,
pageSize: query?.pageSize ?? 10,
pageSize: query?.pageSize ?? 20,
opportunityId: query?.opportunityId != null ? String(query.opportunityId) : undefined,
productId: query?.productId != null ? String(query.productId) : undefined
}
@@ -232,7 +232,7 @@ export async function listOpportunityFollow(query?: OpportunityFollowQuery) {
url: `${BASE}/follow/list`,
data: {
page: query?.pageNum ?? 1,
pageSize: query?.pageSize ?? 10,
pageSize: query?.pageSize ?? 20,
opportunityId: query?.opportunityId != null ? String(query.opportunityId) : undefined,
followType: query?.followType,
followBy: query?.followBy != null ? String(query.followBy) : undefined
+1 -1
View File
@@ -22,7 +22,7 @@ function unwrapData(res: any) {
function mapListQuery(query: QuoteQuery = {}): Record<string, any> {
const body: Record<string, any> = {
page: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10
pageSize: query.pageSize ?? 20
}
const fields: (keyof QuoteQuery)[] = [
'keyword',
+2 -2
View File
@@ -48,7 +48,7 @@ export async function listSupplierInfo(query: SupplierInfoQuery = {}) {
url: `${BASE}/list`,
data: {
page: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10,
pageSize: query.pageSize ?? 20,
supplierName: query.supplierName,
status: query.status
}
@@ -92,7 +92,7 @@ export async function exportSupplierInfo(query: SupplierInfoQuery) {
url: `${BASE}/export`,
data: {
page: query.pageNum ?? 1,
pageSize: query.pageSize ?? 10,
pageSize: query.pageSize ?? 20,
supplierName: query.supplierName,
status: query.status
},