From bf3f32e154fb798850129cbcbddee12cbd9ab157 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Mon, 6 Mar 2023 15:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=90=86=E5=95=86?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activate-edit/activate-edit.component.ts | 23 ++- .../api-merchants/list/list.component.html | 75 ++++---- .../api-merchants/list/list.component.ts | 175 +++++++----------- .../api-product/list/list.component.html | 53 ++---- .../admin/api-product/list/list.component.ts | 40 +++- .../cms/cms-content/cms-content.component.ts | 2 +- .../price-list/price-list.component.ts | 7 +- src/app/app-common.module.ts | 10 +- src/app/pipes/index.ts | 2 + .../pipes/third-product/product-type.pipe.ts | 2 +- src/app/services/api-merchants.service.ts | 8 +- src/app/services/api-product.service.ts | 24 ++- src/app/services/commons.service.ts | 75 -------- 13 files changed, 219 insertions(+), 277 deletions(-) diff --git a/src/app/admin/activate/activate-edit/activate-edit.component.ts b/src/app/admin/activate/activate-edit/activate-edit.component.ts index c8318fb..c5da672 100644 --- a/src/app/admin/activate/activate-edit/activate-edit.component.ts +++ b/src/app/admin/activate/activate-edit/activate-edit.component.ts @@ -98,14 +98,21 @@ export class ActivateEditComponent implements OnInit { } public getCouponList(whereObject) { - whereObject.status = 2; - this.coupon.getCouponList(whereObject, data => { - if (data['return_code'] === '000000') { - this.listOfOption = data['return_data'].list; - } else { - this.message.error(data['return_msg']); - } - }); + this.coupon.getCouponListByAll({} , data => { + if (data['return_code'] === '000000') { + this.listOfOption = data['return_data']; + } else { + this.message.error(data['return_msg']); + } + }); + // whereObject.status = 2; + // this.coupon.getCouponList(whereObject, data => { + // if (data['return_code'] === '000000') { + // this.listOfOption = data['return_data'].list; + // } else { + // this.message.error(data['return_msg']); + // } + // }); } // 绑定优惠券 diff --git a/src/app/admin/api-merchants/list/list.component.html b/src/app/admin/api-merchants/list/list.component.html index 818db18..4a10d78 100644 --- a/src/app/admin/api-merchants/list/list.component.html +++ b/src/app/admin/api-merchants/list/list.component.html @@ -110,10 +110,9 @@ 更多操作 @@ -200,7 +199,7 @@ ¥{{data.amount}} ¥{{data.beforeAmount}} ¥{{data.afterAmount}} - {{data.sourceType | sourceType}} + {{data.sourceType | orderProductType}} {{data.sourceContent}} {{data.operatorName}} {{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}} @@ -209,17 +208,17 @@ - + - - + + - 编号 - 充值金额 - 折扣金额 - 运营商 - 充值类型 - 状态 - 操作 + 编号 + 产品 + 折扣比例 + 操作 {{i + 1}} - {{data.rechargePrice}} - {{data.discountPrice}} - {{data.operatorType | rechargePrice}} - {{data.phoneRechargeType== 1? '快充':'慢充'}} - {{data.configStatus== 101? '正常':'下架中'}} - - 编辑 - {{data.configStatus === 101 ? '下线': '上线'}} + {{data.ext1}} + {{data.discount}}% + + 编辑 + + 删除 @@ -277,7 +286,7 @@ - + 折扣比例 @@ -297,7 +306,7 @@ - + IP地址 @@ -309,9 +318,3 @@ - - - - - - diff --git a/src/app/admin/api-merchants/list/list.component.ts b/src/app/admin/api-merchants/list/list.component.ts index d758b2b..80e8696 100644 --- a/src/app/admin/api-merchants/list/list.component.ts +++ b/src/app/admin/api-merchants/list/list.component.ts @@ -1,15 +1,15 @@ import {Component, OnInit} from '@angular/core'; -import {environment} from '../../../../environments/environment'; -import {CouponService} from '../../../services/coupon.service'; + import {IconService} from '../../../services/icon.service'; import {CommonsService} from '../../../services/commons.service'; import {ApiMerchantsService} from '../../../services/api-merchants.service'; import {ApiProductService} from '../../../services/api-product.service'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; import {NzMessageService} from 'ng-zorro-antd'; -import {Router} from '@angular/router'; -import {HttpClient} from '@angular/common/http'; -import { map, filter, scan , take } from 'rxjs/operators'; + +import {CompanyService} from '../../../services/company.service'; +import {MerchantService} from '../../../services/merchant.service'; +import {NzModalService} from '_ng-zorro-antd@9.3.0@ng-zorro-antd'; @Component({ selector: 'app-list', @@ -18,13 +18,9 @@ import { map, filter, scan , take } from 'rxjs/operators'; }) export class ListComponent implements OnInit { - WEB_SERVE_URL = environment.imageUrl; searchForm: FormGroup; // 搜索框 validateForm: FormGroup; // 添加框 requestData = []; // 列表数据 - priceArray = []; // 价格数据 - platformArray = []; // 充值平台数据 - total: number; // 页码 pageNum = 1; // 页码 pageSize = 10; // 条码 @@ -36,9 +32,7 @@ export class ListComponent implements OnInit { visibleConfigProduct = false; id: number; edit = false; - payPrice; isVisibleIpAddress = false; - realPrice = 0; mchId: string; rechargeModal = false; rechargeForm: FormGroup; @@ -48,7 +42,6 @@ export class ListComponent implements OnInit { smsCodeBtnLoading = false; submitRechargeBtnLoading = false; countdownTime; - merchantArray = []; merchRechargeData = []; merchantId: number; @@ -57,9 +50,14 @@ export class ListComponent implements OnInit { productConfigArray = []; discount; ipAddress: string; + productName: string; isSpinning = false; isVisibleConfig = false; checkOptions = []; + merArray = []; + // 产品类型 + productTypeArray = []; + companyArray = []; formatterPercent = (value: number): string => `${value == null ? 0 : value} %`; parserPercent = (value: string): string => value.replace(' %', ''); @@ -67,12 +65,13 @@ export class ListComponent implements OnInit { private form: FormBuilder, private apiMerchants: ApiMerchantsService, private apiProduct: ApiProductService, - private coupon: CouponService, private iconService: IconService, private message: NzMessageService, - private http: HttpClient, - private router: Router, + private companyService: CompanyService, + private merchantService: MerchantService, + private modalService: NzModalService, private common: CommonsService + ) { } @@ -83,16 +82,16 @@ export class ListComponent implements OnInit { // 获取初始化数据 private getInitData(): void { - // 获取价格数据 - this.common.getDictionary('RECHARGE_AMOUNT ', data => { - this.priceArray = data['return_data']; + // 获取产品类型 + this.common.getDictionary('ORDER_PRODUCT_TYPE', data => { + this.productTypeArray = data['return_data']; }); - // 获取充值平台 - this.common.getDictionary('RECHARGE_PLATFORM ', data => { - this.platformArray = data['return_data']; + // 获取所有公司 + this.companyService.selectCompanyList({ pageNum: 1, pageSize: 999 }, data => { + this.companyArray = data['return_data']['list']; }); // 获取可用接口数据 - this.common.getDictionary('API_PRODUCT_CONFIG ', data => { + this.common.getDictionary('API_PRODUCT_CONFIG', data => { for (const i of data['return_data']) { this.checkOptions.push({ label: i['codeName'], value: i['codeValue'] @@ -115,8 +114,11 @@ export class ListComponent implements OnInit { }); this.initApiMerchantsPostFrom(false); this.configValidateForm = this.form.group({ - productIds: [null, [Validators.required]], - discount: [null, [Validators.required]], + productType: [null], + companyId: [null], + merchantId: [null], + mchId: [null], + discount: [null], }); this.getRequest(true, this.searchForm.value); @@ -272,38 +274,6 @@ export class ListComponent implements OnInit { }); } - public getEditConfigProductStatus(idPost, status: any): void { - - let statusPost; - let message; - - switch (status) { - case 102: - statusPost = 101; - message = '是否上线'; - break; - case 101: - statusPost = 102; - message = '是否禁用'; - break; - } - - this.common.showConfirm(message, item => { - if (item) { - this.apiMerchants.editConfigApiProductByStatus({ - id: idPost, - status: statusPost - }, data => { - if (data['return_code'] === '000000') { - this.message.success('提交成功'); - this.getListMerchProduct(this.merchantId); - } else { - this.message.error(data['return_msg']); - } - }); - } - }); - } /** * 展示充值模态框 @@ -410,8 +380,8 @@ export class ListComponent implements OnInit { } // 配置产品 - public configProduct(id: number): void { - this.merchantId = id; + public configProduct(mchId: string): void { + this.mchId = mchId; this.configVisible = true; } @@ -421,13 +391,13 @@ export class ListComponent implements OnInit { for (const i in this.configValidateForm.controls) { this.configValidateForm.controls[i].markAsDirty(); this.configValidateForm.controls[i].updateValueAndValidity(); - console.log(this.configValidateForm.controls[i]); if (this.configValidateForm.controls[i].errors != null) { this.message.error('必填项不能为空'); return; } } - this.configValidateForm.value['merchantsId'] = this.merchantId; + this.configValidateForm.controls['mchId'].setValue(this.mchId); + console.log(this.configValidateForm.value); this.apiMerchants.configApiProduct(this.configValidateForm.value , data => { if (data['return_code'] === '000000') { this.configVisible = false; @@ -439,15 +409,17 @@ export class ListComponent implements OnInit { }); } - public showConfigProduct(id: number) { + public showConfigProduct(id: string) { this.visibleConfigProduct = true; - this.merchantId = id; + this.mchId = id; this.getListMerchProduct(id); } - public getListMerchProduct(id: number): void { + public getListMerchProduct(id: string): void { + this.loading = true; this.apiProduct.getListMerchProduct(id , data => { + this.loading = false; if (data['return_code'] === '000000') { this.productConfigArray = data['return_data']; } else { @@ -458,9 +430,10 @@ export class ListComponent implements OnInit { // 修改商品 - public getEditConfigProduct(id: number) { + public getEditConfigProduct(id: number , name: string) { this.configProductId = id; - this.apiMerchants.findConfigProduct(id , data => { + this.productName = name; + this.apiMerchants.findMchProduct(id , data => { if (data['return_code'] === '000000') { this.discount = data['return_data']['discount']; } else { @@ -482,7 +455,7 @@ export class ListComponent implements OnInit { this.apiMerchants.updateConfigApiProduct(prams , data => { if (data['return_code'] === '000000') { this.editConfigVisible = false; - this.getListMerchProduct(this.merchantId); + this.getListMerchProduct(this.mchId); } else { this.message.error(data['return_msg']); } @@ -498,6 +471,7 @@ export class ListComponent implements OnInit { // 打开配置ip地址 public configIp(mchId: string): void { this.mchId = mchId; + this.ipAddress = null; this.apiMerchants.findByMchId( mchId , data => { if (data['return_code'] === '000000') { this.ipAddress = data['return_data']['ipAddress']; @@ -523,50 +497,41 @@ export class ListComponent implements OnInit { }); } - // 打开配置产品弹框 - public configApiProduct(mchId: string): void { - this.mchId = mchId; - this.apiMerchants.getSecConfigList(mchId , data => { - console.log(data); - const returnData = data['return_data']; - if (data['return_data'].length > 0) { - for (const i of this.checkOptions) { - if (returnData.filter(item => item['codeType'] === i['value']).length > 0) { - i['checked'] = true; - } else { - i['checked'] = false; - } - } - } - this.isVisibleConfig = true; - }); + // 获取商户列表 + requestMerList(companyId: number) { + if (companyId != null) { + this.merchantService.getMerchantListByCompany(companyId, data => { + if (data['return_code'] === '000000') { + this.merArray = data['return_data']; + } else { + this.message.error(data['return_msg']); + } + }); + } + } + // 是否删除 + showDeleteConfirmDelete(id): void { + this.modalService.confirm({ + nzTitle: '是否确定删除', + nzOkText: '是', + nzOnOk: () => this.deleteModule(id), + nzCancelText: '否', + }); } - // 配置产品 - public handleOkConfigProduct(): void { - const data = []; - for (const i of this.checkOptions) { - if (i['checked']) { - data.push(i['value']); - } + deleteModule(id: number) { + if (id != null) { + this.apiProduct.detailApiMchProduct(id, data => { + if (data['return_code'] === '000000') { + this.getListMerchProduct(this.mchId); + this.message.success('操作成功'); + } else { + this.message.error(data['return_msg']); + } + }); } - console.log(data); - const postData = { - mchId: this.mchId, - configProduct: data.join(',') - }; - this.isSpinning = true; - this.apiMerchants.configMerchant(postData , res => { - if (res['return_code'] === '000000') { - this.isSpinning = false; - this.message.success('配置成功'); - this.isVisibleConfig = false; - } else { - this.message.error(res['return_msg']); - } - }); } } diff --git a/src/app/admin/api-product/list/list.component.html b/src/app/admin/api-product/list/list.component.html index 1664d23..1118505 100644 --- a/src/app/admin/api-product/list/list.component.html +++ b/src/app/admin/api-product/list/list.component.html @@ -26,17 +26,7 @@ - - - - -
- - 话费充值类型 - - - - + @@ -109,9 +99,15 @@ {{data.createTime | date: 'yyyy-MM-dd HH:mm'}} {{data.status== 101? '上线':'编辑中'}} - 编辑 - {{data.status === 101 ? '下线': '上线'}} - 删除 + 更多操作 + + + @@ -157,28 +153,6 @@ - - 充值类型 - - - - - - - - - 商品编号 - - - - 排序 @@ -194,3 +168,10 @@ + +
+ + + +
+
diff --git a/src/app/admin/api-product/list/list.component.ts b/src/app/admin/api-product/list/list.component.ts index 11e2296..744e648 100644 --- a/src/app/admin/api-product/list/list.component.ts +++ b/src/app/admin/api-product/list/list.component.ts @@ -33,9 +33,8 @@ export class ListComponent implements OnInit { id: number; edit = false; payPrice; - isVisibleGoods = false; - realPrice = 0; - + isVisibleProductCode = false; + rechargeCodeList: any; constructor( private form: FormBuilder, private recharge: RechargeService, @@ -76,11 +75,9 @@ export class ListComponent implements OnInit { this.validateForm = this.form.group({ operatorType: [null, [Validators.required]], prices: [null, [Validators.required]], - phoneRechargeType: [null, [Validators.required]], rechargePlatform: [null, [Validators.required]], rechargePrice: [null], sort: [null], - productId: [null], }); @@ -229,5 +226,38 @@ export class ListComponent implements OnInit { }); } + // 配置产品编码 + public getProductCode(productId: number): void { + const paramsObject = { + id: productId, + codeType: 'RECHARGE_PLATFORM', + type: 2 + }; + this.recharge.getRechargeCodeList(paramsObject , data => { + if (data['return_code'] === '000000') { + this.isVisibleProductCode = true; + this.rechargeCodeList = data['return_data']; + for (const i of this.rechargeCodeList) { + i['sourceId'] = productId; + i['type'] = 2; + } + } else { + this.message.error(data['return_msg']); + } + }); + } + + // 上传配置 + public handleOkCode(): void { + this.recharge.editRechargeCode(this.rechargeCodeList , data => { + if (data['return_code'] === '000000') { + this.isVisibleProductCode = false; + this.message.success('编辑成功'); + this.getRequest(false, this.searchForm.value); + } else { + this.message.error(data['return_msg']); + } + }); + } } diff --git a/src/app/admin/cms/cms-content/cms-content.component.ts b/src/app/admin/cms/cms-content/cms-content.component.ts index d07b877..eba412d 100644 --- a/src/app/admin/cms/cms-content/cms-content.component.ts +++ b/src/app/admin/cms/cms-content/cms-content.component.ts @@ -223,7 +223,7 @@ export class CmsContentComponent implements OnInit { } showDeleteConfirmDelete(id: number): void { - this.common.showConfirm('是否确定删除!', dataR => { + this.common.showConfirm('是否确定!', dataR => { if (dataR) { this.cms.deleteById(id, data => { if (data['return_code'] === '000000') { diff --git a/src/app/admin/recharge-order/price-list/price-list.component.ts b/src/app/admin/recharge-order/price-list/price-list.component.ts index c615afd..0a1754d 100644 --- a/src/app/admin/recharge-order/price-list/price-list.component.ts +++ b/src/app/admin/recharge-order/price-list/price-list.component.ts @@ -33,8 +33,7 @@ export class PriceListComponent implements OnInit { id: number; edit = false; payPrice; - isVisibleGoods = false; - realPrice = 0; + rechargeCodeList: any; formatterPercent = (value: number): string => `${value == null ? 0 : value} %`; parserPercent = (value: string): string => value.replace(' %', ''); @@ -261,9 +260,11 @@ export class PriceListComponent implements OnInit { public getProductCode(productId: number): void { const paramsObject = { id: productId, - codeType: 'RECHARGE_PLATFORM' + codeType: 'RECHARGE_PLATFORM', + type: 1 }; this.recharge.getRechargeCodeList(paramsObject , data => { + console.log(data); if (data['return_code'] === '000000') { this.isVisibleProductCode = true; this.rechargeCodeList = data['return_data']; diff --git a/src/app/app-common.module.ts b/src/app/app-common.module.ts index f0d7870..4bcbd61 100644 --- a/src/app/app-common.module.ts +++ b/src/app/app-common.module.ts @@ -67,9 +67,15 @@ import { ProductTypePipe, OrderRefundOpuserTypePipe, OrderChildStatusPipe, - PayStatusPipe, CallbackStatusPipe, ProductConfigPipe, PayCouponStatusPipe, OrderOilChannelTypePipe + PayStatusPipe, + CallbackStatusPipe, + ProductConfigPipe, + PayCouponStatusPipe, + OrderOilChannelTypePipe, + VerifyProductTypePipe } from './pipes'; import {MsgTypePipe} from './pipes/msg/msg-type.pipe'; +import { OrderProductTypePipe } from './pipes/order/order-product-type.pipe'; @@ -140,6 +146,8 @@ const PIPES = [ ProductTypePipe, MsgTypePipe, OrderOilChannelTypePipe, + VerifyProductTypePipe, + OrderProductTypePipe, ]; diff --git a/src/app/pipes/index.ts b/src/app/pipes/index.ts index 031f19b..864f080 100644 --- a/src/app/pipes/index.ts +++ b/src/app/pipes/index.ts @@ -59,3 +59,5 @@ export * from './index/product-config.pipe'; export * from './apiMerchant/callback-status.pipe'; export * from './order/pay-coupon-status.pipe'; export * from './order/order-oil-channel-type.pipe'; +export * from './apiMerchant/verify-product-type.pipe'; +export * from './order/order-product-type.pipe'; diff --git a/src/app/pipes/third-product/product-type.pipe.ts b/src/app/pipes/third-product/product-type.pipe.ts index edd34a5..99ed7fd 100644 --- a/src/app/pipes/third-product/product-type.pipe.ts +++ b/src/app/pipes/third-product/product-type.pipe.ts @@ -11,7 +11,7 @@ export class ProductTypePipe implements PipeTransform { 3: ['第三方产品'], 4: ['积分充值'], 5: ['中石化', '消费券', '其他卡券' , '贵州中石化' , '重庆中石油'], - 6: ['在线加油'], + 6: [''], 7: ['优惠券包'], 8: ['汇联通充值'], }; diff --git a/src/app/services/api-merchants.service.ts b/src/app/services/api-merchants.service.ts index 2cf456e..67f0dfd 100644 --- a/src/app/services/api-merchants.service.ts +++ b/src/app/services/api-merchants.service.ts @@ -127,7 +127,7 @@ export class ApiMerchantsService { * @Param configApiProduct */ public configApiProduct(params: object, callBack) { - this.http.post(environment.baseUrl + 'apiProduct/configApiProduct', params).subscribe(data => { + this.http.post(environment.baseUrl + 'apiMchProduct/insertMchProduct', params).subscribe(data => { callBack(data); }); } @@ -151,8 +151,8 @@ export class ApiMerchantsService { * @param id id * @param callBack 回调 */ - public findConfigProduct(id: number, callBack) { - this.http.get(environment.baseUrl + 'apiProduct/findConfigProduct?id=' + id).subscribe(data => { + public findMchProduct(id: number, callBack) { + this.http.get(environment.baseUrl + 'apiMchProduct/findMchProduct?id=' + id).subscribe(data => { callBack(data); }); } @@ -165,7 +165,7 @@ export class ApiMerchantsService { * @Param mod **/ public updateConfigApiProduct(params: object, callBack) { - this.http.post(environment.baseUrl + 'apiProduct/updateConfigApiProduct', params).subscribe(data => { + this.http.post(environment.baseUrl + 'apiMchProduct/editMchProduct', params).subscribe(data => { callBack(data); }); } diff --git a/src/app/services/api-product.service.ts b/src/app/services/api-product.service.ts index 1f82462..0698320 100644 --- a/src/app/services/api-product.service.ts +++ b/src/app/services/api-product.service.ts @@ -88,8 +88,15 @@ export class ApiProductService { }); } - public getListMerchProduct(id: number, callBack) { - this.http.get(environment.baseUrl + 'apiMerchants/getListMerchProduct?merchantId=' + id).subscribe(data => { + /** + * @Author Sum1Dream + * @methodName getListMerchProduct + * @Description // 查询商户产品列表 + * @Date 09:51 2023/2/24 + * @Param mchId: number, callBack + */ + public getListMerchProduct(mchId: string, callBack) { + this.http.get(environment.baseUrl + 'apiMchProduct/getListApiMchProduct?mchId=' + mchId).subscribe(data => { callBack(data); }); } @@ -283,4 +290,17 @@ export class ApiProductService { }); } + /** + * @Author Sum1Dream + * @methodName detailApiMchProduct + * @Description //根据id 删除配置产品 + * @Date 11:10 2023/2/24 + * @Param id: number, callBack + */ + public detailApiMchProduct(id: number, callBack) { + this.http.get(environment.baseUrl + 'apiMchProduct/detailApiMchProduct?id=' + id).subscribe(data => { + callBack(data); + }); + } + } diff --git a/src/app/services/commons.service.ts b/src/app/services/commons.service.ts index 074c2d5..939268a 100644 --- a/src/app/services/commons.service.ts +++ b/src/app/services/commons.service.ts @@ -99,25 +99,7 @@ export class CommonsService { }); } - /** - * 获取所有 省 市 区 - * @param callBack 回调 - */ - public getAllProvinceAndCityRegion(callBack) { - this.http.get(environment.baseUrl + 'common/getAllProvinceAndCityRegion').subscribe(data => { - callBack(data); - }); - } - /** - * 获取行业分类 - * @param callBack 回调 - */ - public getAllIndustry(callBack) { - this.http.get(environment.baseUrl + 'secCompanyIndustry/findIndustryTree').subscribe(data => { - callBack(data); - }); - } /** * 查询省级列表 @@ -278,63 +260,6 @@ export class CommonsService { ); } - /** - * 职位列表key查询value - * - * @param value string - * @param object object - * @param callback 回调 - */ - public positionKeyValue(value: string, object: Array, callback): void { - // tslint:disable-next-line:forin - for (const i in object) { - if (object[i].value === value) { - callback(object[i].label); - } else { - this.positionKeyValue(value, object[i].children, callback); - } - } - } - - /** - * 根据数据类型查询数据字典 - * - * @param codeType 类型 - * @param codeValue value - * @param callback 回调 - */ - public getDictionaryByCodeTypeAndValue(codeType: string, codeValue: string, callback): any { - this.http.get(environment.baseUrl + '/common/getDictionaryByCodeTypeAndValue?codeType=' + codeType + '&codeValue=' + codeValue).subscribe(data => { - callback(data); - }); - } - - /** - * 根据数据类型查询数据字典 同步请求 - * - * @param codeType 类型 - * @param codeValue value - * @param callback 回调 - */ - public getDictionaryByCodeTypeAndValuePromise(codeType: string, codeValue: string): any { - return new Promise(resolve => { - this.http.get(environment.baseUrl + '/common/getDictionaryByCodeTypeAndValue?codeType=' + codeType + '&codeValue=' + codeValue).subscribe(data => { - resolve(data['return_data']['codeName']); - }); - }); - } - - /** - * 查询登录页展示的公司 - * @param param 参数 - * @param callback 回调 - */ - public getHomeCompanyList(param: object, callback): any { - this.http.get(environment.baseUrl + 'common/getHomeCompanyList?' + this.getWhereCondition(param)).subscribe(data => { - callback(data); - }); - } - /** * 新增团油油品配置 *