agv充电

This commit is contained in:
2023-06-14 15:22:46 +08:00
parent fc14ca174c
commit bc4d5faaad
4 changed files with 63 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
<li @click="goInner('/VehicleBind')">载具绑定</li>
<li @click="goInner('/VehicleUnbind')">载具解绑</li>
<li @click="goInner('/CallDefective')">呼叫次品料</li>
<li @click="goInner('/CreateChargingTask')">AGV充电</li>
</ul>
</div>
</section>

View File

@@ -0,0 +1,51 @@
<template>
<section>
<nav-bar title="困料管理"></nav-bar>
<section class="content mgt186">
</section>
<section class="submit-bar">
<button class="btn submit-button" :disabled="disabled1" @click="_createChargingTask('1')">1号车充电</button>
<button class="btn submit-button" :disabled="disabled1" @click="_createChargingTask('2')">2号车充电</button>
<button class="btn submit-button" @click="toQuit">退出</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import {createChargingTask} from '@config/getData1'
export default {
name: 'CreateChargingTask',
components: {
NavBar
},
data () {
return {
disabled1: false
}
},
created () {
},
methods: {
/** 确认 */
async _createChargingTask (type) {
this.disabled1 = true
try {
let res = await createChargingTask(type)
if (res.code === '1') {
this.toast(res.desc)
this.toCancle()
} else {
this.Dialog(res.desc)
}
this.disabled1 = false
} catch (e) {
this.disabled1 = false
}
},
toQuit () {
this.$router.push('/home')
}
}
}
</script>