This commit is contained in:
wangshiming
2021-12-13 10:43:03 +08:00
parent d13b27e76b
commit cc7f7c7649
23 changed files with 572 additions and 354 deletions

View File

@ -5,44 +5,16 @@ import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
import { NzModalService } from 'ng-zorro-antd/modal';
import { VehicleService } from '../../../vehicle/services/vehicle.service';
@Component({
selector: 'app-Freight-components-list',
selector: 'app-Vehicle-components-audit',
templateUrl: './audit.component.html',
})
export class VehicleComponentsListComponent implements OnInit {
export class VehicleComponentsAuditComponent implements OnInit {
_$expand = false;
url = `/rule?_allow_anonymous=true`;
ui!: SFUISchema;
schema!: SFSchema;
columns!: STColumn[];
datalist = [
{
storeName: '企业名称',
contactsName: '152746565',
enterpriseName: '湖南',
unifiedSocialCreditCode: '45454',
contactsPhone: '*97889461561',
effectiveDateStr: '废弃eww',
enStatusStr2: '正常',
enStatusStr3: '正常',
unifiedSocialCreditCode3: '常用服务',
unifiedSocialCreditCode2: '正常',
tenantId: 1
},
{
storeName: '企业名称',
contactsName: '152746565',
enterpriseName: '湖南',
unifiedSocialCreditCode: '45454',
contactsPhone: '*97889461561',
effectiveDateStr: '废弃eww',
enStatusStr2: '正常',
enStatusStr3: '正常',
unifiedSocialCreditCode3: '常用服务',
unifiedSocialCreditCode2: '正常',
tenantId: 2
},
]
@ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent;
@ -96,32 +68,34 @@ export class VehicleComponentsListComponent implements OnInit {
hidden: true,
},
},
storeName: { title: '车牌号', type: 'string', ui: { showRequired: false } },
contactsName: {
title: '车型车长载重',
carNo: { title: '车牌号', type: 'string', ui: { showRequired: false } },
carNoColor: {
type: 'string',
ui: {
showRequired: false,
},
},
enStatus: {
type: 'string',
title: '运营状态',
title: '车牌颜色',
enum: [
{ label: '全部', value: '' },
{ label: '正常', value: 0 },
{ label: '冻结', value: 1 },
{ label: '废弃', value: 2 },
],
default: '',
ui: {
widget: 'select',
},
},
enStatus12: {
isSelf: {
type: 'string',
title: '车牌颜色',
title: '是否挂靠',
enum: [
{ label: '否', value: 0 },
{ label: '是', value: 1 },
],
ui: {
widget: 'select',
},
},
saveUser: {
type: 'string',
title: '录入人员',
enum: [
{ label: '全部', value: '' },
{ label: '正常', value: 0 },
@ -136,14 +110,16 @@ export class VehicleComponentsListComponent implements OnInit {
},
},
},
enStatus2: {
approvalStatus: {
type: 'string',
title: '到期状态',
title: '审核状态',
enum: [
{ label: '全部', value: '' },
{ label: '正常', value: 0 },
{ label: '冻结', value: 1 },
{ label: '废弃', value: 2 },
{ label: '未提交', value: '-1' },
{ label: '草稿', value: 0},
{ label: '待审核', value: 10 },
{ label: '审核通过', value: 20 },
{ label: '驳回', value: 30 },
{ label: '证件过期', value: 40 },
],
default: '',
ui: {
@ -161,40 +137,30 @@ export class VehicleComponentsListComponent implements OnInit {
initST() {
this.columns = [
// { title: '', type: 'checkbox', className: 'text-center' },
{ title: '车牌号', className: 'text-center', index: 'storeName' },
{ title: '车牌颜色', className: 'text-center', index: 'contactsName' },
{ title: '车型-车长-载重', className: 'text-center', render: 'enterpriseName' },
{ title: '承运总单量', className: 'text-center', index: 'unifiedSocialCreditCode' },
{ title: '运营状态', className: 'text-center', index: 'effectiveDateStr',
type: 'badge',
badge: {
: { text: '空闲', color: 'success' },
: { text: '运输中', color: 'warning' },
: { text: '废弃', color: 'default' },
},
},
{ title: '车牌号', className: 'text-center', index: 'carNo' },
{ title: '车牌颜色', className: 'text-center', index: 'carNoColor' },
{ title: '车型-车长-载重', className: 'text-center', render: 'carLength' },
{ title: '是否挂靠', className: 'text-center', render: 'isSelf' },
{ title: '所有人', className: 'text-center', index: 'carOwner' },
{ title: '录入人员', className: 'text-center', index: 'saveUser', },
{
title: '行驶证到期状态',
title: '审核状态',
className: 'text-center',
index: 'enStatusStr2',
type: 'badge',
badge: {
: { text: '正常', color: 'success' },
: { text: '冻结', color: 'warning' },
: { text: '废弃', color: 'default' },
},
},
{
title: '道运证到期状态',
className: 'text-center',
index: 'enStatusStr3',
type: 'badge',
badge: {
: { text: '正常', color: 'success' },
: { text: '冻结', color: 'warning' },
: { text: '废弃', color: 'default' },
10: { text: '待审核', color: 'default' },
20: { text: '审核通过', color: 'success' },
30: { text: '驳回', color: 'warning' },
// { label: '未提交', value: '-1' },
// { label: '草稿', value: 0},
// { label: '待审核', value: 10 },
// { label: '审核通过', value: 20 },
// { label: '驳回', value: 30 },
// { label: '证件过期', value: 40 },
},
},
{ title: '申请时间', className: 'text-center', render: 'isSelf' },
{
title: '操作',
width: '170px',