批量更新功能

This commit is contained in:
hero920103 committed 2026-09-14 16:15:44 +08:00
1 parent 6f106e43af
commit a26c98b92b
79 files changed
+4529 -724

No files matched your search

+12
View File
@@ -45,3 +45,15 @@ export function toggleCustomerStatus(id, status) {
data: { status }
})
}
/**
* 客户转供应商:把客户档案(含联系人)复制一套到供应商库。
* 同一家单位可能既是客户又是供应商,因此原客户记录保留;
* 供应商库已有同名企业时不重复建档,只补同步联系人。
*/
export function convertCustomerToSupplier(id) {
return request({
url: `/backend/erp/customer/${id}/convert-supplier`,
method: 'post'
})
}