add 点位清空
This commit is contained in:
@@ -110,6 +110,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/modules/point-clean",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
@@ -41,7 +41,8 @@
|
|||||||
{id: '6', name: '任务管理', icon: 'RF09', role: '', path: '/pages/modules/taskmanage'},
|
{id: '6', name: '任务管理', icon: 'RF09', role: '', path: '/pages/modules/taskmanage'},
|
||||||
{id: '7', name: '异常出库', icon: 'RF10', role: '', path: '/pages/modules/error-outstore'},
|
{id: '7', name: '异常出库', icon: 'RF10', role: '', path: '/pages/modules/error-outstore'},
|
||||||
{id: '8', name: '托盘号补录', icon: 'RF05', role: 'A1', path: '/pages/modules/pallet-add-record'},
|
{id: '8', name: '托盘号补录', icon: 'RF05', role: 'A1', path: '/pages/modules/pallet-add-record'},
|
||||||
{id: '9', name: '缓存码变更', icon: 'RF11', role: '', path: '/pages/modules/cache-code-change'}
|
{id: '9', name: '缓存码变更', icon: 'RF11', role: '', path: '/pages/modules/cache-code-change'},
|
||||||
|
{id: '10', name: '点位清空', icon: 'RF12', role: '', path: '/pages/modules/point-clean'}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
113
pages/modules/point-clean.vue
Normal file
113
pages/modules/point-clean.vue
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar title="点位清空"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label">起始点位</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<zxz-uni-data-select v-model="index1" filterable :localdata="options1" @inputChange="inputChange1" @change="selectChange1"></zxz-uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">母托盘编码</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="filter_input" v-model="obj.vehicle_code" disabled>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">子托盘编码</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="filter_input" v-model="obj.vehicle_code2" disabled>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">载具数量</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="number" class="filter_input" v-model="obj.vehicle_qty" disabled>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar_new">
|
||||||
|
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||||
|
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': index1 === ''}" :disabled="disabled" @tap="_pointclean">确认</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import {pointSearch1} from '@/utils/getData1.js'
|
||||||
|
import {pointclean} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
disabled: false,
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
|
obj: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._pointSearch()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
inputChange1 (e) {
|
||||||
|
// console.log(e)
|
||||||
|
},
|
||||||
|
selectChange1(e) {
|
||||||
|
if (e) {
|
||||||
|
this.options1.map(el => {
|
||||||
|
if (el.point_code === e) {
|
||||||
|
this.obj = el
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.obj = {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 点位查询 下拉框显示 */
|
||||||
|
async _pointSearch () {
|
||||||
|
let res = await pointSearch1('CB')
|
||||||
|
this.options1 = [...res]
|
||||||
|
this.options1.map(el => {
|
||||||
|
this.$set(el, 'value', el.point_code)
|
||||||
|
this.$set(el, 'text', el.point_name)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toClear () {
|
||||||
|
this.index1 = ''
|
||||||
|
this.obj = {}
|
||||||
|
},
|
||||||
|
async _pointclean () {
|
||||||
|
this.disabled = true
|
||||||
|
if (this.index1 === '') {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await pointclean(this.index1)
|
||||||
|
if (res.code === '1') {
|
||||||
|
this.toClear()
|
||||||
|
}
|
||||||
|
this.disabled = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
BIN
static/image/menu/RF12.png
Normal file
BIN
static/image/menu/RF12.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
@@ -18,6 +18,12 @@ export const pointSearch = (rcode, pcode, ne) => request({
|
|||||||
need_emtpy: ne
|
need_emtpy: ne
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
export const pointSearch1 = (rcode) => request({
|
||||||
|
url:'api/pda/point',
|
||||||
|
data: {
|
||||||
|
region_code: rcode
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// 查询各点位物料状态
|
// 查询各点位物料状态
|
||||||
export const dwztSearch = (rcode) => request({
|
export const dwztSearch = (rcode) => request({
|
||||||
|
|||||||
@@ -154,4 +154,14 @@ export const zpchange = (code, ncode) => request({
|
|||||||
sub_tray: code,
|
sub_tray: code,
|
||||||
new_sub_tray: ncode
|
new_sub_tray: ncode
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 点位清空
|
||||||
|
*/
|
||||||
|
export const pointclean = (code) => request({
|
||||||
|
url:'api/pda/pointclean',
|
||||||
|
data: {
|
||||||
|
point: code
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user