From 56fa301651545bd2264aa9486e617253cc2a1b69 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 12 Aug 2021 13:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=85=E9=9A=9C=E5=A4=84?= =?UTF-8?q?=E7=90=86=20=E5=9B=9E=E5=BA=93=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/beijing_01/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/chengdu_01/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/chengdu_03/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/foshan_01/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/fuzhou_01/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/haerbin_01/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/nanjing_02/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/ningbo_01/menus/menuTrain.vue | 18 ++++++++++++++++++ .../theme/ningbo_03/menus/menuTrain.vue | 18 ++++++++++++++++++ src/jmapNew/theme/race_01/menus/menuTrain.vue | 18 ++++++++++++++++++ src/jmapNew/theme/xian_01/menus/menuTrain.vue | 18 ++++++++++++++++++ src/jmapNew/theme/xian_02/menus/menuTrain.vue | 18 ++++++++++++++++++ 12 files changed, 216 insertions(+) diff --git a/src/jmapNew/theme/beijing_01/menus/menuTrain.vue b/src/jmapNew/theme/beijing_01/menus/menuTrain.vue index ee36f2c7c..ae11384e9 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuTrain.vue @@ -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})=>{ diff --git a/src/jmapNew/theme/chengdu_01/menus/menuTrain.vue b/src/jmapNew/theme/chengdu_01/menus/menuTrain.vue index 0f75cc538..d184746fa 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue b/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue index 910290b29..d699e4644 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/foshan_01/menus/menuTrain.vue b/src/jmapNew/theme/foshan_01/menus/menuTrain.vue index 97446c4fd..36796cbb1 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuTrain.vue b/src/jmapNew/theme/fuzhou_01/menus/menuTrain.vue index 88a81cca8..45ad31629 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/haerbin_01/menus/menuTrain.vue b/src/jmapNew/theme/haerbin_01/menus/menuTrain.vue index 24620e8f8..6b70dd111 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/nanjing_02/menus/menuTrain.vue b/src/jmapNew/theme/nanjing_02/menus/menuTrain.vue index 01011c502..1c9c7792f 100644 --- a/src/jmapNew/theme/nanjing_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/nanjing_02/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue b/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue index 6ab721aa2..3aacb8878 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/ningbo_03/menus/menuTrain.vue b/src/jmapNew/theme/ningbo_03/menus/menuTrain.vue index 02edddab7..ff8c08cf4 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuTrain.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/race_01/menus/menuTrain.vue b/src/jmapNew/theme/race_01/menus/menuTrain.vue index 378f60745..981615de4 100644 --- a/src/jmapNew/theme/race_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/race_01/menus/menuTrain.vue @@ -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 = { diff --git a/src/jmapNew/theme/xian_01/menus/menuTrain.vue b/src/jmapNew/theme/xian_01/menus/menuTrain.vue index 5d71aa020..8fb9ff040 100644 --- a/src/jmapNew/theme/xian_01/menus/menuTrain.vue +++ b/src/jmapNew/theme/xian_01/menus/menuTrain.vue @@ -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; diff --git a/src/jmapNew/theme/xian_02/menus/menuTrain.vue b/src/jmapNew/theme/xian_02/menus/menuTrain.vue index 0d7b19819..548714e1b 100644 --- a/src/jmapNew/theme/xian_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/xian_02/menus/menuTrain.vue @@ -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 = {