外协区空料架送回,外协区空笼框送回,物料转运,补空框
This commit is contained in:
@@ -1,19 +1,84 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<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-19">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</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="val2"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldRack">确认</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {handheldRack} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
title: '',
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _handheldRack () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await handheldRack(this.val1, this.val2)
|
||||||
|
this.clearUp()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus">
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_callEmptyVehicle">送回确认</button>
|
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_handheldCageFrame">送回确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import LinkScan from '@/components/LinkScan.vue'
|
import LinkScan from '@/components/LinkScan.vue'
|
||||||
import {getVehicleType, callEmptyVehicle} from '@/utils/getData2.js'
|
import {handheldCageFrame} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -56,22 +56,14 @@
|
|||||||
getScanlist (e) {
|
getScanlist (e) {
|
||||||
this.val2 = e.join()
|
this.val2 = e.join()
|
||||||
},
|
},
|
||||||
/** 载具类型下拉框 */
|
async _handheldCageFrame () {
|
||||||
async _getVehicleType () {
|
|
||||||
let res = await getVehicleType()
|
|
||||||
this.options1 = [...res]
|
|
||||||
},
|
|
||||||
pickerChange (e) {
|
|
||||||
this.index1 = e.detail.value
|
|
||||||
},
|
|
||||||
async _callEmptyVehicle () {
|
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await callEmptyVehicle(this.val1)
|
let res = await handheldCageFrame(this.val1, this.val2)
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -4,6 +4,16 @@
|
|||||||
<view class="zd_content">
|
<view class="zd_content">
|
||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-5">
|
||||||
|
<span class="filter_label">当前点位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-19">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row">
|
||||||
<view class="zd-col-5">
|
<view class="zd-col-5">
|
||||||
<span class="filter_label">载具类型</span>
|
<span class="filter_label">载具类型</span>
|
||||||
</view>
|
</view>
|
||||||
@@ -14,22 +24,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<uni-icons type="right" size="14" color="#999"></uni-icons>
|
<uni-icons type="right" size="14" color="#999"></uni-icons>
|
||||||
</view>
|
</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>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_unbindVehicle">补空确认</button>
|
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || index1 === ''}" :disabled="disabled" @tap="_handheldStorehouse">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -37,7 +36,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {getVehicleType, bindVehicle, unbindVehicle} from '@/utils/getData2.js'
|
import {vehicleType, handheldStorehouse} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -54,24 +53,28 @@
|
|||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
|
this._vehicleType()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 载具类型下拉框 */
|
/** 载具类型下拉框 */
|
||||||
async _getVehicleType () {
|
async _vehicleType () {
|
||||||
let res = await getVehicleType()
|
let res = await vehicleType()
|
||||||
this.options1 = [...res]
|
this.options1 = [...res.content]
|
||||||
|
this.options1.map(el => {
|
||||||
|
this.$set(el, 'text', el.label)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
pickerChange (e) {
|
pickerChange (e) {
|
||||||
this.index1 = e.detail.value
|
this.index1 = e.detail.value
|
||||||
},
|
},
|
||||||
async _bindVehicle () {
|
async _handheldStorehouse () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || this.index1 === '') {
|
if (!this.val1 || this.index1 === '') {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await bindVehicle(this.val1, this.options1[this.index1].value)
|
let res = await handheldStorehouse(this.val1, this.options1[this.index1].value)
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -1,19 +1,84 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<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-19">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</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="val2"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldTranshipment">确认</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {handheldTranshipment} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
title: '',
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _handheldTranshipment () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await handheldTranshipment(this.val1, this.val2)
|
||||||
|
this.clearUp()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus">
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -30,6 +30,37 @@ export const handheldLock = (code, status) => request({
|
|||||||
url:'api/handheld/lock',
|
url:'api/handheld/lock',
|
||||||
data: {region_code: code, status: status}
|
data: {region_code: code, status: status}
|
||||||
})
|
})
|
||||||
|
// 外协区空料架送回
|
||||||
|
export const handheldRack = (code, vcode) => request({
|
||||||
|
url:'api/handheld/rack',
|
||||||
|
data: {device_code: code, vehicle_code: vcode}
|
||||||
|
})
|
||||||
|
// 外协区空笼框送回
|
||||||
|
export const handheldCageFrame = (code, list) => request({
|
||||||
|
url:'api/handheld/cageFrame',
|
||||||
|
data: {device_code: code, vehicle_list: list}
|
||||||
|
})
|
||||||
|
// 物料转运
|
||||||
|
export const handheldTranshipment = (code, vcode) => request({
|
||||||
|
url:'api/handheld/transhipment',
|
||||||
|
data: {device_code: code, vehicle_code: vcode}
|
||||||
|
})
|
||||||
|
// 载具类型列表
|
||||||
|
// export const vehicleType = () => request({
|
||||||
|
// url:'api/fab/vehicleType',
|
||||||
|
// data: {}
|
||||||
|
// })
|
||||||
|
export const vehicleType = () => {
|
||||||
|
let res = {
|
||||||
|
content: [{ label: 'aa', value: '11'}, { label: 'bb', value: '22'}]
|
||||||
|
}
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
// 补空框
|
||||||
|
export const handheldStorehouse = (code, type) => request({
|
||||||
|
url:'api/handheld/storehouse',
|
||||||
|
data: {device_code: code, vehicle_type: type}
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 空托盘出库
|
* 空托盘出库
|
||||||
|
|||||||
Reference in New Issue
Block a user