批量审核

This commit is contained in:
wangshiming
2022-01-17 17:05:49 +08:00
parent c34f6ffd63
commit d93fd449af
14 changed files with 194 additions and 96 deletions

View File

@ -37,7 +37,7 @@ export class SupplyManagementBulkComponent implements OnInit {
receivedQuantity: 0,
stayQuantity: 0
};
constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,public service2: ShipperBaseService) { }
constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,public shipperservice: ShipperBaseService) { }
ngOnInit(): void {
this.initSF();
@ -53,10 +53,33 @@ export class SupplyManagementBulkComponent implements OnInit {
if(this.resourceStatus) {
a.resourceStatus = this.resourceStatus
}
return {
const params: any = Object.assign({}, this.sf?.value || {});
delete params._$expand;
return {
...a,
...this.sf?.value,
};
...params,
releaseTime: {
start: this.sf?.value?.releaseTime?.[0] || '',
end: this.sf?.value?.releaseTime?.[1] || '',
},
deadlineTime: {
start: this.sf?.value?.deadlineTime?.[0] || '',
end: this.sf?.value?.deadlineTime?.[1] || '',
},
};
// const a:any = {};
// if(this.resourceStatus) {
// a.resourceStatus = this.resourceStatus
// }
// return {
// ...a,
// ...this.sf?.value,
// createTime: {
// start: this.sf.value.createTime?.[0] || null,
// end: this.sf.value.createTime?.[1] || null,
// }
// };
}
search() {
this.st?.load(1);
@ -108,7 +131,7 @@ export class SupplyManagementBulkComponent implements OnInit {
},
} as SFSelectWidgetSchema,
},
createTime: {
releaseTime: {
title: '发布时间',
type: 'string',
ui: {
@ -142,7 +165,7 @@ export class SupplyManagementBulkComponent implements OnInit {
_$expand: (value: boolean) => value,
},
allowClear: true,
asyncData: () => this.service2.getNetworkFreightForwarder(),
asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
},
},
shipperAppUserId: {