diff --git a/src/app/routes/order-management/modal/vehicle/modify-captain/freight-people.component.less b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.less similarity index 100% rename from src/app/routes/order-management/modal/vehicle/modify-captain/freight-people.component.less rename to src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.less diff --git a/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts index 33e8abc7..f28e008d 100644 --- a/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts +++ b/src/app/routes/order-management/modal/vehicle/modify-captain/modify-captain.component.ts @@ -7,9 +7,7 @@ * @FilePath: \tms-obc-web\src\app\routes\order-management\modal\bulk\update-freight\update-freight.component.ts */ import { Component, Input, OnInit, ViewChild } from '@angular/core'; -import { - SFComponent, SFSchema, SFUISchema -} from '@delon/form'; +import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; import { NzMessageService } from 'ng-zorro-antd/message'; import { NzModalRef } from 'ng-zorro-antd/modal'; import { OrderManagementService } from '../../../services/order-management.service'; @@ -30,10 +28,15 @@ export class VehicleModifyCaptainComponent implements OnInit { @Input() data: any; - constructor(private modal: NzModalRef, private msgSrv: NzMessageService, public service: OrderManagementService, private service2: ShipperBaseService) {} + constructor( + private modal: NzModalRef, + private msgSrv: NzMessageService, + public service: OrderManagementService, + private service2: ShipperBaseService + ) {} ngOnInit(): void { - console.log(this.data) + console.log(this.data); this.initSF(); } initSF() { @@ -45,11 +48,11 @@ export class VehicleModifyCaptainComponent implements OnInit { widget: 'select', placeholder: '请选择', visibleIf: { - _$expand: (value: boolean) => value, + _$expand: (value: boolean) => value }, allowClear: true, - asyncData: () => this.service2.getNetworkFreightForwarder(), - }, + asyncData: () => this.service2.getNetworkFreightForwarder() + } }, required: ['enterpriseInfoName'] }; @@ -62,9 +65,7 @@ export class VehicleModifyCaptainComponent implements OnInit { } save(value: any): void { - - const params = { - }; + const params = {}; this.service.request(this.service.$api_get_insertFreightChangeWhole, params).subscribe((res: any) => { if (res) { @@ -78,6 +79,6 @@ export class VehicleModifyCaptainComponent implements OnInit { this.modal.destroy(); } search(value: any) { - console.log(value) + console.log(value); } }