This commit is contained in:
Taric Xin
2022-04-18 16:20:26 +08:00
parent 6addf5c416
commit eb75a988af
5 changed files with 60 additions and 8 deletions

View File

@ -124,6 +124,30 @@ export class ShipperBaseService extends BaseService {
* @returns
*/
getNetworkFreightForwarder(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.id
};
});
const obj = [];
if (containerAll) {
obj.push({ label: '全部', value: '' });
}
return [...obj, ...list];
})
);
}
/**
* 获取网络货运人
* @returns
*/
getNetworkEnterpriseName(params = {}, containerAll = false) {
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
map((res: any) => {
if (!res) {
@ -169,6 +193,31 @@ export class ShipperBaseService extends BaseService {
);
}
/**
* 获取CRM客户 crmCustomerId
* @returns
*/
getCRMCustomerId(params = {}, containerAll = false) {
return this.request(this.$api_get_crm_customer_list, params).pipe(
map((res: any) => {
if (!res) {
return [];
}
const list = res.map((item: any) => {
return {
label: item.enterpriseName,
value: item.crmCustomerId
};
});
const obj = [];
if (containerAll) {
obj.push({ label: '全部', value: '' });
}
return [...obj, ...list];
})
);
}
/**
* 获取货主企业列表
* @returns