This commit is contained in:
wangshiming
2022-03-21 15:30:35 +08:00
parent 2ae16dce5c
commit 6cecb167ea

View File

@ -4,6 +4,7 @@ import { Component, ViewChild } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema } from '@delon/form'; import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema } from '@delon/form';
import { ShipperBaseService } from '@shared';
import { isTemplateRef } from 'ng-zorro-antd/core/util'; import { isTemplateRef } from 'ng-zorro-antd/core/util';
import { NzMessageService } from 'ng-zorro-antd/message'; import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalService } from 'ng-zorro-antd/modal'; import { NzModalService } from 'ng-zorro-antd/modal';
@ -32,7 +33,7 @@ export class InvoiceRequestedComponent {
totalCallNo = 0; totalCallNo = 0;
selectedRows: any[] = []; selectedRows: any[] = [];
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router,public shipperservice: ShipperBaseService,) {}
beforeReq = (requestOptions: STRequestOptions) => { beforeReq = (requestOptions: STRequestOptions) => {
if (this.resourceStatus) { if (this.resourceStatus) {
@ -338,12 +339,15 @@ export class InvoiceRequestedComponent {
}, },
arto: { arto: {
type: 'string', type: 'string',
title: '购买人', title: '网络货运人',
ui: { ui: {
placeholder: '请输入', widget: 'select',
placeholder: '请选择',
allowClear: true,
visibleIf: { visibleIf: {
expand: (value: boolean) => value expand: (value: boolean) => value
} },
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
} }
}, },
} }