edit
This commit is contained in:
@ -7,9 +7,7 @@
|
|||||||
* @FilePath: \tms-obc-web\src\app\routes\order-management\modal\bulk\update-freight\update-freight.component.ts
|
* @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 { Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||||
import {
|
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
|
||||||
SFComponent, SFSchema, SFUISchema
|
|
||||||
} from '@delon/form';
|
|
||||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||||
import { NzModalRef } from 'ng-zorro-antd/modal';
|
import { NzModalRef } from 'ng-zorro-antd/modal';
|
||||||
import { OrderManagementService } from '../../../services/order-management.service';
|
import { OrderManagementService } from '../../../services/order-management.service';
|
||||||
@ -30,10 +28,15 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
|||||||
@Input()
|
@Input()
|
||||||
data: any;
|
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 {
|
ngOnInit(): void {
|
||||||
console.log(this.data)
|
console.log(this.data);
|
||||||
this.initSF();
|
this.initSF();
|
||||||
}
|
}
|
||||||
initSF() {
|
initSF() {
|
||||||
@ -45,11 +48,11 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
|||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
asyncData: () => this.service2.getNetworkFreightForwarder(),
|
asyncData: () => this.service2.getNetworkFreightForwarder()
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
required: ['enterpriseInfoName']
|
required: ['enterpriseInfoName']
|
||||||
};
|
};
|
||||||
@ -62,9 +65,7 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
save(value: any): void {
|
save(value: any): void {
|
||||||
|
const params = {};
|
||||||
const params = {
|
|
||||||
};
|
|
||||||
|
|
||||||
this.service.request(this.service.$api_get_insertFreightChangeWhole, params).subscribe((res: any) => {
|
this.service.request(this.service.$api_get_insertFreightChangeWhole, params).subscribe((res: any) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -78,6 +79,6 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
|||||||
this.modal.destroy();
|
this.modal.destroy();
|
||||||
}
|
}
|
||||||
search(value: any) {
|
search(value: any) {
|
||||||
console.log(value)
|
console.log(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user