From f26f29d84e0a68831a6af14dab3eec5500496d2e Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 28 五月 2025 16:48:52 +0800 Subject: [PATCH] 初始化项目 --- pages/product/feed/feedRecordList.vue | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 179 insertions(+), 0 deletions(-) diff --git a/pages/product/feed/feedRecordList.vue b/pages/product/feed/feedRecordList.vue new file mode 100644 index 0000000..33e3b2d --- /dev/null +++ b/pages/product/feed/feedRecordList.vue @@ -0,0 +1,179 @@ +<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> + -- Gitblit v1.9.3