车辆对接

This commit is contained in:
wangshiming
2022-01-10 13:32:17 +08:00
parent 11c5ab47b8
commit a0c7db29a4
22 changed files with 600 additions and 142 deletions

View File

@ -26,9 +26,10 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
editId = false;
columns: STColumn[] = [
{ title: '客户名称', index: 'customerName' },
{ title: '客户简称', index: 'customerShortName' },
{ title: '客户编码', index: 'customerCode' },
{ title: '运单编号', index: 'customerName' },
{ title: '司机', index: 'customerShortName' },
{ title: '异常类型', index: 'customerCode' },
{ title: '异常内容', index: 'customerCode' },
{
title: '操作',
buttons: [
@ -51,7 +52,6 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
ngOnInit(): void {
this.initSF()
this.initSFFre()
}
stChange(e: STChange): void {
@ -83,50 +83,26 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
_$expand: { type: 'boolean', ui: { hidden: true } },
customerName: {
type: 'string',
title: '客户名称',
title: '运单编号',
ui: { placeholder: '请输入' }
},
customerShortName: {
type: 'string',
title: '客户简称',
title: '司机',
ui: { placeholder: '请输入' }
},
customerCode: {
type: 'string',
title: '客户编码',
title: '异常类型',
ui: { placeholder: '请输入',
visibleIf: {
_$expand: (value: boolean) => value
} }
}
},
}
};
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
}
initSFFre() {
this.addSchema = {
properties: {
customerName: {
type: 'string',
title: '客户名称',
ui: { placeholder: '请输入' }
},
customerShortName: {
type: 'string',
title: '客户简称',
ui: { placeholder: '请输入' }
},
customerCode: {
type: 'string',
title: '客户编码',
ui: { placeholder: '请输入' }
},
},
required: ['customerName', 'customerShortName', 'customerCode']
};
this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
}
roleAction(value: any,item?: any) {
// this.service.request(this.service.$api_get_crmCustomer, {id: value.id}).subscribe((res: any) => {