From 447e19fa298ae11a1c3a3fa2d2ff3a1a8dba0501 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期四, 29 八月 2024 17:15:29 +0800 Subject: [PATCH] - --- src/pages/checkin/index.vue | 29 ++++++++++++++++++----------- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/pages/checkin/index.vue b/src/pages/checkin/index.vue index ed24411..dd8acd1 100644 --- a/src/pages/checkin/index.vue +++ b/src/pages/checkin/index.vue @@ -3,17 +3,17 @@ <up-sticky> <view class="coreshop-ff content c-p-10"> <up-search placeholder="璇风偣鍑婚�夋嫨鏃ユ湡" @clickIcon='clickIcon' v-model="wordDate" search-icon="calendar" - @custom='PostMyComDakaListPage'></up-search> + @custom='PostMyDakaListPage'></up-search> </view> <up-subsection :list="list" activeColor="#f9ae3d" @change="sectionChange"></up-subsection> </up-sticky> <view class="" v-if="viewList&&viewList.length>0"> - <view class="listrecord c-p-18" v-for="item in viewList" :key='item.id' @click='jumpWorkDetail'> + <view class="listrecord c-p-18" v-for="item in viewList" :key='item.id' @click='jumpWorkDetail(item)'> <view class="coreshop-ff chuany-bradius20"> <view class="bgblue c-p-l-18 c-p-r-18 c-p-t-10 c-p-b-10 chuany-flex chuany-justify-between chuany-font30"> <text class=''> - 鏃ユ湡锛歿{$util.formatDate(item.workDate,true)}} + 鏃ユ湡锛歿{$util.formatDate(item.workDate)}} </text> </view> <view class="c-p-26"> @@ -153,11 +153,11 @@ } }, onLoad() { - this.PostMyComDakaListPage(); + this.PostMyDakaListPage(); }, onReachBottom() { if (this.loadStatus != 'nomore') { - this.PostMyComDakaListPage(); + this.PostMyDakaListPage(); } }, onPullDownRefresh() { @@ -165,14 +165,21 @@ this.pageSize = 20 this.wordDate = '' this.isJieSuan = '' - this.PostMyComDakaListPage(); + this.PostMyDakaListPage(); }, methods: { sectionChange(val) { this.isJieSuan = val - this.PostMyComDakaListPage() + this.PostMyDakaListPage() }, saveDakaDetail(item) { + if(item.workerType==1&&this.workCount){ + this.$util.showToast({ + title:'璇峰~鍐欐暟閲忥紒', + icon:'error' + }) + return + } let obj = { orderBiddingDetailId: item.orderBiddingDetailId, //鎷涘伐鎵撳崱Id workTime: item.workTime, //宸ヤ綔鏃堕暱 @@ -185,7 +192,7 @@ console.log(res,'----'); }) }, - PostMyComDakaListPage() { + PostMyDakaListPage() { let data = { pageIndex: this.pageIndex, pageSize: this.pageSize, @@ -207,7 +214,7 @@ } data.isJieSuan = this.isJieSuan } - this.$api.PostMyComDakaListPage(data).then(res => { + this.$api.PostMyDakaListPage(data).then(res => { if (res.code == 1) { if (this.pageIndex == 1) { this.viewList = res.data.items @@ -233,9 +240,9 @@ clickIcon() { this.datePickerShow = true }, - jumpWorkDetail() { + jumpWorkDetail(item) { uni.navigateTo({ - url: '/pages/checkin/workdetail' + url: `/pages/checkin/workdetail?id=${item.orderBiddingDetailId}` }) } } -- Gitblit v1.9.1