From 17ce3dd48137edc42003a7d409b9d4da94493d5b Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Fri, 4 Mar 2022 15:14:03 +0800 Subject: [PATCH] edit --- .../invoice-detail/invoice-detail.component.ts | 4 +++- .../invoiced-list/invoiced-list.component.ts | 2 +- .../freight-config/freight-config.component.ts | 18 +++++++++--------- .../amap-poi-picker.component.ts | 2 -- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.ts b/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.ts index 6aaf5fb1..43a99ec8 100644 --- a/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.ts +++ b/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.ts @@ -38,9 +38,11 @@ export class InvoiceDetailComponent implements OnInit { routes: [] }; id: any = null; + type: any = 1; constructor(public service: TicketService, private route: ActivatedRoute) { this.isCanEdit = !!route.snapshot.queryParams.type; const expressno = route.snapshot.queryParams.expressno; + this.type = route.snapshot.queryParams.type; this.id = route.snapshot.params.id; this.loadInvoiceHeader(this.id); if (expressno) { @@ -156,7 +158,7 @@ export class InvoiceDetailComponent implements OnInit { width: 120, type: 'widget', className: 'text-right', - widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.billkpnotax }) } + widget: { type: 'currency-chy', params: ({ record }) => ({ value: this.type ==='2'?record.billkpmoney: record.billkpnotax }) } }, { title: '运输费', 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 72b2c26b..9d4c337e 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 @@ -242,7 +242,7 @@ export class InvoicedListComponent implements OnInit { text: '查看明细', click: item => this.router.navigate(['/ticket/invoice-list/detail/' + item.id], { - queryParams: { expressno: item.expressno } + queryParams: { expressno: item.expressno, type: 2 } }) }, { diff --git a/src/app/routes/usercenter/components/freight/freight-config/freight-config.component.ts b/src/app/routes/usercenter/components/freight/freight-config/freight-config.component.ts index 6f115213..c9fa67f7 100644 --- a/src/app/routes/usercenter/components/freight/freight-config/freight-config.component.ts +++ b/src/app/routes/usercenter/components/freight/freight-config/freight-config.component.ts @@ -270,21 +270,21 @@ export class FreightConfigComponent implements OnInit { { title: '货源单费率', className: 'text-right', - index: 'contractSurchargeRatio', - width: 130, - format: item => `${item.contractSurchargeRatio}%` - }, - { - title: '合同单费率', - className: 'text-right', index: 'goodsSurchargeRatio', width: 130, format: item => `${item.goodsSurchargeRatio}%` }, + { + title: '合同单费率', + className: 'text-right', + index: 'contractSurchargeRatio', + width: 130, + format: item => `${item.contractSurchargeRatio}%` + }, { title: '合同单业务量(元)', index: 'contractQuota', - width: 160, + width: 170, type: 'widget', className: 'text-right', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.contractQuota }) } @@ -292,7 +292,7 @@ export class FreightConfigComponent implements OnInit { { title: '货源单业务量(元)', index: 'goodsQuota', - width: 160, + width: 170, type: 'widget', className: 'text-right', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.goodsQuota }) } diff --git a/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts b/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts index 1394a6ca..3dd17484 100644 --- a/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts +++ b/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts @@ -86,8 +86,6 @@ export class AmapPoiPickerComponent implements OnInit { }); this.aMap.on('click', (e: any) => { - console.log(e); - this.selectedPOI(e.lnglat); }); })