Files
pad-hl-hcx-new/pages/management/hcxcheck.vue
2023-03-25 10:30:26 +08:00

88 lines
2.2 KiB
Vue

<template>
<view class="content">
<nav-bar title="缓存线盘点"></nav-bar>
<view class="search-confirm-wrap">
<view class="search-wrap">
<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="confirm-button-wrap">
<button class="confirm-button" @tap="toSearch()">&nbsp;&nbsp;</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>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
export default {
components: {
NavBar
},
data() {
return {
options1: [],
index1: '',
dataList: []
};
},
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`
})
}
}
}
</script>
<style lang="stylus" scoped>
@import '../../common/style/mixin.styl';
.search-confirm-wrap
_fj()
.search-wrap
width 48%
.search-item
width calc(100% - 120px)
.confirm-button-wrap
width auto
justify-content flex-start
</style>