批量审核
This commit is contained in:
@ -1,14 +1,16 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-14 14:03:07
|
||||
* @LastEditTime: 2022-01-05 16:27:22
|
||||
* @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
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-30 14:45:39
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:23:11
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-captain\\modify-captain.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import {SFComponent, SFNumberWidgetSchema, 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';
|
||||
@ -23,16 +25,16 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
schema: SFSchema = {};
|
||||
ui: SFUISchema = {};
|
||||
Columns: STColumn[] =[]
|
||||
Columns: STColumn[] = [];
|
||||
aggreechecked = false;
|
||||
dataList: any =[]
|
||||
dataList: any = [];
|
||||
data: any;
|
||||
bankData: any;
|
||||
|
||||
constructor(private modal: NzModalRef, private msgSrv: NzMessageService, public service: OrderManagementService, ) {}
|
||||
constructor(private modal: NzModalRef, private msgSrv: NzMessageService, public service: OrderManagementService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log(this.data)
|
||||
console.log(this.data);
|
||||
this.initSF();
|
||||
this.initST();
|
||||
}
|
||||
@ -43,7 +45,7 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
type: 'string',
|
||||
title: '车队长手机号',
|
||||
maxLength: 11
|
||||
},
|
||||
}
|
||||
},
|
||||
required: ['mobile']
|
||||
};
|
||||
@ -56,9 +58,9 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
}
|
||||
initST() {
|
||||
this.Columns = [
|
||||
{ title: '司机头像', render: 'avatar',width: '120px', },
|
||||
{ title: '司机姓名', index: 'name' ,width: '120px',},
|
||||
{
|
||||
{ title: '司机头像', render: 'avatar', width: '120px' },
|
||||
{ title: '司机姓名', index: 'name', width: '120px' },
|
||||
{
|
||||
title: '实名认证状态',
|
||||
className: 'text-center',
|
||||
index: 'certificationStatus',
|
||||
@ -68,11 +70,11 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
'-1': { text: '未提交', color: 'warning' },
|
||||
'0': { text: '待审核', color: 'warning' },
|
||||
'1': { text: '通过', color: 'success' },
|
||||
'2': { text: '驳回', color: 'error' },
|
||||
},
|
||||
'2': { text: '驳回', color: 'error' }
|
||||
}
|
||||
},
|
||||
{ title: '收款账户',width: '200px', render: 'bankList' },
|
||||
{
|
||||
{ title: '收款账户', width: '200px', render: 'bankList' },
|
||||
{
|
||||
title: '操作',
|
||||
width: '120px',
|
||||
className: 'text-center',
|
||||
@ -80,19 +82,18 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
{
|
||||
text: '设置',
|
||||
click: item => {
|
||||
this.set(item)
|
||||
this.set(item);
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
];
|
||||
}
|
||||
set(value: any): void {
|
||||
console.log(this.st?._data)
|
||||
console.log(this.data)
|
||||
console.log(value)
|
||||
console.log(this.bankData)
|
||||
];
|
||||
}
|
||||
set(value: any): void {
|
||||
console.log(this.st?._data);
|
||||
console.log(this.data);
|
||||
console.log(value);
|
||||
console.log(this.bankData);
|
||||
const params = {
|
||||
billIds: this.data?.ids,
|
||||
carCaptainId: value.id,
|
||||
@ -110,12 +111,12 @@ export class VehicleModifyCaptainComponent implements OnInit {
|
||||
initDate() {
|
||||
const params = {
|
||||
fetchBank: 1,
|
||||
...this.sf?.value,
|
||||
...this.sf?.value
|
||||
};
|
||||
this.service.request(this.service.$api_get_getCarCaptainByMobile, params).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
console.log(res);
|
||||
if (res) {
|
||||
this.dataList = [res]
|
||||
this.dataList = [res];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user