缓存线盘点

This commit is contained in:
2023-03-23 11:08:31 +08:00
parent 33fc4f6746
commit afd39a685a
2 changed files with 141 additions and 9 deletions

View File

@@ -39,9 +39,9 @@ uni-button:after {
}
.search-label{
width: 160rpx;
height: 90rpx;
height: 86rpx;
font-size: 32rpx;
line-height: 90rpx;
line-height: 86rpx;
color: #323232;
text-align: justify;
text-align-last: justify;
@@ -93,7 +93,7 @@ uni-button:after {
}
.grid-wrap{
width: 100%;
height: calc(100% - 420rpx); /** 88+ 30*4+ 86*2*/
height: calc(100% - 410rpx); /** 88+ 30*5+ 86*2 */
padding: 0 30rpx 30rpx 30rpx;
overflow-y: scroll;
}
@@ -130,4 +130,81 @@ uni-button:after {
line-height: 44rpx;
font-size: 24rpx;
padding: 0 10rpx;
}
.status-wrap {
width: 48%;
height: 86rpx;
padding: 0 30rpx;
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 30rpx;
}
.status-item {
display: flex;
align-items: center;
margin-left: 20rpx;
}
.status-icon {
width: 40rpx;
height: 40rpx;
border-radius: 4rpx;
margin-right: 10rpx;
}
.status-txt {
font-size: 32rpx;
line-height: 86rpx;
color: #323232;
}
.bg-gray {
background-color: #c9c9c9;
}
.bg-green {
background-color: #6CBE8B;
}
.bg-yellow {
background-color: #E9B451;
}
.bg-red {
background-color: #ff6a00;
}
.material-wrap {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-content: flex-start;
align-items: flex-start;
width: calc(100% - 60rpx);
height: calc(100% - 324rpx);/** 88+30*4+86 */
margin: 30rpx auto;
padding: 30rpx 30rpx 0 30rpx;
overflow-y: auto;
background-color: #fff;
border-radius: 12rpx;
}
.material-item {
width: 8.2%;
margin-right: 2%;
margin-bottom: 30rpx;
padding: 15rpx 15rpx;
border-radius: 12rpx;
}
.material-item:nth-child(10n) {
margin-right: 0;
}
.material-title {
font-size: 32rpx;
line-height: 45rpx;
height: 45rpx;
text-align: center;
color: #fff;
overflow: hidden;
}
.material-spec {
font-size: 32rpx;
line-height: 45rpx;
height: 90rpx;
text-align: center;
color: #fff;
overflow: hidden;
}

View File

@@ -1,10 +1,43 @@
<template>
<view class="content">
<nav-bar title="缓存线盘点"></nav-bar>
<view class="status-wrap">
<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]">
<view class="material-title">{{e.vehicle_code}}</view>
<view class="material-spec">{{e.material_spec}}</view>
</view>
</view>
<view class="material-wrap"></view>
</view>
</template>
@@ -16,12 +49,34 @@
},
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
},
}
}
</script>
<style lang="stylus">
<style lang="stylus" scoped>
@import '../../common/style/mixin.styl';
.search-confirm-wrap
_fj()
.search-wrap
width 48%
.search-item
width calc(100% - 250rpx)
.confirm-button-wrap
width auto
justify-content flex-start
</style>