小小儁爺
2024-05-28 11ac3666423de5c03da72c388e38d869f04d9af7
pages/grzx/gzcl.vue
@@ -4,7 +4,7 @@
      <view class="mainContent" :style="{maxHeight:'1600rpx',overflow: 'scroll'}">
         <view>
            <u-gap height="10" bgColor="#eff0f1"></u-gap>
            <view class="head" :style="{height:detailOrderArray.find(i=>i.unprice===0)?'140rpx':'80rpx'}">
            <view class="head" :style="{height:'80rpx'}">
               <view class="head_block">
                  <view class="head_left marginLeft20">
                     <!-- <view class="head_bar"></view> -->
@@ -52,7 +52,7 @@
            </view>
            <u-gap height="10" bgColor="#eff0f1"></u-gap>
            <view class="head">
               <view class="head_block flex_column" :style="{minHeight:!custom?'230rpx':'130rpx'}">
               <view class="head_block flex_column" :style="{minHeight:!custom?'210rpx':'130rpx'}">
                  <view v-if="!custom" class="flex_column"
                     style="display: flex;justify-content: space-around;width: 100%;">
                     <view class="" style="display: flex;justify-content: center;width: 100%;">
@@ -63,7 +63,8 @@
                     <!--    <view class='inputClass' style="margin:10rpx auto 0;">
                           <u--input placeholder="请选择" border="surround" v-model="startDate"></u--input>
                        </view> -->
                     <u-button type="info" icon='calendar' iconColor="#0659FF" size="" @click="calendarClick"
                     <!-- icon='calendar' -->
                     <u-button type="info" iconColor="#0659FF" size="" @click="calendarClick"
                        :text="calendarRange">
                     </u-button>
@@ -74,8 +75,8 @@
                        <view class="number">{{ parseFloat(form.report_qty)}}</view>
                     </view>
                     <view class="head_block_item flex_column">
                        <view class="titleFont">良废扣除</view>
                        <view class="number">{{ parseFloat(form.userngbadmoney)}}</view>
                        <view class="titleFont">不良数量</view>
                        <view class="number">{{ parseFloat(form.userngbadqty)}}</view>
                     </view>
                     <view class="head_block_item flex_column">
                        <view class="titleFont">工资收入(元)</view>
@@ -84,9 +85,9 @@
                  </view>
               </view>
            </view>
            <u-gap height="20" bgColor="#eff0f1"></u-gap>
            <u-gap height="10" bgColor="#eff0f1"></u-gap>
            <view :style="{maxHeight:!custom?'830rpx':'960rpx',overflow: 'scroll'}">
               <view v-for="(item,index) in detailOrderArray" :key="key">
               <view v-for="(item,index) in detailOrderArray" :key="item.wo_code">
                  <view class="head">
                     <view
                        style="min-height: 100rpx; display: flex;justify-content: space-between; margin: 20rpx;">
@@ -109,7 +110,7 @@
                           </view>
                           <view class="lineH50">
                              <view class="titleFont">
                                 报工:
                                 合格:
                              </view>
                              <view class="contentFont">
                                 {{item.report_qty}}
@@ -117,28 +118,20 @@
                           </view>
                           <view class="lineH50">
                              <view class="titleFont">
                                 工废料废:
                                 工废:
                              </view>
                              <view class="contentFont">
                                 <!--    {{item.bad_qty}} -->
                                 {{item.laborbad_qty}}
                              </view>
                           </view>
                           <!--    <view class="lineH50">
                           <view class="lineH50">
                              <view class="titleFont">
                                 班组:
                                 单价:
                              </view>
                              <view class="contentFont">
                                 {{item.group_name}}
                                 {{item.unprice}}
                              </view>
                           </view>
                           <view class="lineH50" v-if="$company==='A'">
                              <view class="titleFont">
                                 分配比例:
                              </view>
                              <view class="contentFont">
                                 {{item.ratio}} %
                              </view>
                           </view> -->
                        </view>
                        <view class="flex_column" style="width: 35%;">
                           <view class="lineH50">
@@ -167,24 +160,24 @@
                           </view>
                           <view class="lineH50" :style="{color:item.unprice===0?'red':''}">
                              <view class="titleFont">
                                 单价:
                                 料废:
                              </view>
                              <view class="contentFont">
                                 {{item.unprice}}
                                 {{item.materielbad_qty}}
                              </view>
                           </view>
                           <view class="lineH50">
                           <!--       <view class="lineH50">
                              <view class="titleFont">
                                 人数:
                              </view>
                              <view class="contentFont">
                                 {{item.colum}}
                              </view>
                           </view>
                           </view> -->
                        </view>
                     </view>
                  </view>
                  <u-gap height="20" v-if="index!==detailOrderArray.length" bgColor="#eff0f1"></u-gap>
                  <u-gap height="10" v-if="index!==detailOrderArray.length" bgColor="#eff0f1"></u-gap>
               </view>
            </view>
         </view>
@@ -273,10 +266,9 @@
         async getData() {
            const data = {
               compute: this.compute ? 'last' : 'contin',
               Ratetime: this.calendarRange
            }
            const res = await PieceRateWage(this.global.formatData(data))
            const res = await PieceRateWage(data)
            if (res.code === '200') {
               this.form = res.data.dt0[0]
               this.detailOrderArray = res.data.dt1
@@ -364,7 +356,7 @@
   }
   ::v-deep .uicon-calendar {
      font-size: 28rpx !important;
      font-size: 20rpx !important;
   }
   .lineH50 {