diff --git a/src/components/ControllerTabs.vue b/src/components/ControllerTabs.vue index b37c776..f25054b 100644 --- a/src/components/ControllerTabs.vue +++ b/src/components/ControllerTabs.vue @@ -501,7 +501,7 @@ export default { } let res = await this.questAss(this.currentOrder.id, 'shipment_status', '已发货')// 订单改为发货状态 并更新订单列表 if (res.data.status === 1) { - res = await this.$store.dispatch('fetchLockSite', { id: this.currentOrder.receive_site_id, runing: newRuning })// 航线注册飞机 锁定送餐点 + res = await this.$store.dispatch('fetchLockSite', { id: this.currentOrder.receive_site_id, shop_id: this.plane.shop_id, plane_id: this.plane.id, runing: newRuning })// 航线注册飞机 锁定送餐点 if (res.data.status === 1) { this.publishFun(`{"questAss":${routeData}}`)// 发送航点信息主题 this.speakText('提交任务,注册航线。') @@ -652,7 +652,9 @@ export default { }) } // 主动获取飞机状态 - this.publishFun('{getPlaneState:1}') + if (this.plane) { + this.publishFun('{getPlaneState:1}') + } }, watch: { airLock (val) { @@ -679,6 +681,9 @@ export default { if (!found) { this.questForm.id = '' } + }, + plane (val) { + this.publishFun('{getPlaneState:1}') } } @@ -773,4 +778,34 @@ export default { .butIconBox .butIcon:nth-child(4n) { margin-right: 0 !important; } + +/* 手机端样式 */ +@media screen and (max-height: 500px) { + .tab-container { + height: 300px; + width: 50px; + } + + .butIconGroup { + margin-bottom: 12px; + } + + .el-button { + font-size: 14px !important; + } + + .contentTit { + font-size: 14px !important; + margin-bottom: 5px !important; + } + + .contentTit i { + font-size: 18px !important; + } + + .butIcon { + height: 56px; + margin-bottom: 10px !important; + } +}