This commit is contained in:
wangshiming
2021-12-06 14:57:20 +08:00
parent 72708a6f91
commit 1c5643b7e9
8 changed files with 872 additions and 17 deletions

View File

@ -1,6 +1,6 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { STColumn, STComponent } from '@delon/abc/st';
import { SFComponent, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
import { ModalHelper, _HttpClient } from '@delon/theme';
import { NzModalService } from 'ng-zorro-antd/modal';
import { map } from 'rxjs/operators';
@ -73,8 +73,8 @@ export class SupplyManagementBulkComponent implements OnInit {
type: 'string',
title: '卸货地'
},
sex: {
title: '货物类型',
sex2: {
title: '服务类型',
type: 'string',
default: 0,
enum: [
@ -90,9 +90,50 @@ export class SupplyManagementBulkComponent implements OnInit {
},
} as SFSelectWidgetSchema,
},
sex: {
title: '结算依据',
type: 'string',
default: 0,
enum: [
{ label: '未知', value: 0 },
{ label: '男', value: 1 },
{ label: '女', value: 2 },
{ label: '保密', value: 3 },
],
ui: {
widget: 'select',
visibleIf: {
_$expand: (value: boolean) => value,
},
} as SFSelectWidgetSchema,
},
createTime: {
title: '发布时间',
type: 'string',
ui: {
widget: 'date',
mode: 'range',
format: 'yyyy-MM-dd',
visibleIf: {
_$expand: (value: boolean) => value,
},
} as SFDateWidgetSchema,
},
createTime2: {
title: '截止时间',
type: 'string',
ui: {
widget: 'date',
mode: 'range',
format: 'yyyy-MM-dd',
visibleIf: {
_$expand: (value: boolean) => value,
},
} as SFDateWidgetSchema,
},
appId: {
type: 'string',
title: '录单员',
title: '网络货运人',
ui: {
widget: 'select',
placeholder: '请选择',
@ -103,10 +144,19 @@ export class SupplyManagementBulkComponent implements OnInit {
asyncData: () => this.getCatalogueMember(),
},
},
no4: {
type: 'string',
title: '货主',
ui: {
visibleIf: {
_$expand: (value: boolean) => value,
},
}
},
},
type: 'object',
};
this.ui = { '*': { spanLabelFixed: 80, grid: { span: 8, gutter: 4 } } };
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
}
initSFFre() {
this.freightSchema = {
@ -202,7 +252,7 @@ export class SupplyManagementBulkComponent implements OnInit {
title: '操作',
fixed: 'right',
width: '200px',
className: 'text-center',
className: 'text-left',
buttons: [
{
text: '货源审核',