-
zhangwei
2024-10-11 a1a7c2aed860d1a1bb1ac377a69cdeacb7609cb9
src/pages/checkin/index.vue
@@ -3,8 +3,9 @@
      <view class="">
         <up-sticky>
            <view class="coreshop-ff content c-p-l-10 c-p-t-10 c-p-r-10">
               <up-search placeholder="请点击选择打卡日期" @click='clickIcon' :show-action="false" @clear='PostMyDakaListPage'
                  disabled v-model="wordDate" search-icon="calendar" @search='PostMyDakaListPage'></up-search>
               <up-search placeholder="请点击选择打卡日期" @click='clickIcon' :show-action="false"
                  @clear='PostMyDakaListPage' disabled v-model="wordDate" search-icon="calendar"
                  @search='PostMyDakaListPage'></up-search>
               <!-- <up-input shape="round" class="u-search__content__input"></up-input> -->
               <!-- <up-search placeholder="请输入公司名称" :show-action="false" v-model="Suppliername" @clear='PostMyDakaListPage'
                  @search='PostMyDakaListPage'></up-search> -->
@@ -45,7 +46,8 @@
                     <view class="text-69 chuany-font28 c-p-t-8">
                        打卡记录:{{item.dakaMingxi}}
                     </view>
                     <view class="chuany-flex chuany-justify-between chuany-flex-wrap c-p-t-8 text-69 chuany-font28">
                     <view
                        class="chuany-flex chuany-justify-between chuany-flex-wrap c-p-t-8 text-69 chuany-font28">
                        <text class="chuany-width48">
                           时长:{{item.workTime}}
                        </text>
@@ -75,9 +77,10 @@
                        <view class="chuany-width48 c-p-t-8">
                           <view class="chuany-width10" v-if="item.isShenPi==0">
                              <!-- v-if="item.isShenPiName!=='已结算'" -->
                              <up-button class="button-layout__item" text="工资申报" size="mini"
                                 :loading='item.isLoading' loadingText="申报中" @click.stop='saveDakaDetail(item)'
                                 type="warning"></up-button>
                              <up-button class="button-layout__item"
                                 :text="item.workerType==0?'结束今日工作':'计件申报'" size="mini"
                                 :loading='item.isLoading' :loadingText="item.workerType==0?'结束中':'申报中'"
                                 @click.stop='saveDakaDetail(item)' type="warning"></up-button>
                           </view>
                        </view>
                     </view>
@@ -235,9 +238,10 @@
            this.$api.saveDakaDetail(obj).then(res => {
               if (res.code == 1) {
                  this.$util.showToast({
                     title: '申报成功!',
                     title: item.workerType == 0 ? '结束今日工作成功!' : '计件申报成功!',
                     icon: 'success'
                  })
                  this.init()
               } else {
                  this.$util.showToast({
                     title: res.error ? res.error : '失败!'