-
zhangwei
2024-09-30 2e61c194b816364fe4fbab967fee13dbefe86216
src/pages/worker/salary.vue
@@ -2,8 +2,15 @@
   <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='search'
               v-model="workTime" search-icon="calendar" @search='search'></up-search>
            <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> -->
@@ -66,6 +73,7 @@
   let workTime = ref('')
   let datePickerShow = ref(false)
   let loadStatus = ref('loadmore')
   let workerUserName = ref('')
   let totalPages = ref(0)
   let listO = reactive({
      orderList: []
@@ -97,18 +105,19 @@
      PostMyListPage()
   }
   const search = (index) => {
      console.log(index, '------’');
      if (index == 0) {
         PostMyListPage()
      } else {
         PostMyListPage(index - 1)
      }
   // const search = (index) => {
   //    console.log(index, '------’');
   //    if (index == 0) {
   //       PostMyListPage()
   //    } else {
   //       PostMyListPage(index - 1)
   //    }
   }
   // }
   const clear = () => {
      state.wordDateStart = ""
      state.wordDateEnd = ""
      PostMyListPage()
   }
   const clickTime = () => {
      datePickerShow.value = !datePickerShow.value
@@ -117,11 +126,11 @@
   const cancel = () => {
      datePickerShow.value = !datePickerShow.value
   }
   const PostMyListPage = (orderStatus) => {
   const PostMyListPage = () => {
      let data = {
         pageIndex: state.pageIndex,
         pageSize: state.pageSize,
         orderStatus
         workerUserName: workerUserName.value
      }
      if (state.wordDateStart) {
         data.wordDateStart = state.wordDateStart