diff --git a/src/app/routes/order-management/components/vehicle/vehicle.component.ts b/src/app/routes/order-management/components/vehicle/vehicle.component.ts index ac30e44e..eb7ed520 100644 --- a/src/app/routes/order-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/order-management/components/vehicle/vehicle.component.ts @@ -849,13 +849,19 @@ resourceStatus: any; } userAction() { let params: any[] = []; + if (this.selectedRows.length <= 0) { + this.service.msgSrv.warning("请选择需要签收的订单!") + return; + } + let flag = true; this.selectedRows.forEach(item => { + if(item.billStatus !=='4'){ + this.service.msgSrv.warning("存在非待签收状态订单,无法签收!") + flag = false; + } params.push(item.id); }); - if(params.length === 0) { - this.service.msgSrv.error('请先选择订单!') - return - } + if(!flag) return; this.service.request(this.service.$api_get_batchSignWholeOrder, params).subscribe(res => { if (res) { console.log(res);