This commit is contained in:
浅念
2026-02-06 16:23:35 +08:00
parent bf3d85de0d
commit 8d8245ee4a
8 changed files with 474 additions and 342 deletions
+7 -2
View File
@@ -35,8 +35,8 @@
<uni-tag :text="item1.item_name" size="mini" type="primary" v-for="(item1, index) in item.item" :key="index"/>
</view>
<view class="card-info">
<text class="info-item">申请人: {{ item.apply_user_name }}</text>
<text class="info-item">归还时间: {{ item.return_at || '-' }}</text>
<text class="info-item">申请人: {{ item.applicant_name }}</text>
<text class="info-item">归还时间: {{ formatDate(item.return_at) }}</text>
</view>
<view class="action-btns">
@@ -128,6 +128,11 @@
}
return actionMap[status] || ''
},
// 格式化日期,只显示年月日
formatDate(dateStr) {
if (!dateStr) return '-'
return dateStr.split(' ')[0]
},
handleAction(item) {
uni.navigateTo({
url: '/pages/approval/return_approval_detils?id='+item.id