朱桂飞
2023-03-29 0c26022095437c5ce3d1f790b70afb7ddabf0395
pages/tabBar/general.vue
@@ -88,21 +88,27 @@
            <view class="flex">
               <view class="flex-sub flex flex-direction">
                  <text class="text-df">烘干数量</text>
                  <text class="text-bold text-sl margin-top-xs text-cyan margin-top-sm">{{showValue(model.feed)}} <text
                        class="text-gray text-sm margin-left-xs">筐</text></text>
                  <text class="text-bold text-sl margin-top-xs text-cyan margin-top-sm">{{showValue(model.feed)}}
                     <text class="text-gray text-sm margin-left-xs">筐</text></text>
               </view>
               <view class="flex-twice flex flex-direction justify-between">
                  <view class="flex-sub flex">
                     <view class="flex flex-direction flex-sub">
                        <text class="text-gray text-xs">批次信息</text>
                        <text class="text-black"><text class="text-black">种类:</text> {{showValue(model.group)}} <text
                              class="text-gray text-xs"></text></text>
                        <text class="text-black">
                           <text class="text-black">种类:</text>
                           <text class="margin-lr-xs">{{showValue(model.group)}}</text>
                           <text class="text-gray text-xs"></text>
                        </text>
                     </view>
                     <view class="flex flex-direction flex-sub">
                        <text class="text-white text-xs">批次</text>
                        <text class="text-black"><text class="text-black">批次:</text> {{showValue(model.batch)}} <text
                              class="text-gray text-xs"></text></text>
                        <text class="text-black">
                           <text class="text-black">批次:</text>
                           <text class="margin-lr-xs">{{showValue(model.batch)}}</text>
                           <text class="text-gray text-xs"></text>
                        </text>
                     </view>
@@ -110,14 +116,20 @@
                  <view class="flex-sub flex margin-top-sm">
                     <view class="flex flex-direction flex-sub">
                        <text class="text-gray text-xs">烘干信息</text>
                        <text class="text-cyan"><text class="text-black">重量:</text> {{showValue(model.weight)}} <text
                              class="text-gray text-xs">kg</text></text>
                        <text class="text-cyan">
                           <text class="text-black">重量:</text>
                           <text class="margin-lr-xs">{{showValue(model.weight)}}</text>
                           <text class="text-gray text-xs">kg</text>
                        </text>
                     </view>
                     <view class="flex flex-direction flex-sub">
                        <text class="text-white text-xs">时间</text>
                        <text class="text-cyan"><text class="text-black">时间:</text> {{showValue(model.dryTime)}} <text
                              class="text-gray text-xs">min</text></text>
                        <text class="text-cyan">
                           <text class="text-black">时间:</text>
                           <text class="margin-lr-xs">{{showValue(model.dryTime)}}</text>
                           <text class="text-gray text-xs">min</text>
                        </text>
                     </view>
                  </view>
@@ -146,7 +158,8 @@
            </view>
         </view>
         <lunc-calendar ref="calendar" @dayChange="dayChange" weekType="星期" @monthChange="monthChange" :showShrink="true" shrinkState="week" :signList="monthList"></lunc-calendar>
         <lunc-calendar ref="calendar" @dayChange="dayChange" weekType="星期" @monthChange="monthChange"
            :showShrink="true" shrinkState="week" :signList="monthList"></lunc-calendar>
      </view>
@@ -175,7 +188,8 @@
               <view style="width:160rpx;" class="flex align-center text-xs ">
                  <text>进度:</text>
                  <view style="width: 100rpx;">
                     <u-line-progress :percentage="calcProgress(item.dryTime,item.et)" height="10"></u-line-progress>
                     <u-line-progress :percentage="calcProgress(item.dryTime,item.et)"
                        height="10"></u-line-progress>
                  </view>
               </view>
            </view>
@@ -188,7 +202,8 @@
               <view class="flex flex-direction margin-left-xl margin-left-sm justify-center">
                  <view>
                     <text class="text-xxl text-green">{{showValue(item.target)}}%</text>
                     <text class="text-xs margin-top-xs text-grey text-line-through">{{showValue(item.initial)}}%</text>
                     <text
                        class="text-xs margin-top-xs text-grey margin-left-xs text-line-through">{{showValue(item.initial)}}%</text>
                  </view>
                  <text class="text-xs margin-top-xs text-grey">含水率</text>
               </view>
@@ -197,7 +212,7 @@
                  <view>
                     <text class="text-xxl">{{showValue(item.yield )}}kg</text>
                     <text
                        class="text-xs margin-top-xs text-grey text-line-through">{{showValue(item.originWeight)}}kg</text>
                        class="text-xs margin-top-xs text-grey margin-left-xs text-line-through">{{showValue(item.originWeight)}}kg</text>
                  </view>
                  <view class="text-xs margin-top-xs text-grey">
@@ -398,6 +413,10 @@
                        gList.push(item.herbName)
                     }
                  });
                  if (weight) {
                     weight = weight.toFixed(1)
                  }
                  this.model.feed = feed
                  this.model.group  = gList.length
                  this.model.batch  = this.herbList.length
@@ -430,7 +449,11 @@
                     let date =  res.result[0]
                       let array =    date.split('-')
                      if(array && array.length == 3){
                         this.$refs.calendar.clickDay({"day":array[2],"month":array[1],"year":array[0]})
                        this.$refs.calendar.clickDay({
                           "day": parseInt(array[2]),
                           "month": parseInt(array[1]),
                           "year": parseInt(array[0])
                        })
                      }
                      
                  }