呼叫空托盘、送空托盘
This commit is contained in:
16
pages.json
16
pages.json
@@ -90,6 +90,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/manage/call-empty-tray",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/manage/send-empty-tray",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
@@ -52,7 +52,9 @@
|
|||||||
{id: 6, title: '点位更新', icon: 'RF06', path: '/pages/manage/point-update'},
|
{id: 6, title: '点位更新', icon: 'RF06', path: '/pages/manage/point-update'},
|
||||||
{id: 7, title: '定点作业', icon: 'RF07', path: '/pages/manage/fixed-point-task'},
|
{id: 7, title: '定点作业', icon: 'RF07', path: '/pages/manage/fixed-point-task'},
|
||||||
{id: 8, title: '作业管理', icon: 'RF08', path: '/pages/manage/task-manage'},
|
{id: 8, title: '作业管理', icon: 'RF08', path: '/pages/manage/task-manage'},
|
||||||
{id: 9, title: '出库确认', icon: 'RF09', path: '/pages/manage/out-storage-confirm'}
|
{id: 9, title: '出库确认', icon: 'RF09', path: '/pages/manage/out-storage-confirm'},
|
||||||
|
{id: 10, title: '呼叫空托盘', icon: 'RF10', path: '/pages/manage/call-empty-tray'},
|
||||||
|
{id: 11, title: '送空托盘', icon: 'RF11', path: '/pages/manage/send-empty-tray'}
|
||||||
],
|
],
|
||||||
show: false,
|
show: false,
|
||||||
secM: []
|
secM: []
|
||||||
|
|||||||
98
pages/manage/call-empty-tray.vue
Normal file
98
pages/manage/call-empty-tray.vue
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<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-5">
|
||||||
|
<span class="filter_label">载具类型</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-17 filter_picker">
|
||||||
|
<picker @change="pickerChange" :value="index1" :range="options1" range-key="text">
|
||||||
|
<view class="uni-input">{{index1 !== '' ? options1[index1].text : ''}}</view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
<uni-icons type="right" size="14" color="#999"></uni-icons>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-col-5">
|
||||||
|
<span class="filter_label">点位编码</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-19">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<button class="zd-col-11 button-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-11 button-primary" :class="{'button-info': index1 === '' || !val1}" :disabled="disabled" @tap="_lmzbCallEmptyVehicle">确认</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {getVehicleType, lmzbCallEmptyVehicle} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
|
// options2: [],
|
||||||
|
// index2: '',
|
||||||
|
val1: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._getVehicleType()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 载具类型下拉框 */
|
||||||
|
async _getVehicleType () {
|
||||||
|
let res = await getVehicleType()
|
||||||
|
this.options1 = [...res]
|
||||||
|
},
|
||||||
|
pickerChange (e) {
|
||||||
|
this.index1 = e.detail.value
|
||||||
|
},
|
||||||
|
async _lmzbCallEmptyVehicle () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || this.index1 === '') {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await lmzbCallEmptyVehicle(this.options1[this.index1].value, this.val1)
|
||||||
|
this.clearUp()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.index1 = ''
|
||||||
|
this.val1 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
98
pages/manage/send-empty-tray.vue
Normal file
98
pages/manage/send-empty-tray.vue
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<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-5">
|
||||||
|
<span class="filter_label">载具类型</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-17 filter_picker">
|
||||||
|
<picker @change="pickerChange" :value="index1" :range="options1" range-key="text">
|
||||||
|
<view class="uni-input">{{index1 !== '' ? options1[index1].text : ''}}</view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
<uni-icons type="right" size="14" color="#999"></uni-icons>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-col-5">
|
||||||
|
<span class="filter_label">点位编码</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-19">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<button class="zd-col-11 button-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-11 button-primary" :class="{'button-info': index1 === '' || !val1}" :disabled="disabled" @tap="_sendEmptyVehicle">确认</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {getVehicleType, sendEmptyVehicle} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
|
// options2: [],
|
||||||
|
// index2: '',
|
||||||
|
val1: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._getVehicleType()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 载具类型下拉框 */
|
||||||
|
async _getVehicleType () {
|
||||||
|
let res = await getVehicleType()
|
||||||
|
this.options1 = [...res]
|
||||||
|
},
|
||||||
|
pickerChange (e) {
|
||||||
|
this.index1 = e.detail.value
|
||||||
|
},
|
||||||
|
async _sendEmptyVehicle () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || this.index1 === '') {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await sendEmptyVehicle(this.options1[this.index1].value, this.val1)
|
||||||
|
this.clearUp()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.index1 = ''
|
||||||
|
this.val1 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
BIN
static/image/menu/RF10.png
Normal file
BIN
static/image/menu/RF10.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
static/image/menu/RF11.png
Normal file
BIN
static/image/menu/RF11.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -231,3 +231,19 @@ export const fullVehicleOutConfirm = (code, vcode, num) => request({
|
|||||||
residue_num: num
|
residue_num: num
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// 呼叫空托盘
|
||||||
|
export const lmzbCallEmptyVehicle = (type, code) => request({
|
||||||
|
url:'api/pda/lmzbCallEmptyVehicle',
|
||||||
|
data: {
|
||||||
|
vehicle_type: type,
|
||||||
|
point_code: code
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// 送空托盘
|
||||||
|
export const sendEmptyVehicle = (type, code) => request({
|
||||||
|
url:'api/pda/sendEmptyVehicle',
|
||||||
|
data: {
|
||||||
|
vehicle_type: type,
|
||||||
|
point_code: code
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user