| | |
| | | 打卡记录:{{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> |
| | |
| | | </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> |
| | |
| | | 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 : '失败!' |
| | | }) |
| | |
| | | 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 |