车辆对接
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-14 14:03:07
|
||||
* @LastEditTime: 2021-12-30 11:13:09
|
||||
* @LastEditTime: 2021-12-30 16:57:01
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @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 { STColumn, STComponent } from '@delon/abc/st';
|
||||
import {SFComponent, SFNumberWidgetSchema, 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';
|
||||
import { ShipperBaseService } from '@shared';
|
||||
|
||||
@Component({
|
||||
selector: 'app-order-management-vehicle-modify-captain',
|
||||
@ -20,52 +20,70 @@ import { ShipperBaseService } from '@shared';
|
||||
})
|
||||
export class VehicleModifyCaptainComponent implements OnInit {
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
schema: SFSchema = {};
|
||||
ui: SFUISchema = {};
|
||||
|
||||
Columns: STColumn[] =[]
|
||||
aggreechecked = false;
|
||||
|
||||
@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, ) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log(this.data);
|
||||
console.log(this.data)
|
||||
this.initSF();
|
||||
this.initST();
|
||||
}
|
||||
initSF() {
|
||||
this.schema = {
|
||||
enterpriseInfoName: {
|
||||
type: 'string',
|
||||
title: '网络货运人',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
},
|
||||
allowClear: true,
|
||||
asyncData: () => this.service2.getNetworkFreightForwarder()
|
||||
}
|
||||
properties: {
|
||||
enterpriseInfoName: {
|
||||
type: 'string',
|
||||
title: '车队长手机号',
|
||||
maxLength: 11
|
||||
},
|
||||
},
|
||||
required: ['enterpriseInfoName']
|
||||
};
|
||||
this.ui = {
|
||||
'*': {
|
||||
spanLabelFixed: 100,
|
||||
spanLabelFixed: 130,
|
||||
grid: { span: 16 }
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
get reParams() {
|
||||
return {
|
||||
...this.sf?.value,
|
||||
};
|
||||
}
|
||||
initST() {
|
||||
this.Columns = [
|
||||
{ title: '司机头像', index: 'auditStatusLabel',width: '120px', },
|
||||
{ title: '司机姓名', index: 'auditStatusLabel' ,width: '120px',},
|
||||
{
|
||||
title: '实名认证状态',
|
||||
className: 'text-center',
|
||||
index: 'settlementBasis',
|
||||
type: 'badge',
|
||||
width: '120px',
|
||||
badge: {
|
||||
'1': { text: '待申请', color: 'warning' },
|
||||
'2': { text: '已支付', color: 'success' },
|
||||
'3': { text: '已拒绝', color: 'warning' },
|
||||
'4': { text: '申请中', color: 'warning' },
|
||||
},
|
||||
},
|
||||
{ title: '收款账户',width: '200px', render: 'shipperAppUserId' },
|
||||
{ title: '操作', width: '120px',},
|
||||
|
||||
];
|
||||
}
|
||||
save(value: any): void {
|
||||
const params = {};
|
||||
console.log(this.st?._data)
|
||||
const params = {
|
||||
};
|
||||
|
||||
this.service.request(this.service.$api_get_insertFreightChangeWhole, params).subscribe((res: any) => {
|
||||
if (res) {
|
||||
@ -78,7 +96,5 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
close(): void {
|
||||
this.modal.destroy();
|
||||
}
|
||||
search(value: any) {
|
||||
console.log(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user