From 2d43a1df3f5ba42710e6d21c27d1e13bdb8dfd56 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 24 三月 2025 09:23:08 +0800
Subject: [PATCH] -
---
src/pages/checkin/index.vue | 37 ++++++++++++++++++++++++-------------
1 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/src/pages/checkin/index.vue b/src/pages/checkin/index.vue
index f5ac1e7..2bc1673 100644
--- a/src/pages/checkin/index.vue
+++ b/src/pages/checkin/index.vue
@@ -3,15 +3,16 @@
<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='init' disabled v-model="wordDate" search-icon="calendar"
+ @search='init'></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> -->
</view>
<view class="coreshop-ff content c-p-10">
- <up-search placeholder="璇疯緭鍏ュ叕鍙稿悕绉�" v-model="Suppliername" @clear='PostMyDakaListPage'
- @custom='PostMyDakaListPage' @search='PostMyDakaListPage'></up-search>
+ <up-search placeholder="璇疯緭鍏ュ叕鍙稿悕绉�" v-model="Suppliername" @clear='init'
+ @custom='init' @search='init'></up-search>
<!-- <up-search placeholder="璇风偣鍑婚�夋嫨鎵撳崱鏃ユ湡" @click='clickIcon' @clear='PostMyDakaListPage' disabled
v-model="wordDate" search-icon="calendar" @search='PostMyDakaListPage'
@custom='PostMyDakaListPage'></up-search> -->
@@ -38,14 +39,22 @@
</text> -->
<!-- <up-tag class='c-m-r-10' :text="item.isShenPiName" shape="circle" type="success" plain
plainFill size='mini'></up-tag> -->
- <up-text type="success" :text="item.isShenPiName" size='14'></up-text>
+ <view class="chuany-width10" v-if="item.isShenPi==0">
+ <!-- v-if="item.isShenPiName!=='宸茬粨绠�'" -->
+ <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>
+ <up-text v-else type="success" :text="item.isShenPiName" size='14'></up-text>
<!-- <up-tag text="宸茬‘璁�" shape="circle" type="success" plain plainFill size='mini'></up-tag> -->
</view>
</view>
<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>
@@ -73,12 +82,13 @@
</text>
</view>
<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>
- </view>
+ <!-- <view class="chuany-width10" v-if="item.isShenPi==0"> -->
+ <!-- v-if="item.isShenPiName!=='宸茬粨绠�'" -->
+ <!-- <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>
</view>
@@ -235,9 +245,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 : '澶辫触锛�'
--
Gitblit v1.9.1