agv充电
This commit is contained in:
@@ -26,3 +26,9 @@ export const taskOperation = (uuid, type) => post2('api/hand/taskoperation', {
|
|||||||
inst_uuid: uuid,
|
inst_uuid: uuid,
|
||||||
type: type
|
type: type
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// AGV充电
|
||||||
|
// 1.1 查询未完成指令
|
||||||
|
export const createChargingTask = (carno) => post2('api/hand/createChargingTask', {
|
||||||
|
carno: carno
|
||||||
|
})
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
<li @click="goInner('/VehicleBind')">载具绑定</li>
|
<li @click="goInner('/VehicleBind')">载具绑定</li>
|
||||||
<li @click="goInner('/VehicleUnbind')">载具解绑</li>
|
<li @click="goInner('/VehicleUnbind')">载具解绑</li>
|
||||||
<li @click="goInner('/CallDefective')">呼叫次品料</li>
|
<li @click="goInner('/CallDefective')">呼叫次品料</li>
|
||||||
|
<li @click="goInner('/CreateChargingTask')">AGV充电</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
51
src/pages/proj/CreateChargingTask.vue
Normal file
51
src/pages/proj/CreateChargingTask.vue
Normal 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>
|
||||||
@@ -17,6 +17,7 @@ const RuyaoManage = r => require.ensure([], () => r(require('../pages/proj/Ruyao
|
|||||||
const VehicleBind = r => require.ensure([], () => r(require('../pages/proj/VehicleBind')), 'VehicleBind')
|
const VehicleBind = r => require.ensure([], () => r(require('../pages/proj/VehicleBind')), 'VehicleBind')
|
||||||
const VehicleUnbind = r => require.ensure([], () => r(require('../pages/proj/VehicleUnbind')), 'VehicleUnbind')
|
const VehicleUnbind = r => require.ensure([], () => r(require('../pages/proj/VehicleUnbind')), 'VehicleUnbind')
|
||||||
const CallDefective = r => require.ensure([], () => r(require('../pages/proj/CallDefective')), 'CallDefective')
|
const CallDefective = r => require.ensure([], () => r(require('../pages/proj/CallDefective')), 'CallDefective')
|
||||||
|
const CreateChargingTask = r => require.ensure([], () => r(require('../pages/proj/CreateChargingTask')), 'CreateChargingTask')
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
@@ -92,6 +93,10 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '/CallDefective', // 呼叫次品料
|
path: '/CallDefective', // 呼叫次品料
|
||||||
component: CallDefective
|
component: CallDefective
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/CreateChargingTask', // AGV充电
|
||||||
|
component: CreateChargingTask
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
|
|||||||
Reference in New Issue
Block a user