Files
lgp-admin-plus/apps/web-antd/src/views/customer/enterprise/api/index.ts
年糕崽崽 27135f4ae6 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:19:06 +08:00

23 lines
637 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { createCrudApi } from '#/components/crud';
export const enterpriseApi = createCrudApi('enterprise');
/** 企业下拉SearchSelect 会带 keyword 做模糊搜索 */
export async function searchEnterprise(params: {
keyword: string;
limit: number;
}) {
return (await enterpriseApi.option(params)) ?? [];
}
/** 结算方式字典,列表与表单共用 */
export const SETTLE_TYPES = [
{ label: '款到发货', value: 0 },
{ label: '月结', value: 1 },
{ label: '账期', value: 2 },
];
export function settleTypeText(value?: number) {
return SETTLE_TYPES.find((item) => item.value === value)?.label ?? '-';
}