This commit is contained in:
wangshiming
2021-12-08 15:40:46 +08:00
parent a299e56181
commit a6b9c6b07f
6 changed files with 78 additions and 60 deletions

View File

@ -121,7 +121,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
}
},
no1: {
dischargePlace: {
type: 'string',
title: '卸货地',
ui: {
@ -130,7 +130,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
}
},
no4: {
shipperAppUserName: {
type: 'string',
title: '货主',
ui: {
@ -139,7 +139,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
}
},
sex: {
auditStatus: {
title: '审核状态',
type: 'string',
enum: [
@ -155,7 +155,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
} as SFSelectWidgetSchema,
},
appId: {
enterpriseInfoName: {
type: 'string',
title: '网络货运人',
ui: {
@ -292,12 +292,12 @@ export class SupplyManagementVehicleComponent implements OnInit {
{
text: '货源审核',
click: (_record) => this.audit(_record, 1),
iif: item => item.status === 1,
// iif: item => item.auditStatus === 1,
},
{
text: '修改货源',
click: (_record) => this.amend(_record),
iif: item => item.status === 1 || item.status === 2,
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
},
{
text: '修改运费',
@ -305,17 +305,17 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
{
text: '取消货源',
iif: item => item.status === 1 || item.status === 2,
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
// click: (_record) => this.delOne(_record),
},
{
text: '再下一单',
// click: (_record) => this.editOne(_record),
click: (_record) => this.nextOrder(_record),
},
{
text: '重新指派',
click: (_record) => this.assignedCar(_record),
iif: item => item.status === 2,
// iif: item => item.auditStatus === 2,
},
],
},
@ -448,4 +448,9 @@ export class SupplyManagementVehicleComponent implements OnInit {
relativeTo: this.ar
})
}
nextOrder(item: any) {
this.router.navigate(['/supply-management/vehicle-amend', item.id], {
relativeTo: this.ar
})
}
}