|
|
@ -4,6 +4,7 @@ import {NzMessageService, NzModalService} from '_ng-zorro-antd@9.3.0@ng-zorro-an |
|
|
|
import {TyAgentOilStationService} from '../../../../services/ty-agent-oil-station.service'; |
|
|
|
import {TyAgentOilStationService} from '../../../../services/ty-agent-oil-station.service'; |
|
|
|
import {ADMIN_INFO_OBJECT} from "../../../../services/local-storage.namespace"; |
|
|
|
import {ADMIN_INFO_OBJECT} from "../../../../services/local-storage.namespace"; |
|
|
|
import {LocalStorageService} from "../../../../services/local-storage.service"; |
|
|
|
import {LocalStorageService} from "../../../../services/local-storage.service"; |
|
|
|
|
|
|
|
import {environment} from "../../../../../environments/environment"; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
|
selector: 'app-ty-order-list', |
|
|
|
selector: 'app-ty-order-list', |
|
|
@ -11,6 +12,7 @@ import {LocalStorageService} from "../../../../services/local-storage.service"; |
|
|
|
styleUrls: ['./ty-order-list.component.scss'] |
|
|
|
styleUrls: ['./ty-order-list.component.scss'] |
|
|
|
}) |
|
|
|
}) |
|
|
|
export class TyOrderListComponent implements OnInit { |
|
|
|
export class TyOrderListComponent implements OnInit { |
|
|
|
|
|
|
|
FILE_URL = environment.imageUrl; |
|
|
|
roleType; |
|
|
|
roleType; |
|
|
|
adminFlag; |
|
|
|
adminFlag; |
|
|
|
|
|
|
|
|
|
|
@ -72,4 +74,21 @@ export class TyOrderListComponent implements OnInit { |
|
|
|
resetForm(): void { |
|
|
|
resetForm(): void { |
|
|
|
this.searchForm.reset(); |
|
|
|
this.searchForm.reset(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 导出订单 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
excelOrder() { |
|
|
|
|
|
|
|
this.tyAgentOilStationService.excelOrder(this.whereObject, data => { |
|
|
|
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
|
|
|
window.location.href = this.FILE_URL + 'temporary/' + data['return_data']; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.modal.error({ |
|
|
|
|
|
|
|
nzTitle: '提示', |
|
|
|
|
|
|
|
nzContent: data['return_msg'] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|