diff --git a/src/app/admin/system/system-routing.module.ts b/src/app/admin/system/system-routing.module.ts index d682601..f687099 100644 --- a/src/app/admin/system/system-routing.module.ts +++ b/src/app/admin/system/system-routing.module.ts @@ -9,6 +9,7 @@ import {MenuComponent} from './menu/menu.component'; import {PositionRelComponent} from './position-rel/position-rel.component'; import {SinopecConfigComponent} from './sinopec-config/sinopec-config.component'; import {SinopecEditComponent} from './sinopec-edit/sinopec-edit.component'; +import {OilsDiscountComponent} from './oils-discount/oils-discount.component'; const routes: Routes = [ { path: 'systemorganization', component: SystemOrganizationComponent}, @@ -20,6 +21,7 @@ const routes: Routes = [ { path: 'positionrel', component: PositionRelComponent }, { path: 'sinopec-config', component: SinopecConfigComponent }, { path: 'sinopec-edit', component: SinopecEditComponent }, + { path: 'oils-discount', component: OilsDiscountComponent }, ]; @NgModule({ diff --git a/src/app/admin/system/system.module.ts b/src/app/admin/system/system.module.ts index 1a39276..1cafd5d 100644 --- a/src/app/admin/system/system.module.ts +++ b/src/app/admin/system/system.module.ts @@ -18,8 +18,9 @@ import { PositionRelComponent } from './position-rel/position-rel.component'; import {AppCommonModule} from '../../app-common.module'; import { SinopecConfigComponent } from './sinopec-config/sinopec-config.component'; import { SinopecEditComponent } from './sinopec-edit/sinopec-edit.component'; +import { OilsDiscountComponent } from './oils-discount/oils-discount.component'; @NgModule({ - declarations: [SystemOrganizationComponent, SystemRoleComponent, SystemRoleShowComponent, SystemUserComponent, MenuComponent, PermissionComponent, PositionRelComponent, SinopecConfigComponent, SinopecEditComponent], + declarations: [SystemOrganizationComponent, SystemRoleComponent, SystemRoleShowComponent, SystemUserComponent, MenuComponent, PermissionComponent, PositionRelComponent, SinopecConfigComponent, SinopecEditComponent, OilsDiscountComponent], imports: [ CommonModule, SystemRoutingModule, diff --git a/src/app/services/commons.service.ts b/src/app/services/commons.service.ts index 4614bdb..07a56bb 100644 --- a/src/app/services/commons.service.ts +++ b/src/app/services/commons.service.ts @@ -294,4 +294,54 @@ export class CommonsService { callback(data); }); } + + /** + * 新增团油油品配置 + * + * @param params 上传对象 + * @param callBack 回调 + * @return data 返回结果 + */ + public editGasDiscountOilPrice(params: object, callBack) { + this.http.post(environment.baseUrl + 'highGasDiscountOilPrice/editGasDiscountOilPrice', params).subscribe(data => { + callBack(data); + }); + } + + /** + * 查询公司列表 + * + * @param paramsObject 对象 + * @param callBack 回调 + */ + public getList(paramsObject: object, callBack) { + this.http.get(environment.baseUrl + 'highGasDiscountOilPrice/getList?' + this.getWhereCondition(paramsObject)).subscribe(data => { + callBack(data); + }); + } + + /** + * 根据estateId 查询类目树 + * + * @param id 类目id + * @param callBack 回调 + */ + public getDetailById(id: number , callBack) { + this.http.get(environment.baseUrl + 'highGasDiscountOilPrice/getDetailById?id=' + id).subscribe(data => { + callBack(data); + }); + } + + /** + * 根据estateId 查询类目树 + * + * @param id 类目id + * @param callBack 回调 + */ + public delete(id: number , callBack) { + this.http.post(environment.baseUrl + 'highGasDiscountOilPrice/delete' , { id: id}).subscribe(data => { + callBack(data); + }); + } + }