This commit is contained in:
wangshiming
2022-04-24 17:44:41 +08:00
parent 355601c89e
commit 06d9a86246
5 changed files with 120 additions and 39 deletions

View File

@ -169,6 +169,30 @@ export class ShipperBaseService extends BaseService {
})
);
}
/**
* 获取网络货运人
* @returns
*/
getNetworkenterpriceIds(params = {}, containerAll = false) {
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
map((res: any) => {
if (!res) {
return [];
}
const list = res.map((item: any) => {
return {
label: item.enterpriseName,
value: item.enterpriseName
};
});
const obj = [];
if (containerAll) {
obj.push({ label: '全部', value: '' });
}
return [...obj, ...list];
})
);
}
/**
* 获取CRM客户