zrg
21 小时以前 359befaa90ca7037153f77ee38f03c6b41306e9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<template>
    <view class="content">
        <scroll-view scroll-y="true" :style="{height: containerHeight}">
            <view class="options-wrapper" v-show="FIFOList.length != 0">
                <uni-card v-for="(FIFOItem,index) in FIFOList" :title="FIFOItem['物料名称']"
                    :extra="`数量: ${FIFOItem['数量']}`" @tap="" style="margin: 10px;">
                    <view class="item-parent">
                        <view class="item">
                            <text>物料代码: </text>
                            {{ FIFOItem['物料代码'] }}
                        </view>
                        <view class="item">
                            <text>仓库: </text>
                            {{ FIFOItem['仓库'] }}
                        </view>
                        <view class="item">
                            <text >仓位: </text>
                            {{ FIFOItem['仓位'] }}
                        </view>
                        <view class="item">
                            <text>规格型号: </text>
                            {{ FIFOItem['规格型号'] }}
                        </view>
                        <view class="item">
                            <text>下架数量: </text>
                            {{ FIFOItem['下架数量'] }}
                        </view>
                        <view class="item">
                            <text>生产日期: </text>
                            {{ FIFOItem['控制值'] }}
                        </view>
                    </view>
                </uni-card>
            </view>
            <view class="over" v-show="FIFOList.length == 0">暂无数据</view>
        </scroll-view>
    </view>
</template>
 
<script>
    export default {
        // 先入先出列表显示模块
        name: "FIFOListComponent",
        props: {
            FIFOList: {
                require: true,
                type: [Array]
            },
            Height: {
                require: false,
                type: [Number, String],
                default: '100%'
            },
            Unit: {
                require: false,
                type: [String],
                default: 'px'
            },
 
        },
        data() {
            return {
                containerHeight: 0,
            };
        },
        mounted() {
            // 根据递入的高度数据 设定滚动容器高度
            if (typeof this.Height == 'string') {
                this.containerHeight = this.Height
            } else {
                this.containerHeight = `${this.Height}${this.Unit}`
            }
 
        },
        methods: {
 
        }
    }
</script>
 
<style lang="scss">
    .content {
        box-sizing: border-box;
        border-radius: 15rpx 15rpx 0 0;
        padding: 20rpx 20rpx 40rpx 20rpx;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        gap: 10rpx;
 
        .search-condition {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 20rpx;
 
            .title {
                width: 5rem;
                text-align: right;
            }
 
            .right {
                flex: 1;
                border-radius: 22rpx;
                border: 1px solid #acacac;
                height: auto;
 
                input {
                    width: 100%;
                    padding: 8rpx 20rpx;
                    font-size: 24rpx;
                }
            }
        }
 
        .buttons {
            display: flex;
            flex-direction: row;
            gap: 20rpx;
            justify-content: flex-end;
 
            >button {
                display: inline-flex;
                width: 4rem;
            }
        }
 
        .options-wrapper {
            width: 100%;
            
            .item-parent {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                line-height: 120%;
 
                .item {
                    // width: 50%;
                    font-size: 26rpx;
                    margin-bottom: 12rpx;
                    color: #555;
                    margin-right: 20rpx;
 
                    text {
                        color: #999;
                        font-size: 26rpx;
                    }
                }
            }
 
        }
 
        .uni-card--is-active {
            background-color: rgba(0, 122, 255, 0.2);
        }
    }
</style>