diff --git a/src/app/routes/financial-management/components/voucher-management/voucher-management.component.ts b/src/app/routes/financial-management/components/voucher-management/voucher-management.component.ts index d4f8ad7f..bcc8e3bb 100644 --- a/src/app/routes/financial-management/components/voucher-management/voucher-management.component.ts +++ b/src/app/routes/financial-management/components/voucher-management/voucher-management.component.ts @@ -1,9 +1,8 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st'; -import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SFSchema, SFDateWidgetSchema } from '@delon/form'; import { SearchDrawerService } from '@shared'; -import { NzModalService } from 'ng-zorro-antd/modal'; import { BasicTableComponent } from 'src/app/routes/commom'; import { FreightAccountService } from '../../services/freight-account.service'; @@ -12,7 +11,7 @@ import { FreightAccountService } from '../../services/freight-account.service'; templateUrl: './voucher-management.component.html', styleUrls: ['../../../commom/less/commom-table.less'] }) -export class VoucherManagementComponent extends BasicTableComponent implements OnInit { +export class VoucherManagementComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; @ViewChild('auditModal', { static: false }) @@ -25,8 +24,6 @@ export class VoucherManagementComponent extends BasicTableComponent implements O super(searchDrawerService); } - ngOnInit(): void {} - search() { this.st?.load(1); } diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html index 8272131b..4d8371bd 100644 --- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html +++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html @@ -66,8 +66,10 @@ 清空 - - + + diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts index 84337b23..24d45038 100644 --- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts +++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts @@ -1,7 +1,7 @@ import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; -import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SFSchema, SFDateWidgetSchema } from '@delon/form'; import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; import { BasicTableComponent } from 'src/app/routes/commom'; @@ -48,7 +48,7 @@ export class WithdrawalsRecordComponent extends BasicTableComponent { createTime: { start: this.sf?.value.createTime?.[0] || '', end: this.sf?.value.createTime?.[1] || '' - }, + } }); } delete requestOptions?.body?.expand; @@ -187,13 +187,13 @@ export class WithdrawalsRecordComponent extends BasicTableComponent { type: 'string', title: '账户类型', enum: [ - {label: '全部', value: ''}, - {label: '个人合伙人', value: '4'}, - {label: '企业合伙人', value: '5'} + { label: '全部', value: '' }, + { label: '个人合伙人', value: '4' }, + { label: '企业合伙人', value: '5' } ], ui: { widget: 'select', - placeholder: '请选择', + placeholder: '请选择' } }, ltdId: { diff --git a/src/app/routes/ticket-management/components/billing-order/billing-order.component.html b/src/app/routes/ticket-management/components/billing-order/billing-order.component.html index e6588a35..dbe91bcd 100644 --- a/src/app/routes/ticket-management/components/billing-order/billing-order.component.html +++ b/src/app/routes/ticket-management/components/billing-order/billing-order.component.html @@ -1,7 +1,5 @@ - + - + +
+ +
+ + +
+
+ [loading]="false" [scroll]="{ x:'1200px',y:scrollY }"> 待受理 处理中 diff --git a/src/app/routes/ticket-management/components/billing-order/billing-order.component.ts b/src/app/routes/ticket-management/components/billing-order/billing-order.component.ts index 57ea5983..e60d7803 100644 --- a/src/app/routes/ticket-management/components/billing-order/billing-order.component.ts +++ b/src/app/routes/ticket-management/components/billing-order/billing-order.component.ts @@ -2,27 +2,29 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { SFComponent, SFSchema, SFDateWidgetSchema, SFSelectWidgetSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; @Component({ selector: 'app-billing-order', templateUrl: './billing-order.component.html', - styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class BillingOrderComponent implements OnInit { +export class BillingOrderComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); + schema: SFSchema = this.initSF(); - _$expand = false; + constructor(public service: TicketService, private router: Router, public searchDrawerService: SearchDrawerService) { + super(searchDrawerService); + } - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router, private ar: ActivatedRoute) {} - - ngOnInit(): void {} + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { @@ -38,22 +40,6 @@ export class BillingOrderComponent implements OnInit { this.router.navigateByUrl(`/order-management/vehicle/vehicle-detail/${item.billId}`); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - export() { this.service.exportStart({ ...this.sf?.value, pageSize: -1 }, this.service.$api_export_InvoicedBillInfoPage); } @@ -118,20 +104,14 @@ export class BillingOrderComponent implements OnInit { type: 'string', title: '申请编号', ui: { - autocomplete: 'off', - visibleIf: { - expand: (value: boolean) => value - } + autocomplete: 'off' } }, vatinvcode: { type: 'string', title: '分票编号', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, vatappdate: { @@ -140,10 +120,7 @@ export class BillingOrderComponent implements OnInit { ui: { widget: 'sl-from-to', type: 'date', - format: 'yyyy-MM-dd HH:mm:ss', - visibleIf: { - expand: (value: boolean) => value - } + format: 'yyyy-MM-dd HH:mm:ss' } as SFDateWidgetSchema }, sts: { @@ -152,10 +129,7 @@ export class BillingOrderComponent implements OnInit { ui: { widget: 'dict-select', params: { dictKey: 'etc:invoicing:status' }, - placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请选择' } }, invoiceno: { @@ -163,10 +137,7 @@ export class BillingOrderComponent implements OnInit { title: '发票号码', ui: { placeholder: '请输入', - autocomplete: 'off', - visibleIf: { - expand: (value: boolean) => value - } + autocomplete: 'off' } }, invoicedate: { @@ -175,10 +146,7 @@ export class BillingOrderComponent implements OnInit { ui: { widget: 'sl-from-to', type: 'date', - format: 'yyyy-MM-dd', - visibleIf: { - expand: (value: boolean) => value - } + format: 'yyyy-MM-dd' } as SFDateWidgetSchema }, enterpriseInfoId: { @@ -188,9 +156,6 @@ export class BillingOrderComponent implements OnInit { widget: 'select', placeholder: '请选择', allowClear: true, - visibleIf: { - expand: (value: boolean) => value - }, asyncData: () => this.service.getNetworkFreightForwarder() } } diff --git a/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html b/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html index e8a60d09..e2611f6f 100644 --- a/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html +++ b/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.html @@ -1,7 +1,5 @@ - + -
+
--> + + +
+ + + + + + + +
- - - - - - - -
+
已选择 {{ selectedRows.length }} 张发票   发票金额总计 {{totalCallNo }} 清空
+ - + - -
- - -
- 已选择 - {{ selectedRows.length }} 条数据 - 清空 -
+ +
+ + + +
- -
+ +
+
+ 已选择 + {{ selectedRows.length }} 条数据 + 清空 +
+ + + + +
    +
  • + 添加 +
  • +
  • + 删除 +
  • +
+
+
+
+ + \ No newline at end of file diff --git a/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.ts b/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.ts index 28b4dac9..d8b6406d 100644 --- a/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.ts +++ b/src/app/routes/ticket-management/components/etc-blacklist/etc-blacklist.component.ts @@ -1,7 +1,9 @@ import { ChangeDetectionStrategy, Component, OnInit, ViewChild } from '@angular/core'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { SFComponent, SFSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { SystemService } from 'src/app/routes/sys-setting/services/system.service'; import { TicketService } from '../../services/ticket.service'; import { AddCartComponent } from './add-cart/add-cart.component'; @@ -10,14 +12,12 @@ import { AddOwnerComponent } from './add-owner/add-owner.component'; @Component({ selector: 'app-etc-blacklist', templateUrl: './etc-blacklist.component.html', - styleUrls: ['../../../commom/less/box.less', './etc-blacklist.component.less'], + styleUrls: ['../../../commom/less/commom-table.less'], changeDetection: ChangeDetectionStrategy.OnPush }) -export class ETCBlacklistComponent implements OnInit { +export class ETCBlacklistComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; tabs = [ { name: '货主', @@ -32,15 +32,19 @@ export class ETCBlacklistComponent implements OnInit { ]; tabType = 1; - searchSchema: SFSchema = this.initSF(); + schema: SFSchema = this.initSF(); columns: STColumn[] = this.initST(); selectedRows: any[] = []; - constructor(public service: TicketService, private nzModalService: NzModalService) {} + constructor(public service: TicketService, private nzModalService: NzModalService, public searchDrawerService: SearchDrawerService) { + super(searchDrawerService); + } - ngOnInit(): void {} + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { @@ -63,6 +67,8 @@ export class ETCBlacklistComponent implements OnInit { item.isActived = !item.isActived; // this.st.load(1); this.st.resetColumns(); + console.log(this.st); + }, 500); } @@ -181,12 +187,6 @@ export class ETCBlacklistComponent implements OnInit { nzOkText: '确定' }); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - } private initSF(): SFSchema { return { @@ -288,12 +288,14 @@ export class ETCBlacklistComponent implements OnInit { className: 'text-center', buttons: [ { - text: '删除', iif: () => this.tabType === 1, + text: '删除', + iif: () => this.tabType === 1, acl: { ability: ['TICKET-ETC-BLACK_LIST-deleteFreight'] }, click: item => this.deleteAction(item) }, { - text: '删除', iif: () => this.tabType === 2, + text: '删除', + iif: () => this.tabType === 2, acl: { ability: ['TICKET-ETC-BLACK_LIST-deleteCart'] }, click: item => this.deleteAction(item) } diff --git a/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.html b/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.html index 407dba23..ddc2932f 100644 --- a/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.html +++ b/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.html @@ -1,14 +1,4 @@ - - + - + +
+ +
+ + +
+
diff --git a/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.ts b/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.ts index 67a101d4..1984c232 100644 --- a/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.ts +++ b/src/app/routes/ticket-management/components/etc-invoiced-list/etc-invoiced-list.component.ts @@ -2,28 +2,34 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { SFComponent, SFSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; import { TransactionDetailsComponent } from './transaction-details/transaction-details.component'; @Component({ selector: 'app-etc-invoiced-list', templateUrl: './etc-invoiced-list.component.html', - styleUrls: ['../../../commom/less/box.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class ETCInvoicedListComponent implements OnInit { +export class ETCInvoicedListComponent extends BasicTableComponent implements OnInit { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); + schema: SFSchema = this.initSF(); - _$expand = false; - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} + constructor(public service: TicketService, private nzModalService: NzModalService, public searchDrawerService: SearchDrawerService) { + super(searchDrawerService); + } ngOnInit(): void {} + search() { + this.st?.load(1); + } + + beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { Object.assign(requestOptions.body, { @@ -52,22 +58,6 @@ export class ETCInvoicedListComponent implements OnInit { }); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - private initSF(): SFSchema { return { properties: { @@ -106,10 +96,7 @@ export class ETCInvoicedListComponent implements OnInit { ui: { widget: 'dict-select', params: { dictKey: 'etc:invoicing:status' }, - placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请选择' }, default: '' }, @@ -122,10 +109,7 @@ export class ETCInvoicedListComponent implements OnInit { searchDebounceTime: 300, searchLoadingText: '搜索中...', allowClear: true, - onSearch: (q: any) => this.service.getEnterpriceList({ enterpriseName: q }), - visibleIf: { - expand: (value: boolean) => value - } + onSearch: (q: any) => this.service.getEnterpriceList({ enterpriseName: q }) } }, enterpriseInfoId: { @@ -135,9 +119,6 @@ export class ETCInvoicedListComponent implements OnInit { widget: 'select', placeholder: '请选择', allowClear: true, - visibleIf: { - expand: (value: boolean) => value - }, asyncData: () => this.service.getNetworkFreightForwarder() }, default: '' diff --git a/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.html b/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.html index c859f75b..693100db 100644 --- a/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.html +++ b/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.html @@ -1,17 +1,5 @@ - - + - + +
+ +
+ + +
+
+ [loading]="false" [scroll]="{ x:'1200px',y:scrollY }"> {{item.driverName}}
{{item.driverCellphone}}
diff --git a/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.ts b/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.ts index 9293cf62..4182c025 100644 --- a/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.ts +++ b/src/app/routes/ticket-management/components/etc-invoiced-logs/etc-invoiced-logs.component.ts @@ -1,28 +1,29 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; +import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; -import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; -import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form'; -import { NzModalService } from 'ng-zorro-antd/modal'; +import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st'; +import { SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; @Component({ selector: 'app-etc-invoiced-logs', templateUrl: './etc-invoiced-logs.component.html', - styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class ETCInvoicedLogsComponent implements OnInit { +export class ETCInvoicedLogsComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); + schema: SFSchema = this.initSF(); - _$expand = false; + constructor(public service: TicketService, private router: Router, public searchDrawerService: SearchDrawerService) { + super(searchDrawerService); + } - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} - - ngOnInit(): void {} + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { @@ -46,22 +47,6 @@ export class ETCInvoicedLogsComponent implements OnInit { this.router.navigate(['/ticket/invoice-requested-detail/1']); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - exportList() { const params = { listSource: 1, pageSize: -1 }; if (this.sf) { @@ -107,10 +92,7 @@ export class ETCInvoicedLogsComponent implements OnInit { type: 'string', title: '车牌号', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, exTime: { @@ -118,10 +100,7 @@ export class ETCInvoicedLogsComponent implements OnInit { type: 'string', ui: { widget: 'sl-from-to-search', - format: 'yyyy-MM-dd', - visibleIf: { - expand: (value: boolean) => value - } + format: 'yyyy-MM-dd' } as SFDateWidgetSchema }, invoiceMakeTime: { @@ -129,20 +108,14 @@ export class ETCInvoicedLogsComponent implements OnInit { type: 'string', ui: { widget: 'sl-from-to-search', - format: 'yyyy-MM-dd', - visibleIf: { - expand: (value: boolean) => value - } + format: 'yyyy-MM-dd' } as SFDateWidgetSchema }, sellerName: { type: 'string', title: '销售方', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, ltdId: { @@ -152,9 +125,6 @@ export class ETCInvoicedLogsComponent implements OnInit { widget: 'select', placeholder: '请选择', allowClear: true, - visibleIf: { - expand: (value: boolean) => value - }, asyncData: () => this.service.getNetworkFreightForwarder() }, default: '' diff --git a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html index afa89459..278e364a 100644 --- a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html +++ b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.html @@ -1,14 +1,4 @@ - - + - + +
+ +
+
+ 已选择 + {{ selectedRows.length }} 张发票 + 清空 +
+ + + +
+
-
+ + [loading]="false" [scroll]="{ x:'1200px',y:scrollY }" (change)="stChange($event)"> {{item.driverName}}
{{item.driverPhone}}
diff --git a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts index 2faefd48..c4b41238 100644 --- a/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts +++ b/src/app/routes/ticket-management/components/etc-invoiced-requested/etc-invoiced-requested.component.ts @@ -2,30 +2,32 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; @Component({ selector: 'app-etc-invoiced-requested', templateUrl: './etc-invoiced-requested.component.html', - styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class ETCInvoicedRequestedComponent implements OnInit { +export class ETCInvoicedRequestedComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; @ViewChild('auditModal', { static: false }) auditModal!: any; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); - - _$expand = false; + schema: SFSchema = this.initSF(); selectedRows: any[] = []; - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} + constructor(public service: TicketService, private nzModalService: NzModalService, public searchDrawerService: SearchDrawerService) { + super(searchDrawerService); + } - ngOnInit(): void {} + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { @@ -68,22 +70,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { }); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - private initSF(): SFSchema { return { properties: { @@ -123,9 +109,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { title: '司机姓名', ui: { placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } } }, driverPhone: { @@ -133,9 +116,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { title: '司机手机', ui: { placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } } }, licenseCarNo: { @@ -143,9 +123,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { title: '车牌号', ui: { placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } } }, licenseBelonging: { @@ -153,9 +130,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { title: '车辆所有人', ui: { placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } } }, dischargePlace: { @@ -164,9 +138,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { ui: { autocomplete: 'off', placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } } }, loadingPlace: { @@ -175,9 +146,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { ui: { autocomplete: 'off', placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } } }, shipperId: { @@ -190,9 +158,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { searchLoadingText: '搜索中...', allowClear: true, onSearch: (q: any) => this.service.getEnterpriceList({ enterpriseName: q }), - visibleIf: { - expand: (value: boolean) => value - } } }, enterpriseInfoName: { @@ -202,9 +167,6 @@ export class ETCInvoicedRequestedComponent implements OnInit { widget: 'select', placeholder: '请选择', allowClear: true, - visibleIf: { - expand: (value: boolean) => value - }, asyncData: () => this.service.getNetworkFreightForwarder() }, default: '' diff --git a/src/app/routes/ticket-management/components/express-info/express-info.component.html b/src/app/routes/ticket-management/components/express-info/express-info.component.html index ec192d9d..f7aa3f37 100644 --- a/src/app/routes/ticket-management/components/express-info/express-info.component.html +++ b/src/app/routes/ticket-management/components/express-info/express-info.component.html @@ -1,4 +1,4 @@ - + - - -
- + +
+ +
+ + +
- + +
\ No newline at end of file diff --git a/src/app/routes/ticket-management/components/express-info/express-info.component.ts b/src/app/routes/ticket-management/components/express-info/express-info.component.ts index 1cbf2974..5d1cfa5f 100644 --- a/src/app/routes/ticket-management/components/express-info/express-info.component.ts +++ b/src/app/routes/ticket-management/components/express-info/express-info.component.ts @@ -1,34 +1,24 @@ -/* - * @Description : - * @Version : 1.0 - * @Author : Shiming - * @Date : 2022-04-28 20:27:22 - * @LastEditors : Shiming - * @LastEditTime : 2022-04-29 14:14:59 - * @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\express-info\\express-info.component.ts - * Copyright (C) 2022 huzhenhong. All rights reserved. - */ import { Component, OnInit, ViewChild } from '@angular/core'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; import { SFComponent, SFDateWidgetSchema, SFSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; import { ExpressDetailModalComponent } from './express-detail-modal/express-detail-modal.component'; @Component({ selector: 'app-express-info', templateUrl: './express-info.component.html', - styleUrls: ['../../../commom/less/box.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class ExpressInfoComponent implements OnInit { +export class ExpressInfoComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; url = `/api/fcc/ficoExpressH/getListPage`; - searchSchema: SFSchema = { + schema: SFSchema = { properties: { expressCode: { title: '快递单号', @@ -88,12 +78,16 @@ export class ExpressInfoComponent implements OnInit { selectedRows: any[] = []; - reqParams = { pageIndex: 1, pageSize: 10 }; - - constructor(public service: TicketService, private nzModalService: NzModalService) {} + constructor(public service: TicketService, private nzModalService: NzModalService, public searchDrawerService: SearchDrawerService) { + super(searchDrawerService); + } ngOnInit(): void {} + search() { + this.st?.load(1); + } + beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { Object.assign(requestOptions.body, { @@ -162,10 +156,4 @@ export class ExpressInfoComponent implements OnInit { } }); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - } } diff --git a/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.html b/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.html index d016b77f..42c83821 100644 --- a/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.html +++ b/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.html @@ -1,4 +1,4 @@ - + - + +
+ +
+
+ 已选择 + {{ selectedRows.length }} 张发票 + 清空 +
+ + + +
+
-
- + + [loading]="false" [scroll]="{ x:'1200px',y:scrollY }" (change)="stChange($event)"> \ No newline at end of file diff --git a/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.ts b/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.ts index 54322cb9..f5c9dd9a 100644 --- a/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.ts +++ b/src/app/routes/ticket-management/components/input-invoice/input-invoice.component.ts @@ -1,32 +1,39 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; +import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st'; -import { SFComponent, SFDateWidgetSchema, SFSchema } from '@delon/form'; +import { SFDateWidgetSchema, SFSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; import { AddCollectionInvoiceModalComponent } from './add-collection-invoice-modal/add-collection-invoice-modal.component'; @Component({ selector: 'app-input-invoice', templateUrl: './input-invoice.component.html', - styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class InputInvoiceComponent implements OnInit { +export class InputInvoiceComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; @ViewChild('auditModal', { static: false }) auditModal!: any; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); - - _$expand = false; + schema: SFSchema = this.initSF(); selectedRows: any[] = []; - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} + constructor( + public service: TicketService, + private nzModalService: NzModalService, + private router: Router, + public searchDrawerService: SearchDrawerService + ) { + super(searchDrawerService); + } - ngOnInit(): void {} + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { if (this.sf) { @@ -66,22 +73,6 @@ export class InputInvoiceComponent implements OnInit { }); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - private initSF(): SFSchema { return { properties: { @@ -127,10 +118,7 @@ export class InputInvoiceComponent implements OnInit { ], ui: { widget: 'select', - placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请选择' }, default: '' }, @@ -141,10 +129,7 @@ export class InputInvoiceComponent implements OnInit { widget: 'select', placeholder: '请选择', allowClear: true, - asyncData: () => this.service.getCRMCustomerId(), - visibleIf: { - expand: (value: boolean) => value - } + asyncData: () => this.service.getCRMCustomerId() } }, createtime: { @@ -152,10 +137,7 @@ export class InputInvoiceComponent implements OnInit { type: 'string', ui: { widget: 'sl-from-to-search', - format: 'yyyy-MM-dd', - visibleIf: { - expand: (value: boolean) => value - } + format: 'yyyy-MM-dd' } as SFDateWidgetSchema }, sts: { @@ -168,10 +150,7 @@ export class InputInvoiceComponent implements OnInit { ], ui: { widget: 'select', - placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请选择' }, default: '' }, @@ -180,40 +159,28 @@ export class InputInvoiceComponent implements OnInit { title: '发票日期', ui: { widget: 'sl-from-to-search', - format: 'yyyy-MM-dd', - visibleIf: { - expand: (value: boolean) => value - } + format: 'yyyy-MM-dd' } }, remarks: { type: 'string', title: '收票备注', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, billCode: { type: 'string', title: '订单号', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, feecode: { type: 'string', title: '费用号', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } } } diff --git a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.html b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.html index f88880f2..2badcf22 100644 --- a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.html +++ b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.html @@ -1,16 +1,4 @@ - - - - + + +
+ + + + + + + + + +
- - - - - - - - - -
已选择 @@ -47,17 +40,35 @@ {{ totalCallNo }} 清空
- - - - + + + + +
    +
  • + 批量受理 +
  • +
  • + 驳回 +
  • +
  • + 修改地址 +
  • +
  • + 快递下单 +
  • +
+
+ [page]="{}" [res]="{ process: afterRes }" [loading]="false" [scroll]="{ x: '1200px',y:scrollY }" (change)="stChange($event)"> {{ item.vatappcode }}
diff --git a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.less b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.less deleted file mode 100644 index 370d3cae..00000000 --- a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.less +++ /dev/null @@ -1,7 +0,0 @@ -:host::ng-deep { - - .ant-tabs-tab-btn { - padding-left : 16px; - padding-right: 16px; - } -} \ No newline at end of file diff --git a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.ts b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.ts index cce37763..ad4c620e 100644 --- a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.ts +++ b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested.component.ts @@ -1,11 +1,11 @@ -import { query } from '@angular/animations'; -import { CurrencyPipe } from '@angular/common'; import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; -import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema } from '@delon/form'; +import { SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; import { delay } from 'rxjs/operators'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; import { PrintOrderModalComponent } from './print-order-modal/print-order-modal.component'; @@ -15,26 +15,33 @@ import { UpdateAddressModalComponent } from './update-address-modal/update-addre @Component({ selector: 'app-invoice-requested', templateUrl: './invoice-requested.component.html', - styleUrls: ['./invoice-requested.component.less', '../../../commom/less/box.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class InvoiceRequestedComponent { +export class InvoiceRequestedComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; @ViewChild('rejectModal', { static: false }) rejectModal!: any; resourceStatus: any = '1'; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); - - _$expand = false; + schema: SFSchema = this.initSF(); totalCallNo = 0; selectedRows: any[] = []; rejectReason = ''; - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} + constructor( + public service: TicketService, + private nzModalService: NzModalService, + private router: Router, + public searchDrawerService: SearchDrawerService + ) { + super(searchDrawerService); + } + + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { if (this.resourceStatus) { @@ -300,22 +307,6 @@ export class InvoiceRequestedComponent { } } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - // 导出 exprot() { this.service.exportStart({ ...this.sf?.value, pageSize: -1 }, this.service.$api_export_invoice_requested_page); @@ -357,9 +348,6 @@ export class InvoiceRequestedComponent { default: '', ui: { widget: 'select', - visibleIf: { - expand: (value: boolean) => value - }, asyncData: () => this.service.getEnterpriseProject() } }, @@ -369,9 +357,6 @@ export class InvoiceRequestedComponent { ui: { widget: 'select', placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - }, allowClear: true, asyncData: () => this.service.getNetworkFreightForwarder() }, @@ -379,12 +364,7 @@ export class InvoiceRequestedComponent { }, otherremarks: { type: 'string', - title: '其他需求', - ui: { - visibleIf: { - expand: (value: boolean) => value - } - } + title: '其他需求' }, createTime: { title: '申请时间', @@ -393,10 +373,7 @@ export class InvoiceRequestedComponent { widget: 'sl-from-to-search', format: 'yyyy-MM-dd', placeholder: '请选择', - nzShowTime: true, - visibleIf: { - expand: (value: boolean) => value - } + nzShowTime: true } as SFDateWidgetSchema }, isdetail: { @@ -409,10 +386,7 @@ export class InvoiceRequestedComponent { ], ui: { widget: 'select', - placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请选择' }, default: '' }, @@ -425,10 +399,7 @@ export class InvoiceRequestedComponent { searchDebounceTime: 300, searchLoadingText: '搜索中...', allowClear: true, - onSearch: (q: any) => this.service.getEnterpriceList({ enterpriseName: q }), - visibleIf: { - expand: (value: boolean) => value - } + onSearch: (q: any) => this.service.getEnterpriceList({ enterpriseName: q }) } } } diff --git a/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.html b/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.html index 1dff8e97..0514aa52 100644 --- a/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.html +++ b/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.html @@ -1,14 +1,4 @@ - - +
-
+ --> - -
- - -
+ [loading]="false" [scroll]="{ x: '1200px',y:scrollY }" (change)="stChange($event)"> {{ item.no }} 预览发票 @@ -63,13 +56,13 @@
-
- - - - - - -
+
+ + + + + + +
\ No newline at end of file diff --git a/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts b/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts index dd85d9da..2ffb2050 100644 --- a/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts +++ b/src/app/routes/ticket-management/components/invoiced-list/invoiced-list.component.ts @@ -1,27 +1,24 @@ -import { CurrencyPipe } from '@angular/common'; -import { Component, OnInit, ViewChild } from '@angular/core'; +import { Component, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; -import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SFSchema, SFDateWidgetSchema } from '@delon/form'; +import { SearchDrawerService } from '@shared'; import { NzModalService } from 'ng-zorro-antd/modal'; +import { BasicTableComponent } from 'src/app/routes/commom'; import { TicketService } from '../../services/ticket.service'; @Component({ selector: 'app-invoiced-list', templateUrl: './invoiced-list.component.html', - styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'] + styleUrls: ['../../../commom/less/commom-table.less'] }) -export class InvoicedListComponent implements OnInit { +export class InvoicedListComponent extends BasicTableComponent { @ViewChild('st', { static: true }) st!: STComponent; - @ViewChild('sf', { static: false }) - sf!: SFComponent; @ViewChild('logosticsLogsModal', { static: false }) logosticsLogsModal!: any; columns: STColumn[] = this.initST(); - searchSchema: SFSchema = this.initSF(); - - _$expand = false; + schema: SFSchema = this.initSF(); selectedRows: any[] = []; totalCallNo = 0; @@ -34,12 +31,21 @@ export class InvoicedListComponent implements OnInit { @ViewChild('requestedModal', { static: false }) requestedModal!: any; openInfo: any = { expresscompany: null, expressno: null }; - constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {} + constructor( + public service: TicketService, + private nzModalService: NzModalService, + private router: Router, + public searchDrawerService: SearchDrawerService + ) { + super(searchDrawerService); + } - ngOnInit(): void {} + search() { + this.st?.load(1); + } beforeReq = (requestOptions: STRequestOptions) => { - Object.assign(requestOptions.body,{sts: '3'}) + Object.assign(requestOptions.body, { sts: '3' }); if (this.sf) { Object.assign(requestOptions.body, { ...this.sf?.value, @@ -49,7 +55,7 @@ export class InvoicedListComponent implements OnInit { } }); } - return requestOptions ; + return requestOptions; }; stChange(e: STChange): void { @@ -167,22 +173,6 @@ export class InvoicedListComponent implements OnInit { }); } - /** - * 重置表单 - */ - resetSF() { - this.sf.reset(); - this._$expand = false; - } - - /** - * 伸缩查询条件 - */ - expandToggle() { - this._$expand = !this._$expand; - this.sf?.setValue('/expand', this._$expand); - } - private initSF(): SFSchema { return { properties: { @@ -220,20 +210,14 @@ export class InvoicedListComponent implements OnInit { widget: 'sl-from-to-search', format: 'yyyy-MM-dd', placeholder: '请选择', - nzShowTime: true, - visibleIf: { - expand: (value: boolean) => value - } + nzShowTime: true } as SFDateWidgetSchema }, artoname: { type: 'string', title: '购买人', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, ltdId: { @@ -243,9 +227,6 @@ export class InvoicedListComponent implements OnInit { widget: 'select', placeholder: '请选择', allowClear: true, - visibleIf: { - expand: (value: boolean) => value - }, asyncData: () => this.service.getNetworkFreightForwarder({}, true) }, default: '' @@ -254,10 +235,7 @@ export class InvoicedListComponent implements OnInit { type: 'string', title: '分票编号', ui: { - placeholder: '请输入', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请输入' } }, invoicetype: { @@ -269,10 +247,7 @@ export class InvoicedListComponent implements OnInit { ], ui: { widget: 'select', - placeholder: '请选择', - visibleIf: { - expand: (value: boolean) => value - } + placeholder: '请选择' }, default: '' }