195 lines
5.4 KiB
Vue
195 lines
5.4 KiB
Vue
<template>
|
|
<view class="content">
|
|
<nav-bar title="缓存线盘点"></nav-bar>
|
|
<view class="search-confirm-wrap search-confirm-wrap1">
|
|
<view class="search-wrap search-wrap1">
|
|
<view class="search-item search-item1">
|
|
<label class="search-label">缓存线</label>
|
|
<view class="filter_input_wraper">
|
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
<view class="confirm-button-wrap confirm-button-wrap1">
|
|
<button class="confirm-button" @tap="toSearch()">刷 新</button>
|
|
</view>
|
|
</view>
|
|
<view class="status-wrap">
|
|
<view class="status-item">
|
|
<text class="status-icon bg-gray"></text>
|
|
<text class="status-txt">空位</text>
|
|
</view>
|
|
<view class="status-item">
|
|
<text class="status-icon bg-green"></text>
|
|
<text class="status-txt">空箱</text>
|
|
</view>
|
|
<view class="status-item">
|
|
<text class="status-icon bg-yellow"></text>
|
|
<text class="status-txt">满箱</text>
|
|
</view>
|
|
<view class="status-item">
|
|
<text class="status-icon bg-red"></text>
|
|
<text class="status-txt">异常</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="material-wrap">
|
|
<view class="material-item" v-for="(e, i) in dataList" :key="i" :class="['bg-gray', 'bg-green', 'bg-yellow','bg-red'][Number(e.status) - 1]" @tap="toInfo(e)">
|
|
<view class="material-title">{{e.vehicle_code}}</view>
|
|
<view class="material-spec">{{e.material_spec}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="popup-bottom-wrap" :class="active === true ? 'addHeight' : 'delHeight'">
|
|
<view class="search-confirm-wrap">
|
|
<view class="search-wrap">
|
|
<view class="search-item">
|
|
<label class="search-label">料箱码</label>
|
|
<view class="filter_input_wraper">
|
|
<search-box
|
|
v-model="val1"
|
|
/>
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">工序</label>
|
|
<view class="filter_input_wraper">
|
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">物料</label>
|
|
<view class="filter_input_wraper">
|
|
<input type="text" class="search-input-l" v-model="val2">
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">名称</label>
|
|
<view class="filter_input_wraper">
|
|
<input type="text" class="search-input-l" v-model="val3">
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">规格</label>
|
|
<view class="filter_input_wraper">
|
|
<input type="text" class="search-input-l" v-model="val4">
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">数量</label>
|
|
<view class="filter_input_wraper">
|
|
<input type="number" class="search-input-l" v-model="val5">
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">重量</label>
|
|
<view class="filter_input_wraper">
|
|
<input type="number" class="search-input-l" v-model="val6">
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">层</label>
|
|
<view class="filter_input_wraper">
|
|
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
<view class="search-item">
|
|
<label class="search-label">位置</label>
|
|
<view class="filter_input_wraper">
|
|
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="confirm-button-wrap">
|
|
<button class="confirm-button" @tap="toSearch()">设为满框</button>
|
|
<button class="confirm-button" :disabled="disabled" @tap="toSure()">设为空框</button>
|
|
<button class="confirm-button" :disabled="disabled" @tap="toSure()">设为空位</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-show="active" class="overlay" @tap="closePop"></view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import NavBar from '@/components/NavBar.vue'
|
|
export default {
|
|
components: {
|
|
NavBar
|
|
},
|
|
data() {
|
|
return {
|
|
options1: [],
|
|
index1: '',
|
|
options2: [],
|
|
index2: '',
|
|
options3: [],
|
|
index3: '',
|
|
val1: '',
|
|
val2: '',
|
|
val3: '',
|
|
val4: '',
|
|
val5: '',
|
|
val6: '',
|
|
dataList: [],
|
|
active: false
|
|
|
|
};
|
|
},
|
|
created () {
|
|
for(let i = 1; i < 16; i++) {
|
|
this.dataList.push({vehicle_code: i + '', material_spec: '买了佛冷', status: '4'})
|
|
}
|
|
},
|
|
methods: {
|
|
/** 选择器1 */
|
|
selectChange1(e) {
|
|
this.index1 = e
|
|
},
|
|
toInfo(e) {
|
|
// uni.navigateTo({
|
|
// url: `/pages/management/hcxInfo`
|
|
// })
|
|
this.active = true
|
|
},
|
|
closePop () {
|
|
this.active = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
@import '../../common/style/mixin.styl';
|
|
.search-confirm-wrap1
|
|
_fj()
|
|
.search-wrap1
|
|
width 48%
|
|
.search-item1
|
|
width calc(100% - 120px)
|
|
.confirm-button-wrap1
|
|
width auto
|
|
justify-content flex-start
|
|
.popup-bottom-wrap
|
|
position fixed
|
|
bottom 0
|
|
left 0
|
|
width 100%
|
|
height 0
|
|
z-index 100
|
|
background-color #fff
|
|
_fj()
|
|
overflow hidden
|
|
.overlay
|
|
position fixed
|
|
bottom 0
|
|
left 0
|
|
_wh(100%, 100%)
|
|
background-color rgba(0,0,0,.7)
|
|
z-index 99
|
|
.addHeight
|
|
transition height .2s linear
|
|
height 315px
|
|
.delHeight
|
|
transition height .2s linear
|
|
height 0
|
|
</style>
|