托盘转运
This commit is contained in:
@@ -248,6 +248,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/transfer/tray-transfer",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
{title: '拣选管理', path: 'RF04', sonTree: [{title: '拣选作业', path: '/pages/pick/pick-task'}]},
|
{title: '拣选管理', path: 'RF04', sonTree: [{title: '拣选作业', path: '/pages/pick/pick-task'}]},
|
||||||
{title: '盘点管理', path: 'RF05', sonTree: [{title: '盘点作业', path: '/pages/check/check-task'}]},
|
{title: '盘点管理', path: 'RF05', sonTree: [{title: '盘点作业', path: '/pages/check/check-task'}]},
|
||||||
{title: '任务管理', path: 'RF06', sonTree: [{title: '任务管理', path: '/pages/task/task-manage'}]},
|
{title: '任务管理', path: 'RF06', sonTree: [{title: '任务管理', path: '/pages/task/task-manage'}]},
|
||||||
{title: '设备操控', path: 'RF07', sonTree: [{title: '切换出入库模式', path: '/pages/mode/switch-in-out'}, {title: '拣选工位启停模式', path: '/pages/mode/pick'}, {title: '下发输送线运动命令', path: '/pages/mode/command'}]}
|
{title: '设备操控', path: 'RF07', sonTree: [{title: '切换出入库模式', path: '/pages/mode/switch-in-out'}, {title: '拣选工位启停模式', path: '/pages/mode/pick'}, {title: '下发输送线运动命令', path: '/pages/mode/command'}]},
|
||||||
|
{title: '转运管理', path: 'RF09', sonTree: [{title: '托盘转运', path: '/pages/transfer/tray-transfer'}]}
|
||||||
],
|
],
|
||||||
show: false,
|
show: false,
|
||||||
secM: [],
|
secM: [],
|
||||||
|
|||||||
99
pages/transfer/tray-transfer.vue
Normal file
99
pages/transfer/tray-transfer.vue
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<!-- 托盘转运 -->
|
||||||
|
<nav-bar :title="title"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">起点</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-24">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
@handleChange="handleChange"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">终点</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-24 filter_select">
|
||||||
|
<uni-data-select v-model="index" :localdata="options"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||||
|
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_transfConfirm">转运确认</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {deviceManageTransf, transfConfirm} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
val1: '',
|
||||||
|
options: [],
|
||||||
|
index: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleChange (e) {
|
||||||
|
if (e) {
|
||||||
|
this._deviceManageTransf(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _deviceManageTransf (e) {
|
||||||
|
let res = await deviceManageTransf(e)
|
||||||
|
this.options = [...res]
|
||||||
|
},
|
||||||
|
async _transfConfirm () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.index) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await transfConfirm(this.val1, this.index)
|
||||||
|
this.disabled = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toEmpty () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.index = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
@import '../../common/style/mixin.styl';
|
||||||
|
.button-primary, .button-default
|
||||||
|
_fj(center)
|
||||||
|
font-size 26rpx
|
||||||
|
height 88rpx
|
||||||
|
line-height 30rpx
|
||||||
|
</style>
|
||||||
BIN
static/image/menu/RF09.png
Normal file
BIN
static/image/menu/RF09.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -195,3 +195,15 @@ export const inStorageConfirm = (obj) => request({
|
|||||||
url:'api/pda/inStorage/confirm',
|
url:'api/pda/inStorage/confirm',
|
||||||
data: obj
|
data: obj
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 托盘转运
|
||||||
|
*/
|
||||||
|
export const deviceManageTransf = (start) => request({
|
||||||
|
url:'api/deviceManage/transf',
|
||||||
|
data: {start: start}
|
||||||
|
})
|
||||||
|
export const transfConfirm = (start, end) => request({
|
||||||
|
url:'api/deviceManage/transfConfirm',
|
||||||
|
data: {start: start, end: end}
|
||||||
|
})
|
||||||
@@ -210,4 +210,8 @@ export const outStorageOrderConfirm = (code) => {
|
|||||||
"msg": ""
|
"msg": ""
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
|
}
|
||||||
|
export const deviceManageTransf = () => {
|
||||||
|
let res = [{value: '1109', text: '一楼楼入库点'}, {value: '2109', text: '二楼楼入库点'}]
|
||||||
|
return res
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user