agvouterror
This commit is contained in:
34
pages.json
34
pages.json
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
"path": "pages/login/login",
|
"path": "pages/login/login",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/home/home",
|
"path": "pages/home/home",
|
||||||
@@ -17,13 +17,19 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
],
|
{
|
||||||
"globalStyle": {
|
"path": "pages/management/AgvOutError",
|
||||||
"navigationBarTextStyle": "black",
|
"style": {
|
||||||
"navigationBarTitleText": "uni-app",
|
"navigationStyle": "custom"
|
||||||
"navigationBarBackgroundColor": "#F8F8F8",
|
}
|
||||||
"backgroundColor": "#F8F8F8"
|
}
|
||||||
},
|
],
|
||||||
"uniIdRouter": {}
|
"globalStyle": {
|
||||||
|
"navigationBarTextStyle": "black",
|
||||||
|
"navigationBarTitleText": "uni-app",
|
||||||
|
"navigationBarBackgroundColor": "#F8F8F8",
|
||||||
|
"backgroundColor": "#F8F8F8"
|
||||||
|
},
|
||||||
|
"uniIdRouter": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<view class="header-item">
|
<view class="header-item">
|
||||||
@@ -33,21 +33,21 @@
|
|||||||
<view class="nav-item">
|
<view class="nav-item">
|
||||||
<text class="nav-text" @click="toJump('/pages/equipStatus/equipStatus')">缓存线异常处理</text>
|
<text class="nav-text" @click="toJump('/pages/equipStatus/equipStatus')">缓存线异常处理</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userName: this.$store.getters.userInfo ? JSON.parse(this.$store.getters.userInfo).id : ''
|
userName: this.$store.getters.userInfo ? JSON.parse(this.$store.getters.userInfo).id : ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toJump(path) {
|
toJump(path) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: path
|
url: path
|
||||||
@@ -58,16 +58,16 @@
|
|||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '../../common/style/mixin.styl';
|
@import '../../common/style/mixin.styl';
|
||||||
.content
|
.content
|
||||||
_fj()
|
_fj()
|
||||||
_wh(100%, 100%)
|
_wh(100%, 100%)
|
||||||
flex-direction column
|
flex-direction column
|
||||||
background-color: #fff
|
background-color: #fff
|
||||||
.header
|
.header
|
||||||
@@ -103,5 +103,5 @@
|
|||||||
margin-right 0
|
margin-right 0
|
||||||
.nav-text
|
.nav-text
|
||||||
_font(40rpx, 60rpx, #333,,)
|
_font(40rpx, 60rpx, #333,,)
|
||||||
letter-spacing: 4rpx
|
letter-spacing: 4rpx
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
120
pages/management/AgvOutError.vue
Normal file
120
pages/management/AgvOutError.vue
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<nav-bar title="AGV出箱异常"></nav-bar>
|
||||||
|
<view class="search-wrap">
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">缓存线</label>
|
||||||
|
<input type="text" class="search-input" v-model="keyword">
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">料箱码</label>
|
||||||
|
<input type="text" class="search-input" v-model="startPoint">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="confirm-button-wrap">
|
||||||
|
<button class="confirm-button" :disabled="disabled0" @click="toSearch()">查询</button>
|
||||||
|
<button class="confirm-button" :disabled="disabled1" @click="toSure">确认</button>
|
||||||
|
</view>
|
||||||
|
<view class="grid-wrap">
|
||||||
|
<table class="grid-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>选择</th>
|
||||||
|
<th>指令号</th>
|
||||||
|
<th>任务号</th>
|
||||||
|
<th>起点</th>
|
||||||
|
<th>终点</th>
|
||||||
|
<th>状态</th>
|
||||||
|
<th>agv车号</th>
|
||||||
|
<th>物料类型</th>
|
||||||
|
<th>优先级</th>
|
||||||
|
<th>时间</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="e in dataList" :key="e.inst_uuid" @click="toRadio(e)">
|
||||||
|
<td>
|
||||||
|
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.inst_uuid}"></view>
|
||||||
|
</td>
|
||||||
|
<td>{{e.inst_no}}</td>
|
||||||
|
<td>{{e.task_no}}</td>
|
||||||
|
<td>{{e.start_devicecode}}</td>
|
||||||
|
<td>{{e.next_devicecode}}</td>
|
||||||
|
<td>{{e.inst_status_name}}</td>
|
||||||
|
<td>{{e.carno}}</td>
|
||||||
|
<td>{{e.material_type_name}}</td>
|
||||||
|
<td>{{e.priority}}</td>
|
||||||
|
<td>{{e.create_time}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
// import {queryInstraction, instOperation} from '@/utils/api.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList: [],
|
||||||
|
keyword: '',
|
||||||
|
startPoint: '',
|
||||||
|
endPoint: '',
|
||||||
|
pkId: '',
|
||||||
|
disabled0: false,
|
||||||
|
disabled1: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.queryInstraction(this.keyword, this.startPoint, this.endPoint)
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onNavigationBarButtonTap(e) {
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
},
|
||||||
|
toSearch () {
|
||||||
|
this.pkId = ''
|
||||||
|
this.dataList = []
|
||||||
|
this.disabled0 = true
|
||||||
|
this.queryInstraction()
|
||||||
|
},
|
||||||
|
toSure (type) {
|
||||||
|
if (this.pkId) {
|
||||||
|
this.disabled1 = true
|
||||||
|
this.instOperation(type)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请查询后进行选择',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toRadio (e) {
|
||||||
|
this.pkId = this.pkId === e.inst_uuid ? '' : e.inst_uuid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
@import '../../common/style/mixin.styl';
|
||||||
|
.content1
|
||||||
|
flex-direction column
|
||||||
|
justify-content flex-start
|
||||||
|
padding 30rpx
|
||||||
|
box-sizing border-box
|
||||||
|
.icon-check
|
||||||
|
_wh(44rpx, 44rpx)
|
||||||
|
background-color #ffffff
|
||||||
|
border-radius 50%
|
||||||
|
margin 0 auto
|
||||||
|
.icon-checked
|
||||||
|
background-color $red
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user