This commit is contained in:
‘huanghaiixia’
2025-11-21 16:38:17 +08:00
parent 0f112bc78e
commit 65575b40ad
7 changed files with 903 additions and 36 deletions

View File

@ -12,6 +12,8 @@ enum Api {
Enable = '/sales/customer/enable',
Disable= '/sales/customer/disable',
dictionary = '/system/dictionary-detail',
docCpList ='/mdm/docCp/queryList'
}
@ -118,4 +120,34 @@ export async function disableLngCustomer(ids: string[], mode: ErrorMessageMode =
errorMessageMode: mode,
},
);
}
/**
* @description: 获取数据字典
*/
export async function getDictionary(itemCode: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngCustomerPageModel>(
{
url: Api.dictionary,
params: { itemCode },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 查询LngCustomer分页列表
*/
export async function getDocCpList(params: LngCustomerPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngCustomerPageResult>(
{
url: Api.docCpList,
params,
},
{
errorMessageMode: mode,
},
);
}