<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>
|