zhangwei
2024-09-23 208b5a9f559dd2c7298759fdfe37d07c926cbd4d
src/pages/company/index.vue
@@ -38,7 +38,7 @@
                        打卡记录:{{item.dakaMingxi}}
                     </view>
                  </view>
                  <view class="chuany-flex chuany-justify-between chuany-flex-wrap text-69 c-p-t-8">
                     <view class="chuany-width48">
                        <text>
@@ -82,8 +82,9 @@
                     </view>
                     <view class="chuany-width48 c-p-t-8">
                        <view class="chuany-width10">
                           <up-button class="button-layout__item" :text="item.isShenPiName!=='已结算'?'确认':'修改'" size="mini"
                              :loading='item.isLoading' :loadingText="item.isShenPiName!=='已结算'?'确认中':'修改中'"
                           <up-button class="button-layout__item" :text="item.isShenPiName!=='已结算'?'确认':'修改'"
                              size="mini" :loading='item.isLoading'
                              :loadingText="item.isShenPiName!=='已结算'?'确认中':'修改中'"
                              @tap.stop='saveDakaDetailCompany(item)' type="warning"></up-button>
                        </view>
                     </view>
@@ -156,15 +157,15 @@
               obj.workCount = item.workCount
            }
            item.isLoading = true
            console.log(item.isShenPiName,'item.isShenPiName’');
            console.log(item.isShenPiName, 'item.isShenPiName’');
            this.$api.saveDakaDetailCompany(obj).then(res => {
               if (res.code == 1) {
                  this.$util.showToast({
                     title: item.isShenPiName=='已结算'?'修改成功!':'确认成功!',
                     title: item.isShenPiName == '已结算' ? '修改成功!' : '确认成功!',
                     icon: 'success'
                  })
                  this.PostMyComDakaListPage();
               }else {
               } else {
                  this.$util.showToast({
                     title: res.error ? res.error : '失败!'
                  })
@@ -199,10 +200,10 @@
                  if (this.pageIndex == 1) {
                     this.viewList = res.data.items
                  } else {
                     this.viewList.concat(...res.data.items)
                     this.viewList = this.viewList.concat(...res.data.items)
                  }
                  console.log(this.viewList, this.viewList.length, 'this.viewList');
                  this.viewList.forEach(item=>{
                  this.viewList.forEach(item => {
                     item.isLoading = false
                  })
                  // totalPages.value = res.data.totalCount