|
|
@ -10,7 +10,7 @@ import {ADMIN_INFO_OBJECT} from '../../../services/local-storage.namespace'; |
|
|
|
import {TySalesmanService} from '../../../services/ty-salesman.service'; |
|
|
|
import {TySalesmanService} from '../../../services/ty-salesman.service'; |
|
|
|
import {TyAgentPriceService} from '../../../services/ty-agent-price.service'; |
|
|
|
import {TyAgentPriceService} from '../../../services/ty-agent-price.service'; |
|
|
|
import {GasService} from '../../../services/gas.service'; |
|
|
|
import {GasService} from '../../../services/gas.service'; |
|
|
|
import {CommonsService} from "../../../services/commons.service"; |
|
|
|
import {CommonsService} from '../../../services/commons.service'; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
|
selector: 'app-petrol-station-manage', |
|
|
|
selector: 'app-petrol-station-manage', |
|
|
@ -29,7 +29,9 @@ export class PetrolStationManageComponent implements OnInit { |
|
|
|
tableLoading = true; |
|
|
|
tableLoading = true; |
|
|
|
searchForm: FormGroup; |
|
|
|
searchForm: FormGroup; |
|
|
|
pageNum: number; |
|
|
|
pageNum: number; |
|
|
|
whereObject: any = {}; |
|
|
|
whereObject: any = { |
|
|
|
|
|
|
|
pageSize: 10 |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
allChecked = false; |
|
|
|
allChecked = false; |
|
|
|
checkedData = []; |
|
|
|
checkedData = []; |
|
|
@ -122,7 +124,6 @@ export class PetrolStationManageComponent implements OnInit { |
|
|
|
requestData(pageNum) { |
|
|
|
requestData(pageNum) { |
|
|
|
this.tableLoading = true; |
|
|
|
this.tableLoading = true; |
|
|
|
this.whereObject['pageNum'] = pageNum; |
|
|
|
this.whereObject['pageNum'] = pageNum; |
|
|
|
this.whereObject['pageSize'] = 10; |
|
|
|
|
|
|
|
this.tyAgentOilStationService.getOilStationList(this.whereObject, data => { |
|
|
|
this.tyAgentOilStationService.getOilStationList(this.whereObject, data => { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
this.dataObject = data['return_data']; |
|
|
|
this.dataObject = data['return_data']; |
|
|
@ -829,7 +830,7 @@ export class PetrolStationManageComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
submitOilDisabled(oilStationId: number, oilNo: string) { |
|
|
|
submitOilDisabled(oilStationId: number, oilNo: string) { |
|
|
|
this.gasService.disabledOil({ storeId: oilStationId, oilNo: oilNo }, data => { |
|
|
|
this.gasService.disabledOil({ storeId: oilStationId, oilNo }, data => { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
this.modal.success({ |
|
|
|
this.modal.success({ |
|
|
|
nzTitle: '提示', |
|
|
|
nzTitle: '提示', |
|
|
@ -849,7 +850,7 @@ export class PetrolStationManageComponent implements OnInit { |
|
|
|
* 油品启用提示 |
|
|
|
* 油品启用提示 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
showOilEnableConfirm(oilStationId: number, oilNo: string): void { |
|
|
|
showOilEnableConfirm(oilStationId: number, oilNo: string): void { |
|
|
|
this.gasService.enableOil({ storeId: oilStationId, oilNo: oilNo }, data => { |
|
|
|
this.gasService.enableOil({ storeId: oilStationId, oilNo }, data => { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
this.modal.success({ |
|
|
|
this.modal.success({ |
|
|
|
nzTitle: '提示', |
|
|
|
nzTitle: '提示', |
|
|
@ -885,6 +886,11 @@ export class PetrolStationManageComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageSizeChange(pageSize: number) { |
|
|
|
|
|
|
|
this.whereObject.pageSize = pageSize; |
|
|
|
|
|
|
|
this.requestData(1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export class PetrolStationManage { |
|
|
|
export class PetrolStationManage { |
|
|
|