fix: 功能优化与完善。

This commit is contained in:
tianyongbao
2025-12-19 10:13:51 +08:00
parent c584880be8
commit 106f1cf117
16 changed files with 504 additions and 79 deletions

View File

@@ -63,6 +63,10 @@
</view>
<view class="operate" @click.stop>
<view class="btn-deal" v-if="item.status === '1'" @click="handleAddDeal(item)">
<uni-icons type="link" size="16" color="#1890ff"></uni-icons>
<text>借贷记账</text>
</view>
<view class="btn-edit" @click="handleEdit(item)">
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
<text>修改</text>
@@ -244,6 +248,14 @@ function selectType(value) {
}
});
}
function handleAddDeal(item) {
// 跳转到借贷账户记账页面传递借贷账户ID
uni.navigateTo({
url: `/pages/work/accounts/lendTransferRecord/addEdit?lendAccountId=${item.id}`
})
isShow.value = true
}
</script>
@@ -504,14 +516,16 @@ page {
display: flex;
justify-content: flex-end;
padding: 0 24rpx 24rpx;
gap: 16rpx;
gap: 12rpx;
flex-wrap: wrap;
.btn-deal,
.btn-edit,
.btn-delete {
display: flex;
align-items: center;
gap: 6rpx;
padding: 12rpx 24rpx;
padding: 12rpx 20rpx;
border-radius: 8rpx;
font-size: 26rpx;
transition: all 0.3s ease;
@@ -521,6 +535,13 @@ page {
}
}
.btn-deal {
background: rgba(24, 144, 255, 0.1);
color: #1890ff;
border: 2rpx solid #1890ff;
font-weight: 600;
}
.btn-edit {
background: rgba(102, 126, 234, 0.1);
color: #667eea;