-
zhangwei
2024-10-09 91be10dcd43367aae04df6330e33d229c216a72e
src/pages/worker/salary.vue
@@ -1,51 +1,55 @@
<template>
   <scroll-view class="full-page" scroll-y using-sticky>
      <up-sticky bgColor="#fff">
         <view class="coreshop-ff content c-p-10">
            <up-search placeholder="请点击选择日期" @clear='clear' @click='clickTime' disabled @custom='PostMyListPage'
               v-model="workTime" search-icon="calendar" @search='PostMyListPage' :show-action="false"></up-search>
         </view>
         <view class="coreshop-ff content c-p-10">
            <up-search placeholder="请输入工人名字" v-model="workerUserName" @custom='PostMyListPage'
               @clear='PostMyListPage' @search='PostMyListPage'></up-search>
            <!-- <up-search placeholder="请点击选择打卡日期" @click='clickIcon' @clear='PostMyComDakaListPage' disabled
               v-model="wordDate" search-icon="calendar" @search='PostMyComDakaListPage'
               @custom='PostMyComDakaListPage'></up-search> -->
         </view>
         <!-- <up-subsection :list="list" :current="current4" activeColor="#f9ae3d"
            @change="sectionChange"></up-subsection> -->
         <!-- <up-subsection :list="list" current='1' activeColor="#f9ae3d" @change="sectionChange"></up-subsection> -->
      </up-sticky>
      <view class="full-page-content c-p-b-100">
         <view class="c-p-l-20 c-p-r-20" v-if="listO.orderList&&listO.orderList.length>0">
            <view class="listrecord c-p-t-20" v-for="(item,index) in listO.orderList" :key="item.id"
               @click="pageToDetail(item)">
               <view class="coreshop-ff chuany-bradius20">
                  <view class="c-p-24 chuany-font32">
                     <view class="chuany-flex chuany-justify-between">
                        <text class="chuany-width28">
                           {{item.workerUserName}}
                        </text>
                        <view class="chuany-width68">
                           工资:{{item.todaySalary}} 元
   <view class="full-page" scroll-y using-sticky>
      <view class="">
         <up-sticky bgColor="#fff">
            <view class="coreshop-ff content c-p-10">
               <up-search placeholder="请点击选择日期" @clear='clear' @click='clickTime' disabled @custom='PostMyListPage'
                  v-model="workTime" search-icon="calendar" @search='PostMyListPage'
                  :show-action="false"></up-search>
            </view>
            <view class="coreshop-ff content c-p-10">
               <up-search placeholder="请输入工人名字" v-model="workerUserName" @custom='PostMyListPage'
                  @clear='PostMyListPage' @search='PostMyListPage'></up-search>
               <!-- <up-search placeholder="请点击选择打卡日期" @click='clickIcon' @clear='PostMyComDakaListPage' disabled
                  v-model="wordDate" search-icon="calendar" @search='PostMyComDakaListPage'
                  @custom='PostMyComDakaListPage'></up-search> -->
            </view>
            <!-- <up-subsection :list="list" :current="current4" activeColor="#f9ae3d"
               @change="sectionChange"></up-subsection> -->
            <!-- <up-subsection :list="list" current='1' activeColor="#f9ae3d" @change="sectionChange"></up-subsection> -->
         </up-sticky>
         <view class="full-page-content c-p-b-100">
            <view class="c-p-l-20 c-p-r-20" v-if="listO.orderList&&listO.orderList.length>0">
               <view class="listrecord c-p-t-20" v-for="(item,index) in listO.orderList" :key="item.id"
                  @click="pageToDetail(item)">
                  <view class="coreshop-ff chuany-bradius20">
                     <view class="c-p-24 chuany-font32">
                        <view class="chuany-flex chuany-justify-between">
                           <text class="chuany-width28">
                              {{item.workerUserName}}
                           </text>
                           <view class="chuany-width68">
                              工资:{{item.todaySalary}} 元
                           </view>
                        </view>
                     </view>
                  </view>
               </view>
               <up-loadmore :status="loadStatus" />
            </view>
            <up-loadmore :status="loadStatus" />
            <view v-else>
               <up-empty text='暂无' icon="/static/order.png">
               </up-empty>
            </view>
         </view>
         <view v-else>
            <up-empty text='暂无' icon="/static/order.png">
            </up-empty>
         <fui-date-picker range :show="datePickerShow" :value="$util.formatDate(new Date())" type="3"
            @change="changePicker" @cancel="cancel"></fui-date-picker>
         <view class="tabbtns">
            合计:{{heji}} 元
         </view>
      </view>
      <fui-date-picker range :show="datePickerShow" :value="$util.formatDate(new Date())" type="3"
         @change="changePicker" @cancel="cancel"></fui-date-picker>
   </scroll-view>
   <view class="tabbtns">
      合计:{{heji}} 元
   </view>
</template>
<script setup>