qingyiay
2023-07-02 f5427eeb16cadd3b0534454ab3c92df6f0ec1536
pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
@@ -57,25 +57,36 @@
               </view>
            </view>
         </view>
         <view class="origin-info"
            v-if="yyDailyList.orderType == '外购' || yyDailyList.orderType == '内购' || yyDailyList.orderType == '转入'">
            <combined-title title="原发信息"></combined-title>
            <view class="body-container">
               <view class="container-block">
                  <view class="">皮重</view>
                  <view class="">{{ yyDailyList.skinTwo || 0 }}</view>
               </view>
            </view>
            <view class="body-container">
               <view class="container-block">
                  <view class="">毛重</view>
                  <view class="">{{ yyDailyList.hairTwo || 0 }}</view>
               </view>
            </view>
            <view class="body-container last">
               <view class="container-block">
                  <view class="">净重</view>
                  <view class="">{{ yyDailyList.cleanTwo || 0 }}</view>
         <view class="weigh-history"
            v-if="showWeigh.length!==0">
            <view class="block-main">
               <view class="weigh-item"
                  v-for='item in showWeigh'
                  :key="item.id">
                  <view class="weigh-time">
                     <u-tag :text="item.createTime.slice(-8,-3)"
                        plain></u-tag>
                  </view>
                  <view class="item-block">
                     <view class="item">
                        <view class="concrete"
                           :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/skin.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
                           皮</view>
                        <view class="num">{{ item.skin }}</view>
                     </view>
                     <view class="item">
                        <view class="concrete"
                           :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/hair.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
                           毛</view>
                        <view class="num">{{ item.hair }}</view>
                     </view>
                     <view class="item">
                        <view class="concrete"
                           :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/clean.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
                           净</view>
                        <view class="num">{{ item.clean }}</view>
                     </view>
                  </view>
               </view>
            </view>
         </view>
@@ -85,7 +96,7 @@
<script>
   import combinedTitle from '@/components/combined-title/combined-title.vue';
   import { onlineurl } from '@/api/request.js'
   export default {
      components: {
         combinedTitle
@@ -102,8 +113,15 @@
            yyDailyList: {},
            orderPlanDetail: {},
            coalStatus: ['未称重', '称重中', '验质中', '称重完成'],
            index: ''
            index: '',
            onlineurl,
         };
      },
      computed: {
         // 展示皮毛净
         showWeigh() {
            return this.orderPlanDetail.tmTaskCoalItems ? this.orderPlanDetail.tmTaskCoalItems : []
         }
      },
      methods: {
         GetOrderPlanDetail() {
@@ -114,7 +132,6 @@
               if (res.code == 0) {
                  this.orderPlanDetail = res.data;
                  this.yyDailyList = res.data;
                  console.log(this.yyDailyList);
                  uni.hideLoading();
               } else {
                  this.$u.toast('加载失败');
@@ -169,33 +186,70 @@
         }
      }
      .origin-info {
      .weigh-history {
         width: 690rpx;
         min-height: 300rpx;
         height: 100%;
         min-height: 420rpx;
         margin: vww(40) auto;
         margin-top: 20rpx;
         margin-bottom: 20rpx;
         background: #ffffff;
         box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
         box-shadow: 4rpx 6rpx 51rpx 0rpx rgba(73, 120, 240, 0.11);
         border-radius: 20rpx;
         @include flex;
         flex-direction: column;
         align-items: flex-start;
         position: relative;
         font-size: 30rpx;
         font-weight: 300;
         color: #303030;
         overflow: hidden;
         .body-container {
            width: 100%;
            height: vww(56);
            border-bottom: vww(1) solid #d6d6d6;
            @include flex;
            justify-content: center;
            .container-block {
               width: 94%;
         .block-main {
            display: grid;
            grid-template-columns: auto;
            grid-template-rows: repeat(auto-fit, minmax(40rpx, 1fr));
            gap: auto 5rpx;
            width: 94%;
            height: 100%;
            min-height: 380rpx;
            margin: vww(18) vww(7) vww(11) vww(17);
            gap: 10rpx 20rpx;
            .weigh-item {
               width: 100%;
               height: vww(80);
               @include flex;
            }
         }
               flex-direction: column;
               justify-content: space-around;
               align-items: flex-start;
         .last {
            border-bottom: none;
               .item-block {
                  width: 100%;
                  height: vww(36);
                  @include flex;
                  justify-content: space-around;
                  .item {
                     min-width: vww(50);
                     height: vww(45);
                     font-size: 21rpx;
                     font-weight: 400;
                     color: #ffffff;
                     text-align: center;
                     line-height: vww(30);
                     @include flex;
                     .concrete {
                        width: vww(36);
                        height: vww(36);
                     }
                     .num {
                        font-size: 40rpx;
                        font-weight: 300;
                        color: #303030;
                     }
                  }
               }
            }
         }
      }
   }