fix bug
This commit is contained in:
@ -849,13 +849,19 @@ resourceStatus: any;
|
|||||||
}
|
}
|
||||||
userAction() {
|
userAction() {
|
||||||
let params: any[] = [];
|
let params: any[] = [];
|
||||||
|
if (this.selectedRows.length <= 0) {
|
||||||
|
this.service.msgSrv.warning("请选择需要签收的订单!")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let flag = true;
|
||||||
this.selectedRows.forEach(item => {
|
this.selectedRows.forEach(item => {
|
||||||
|
if(item.billStatus !=='4'){
|
||||||
|
this.service.msgSrv.warning("存在非待签收状态订单,无法签收!")
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
params.push(item.id);
|
params.push(item.id);
|
||||||
});
|
});
|
||||||
if(params.length === 0) {
|
if(!flag) return;
|
||||||
this.service.msgSrv.error('请先选择订单!')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.service.request(this.service.$api_get_batchSignWholeOrder, params).subscribe(res => {
|
this.service.request(this.service.$api_get_batchSignWholeOrder, params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user