|
|
|
@ -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 {ADMIN_INFO_OBJECT} from "../../../../services/local-storage.namespace"; |
|
|
|
|
import {LocalStorageService} from "../../../../services/local-storage.service"; |
|
|
|
|
import {environment} from "../../../../../environments/environment"; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-ty-order-list', |
|
|
|
@ -11,6 +12,7 @@ import {LocalStorageService} from "../../../../services/local-storage.service"; |
|
|
|
|
styleUrls: ['./ty-order-list.component.scss'] |
|
|
|
|
}) |
|
|
|
|
export class TyOrderListComponent implements OnInit { |
|
|
|
|
FILE_URL = environment.imageUrl; |
|
|
|
|
roleType; |
|
|
|
|
adminFlag; |
|
|
|
|
|
|
|
|
@ -72,4 +74,21 @@ export class TyOrderListComponent implements OnInit { |
|
|
|
|
resetForm(): void { |
|
|
|
|
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'] |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|