|
@@ -316,6 +316,7 @@ export default {
|
|
queryParams: initQueryParams({}),
|
|
queryParams: initQueryParams({}),
|
|
hasTask: true,
|
|
hasTask: true,
|
|
assignTask:{},
|
|
assignTask:{},
|
|
|
|
+ currentOrderId:"",
|
|
RFIDParams: {
|
|
RFIDParams: {
|
|
url: "192.168.11.130",
|
|
url: "192.168.11.130",
|
|
port: "102",
|
|
port: "102",
|
|
@@ -442,10 +443,11 @@ export default {
|
|
this.currentStationName = this.options[0].name
|
|
this.currentStationName = this.options[0].name
|
|
taskMgrApi.getStationTasks({ resourceId : this.currentStationId,type : "0" }).then((res) => {
|
|
taskMgrApi.getStationTasks({ resourceId : this.currentStationId,type : "0" }).then((res) => {
|
|
res = res.data;
|
|
res = res.data;
|
|
- if (res.isSuccess) {
|
|
|
|
- // if (res.data.length > 0) {
|
|
|
|
|
|
+ if (res.isSuccess) {
|
|
this.taskData = res.data;
|
|
this.taskData = res.data;
|
|
- // }
|
|
|
|
|
|
+ if(this.taskData.length>0){
|
|
|
|
+ this.currentOrderId = this.taskData[0].orderId
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -507,7 +509,7 @@ export default {
|
|
message: "确认是否未打卡",
|
|
message: "确认是否未打卡",
|
|
type: 'warning'
|
|
type: 'warning'
|
|
});
|
|
});
|
|
- return false;
|
|
|
|
|
|
+ return this.navigator();
|
|
}
|
|
}
|
|
if(this.assignTask.endTime){
|
|
if(this.assignTask.endTime){
|
|
this.$message({
|
|
this.$message({
|
|
@@ -627,7 +629,7 @@ export default {
|
|
},
|
|
},
|
|
navigator() {
|
|
navigator() {
|
|
this.$store.dispatch('tagsView/delView', this.$route).then(res => {
|
|
this.$store.dispatch('tagsView/delView', this.$route).then(res => {
|
|
- this.$router.push({ path: '/machiningClient/scheduleTask', query: {userId: this.$store.state.account.user.id}}) //带参跳转
|
|
|
|
|
|
+ this.$router.push({ path: '/machiningClient/scheduleTask', query: {userId: this.$store.state.account.user.id, orderId:this.currentOrderId}}) //带参跳转
|
|
})
|
|
})
|
|
},
|
|
},
|
|
},
|
|
},
|