spring
4 天以前 f26f29d84e0a68831a6af14dab3eec5500496d2e
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<template>
    <view class="page">
      <view class="productfeed-feedrecordlist-bg"/>
      <u-navbar title="投料记录" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" back-icon-color="#000"/>
      <view class="wrap">
        <scroll-view class="productfeed-feedrecordlist-scroll-list" scroll-y="true">
            <u-cell-group class="productfeed-feedrecordlist-scroll-list-group" :border="false">
                <view class="content" v-for="(item, index) in feedList" :key="item.id" :index="index">
                    <view class="row-list task-row">
                        <view class="_label">
                            零件编号:
                        </view>
                        <view class="_content">
                            {{ item.partNo }}
                        </view>
                    </view>
                    <view class="row-list task-row">
                        <view class="_label">
                            零件:
                        </view>
                        <view class="_content">
                            {{ item.partName }}
                        </view>
                    </view>
                    <view class="row-list task-row">
                        <view class="_label">
                            SN号:
                        </view>
                        <view class="_content">
                            {{ item.partBatchNo }}
                        </view>
                    </view>
                    <view class="row-list task-row">
                        <view class="_label">
                        载具编号:
                        </view>
                        <view class="_content">
                            {{ item.reelNumber }}
                        </view>
                    </view>
                    
                    <view class="row-list task-row">
                        <view class="_label">
                        可用数量:
                        </view>
                        <view class="_content">
                            {{ item.availableStockQuantity }}
                        </view>
                    </view>
                    <view class="row-list task-row">
                        <view class="_label">
                        库存数量:
                        </view>
                        <view class="_content">
                            {{ item.stockQuantity }}
                        </view>
                    </view>
                    <view class="row-list task-row">
                        <view class="_label">
                            单位:
                        </view>
                        <view class="_content">
                            {{ item.unit }}
                        </view>
                    </view>
                    <view class="row-list task-row">
                        <view class="_label">
                            投料人:
                        </view>
                        <view class="_content">
                            {{ item.createUser }}
                        </view>
                    </view>
                </view>
            </u-cell-group>
        </scroll-view>
      </view>
    </view>
</template>
<script>
    import content_bg from '@/static/custom/product/productBg.png'
    export default {
        data() {
            return {
                background:{
                    backgroundImage: `url(${content_bg})`,
                    backgroundAttachment: 'fixed',
                    backgroundSize: '100% auto',
                    backgroundRepeat: 'no-repeat',
                },
                feedList:[],
                originList: [],
            };
        },
        onLoad(params) {
            if (params && params.workstationId !== "undefined") {
               this.loadList(params.workstationId);
            }
        },
        onShow() {
            
        },
        methods: {
            loadList(workstationId) {
 
                //已投未消耗
                let params={
                    workstationId:workstationId
                }
                
                this.$u.api.pigxFeed.getFeedingStock(params).then(res => {                        
                    console.log(res)
                    this.originList  = res.data
                    this.feedList  = this.originList
                });    
            }
        }
    };
</script>
<style lang="scss">
    .productfeed-feedrecordlist-bg{
        background-color: #F6F9FF;
        background-image: url('~@/static/custom/product/productBg.png');
        // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0));
        padding: 0 20rpx;
        background-attachment: fixed;
        background-size: 100% auto;
        background-repeat: no-repeat;
        position: fixed;
        top: 0;
        bottom: 0;
        width: 100%;
        z-index: -1;
    }
        
    .productfeed-feedrecordlist-scroll-list-group{
        padding:0rpx 30rpx ;
        ::v-deep .u-cell-item-box {
            border-radius: 10rpx;
            padding: 25rpx 23rpx;
        }
        .content{
            height:400rpx;
            background: #F5F9FF;
            padding: 0rpx 14rpx;
            .row-list {
                height: 50rpx;
                display: flex;
                flex-direction: row;
                padding: 0px;
                align-items: center;
                justify-content: space-between;
            }
            .row-list ._label {
                display: flex;
                color: #666666;
                font-size:26rpx;
                align-items: center;
                width: 170rpx;
            }
            
            .row-list ._content {
                text-align: right;
                color: #909399;
                font-size: 24rpx;
                ._content-text{
                    color:#214ded;
                }
            }
            .row-list ._input {
                ::v-deep .uni-input-input{
                    color:#D35651;
                    border-bottom: 1px solid #ADC8E4;
                }
            }
        }
    }
</style>