This commit is contained in:
Taric Xin
2022-03-23 17:19:13 +08:00
parent de4e0c4de6
commit 571de29199
7 changed files with 49 additions and 26 deletions

View File

@ -21,6 +21,8 @@ export class ShipperBaseService extends BaseService {
$api_getSysConfigTreeByParentFullKey = `/api/mdc/pbc/sysConfig/getSysConfigTreeByParentFullKey`;
// 获取全部返佣配置
$api_get_rebate_config = `/api/mdc/rebateConfig/list/listRebateConfig`;
// 获取渠道销售管理集合
$api_get_channel = `/api/mdc/channelSalesManagement/list/listChannelSalesManagement`;
constructor(public injector: Injector) {
super(injector);
}
@ -254,4 +256,23 @@ export class ShipperBaseService extends BaseService {
})
);
}
/**
* 获取渠道销售管理集合
* @returns
*/
getChannel() {
const params = {};
return this.request(this.$api_get_channel, params, 'POST').pipe(
map(res => {
if (res) {
return res.map((m: any) => {
return { label: m.name, value: m.id };
});
} else {
return [];
}
})
);
}
}