fix bug
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user