fix: 功能优化与完善。
This commit is contained in:
@@ -39,6 +39,13 @@
|
|||||||
<text class="info-value">{{ item.recentDealTime || '--' }}</text>
|
<text class="info-value">{{ item.recentDealTime || '--' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="action-buttons">
|
||||||
|
<view class="action-btn" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="cart" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>交易</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-list-item>
|
</u-list-item>
|
||||||
@@ -247,6 +254,19 @@ function selectType(item) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 构建URL参数:账户ID、账户类型、储蓄卡类型(如果有)
|
||||||
|
let url = `/pages/work/accounts/accountDealRecord/addEdit?accountId=${item.id}&accountType=${item.type}`
|
||||||
|
|
||||||
|
// 如果是储蓄账户(type=1)且有储蓄卡类型,传递储蓄卡类型参数
|
||||||
|
if (item.type === '1' && item.debitType) {
|
||||||
|
url += `&debitType=${item.debitType}`
|
||||||
|
}
|
||||||
|
|
||||||
|
uni.navigateTo({ url })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -517,6 +537,38 @@ page {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.action-buttons {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
padding-top: 20rpx;
|
||||||
|
border-top: 2rpx solid #f0f0f0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 16rpx;
|
||||||
|
|
||||||
|
.action-btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8rpx;
|
||||||
|
padding: 12rpx 32rpx;
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
border-radius: 12rpx;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: scale(0.95);
|
||||||
|
background: rgba(24, 144, 255, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
color: #1890ff;
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.info-row {
|
.info-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|||||||
@@ -156,6 +156,18 @@ const { form, queryAccountParams, rules} = toRefs(data)
|
|||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
flag.value = option.flag
|
flag.value = option.flag
|
||||||
|
|
||||||
|
// 接收从沉睡账户列表传递的参数
|
||||||
|
if (option.accountId) {
|
||||||
|
form.value.accountId = option.accountId
|
||||||
|
}
|
||||||
|
if (option.accountType) {
|
||||||
|
form.value.type = option.accountType
|
||||||
|
}
|
||||||
|
if (option.debitType) {
|
||||||
|
tempDebitType.value = option.debitType
|
||||||
|
}
|
||||||
|
|
||||||
if(flag.value==null){
|
if(flag.value==null){
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
title.value="账户交易记录-修改"
|
title.value="账户交易记录-修改"
|
||||||
@@ -170,7 +182,8 @@ onLoad((option) => {
|
|||||||
onReady(() => {
|
onReady(() => {
|
||||||
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
// 新增时默认显示储蓄账户类型筛选(因为默认就是储蓄卡)
|
// 新增时默认显示储蓄账户类型筛选(因为默认就是储蓄卡)
|
||||||
if(form.value.id == null && flag.value == null) {
|
// 但如果是从其他页面跳转过来且指定了非储蓄账户类型,则不显示
|
||||||
|
if(form.value.id == null && flag.value == null && form.value.type === '1') {
|
||||||
debitTypeShow.value = true
|
debitTypeShow.value = true
|
||||||
}
|
}
|
||||||
getData()
|
getData()
|
||||||
@@ -198,9 +211,43 @@ onLoad((option) => {
|
|||||||
childCategoryList.value =[res.data]
|
childCategoryList.value =[res.data]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 如果有储蓄卡类型,先设置查询参数
|
||||||
|
if (tempDebitType.value) {
|
||||||
|
queryAccountParams.value.debitType = tempDebitType.value
|
||||||
|
debitTypeShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置账户类型查询参数
|
||||||
|
if (form.value.type) {
|
||||||
|
queryAccountParams.value.type = form.value.type
|
||||||
|
}
|
||||||
|
|
||||||
listAccounts(queryAccountParams.value).then((response) => {
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
accountNameList.value = [response.rows]
|
accountNameList.value = [response.rows]
|
||||||
|
|
||||||
|
// 如果有预设的accountId,自动填充账户名称
|
||||||
|
if (form.value.accountId && response.rows.length > 0) {
|
||||||
|
const selectedAccount = response.rows.find(item => item.id === form.value.accountId)
|
||||||
|
if (selectedAccount) {
|
||||||
|
form.value.accountName = selectedAccount.nameCodeAvailableLimit
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 如果有储蓄卡类型,回填储蓄卡类型名称
|
||||||
|
if (tempDebitType.value) {
|
||||||
|
getDicts('debit_type').then(result => {
|
||||||
|
tempDebitTypeName.value = dictStr(tempDebitType.value, result.data)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 回填记账类型名称
|
||||||
|
if (form.value.type) {
|
||||||
|
getDicts('account_type').then(result => {
|
||||||
|
form.value.typeName = dictStr(form.value.type, result.data)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 交易类别
|
// 交易类别
|
||||||
getDicts('daily_expenses').then(result => {
|
getDicts('daily_expenses').then(result => {
|
||||||
form.value.childCategoryName=dictStr(form.value.childCategory, result.data)
|
form.value.childCategoryName=dictStr(form.value.childCategory, result.data)
|
||||||
|
|||||||
@@ -92,17 +92,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
|
||||||
<text>修改</text>
|
|
||||||
</view>
|
|
||||||
<view class="btn-delete" @click="handleDelete(item)">
|
|
||||||
<uni-icons type="trash" size="16" color="#f5576c"></uni-icons>
|
|
||||||
<text>删除</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</u-list-item>
|
</u-list-item>
|
||||||
<view>
|
<view>
|
||||||
|
|||||||
@@ -159,6 +159,12 @@ const { form, queryDebitCardParams, queryBankCardLendParams, rules} = toRefs(dat
|
|||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
|
|
||||||
|
// 接收从信用卡列表传递的参数
|
||||||
|
if (option.creditCardId) {
|
||||||
|
form.value.inAccountId = option.creditCardId
|
||||||
|
}
|
||||||
|
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
title.value="信用卡还款-修改"
|
title.value="信用卡还款-修改"
|
||||||
}else{
|
}else{
|
||||||
@@ -172,6 +178,14 @@ onLoad((option) => {
|
|||||||
function getData() {
|
function getData() {
|
||||||
listAccounts(queryBankCardLendParams.value).then((response) => {
|
listAccounts(queryBankCardLendParams.value).then((response) => {
|
||||||
bankCardLendList.value = [response.rows]
|
bankCardLendList.value = [response.rows]
|
||||||
|
|
||||||
|
// 如果有传递creditCardId参数,自动选中对应信用卡
|
||||||
|
if (form.value.inAccountId && response.rows.length > 0) {
|
||||||
|
const selectedCard = response.rows.find(item => item.id === form.value.inAccountId)
|
||||||
|
if (selectedCard) {
|
||||||
|
form.value.inAccountName = selectedCard.nameCodeAvailableLimit
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
listAccounts(queryDebitCardParams.value).then((response) => {
|
listAccounts(queryDebitCardParams.value).then((response) => {
|
||||||
debitCardList.value = [response.rows]
|
debitCardList.value = [response.rows]
|
||||||
|
|||||||
@@ -135,6 +135,12 @@ const { form, queryOutAccountParams, queryInAccountParams, rules} = toRefs(data)
|
|||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
|
|
||||||
|
// 接收从储蓄卡列表传递的参数
|
||||||
|
if (option.debitAccountId) {
|
||||||
|
form.value.outAccountId = option.debitAccountId
|
||||||
|
}
|
||||||
|
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
title.value="储蓄账户转账-修改"
|
title.value="储蓄账户转账-修改"
|
||||||
}else{
|
}else{
|
||||||
@@ -151,6 +157,14 @@ onLoad((option) => {
|
|||||||
})
|
})
|
||||||
listAccounts(queryOutAccountParams.value).then((response) => {
|
listAccounts(queryOutAccountParams.value).then((response) => {
|
||||||
outAccountList.value = [response.rows]
|
outAccountList.value = [response.rows]
|
||||||
|
|
||||||
|
// 如果有传递debitAccountId参数,自动选中对应储蓄账户
|
||||||
|
if (form.value.outAccountId && response.rows.length > 0) {
|
||||||
|
const selectedAccount = response.rows.find(item => item.id === form.value.outAccountId)
|
||||||
|
if (selectedAccount) {
|
||||||
|
form.value.outAccountName = selectedAccount.nameCodeAvailableLimit
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
getAccountsTransferRecord(form.value.id).then(res => {
|
getAccountsTransferRecord(form.value.id).then(res => {
|
||||||
|
|||||||
@@ -122,6 +122,12 @@ const { form, queryAccountParams, rules} = toRefs(data)
|
|||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
|
|
||||||
|
// 接收从理财账户列表传递的参数
|
||||||
|
if (option.accountId) {
|
||||||
|
form.value.accountId = option.accountId
|
||||||
|
}
|
||||||
|
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
title.value="投资交易记录-修改"
|
title.value="投资交易记录-修改"
|
||||||
}else{
|
}else{
|
||||||
@@ -140,6 +146,30 @@ onLoad((option) => {
|
|||||||
})
|
})
|
||||||
listAccounts(queryAccountParams.value).then((response) => {
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
accountNameList.value = [response.rows]
|
accountNameList.value = [response.rows]
|
||||||
|
|
||||||
|
// 如果有传递accountId参数,自动选中对应账户
|
||||||
|
if (form.value.accountId && response.rows.length > 0) {
|
||||||
|
const selectedAccount = response.rows.find(item => item.id === form.value.accountId)
|
||||||
|
if (selectedAccount) {
|
||||||
|
form.value.accountName = selectedAccount.nameCodeAvailableLimit
|
||||||
|
// 触发账户选择逻辑
|
||||||
|
getFutureStocks(selectedAccount.id).then((accountRes) => {
|
||||||
|
const account = accountRes.data
|
||||||
|
accountType.value = account.type
|
||||||
|
if (account.type == '1') {
|
||||||
|
futuresShow.value = true
|
||||||
|
form.value.amount = 0
|
||||||
|
form.value.closedPosition = null
|
||||||
|
form.value.commission = null
|
||||||
|
} else {
|
||||||
|
futuresShow.value = false
|
||||||
|
form.value.amount = null
|
||||||
|
form.value.closedPosition = 0
|
||||||
|
form.value.commission = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
getAccountDealRecord(form.value.id).then(res => {
|
getAccountDealRecord(form.value.id).then(res => {
|
||||||
|
|||||||
@@ -103,16 +103,13 @@
|
|||||||
<text class="info-label">余额</text>
|
<text class="info-label">余额</text>
|
||||||
<text class="info-value balance">{{ item.currentBalance || 0 }}元</text>
|
<text class="info-value balance">{{ item.currentBalance || 0 }}元</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<view class="btn-delete" @click.stop="handleDelete(item)">
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
|
||||||
<view class="btn-delete" @click="handleDelete(item)">
|
|
||||||
<uni-icons type="trash" size="16" color="#f5576c"></uni-icons>
|
<uni-icons type="trash" size="16" color="#f5576c"></uni-icons>
|
||||||
<text>删除</text>
|
<text>删除</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</u-list-item>
|
</u-list-item>
|
||||||
<view>
|
<view>
|
||||||
</view>
|
</view>
|
||||||
@@ -680,19 +677,19 @@ page {
|
|||||||
.info-row {
|
.info-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 24rpx;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12rpx;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
.info-item {
|
.info-item {
|
||||||
flex: 0 0 calc(50% - 12rpx);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4rpx;
|
gap: 4rpx;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin-bottom: -5rpx;
|
|
||||||
|
|
||||||
&.info-item-balance {
|
&.info-item-balance {
|
||||||
flex: 0 0 auto;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-label {
|
.info-label {
|
||||||
@@ -711,26 +708,15 @@ page {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.operate {
|
|
||||||
display: flex;
|
|
||||||
gap: 16rpx;
|
|
||||||
padding: 16rpx 24rpx 24rpx;
|
|
||||||
background: #fff;
|
|
||||||
justify-content: flex-end;
|
|
||||||
|
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 6rpx;
|
gap: 6rpx;
|
||||||
padding: 0 24rpx;
|
padding: 0 20rpx;
|
||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 12rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
@@ -739,6 +725,7 @@ page {
|
|||||||
background: rgba(245, 87, 108, 0.1);
|
background: rgba(245, 87, 108, 0.1);
|
||||||
color: #f5576c;
|
color: #f5576c;
|
||||||
border: 1rpx solid rgba(245, 87, 108, 0.3);
|
border: 1rpx solid rgba(245, 87, 108, 0.3);
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
|
|||||||
@@ -115,6 +115,12 @@ const { form, queryFutruesStocksParams, rules} = toRefs(data)
|
|||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
flag.value = option.flag
|
flag.value = option.flag
|
||||||
|
|
||||||
|
// 接收从理财账户列表传递的参数
|
||||||
|
if (option.investAccountId) {
|
||||||
|
form.value.inAccountId = option.investAccountId
|
||||||
|
}
|
||||||
|
|
||||||
if(flag.value==null){
|
if(flag.value==null){
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
title.value="投资账户记账-修改"
|
title.value="投资账户记账-修改"
|
||||||
@@ -132,6 +138,14 @@ onLoad((option) => {
|
|||||||
function getData() {
|
function getData() {
|
||||||
listFutureStocks(queryFutruesStocksParams.value).then((response) => {
|
listFutureStocks(queryFutruesStocksParams.value).then((response) => {
|
||||||
futruesStocksList.value = [response.rows]
|
futruesStocksList.value = [response.rows]
|
||||||
|
|
||||||
|
// 如果有传递investAccountId参数,自动选中对应投资账户
|
||||||
|
if (form.value.inAccountId && response.rows.length > 0) {
|
||||||
|
const selectedAccount = response.rows.find(item => item.id === form.value.inAccountId)
|
||||||
|
if (selectedAccount) {
|
||||||
|
form.value.inAccountName = selectedAccount.nameDebitNameCode
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// 类型
|
// 类型
|
||||||
getDicts('in_out').then(res => {
|
getDicts('in_out').then(res => {
|
||||||
|
|||||||
@@ -163,6 +163,12 @@ const { form, queryOutAccountParams, queryInAccountParams, rules} = toRefs(data)
|
|||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
form.value.id = option.id
|
form.value.id = option.id
|
||||||
|
|
||||||
|
// 接收从借贷账户列表传递的参数
|
||||||
|
if (option.lendAccountId) {
|
||||||
|
form.value.outAccountId = option.lendAccountId
|
||||||
|
}
|
||||||
|
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
title.value="借贷账户记账-修改"
|
title.value="借贷账户记账-修改"
|
||||||
}else{
|
}else{
|
||||||
@@ -179,6 +185,14 @@ onLoad((option) => {
|
|||||||
})
|
})
|
||||||
listAccounts(queryOutAccountParams.value).then((response) => {
|
listAccounts(queryOutAccountParams.value).then((response) => {
|
||||||
outAccountList.value = [response.rows]
|
outAccountList.value = [response.rows]
|
||||||
|
|
||||||
|
// 如果有传递lendAccountId参数,自动选中对应借贷账户
|
||||||
|
if (form.value.outAccountId && response.rows.length > 0) {
|
||||||
|
const selectedAccount = response.rows.find(item => item.id === form.value.outAccountId)
|
||||||
|
if (selectedAccount) {
|
||||||
|
form.value.outAccountName = selectedAccount.nameCodeAvailableLimit
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// 类型
|
// 类型
|
||||||
getDicts('record_lend_type').then(res => {
|
getDicts('record_lend_type').then(res => {
|
||||||
|
|||||||
@@ -84,6 +84,14 @@
|
|||||||
<uni-icons type="list" size="16" color="#fa8c16"></uni-icons>
|
<uni-icons type="list" size="16" color="#fa8c16"></uni-icons>
|
||||||
<text>调额记录</text>
|
<text>调额记录</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btn-repay" @click="handleRepay(item)">
|
||||||
|
<uni-icons type="redo" size="16" color="#52c41a"></uni-icons>
|
||||||
|
<text>还款</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn-deal" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="cart" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>交易</text>
|
||||||
|
</view>
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
<text>修改</text>
|
<text>修改</text>
|
||||||
@@ -280,6 +288,22 @@ function formatCardCode(code) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 构建URL参数:账户ID(信用卡ID)、账户类型(信用卡type=2)
|
||||||
|
let url = `/pages/work/accounts/accountDealRecord/addEdit?accountId=${item.id}&accountType=2`
|
||||||
|
|
||||||
|
uni.navigateTo({ url })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleRepay(item) {
|
||||||
|
// 跳转到信用卡还款页面,传递信用卡ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/creditTransferRecord/addEdit?creditCardId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -558,28 +582,48 @@ page {
|
|||||||
.operate {
|
.operate {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 16rpx;
|
gap: 8rpx;
|
||||||
padding: 16rpx 24rpx 24rpx;
|
padding: 16rpx 24rpx 24rpx;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
|
.btn-repay,
|
||||||
.btn-limit,
|
.btn-limit,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6rpx;
|
justify-content: center;
|
||||||
padding: 0 24rpx;
|
gap: 4rpx;
|
||||||
height: 64rpx;
|
padding: 0 14rpx;
|
||||||
border-radius: 12rpx;
|
height: 60rpx;
|
||||||
font-size: 26rpx;
|
border-radius: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
border: 1rpx solid;
|
border: 1rpx solid;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-deal {
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
color: #1890ff;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-repay {
|
||||||
|
background: rgba(82, 196, 26, 0.1);
|
||||||
|
color: #52c41a;
|
||||||
|
border: 2rpx solid #52c41a;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-limit {
|
.btn-limit {
|
||||||
background: rgba(250, 140, 22, 0.1);
|
background: rgba(250, 140, 22, 0.1);
|
||||||
color: #fa8c16;
|
color: #fa8c16;
|
||||||
|
|||||||
@@ -88,6 +88,14 @@
|
|||||||
<uni-icons type="list" size="16" color="#fa8c16"></uni-icons>
|
<uni-icons type="list" size="16" color="#fa8c16"></uni-icons>
|
||||||
<text>调额记录</text>
|
<text>调额记录</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btn-transfer" @click="handleTransfer(item)">
|
||||||
|
<uni-icons type="loop" size="16" color="#52c41a"></uni-icons>
|
||||||
|
<text>转账</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn-deal" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="cart" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>交易</text>
|
||||||
|
</view>
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
<text>修改</text>
|
<text>修改</text>
|
||||||
@@ -286,6 +294,27 @@ function selectStatus(item) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 构建URL参数:账户ID、账户类型(储蓄卡type=1)、储蓄卡类型
|
||||||
|
let url = `/pages/work/accounts/accountDealRecord/addEdit?accountId=${item.id}&accountType=1`
|
||||||
|
|
||||||
|
// 传递储蓄卡类型参数
|
||||||
|
if (item.debitType) {
|
||||||
|
url += `&debitType=${item.debitType}`
|
||||||
|
}
|
||||||
|
|
||||||
|
uni.navigateTo({ url })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleTransfer(item) {
|
||||||
|
// 跳转到储蓄账户转账页面,传递储蓄账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/debitTransferRecord/addEdit?debitAccountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -645,27 +674,46 @@ page {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 16rpx 24rpx 24rpx;
|
padding: 16rpx 24rpx 24rpx;
|
||||||
gap: 16rpx;
|
gap: 8rpx;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
|
.btn-transfer,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-limit,
|
.btn-limit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 6rpx;
|
gap: 4rpx;
|
||||||
padding: 0 24rpx;
|
padding: 0 14rpx;
|
||||||
height: 64rpx;
|
height: 60rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-deal {
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
color: #1890ff;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-transfer {
|
||||||
|
background: rgba(82, 196, 26, 0.1);
|
||||||
|
color: #52c41a;
|
||||||
|
border: 2rpx solid #52c41a;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-edit {
|
.btn-edit {
|
||||||
background: rgba(102, 126, 234, 0.1);
|
background: rgba(102, 126, 234, 0.1);
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
|
|||||||
@@ -56,6 +56,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
<view class="operate" @click.stop>
|
||||||
|
<view class="btn-record" v-if="item.status === '1'" @click="handleRecord(item)">
|
||||||
|
<uni-icons type="compose" size="16" color="#52c41a"></uni-icons>
|
||||||
|
<text>账户记账</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn-deal" v-if="item.status === '1'" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="bars" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>投资交易</text>
|
||||||
|
</view>
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
<text>修改</text>
|
<text>修改</text>
|
||||||
@@ -221,6 +229,22 @@ function dictStr(val, arr) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 跳转到投资交易记录页面,传递账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/investAccountDeal/addEdit?accountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleRecord(item) {
|
||||||
|
// 跳转到投资账户记账页面,传递账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/investTransferRecord/addEdit?investAccountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -415,27 +439,46 @@ page {
|
|||||||
.operate {
|
.operate {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 16rpx;
|
gap: 8rpx;
|
||||||
padding: 16rpx 24rpx 24rpx;
|
padding: 16rpx 24rpx 24rpx;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
|
.btn-record,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 6rpx;
|
gap: 4rpx;
|
||||||
padding: 0 24rpx;
|
padding: 0 14rpx;
|
||||||
height: 64rpx;
|
height: 60rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-deal {
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
color: #1890ff;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-record {
|
||||||
|
background: rgba(82, 196, 26, 0.1);
|
||||||
|
color: #52c41a;
|
||||||
|
border: 2rpx solid #52c41a;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-edit {
|
.btn-edit {
|
||||||
background: rgba(102, 126, 234, 0.1);
|
background: rgba(102, 126, 234, 0.1);
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
|
|||||||
@@ -66,6 +66,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
<view class="operate" @click.stop>
|
||||||
|
<view class="btn-record" v-if="item.status === '1'" @click="handleRecord(item)">
|
||||||
|
<uni-icons type="compose" size="16" color="#52c41a"></uni-icons>
|
||||||
|
<text>账户记账</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn-deal" v-if="item.status === '1'" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="bars" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>投资交易</text>
|
||||||
|
</view>
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
<text>修改</text>
|
<text>修改</text>
|
||||||
@@ -221,6 +229,22 @@ function dictStr(val, arr) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 跳转到投资交易记录页面,传递账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/investAccountDeal/addEdit?accountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleRecord(item) {
|
||||||
|
// 跳转到投资账户记账页面,传递账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/investTransferRecord/addEdit?investAccountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -422,27 +446,46 @@ page {
|
|||||||
.operate {
|
.operate {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 16rpx;
|
gap: 8rpx;
|
||||||
padding: 16rpx 24rpx 24rpx;
|
padding: 16rpx 24rpx 24rpx;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
|
.btn-record,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 6rpx;
|
gap: 4rpx;
|
||||||
padding: 0 24rpx;
|
padding: 0 14rpx;
|
||||||
height: 64rpx;
|
height: 60rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-deal {
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
color: #1890ff;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-record {
|
||||||
|
background: rgba(82, 196, 26, 0.1);
|
||||||
|
color: #52c41a;
|
||||||
|
border: 2rpx solid #52c41a;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-edit {
|
.btn-edit {
|
||||||
background: rgba(102, 126, 234, 0.1);
|
background: rgba(102, 126, 234, 0.1);
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
|
|||||||
@@ -63,6 +63,10 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
<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)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
<text>修改</text>
|
<text>修改</text>
|
||||||
@@ -245,6 +249,14 @@ function selectType(value) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 跳转到借贷账户记账页面,传递借贷账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/lendTransferRecord/addEdit?lendAccountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -504,14 +516,16 @@ page {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 0 24rpx 24rpx;
|
padding: 0 24rpx 24rpx;
|
||||||
gap: 16rpx;
|
gap: 12rpx;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6rpx;
|
gap: 6rpx;
|
||||||
padding: 12rpx 24rpx;
|
padding: 12rpx 20rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
transition: all 0.3s ease;
|
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 {
|
.btn-edit {
|
||||||
background: rgba(102, 126, 234, 0.1);
|
background: rgba(102, 126, 234, 0.1);
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
|
|||||||
@@ -55,6 +55,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
<view class="operate" @click.stop>
|
||||||
|
<view class="btn-record" v-if="item.status === '1'" @click="handleRecord(item)">
|
||||||
|
<uni-icons type="compose" size="16" color="#52c41a"></uni-icons>
|
||||||
|
<text>账户记账</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn-deal" v-if="item.status === '1'" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="bars" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>投资交易</text>
|
||||||
|
</view>
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
<text>修改</text>
|
<text>修改</text>
|
||||||
@@ -210,6 +218,22 @@ function dictStr(val, arr) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 跳转到投资交易记录页面,传递账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/investAccountDeal/addEdit?accountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleRecord(item) {
|
||||||
|
// 跳转到投资账户记账页面,传递账户ID
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/work/accounts/investTransferRecord/addEdit?investAccountId=${item.id}`
|
||||||
|
})
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -412,27 +436,46 @@ page {
|
|||||||
.operate {
|
.operate {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 16rpx;
|
gap: 8rpx;
|
||||||
padding: 16rpx 24rpx 24rpx;
|
padding: 16rpx 24rpx 24rpx;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
|
.btn-record,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 6rpx;
|
gap: 4rpx;
|
||||||
padding: 0 24rpx;
|
padding: 0 14rpx;
|
||||||
height: 64rpx;
|
height: 60rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-deal {
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
color: #1890ff;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-record {
|
||||||
|
background: rgba(82, 196, 26, 0.1);
|
||||||
|
color: #52c41a;
|
||||||
|
border: 2rpx solid #52c41a;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-edit {
|
.btn-edit {
|
||||||
background: rgba(102, 126, 234, 0.1);
|
background: rgba(102, 126, 234, 0.1);
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
|
|||||||
@@ -86,9 +86,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="operate" @click.stop>
|
<view class="operate" @click.stop>
|
||||||
|
|
||||||
<view class="btn-detail" @click="enterDetails(item)">
|
<view class="btn-detail" @click="enterDetails(item)">
|
||||||
<uni-icons type="list" size="16" color="#52c41a"></uni-icons>
|
<uni-icons type="list" size="16" color="#52c41a"></uni-icons>
|
||||||
<text>账单明细</text>
|
<text>账单明细</text>
|
||||||
|
</view>
|
||||||
|
<view class="btn-deal" @click="handleAddDeal(item)">
|
||||||
|
<uni-icons type="cart" size="16" color="#1890ff"></uni-icons>
|
||||||
|
<text>交易</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-edit" @click="handleEdit(item)">
|
<view class="btn-edit" @click="handleEdit(item)">
|
||||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||||
@@ -291,6 +296,14 @@ function selectStatus(value) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleAddDeal(item) {
|
||||||
|
// 构建URL参数:账户ID(信用卡ID)、账户类型(信用卡type=2)
|
||||||
|
let url = `/pages/work/accounts/accountDealRecord/addEdit?accountId=${item.creditCardId}&accountType=2`
|
||||||
|
|
||||||
|
uni.navigateTo({ url })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -656,8 +669,10 @@ page {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 16rpx 24rpx 24rpx;
|
padding: 16rpx 24rpx 24rpx;
|
||||||
gap: 16rpx;
|
gap: 12rpx;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.btn-deal,
|
||||||
.btn-detail,
|
.btn-detail,
|
||||||
.btn-edit,
|
.btn-edit,
|
||||||
.btn-delete {
|
.btn-delete {
|
||||||
@@ -665,7 +680,7 @@ page {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 6rpx;
|
gap: 6rpx;
|
||||||
padding: 0 24rpx;
|
padding: 0 20rpx;
|
||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
border-radius: 12rpx;
|
border-radius: 12rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
@@ -677,6 +692,13 @@ page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-deal {
|
||||||
|
background: rgba(24, 144, 255, 0.1);
|
||||||
|
color: #1890ff;
|
||||||
|
border: 2rpx solid #1890ff;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-detail {
|
.btn-detail {
|
||||||
background: rgba(82, 196, 26, 0.1);
|
background: rgba(82, 196, 26, 0.1);
|
||||||
color: #52c41a;
|
color: #52c41a;
|
||||||
|
|||||||
Reference in New Issue
Block a user