添加故障处理 回库操作
This commit is contained in:
parent
951eac98d4
commit
56fa301651
@ -258,6 +258,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
children: [
|
||||
@ -428,6 +432,20 @@ export default {
|
||||
handleSpeedLimit() { // 限速指令
|
||||
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() {
|
||||
commitOperate(menuOperate.Common.collocation, { code: this.selected.code }, 0).then(({valid, operate})=>{
|
||||
|
@ -171,6 +171,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -154,6 +154,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -162,6 +162,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -131,6 +131,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -103,6 +103,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -103,6 +103,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -242,6 +242,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -243,6 +243,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -222,6 +222,10 @@ export default {
|
||||
{
|
||||
label: '连挂',
|
||||
handler: this.setLink
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
}
|
||||
],
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
const param = {
|
||||
|
@ -186,6 +186,10 @@ export default {
|
||||
{
|
||||
label: '连挂',
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
|
@ -265,6 +265,10 @@ export default {
|
||||
label: '驾驶至',
|
||||
handler: this.handleDriveTo
|
||||
},
|
||||
{
|
||||
label: '回库',
|
||||
handler: this.setInbound
|
||||
},
|
||||
{
|
||||
label: '切换驾驶模式',
|
||||
children: [
|
||||
@ -489,6 +493,20 @@ export default {
|
||||
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() {
|
||||
const group = this.$route.query.group;
|
||||
const param = {
|
||||
|
Loading…
Reference in New Issue
Block a user