From b2cb07157105f1ad8ba43ce174c8069c7ac8cfd1 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 11 九月 2024 15:03:11 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/staff/task/driver.vue | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/h5/pages/staff/task/driver.vue b/h5/pages/staff/task/driver.vue
index 6532036..7bc40ed 100644
--- a/h5/pages/staff/task/driver.vue
+++ b/h5/pages/staff/task/driver.vue
@@ -3,7 +3,9 @@
<view class="status_wrap">
<view class="name">{{info.driverName}}鐨勫叆鍥绾�</view>
<view class="desc">{{info.carCodeFront}}</view>
- <view class="status">{{ statusMap[info.status] }}</view>
+ <view class="status" v-if="info.status != 2 && info.status != 3">{{ statusMap[info.status] }}</view>
+ <image v-if="info.status == 2" class="icon" src="@/static/ic_passed@2x.png" mode=""></image>
+ <image v-if="info.status == 3" class="icon" src="@/static/ic_refused@2x.png" mode=""></image>
</view>
<!-- -->
<view class="emyty"></view>
@@ -89,6 +91,9 @@
<view class="name_wrap">
<text>{{item.memberName}}<text v-if="item.statusInfo" class="status">({{item.statusInfo}})</text></text>
</view>
+ <div v-if="item.checkInfo" class="remark">
+ {{ item.checkInfo }}
+ </div>
<view v-if="item.approveType == 1" class="carbon">
<view class="carbon_item" v-for="child in item.approveList"
:key="child.id">
@@ -121,6 +126,7 @@
<view class="appr_modal">
<view class="title">{{ this.flag == '0' ? '鎷掔粷' : '鍚屾剰' }}</view>
<textarea
+ v-model="checkInfo"
:placeholder="this.flag == '0' ? '鎷掔粷璇存槑锛屽繀濉�' : '鍚屾剰璇存槑锛岄潪蹇呭~'"
placeholder-class="placeholder9"
/>
@@ -146,8 +152,8 @@
statusMap: {
0: '寰呭鎵�',
1: '瀹℃壒涓�',
- 2: '瀹℃壒閫氳繃',
- 3: '瀹℃壒涓嶉�氳繃',
+ 2: '宸查�氳繃',
+ 3: '宸叉嫆缁�',
4: '宸插彇娑�',
},
}
@@ -176,7 +182,7 @@
},
handleAppy() {
const {flag,checkInfo, type,info } = this
- if(flag == 0 && !checkInfo) return this.showToast('鎷掔粷璇存槑蹇呭~')
+ if(flag == 0 && checkInfo == '') return this.showToast('鎷掔粷璇存槑蹇呭~')
carUseBookAppr({
checkInfo,objId: info.id,objType: 6,status: flag == 0 ? 3 : 2
}).then(res => {
@@ -386,6 +392,15 @@
background-color: #e9edff;
color: $uni-color-primary;
}
+ .icon{
+ width: 120rpx;
+ height: 120rpx;
+ border-radius: 50%;
+ position: absolute;
+ right: 0rpx;
+ top: 20rpx;
+
+ }
}
.main_footer {
--
Gitblit v1.9.3