指令查询

This commit is contained in:
2022-11-04 09:42:30 +08:00
parent 7c1864028d
commit 4fc235abd5
2 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,128 @@
<template>
<section>
<nav-bar title="指令查询"></nav-bar>
<section class="content mgt186" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="0" infinite-scroll-immediate-check="false">
<div class="filter-wraper">
<search-box
class="pad"
label="关键字"
keyCode="载具号、点位号、任务号、车号"
v-model="val1"
:seaShow="false"
></search-box>
</div>
<div class="grid-wraper">
<div class="left_fixed">
<table class="layout-t left_layout_t">
<tr>
<th>任务号</th>
</tr>
<tr v-for="e in dataList" :key="e.taskdtl_id">
<td>{{e.task_code}}</td>
</tr>
</table>
</div>
<div class="slide">
<table class="layout-t">
<tr>
<th>载具号</th>
<th>起点</th>
<th>终点</th>
<th>状态</th>
<th>业务类型</th>
<th>AGV</th>
<th>生成时间</th>
</tr>
<tr v-for="e in dataList" :key="e.taskdtl_id">
<td>{{e.vehicle_code}}</td>
<td>{{e.start_point_code}}</td>
<td>{{e.next_point_code}}</td>
<td>{{e.task_status_name}}</td>
<td>{{e.task_type_name}}</td>
<td>{{e.car_no}}</td>
<td>{{e.create_time}}</td>
</tr>
</table>
</div>
</div>
<div class="loading-tips">{{desc}}</div>
</section>
<section class="submit-bar">
<button class="btn submit-button" @click="_queryTask">查询</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
import {queryTask} from '@config/getData2.js'
export default {
name: 'RFInstructQuery',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
dataList: [],
page: 1,
size: '10',
busy: false,
desc: ''
}
},
methods: {
handleFocus1 () {
this.$refs.scaninput1.focus()
},
async _queryTask () {
this.page = 1
this.busy = false
this.desc = ''
let res = await queryTask(this.val1, this.page + '', this.size)
if (res.code === '1') {
this.dataList = []
this.pkId = ''
this.dataList = [...res.rows]
if (res.rows.length < 10) {
this.busy = true
this.desc = '已加载全部数据'
}
} else {
this.Dialog(res.desc)
this.desc = res.desc
}
},
async loadMore () {
this.busy = true
this.page++
let res = await queryTask(this.val1, this.page + '', this.size)
if (res.code === '1') {
this.dataList = [...this.dataList, ...res.rows]
if (res.rows.length < 10) {
this.busy = true
this.desc = '已加载全部数据'
} else {
this.busy = false
}
} else {
this.Dialog(res.desc)
this.desc = res.desc
}
}
}
}
</script>
<style lang="stylus" scoped>
>>>.content
height calc(100% - 1.96rem)
overflow-y auto
.pad
>>>.filter-label
width 1rem
>>>.search_input
padding-right 1.4rem
</style>

View File

@@ -61,6 +61,7 @@ const ProcedureInspection = r => require.ensure([], () => r(require('../pages/xi
const ResultEntry = r => require.ensure([], () => r(require('../pages/xinrui/inspection/ResultEntry')), 'inspection')
// 调度
const InstructManage = r => require.ensure([], () => r(require('../pages/xinrui/dispatch/InstructManage')), 'dispatch')
const RFInstructQuery = r => require.ensure([], () => r(require('../pages/xinrui/dispatch/RFInstructQuery')), 'dispatch')
const FixedPointTask = r => require.ensure([], () => r(require('../pages/xinrui/dispatch/FixedPointTask')), 'dispatch')
const PointOperate = r => require.ensure([], () => r(require('../pages/xinrui/dispatch/PointOperate')), 'dispatch')
// 立库管理
@@ -334,6 +335,10 @@ export default new Router({
path: '/InstructManage', // 指令管理
component: InstructManage
},
{
path: '/RFInstructQuery', // 指令查询
component: RFInstructQuery
},
{
path: '/FixedPointTask', // 定点作业
component: FixedPointTask