feat: 客户名称字段校验
This commit is contained in:
@@ -52,3 +52,15 @@ export function deleteCustomer(id: number) {
|
||||
export function exportCustomer(params: any) {
|
||||
return requestClient.download('/license/customer/export-excel', params);
|
||||
}
|
||||
|
||||
/** 客户名称是否存在 */
|
||||
async function isCustomerNameExists(
|
||||
name: string,
|
||||
id?: CustomerApi.Customer['id'],
|
||||
) {
|
||||
return requestClient.get<boolean>('/license/customer/name-exists', {
|
||||
params: { id, name },
|
||||
});
|
||||
}
|
||||
|
||||
export { isCustomerNameExists };
|
||||
|
||||
Reference in New Issue
Block a user