|
|
@ -353,13 +353,13 @@ import { Exception } from 'sass'; |
|
|
|
{ |
|
|
|
column: "status", |
|
|
|
action: "in", |
|
|
|
value: '1,2', |
|
|
|
value: '1,2,3', |
|
|
|
}, |
|
|
|
{ |
|
|
|
column: "accept_user_id", |
|
|
|
action: "==", |
|
|
|
value: this.$store.state.user.id |
|
|
|
} |
|
|
|
// { |
|
|
|
// column: "accept_user_id", |
|
|
|
// action: "==", |
|
|
|
// value: this.$store.state.user.id |
|
|
|
// } |
|
|
|
// { |
|
|
|
// column: "fromLocationCode", |
|
|
|
// action: "==", |
|
|
@ -384,11 +384,24 @@ import { Exception } from 'sass'; |
|
|
|
list.push(item) |
|
|
|
} |
|
|
|
}) |
|
|
|
if (list.length > 1) { |
|
|
|
this.$refs.jobList.openList(list) |
|
|
|
} else { |
|
|
|
this.selectItem(list[0]) |
|
|
|
if(list.length==1){ |
|
|
|
//待处理 |
|
|
|
if(list[0].status==1){ |
|
|
|
this.selectItem(list[0]) |
|
|
|
}else if(list[0].status==2){ |
|
|
|
//进行中 |
|
|
|
if(list[0].acceptUserId==this.$store.state.user.id){ |
|
|
|
this.selectItem(list[0]) |
|
|
|
}else { |
|
|
|
this.showMessage("该任务已经被["+list[0].acceptUserName+"]承接"+"<br>任务号["+list[0].number+"]扫描["+result.scanMessage+"]") |
|
|
|
} |
|
|
|
}else if(list[0].status==3){ |
|
|
|
this.showMessage("该任务已经完成<br>承接人["+list[0].acceptUserName+"]<br>任务号["+list[0].number+"]扫描["+result.scanMessage+"]") |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.showMessage("查询到多条任务<br>"+"扫描["+result.scanMessage+"]") |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
this.showMessage("未查找到任务<br>"+"扫描["+result.scanMessage+"]") |
|
|
|
} |
|
|
|