添加故障处理 回库操作

This commit is contained in:
fan 2021-08-12 13:38:59 +08:00
parent 951eac98d4
commit 56fa301651
12 changed files with 216 additions and 0 deletions

View File

@ -258,6 +258,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -428,6 +432,20 @@ export default {
handleSpeedLimit() { // handleSpeedLimit() { //
this.$refs.speedLimit.doShow(this.selected); this.$refs.speedLimit.doShow(this.selected);
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleDriveTo() { handleDriveTo() {
commitOperate(menuOperate.Common.collocation, { code: this.selected.code }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.collocation, { code: this.selected.code }, 0).then(({valid, operate})=>{

View File

@ -171,6 +171,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -346,6 +350,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -154,6 +154,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -317,6 +321,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -162,6 +162,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -330,6 +334,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -131,6 +131,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -308,6 +312,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -103,6 +103,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -295,6 +299,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -103,6 +103,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -294,6 +298,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -242,6 +242,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -406,6 +410,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -243,6 +243,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -406,6 +410,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -222,6 +222,10 @@ export default {
{ {
label: '连挂', label: '连挂',
handler: this.setLink handler: this.setLink
},
{
label: '回库',
handler: this.setInbound
} }
], ],
menuDirective: [ menuDirective: [
@ -376,6 +380,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
nextStation() { nextStation() {
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {

View File

@ -186,6 +186,10 @@ export default {
{ {
label: '连挂', label: '连挂',
handler: this.setLink handler: this.setLink
},
{
label: '回库',
handler: this.setInbound
} }
] ]
} }
@ -459,6 +463,20 @@ export default {
} }
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
// //
handleTurnDirection() { handleTurnDirection() {
const group = this.$route.query.group; const group = this.$route.query.group;

View File

@ -265,6 +265,10 @@ export default {
label: '驾驶至', label: '驾驶至',
handler: this.handleDriveTo handler: this.handleDriveTo
}, },
{
label: '回库',
handler: this.setInbound
},
{ {
label: '切换驾驶模式', label: '切换驾驶模式',
children: [ children: [
@ -489,6 +493,20 @@ export default {
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
}); });
}, },
//
setInbound() {
const group = this.$route.query.group;
const param = {
commandType: 'Inbound',
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
params: {}
};
commitTrainSend(group, param).then(({valid, operate}) => {
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
handleApplyAmMode() { handleApplyAmMode() {
const group = this.$route.query.group; const group = this.$route.query.group;
const param = { const param = {