feat: 新增投资账户记账、投资交易记录、借贷账户记账3个功能,优化部分功能显示。
This commit is contained in:
5
.idea/.gitignore
generated
vendored
Normal file
5
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# 默认忽略的文件
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# 基于编辑器的 HTTP 客户端请求
|
||||||
|
/httpRequests/
|
||||||
12
.idea/intc-invest-vue-app.iml
generated
Normal file
12
.idea/intc-invest-vue-app.iml
generated
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/intc-invest-vue-app.iml" filepath="$PROJECT_DIR$/.idea/intc-invest-vue-app.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -146,9 +146,23 @@
|
|||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
"path": "pages/work/accounts/debitTransferRecord/addEdit",
|
"path": "pages/work/accounts/lendTransferRecord/list",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "储蓄账户记账"
|
"navigationBarTitleText": "借贷账户记账"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/lendTransferRecord/details",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "借贷账户记账详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/lendTransferRecord/addEdit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "借贷账户记账"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
@@ -157,6 +171,13 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "记账账户"
|
"navigationBarTitleText": "记账账户"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/accounts/commonList",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "记账账户"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/work/accounts/accounts/details",
|
"path": "pages/work/accounts/accounts/details",
|
||||||
@@ -189,6 +210,46 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "心路历程"
|
"navigationBarTitleText": "心路历程"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/investTransferRecord/list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "投资账户记账"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/investTransferRecord/details",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "信投资账户记账详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/investTransferRecord/addEdit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "投资账户记账"
|
||||||
|
}
|
||||||
|
} ,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/investAccountDeal/list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "投资交易记录"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/investAccountDeal/details",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "投资交易记录详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "pages/work/accounts/investAccountDeal/addEdit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "投资交易记录"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"subPackages": [
|
"subPackages": [
|
||||||
|
|||||||
@@ -92,10 +92,10 @@ const data = reactive({
|
|||||||
form: {
|
form: {
|
||||||
id: null,
|
id: null,
|
||||||
name: null,
|
name: null,
|
||||||
type: null,
|
type: '1',
|
||||||
accountId: null,
|
accountId: null,
|
||||||
amount: 0,
|
amount: 0,
|
||||||
dealType: null,
|
dealType: '2',
|
||||||
createBy: null,
|
createBy: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
@@ -103,12 +103,12 @@ const data = reactive({
|
|||||||
delFlag: null,
|
delFlag: null,
|
||||||
remark: null,
|
remark: null,
|
||||||
currentBalance: null,
|
currentBalance: null,
|
||||||
dealCategory: null
|
dealCategory: '1'
|
||||||
},
|
},
|
||||||
queryAccountParams: {
|
queryAccountParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
state: '1',
|
state: '1',
|
||||||
type: '',
|
type: '1',
|
||||||
pageSize: 1000
|
pageSize: 1000
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
@@ -153,21 +153,35 @@ onLoad((option) => {
|
|||||||
listAccounts(queryAccountParams.value).then((response) => {
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
accountNameList.value = [response.rows]
|
accountNameList.value = [response.rows]
|
||||||
})
|
})
|
||||||
|
// 交易类别
|
||||||
|
getDicts('deal_category').then(result => {
|
||||||
|
form.value.dealCategoryName=dictStr(form.value.dealCategory, result.data)
|
||||||
|
})
|
||||||
|
// 记账类型
|
||||||
|
getDicts('account_type').then(result => {
|
||||||
|
form.value.typeName=dictStr(form.value.type, result.data)
|
||||||
|
})
|
||||||
|
// 交易类型
|
||||||
|
getDicts('deal_type').then(result => {
|
||||||
|
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
|
||||||
if(form.value.id!=null){
|
if(form.value.id!=null){
|
||||||
getAccountDealRecord(form.value.id).then(res => {
|
getAccountDealRecord(form.value.id).then(res => {
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
// 记账类型
|
// 交易类别
|
||||||
getDicts('account_type').then(result => {
|
getDicts('deal_category').then(result => {
|
||||||
|
form.value.dealCategoryName=dictStr(form.value.dealCategory, result.data)
|
||||||
|
})
|
||||||
|
// 记账类型
|
||||||
|
getDicts('account_type').then(result => {
|
||||||
form.value.typeName=dictStr(form.value.type, result.data)
|
form.value.typeName=dictStr(form.value.type, result.data)
|
||||||
})
|
})
|
||||||
// 交易类型
|
// 交易类型
|
||||||
getDicts('deal_type').then(result => {
|
getDicts('deal_type').then(result => {
|
||||||
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
||||||
})
|
})
|
||||||
// 交易类别
|
|
||||||
getDicts('deal_category').then(result => {
|
|
||||||
form.value.dealCategoryName=dictStr(form.value.dealCategory, result.data)
|
|
||||||
})
|
|
||||||
queryAccountParams.value.type = ""
|
queryAccountParams.value.type = ""
|
||||||
listAccounts(queryAccountParams.value).then((response) => {
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
accountNameList.value = [response.rows]
|
accountNameList.value = [response.rows]
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<view class="list-item">
|
<view class="list-item">
|
||||||
<view class="item-header" @click="enterDetails(item)">
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
:text="item.accountName" size="36rpx" color="#333333" :bold="true"></u--text>
|
:text="item.accountName+'交易金额:'+item.amount" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="row-label">记账类型:</text>
|
<text class="row-label">记账类型:</text>
|
||||||
|
|||||||
389
src/pages/work/accounts/accounts/commonList.vue
Normal file
389
src/pages/work/accounts/accounts/commonList.vue
Normal file
@@ -0,0 +1,389 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||||
|
<view class="search-view">
|
||||||
|
<u--input v-model="queryParams.name" border="false" placeholder="请输入名称" class="search-input"
|
||||||
|
@blur="searchBlur">
|
||||||
|
<template slot="prefix">
|
||||||
|
<u-icon name="search" color="#B8B8B8" size="48"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u--input>
|
||||||
|
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="filterPanel = !filterPanel"></u-icon>
|
||||||
|
<!-- <u-icon name="plus-circle-fill" color="#666666" size="28" style="margin-left:10px" label="新增"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="handleAdd()"></u-icon> -->
|
||||||
|
<u-transition :show="filterPanel" mode="fade">
|
||||||
|
<view class="filter-panel" :style="{ height: `${windowHeight - 42}px` }">
|
||||||
|
<view class="filter-panel-content">
|
||||||
|
<view class="filter-title">账户类型</view>
|
||||||
|
<view class="state-list">
|
||||||
|
<view v-for="item in accountType" :key="item.id" class="state-item"
|
||||||
|
:class="item.selected ? 'active' : ''" @click="selectType(item)">{{ item.dictLabel }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="filter-title">账户状态</view>
|
||||||
|
<view class="state-list">
|
||||||
|
<view v-for="item in accountState" :key="item.id" class="state-item"
|
||||||
|
:class="item.selected ? 'active' : ''" @click="selectStatus(item)">{{ item.dictLabel }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btn-box">
|
||||||
|
<u-button text="重置" style="margin-right:20rpx" @click="resetQuery()"></u-button>
|
||||||
|
<u-button type="primary" text="确定" @click="searchSubmit()"></u-button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-transition>
|
||||||
|
</view>
|
||||||
|
</u-sticky>
|
||||||
|
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
|
||||||
|
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||||
|
<view class="list-item">
|
||||||
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
|
:text="dictStr(item.type, accountType)+'-'+item.name+':'+item.availableLimit" size="36rpx" color="#333333" :bold="true"></u--text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">账号:</text>
|
||||||
|
<text class="row-value">{{ item.code }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-list-item>
|
||||||
|
<view>
|
||||||
|
</view>
|
||||||
|
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||||
|
</u-list>
|
||||||
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { listAccounts, delAccounts } from '@/api/invest/accounts'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import {onLoad,onShow} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed }from "vue";
|
||||||
|
const pageNum = ref(1)
|
||||||
|
const listData = ref([])
|
||||||
|
const isShow = ref(false)
|
||||||
|
const status = ref('loadmore')
|
||||||
|
const accountType = ref([])
|
||||||
|
const debitType = ref([])
|
||||||
|
const accountState= ref([])
|
||||||
|
const settingPickShow = ref(false)
|
||||||
|
const settingColumns = ref([])
|
||||||
|
const data = reactive({
|
||||||
|
filterPanel: false,
|
||||||
|
queryParams: {
|
||||||
|
name: null,
|
||||||
|
type: null,
|
||||||
|
state: null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { filterPanel, queryParams} = toRefs(data)
|
||||||
|
const windowHeight = computed(() => {
|
||||||
|
uni.getSystemInfoSync().windowHeight - 50
|
||||||
|
})
|
||||||
|
onLoad(() => {
|
||||||
|
getDict()
|
||||||
|
getList()
|
||||||
|
});
|
||||||
|
|
||||||
|
onShow(() => {
|
||||||
|
if (isShow.value) {
|
||||||
|
getList()
|
||||||
|
isShow.value = false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function loadmore() {
|
||||||
|
pageNum.value += 1
|
||||||
|
if (status.value == 'loadmore') {
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getList() {
|
||||||
|
status.value = 'loading'
|
||||||
|
listAccounts({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {
|
||||||
|
listData.value = listData.value.concat(res.rows)
|
||||||
|
if (listData.value.length < res.total) {
|
||||||
|
status.value = 'loadmore'
|
||||||
|
} else {
|
||||||
|
status.value = 'nomore'
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
status.value = 'nomore'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function getDict() {
|
||||||
|
// 类型
|
||||||
|
getDicts('account_type').then(res => {
|
||||||
|
accountType.value = res.data
|
||||||
|
})
|
||||||
|
|
||||||
|
// 类型
|
||||||
|
getDicts('account_state').then(res => {
|
||||||
|
accountState.value = res.data
|
||||||
|
})
|
||||||
|
// 类型
|
||||||
|
getDicts('debit_type').then(res => {
|
||||||
|
debitType.value = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function settingConfirm(e) {
|
||||||
|
queryParams.value.settingId = e.value[0].settingId
|
||||||
|
queryParams.value.settingName = e.value[0].settingName
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function settingCancel() {
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function selectType(item) {
|
||||||
|
queryParams.value.type = item.dictValue
|
||||||
|
accountType.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function selectStatus(item) {
|
||||||
|
queryParams.value.state = item.dictValue
|
||||||
|
accountState.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function searchSubmit() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
filterPanel.value = false
|
||||||
|
}
|
||||||
|
function searchBlur() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
function resetQuery() {
|
||||||
|
queryParams.value.name = '',
|
||||||
|
queryParams.value.type = ''
|
||||||
|
accountType.value.map(ele => {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function enterDetails(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/accounts/details?id=${item.id}` })
|
||||||
|
}
|
||||||
|
function handleEdit(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/accounts/addEdit?id=${item.id}` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleAdd() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/heartJourney/addEdit` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleDelete(item) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '你确定要删除吗',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
delAccounts(item.id)
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/accounts/list` })
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.btnAdd {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
display:float;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-view {
|
||||||
|
padding: 12rpx 32rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
background: #F5F5F5;
|
||||||
|
color: #333333;
|
||||||
|
margin-right: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-panel {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 96rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
.filter-panel-content {
|
||||||
|
background-color: #ffff;
|
||||||
|
padding: 0 30rpx 30rpx;
|
||||||
|
|
||||||
|
.filter-title {
|
||||||
|
color: #000000;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
.state-item {
|
||||||
|
width: 210rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
border: 1rpx solid rgba(0, 0, 0, 0.25);
|
||||||
|
border-radius: 72rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
margin: 0 20rpx 20rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: rgba(222, 241, 255, 1);
|
||||||
|
border: 1rpx solid rgba(22, 119, 255, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-box {
|
||||||
|
display: flex;
|
||||||
|
padding: 24rpx 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
margin: 0 24rpx 24rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
.item-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 16rpx;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
.status-item {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 44rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 44rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status1 {
|
||||||
|
background: #F0F0F0;
|
||||||
|
color: #8C8C8C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status2 {
|
||||||
|
background: rgba(38, 129, 255, 0.2);
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status3 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status4 {
|
||||||
|
background: rgba(255, 85, 51, 0.2);
|
||||||
|
color: #FF5533;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status5 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status7 {
|
||||||
|
background: rgba(255, 129, 51, 0.2);
|
||||||
|
color: #FF8133;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status8 {
|
||||||
|
background: rgba(65, 217, 165, 0.2);
|
||||||
|
color: #41D9A5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-row {
|
||||||
|
padding: 16rpx 0;
|
||||||
|
|
||||||
|
.row-label {
|
||||||
|
color: rgba(0, 0, 0, 0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
.row-value {
|
||||||
|
color: rgba(0, 0, 0, 0.85)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circulation {
|
||||||
|
background: rgba(0, 0, 0, 0.04);
|
||||||
|
margin-right: 24rpx;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.filling {
|
||||||
|
background: #2681FF;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -39,16 +39,16 @@
|
|||||||
<view class="list-item">
|
<view class="list-item">
|
||||||
<view class="item-header" @click="enterDetails(item)">
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
:text="item.name" size="36rpx" color="#333333" :bold="true"></u--text>
|
:text="item.name+'-'+item.code" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="row-label">账户类型:</text>
|
<text class="row-label">账户类型:</text>
|
||||||
<text class="row-value">{{ dictStr(item.type, accountType) }}</text>
|
<text class="row-value">{{ dictStr(item.type, accountType) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<!-- <view class="item-row">
|
||||||
<text class="row-label">账号:</text>
|
<text class="row-label">账号:</text>
|
||||||
<text class="row-value">{{ item.code }}</text>
|
<text class="row-value">{{ item.code }}</text>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="row-label">可用额度:</text>
|
<text class="row-label">可用额度:</text>
|
||||||
<text class="row-value">{{ item.availableLimit }}</text>
|
<text class="row-value">{{ item.availableLimit }}</text>
|
||||||
|
|||||||
241
src/pages/work/accounts/investAccountDeal/addEdit.vue
Normal file
241
src/pages/work/accounts/investAccountDeal/addEdit.vue
Normal file
@@ -0,0 +1,241 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container" style="paddingBottom:1rpx;">
|
||||||
|
<u-navbar
|
||||||
|
leftIconSize="40rpx"
|
||||||
|
leftIconColor="#333333"
|
||||||
|
title="投资交易记录"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
|
<view class="section">
|
||||||
|
<view class="section-title">{{ title}}</view>
|
||||||
|
<view class="form-view">
|
||||||
|
<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" label-width="auto"
|
||||||
|
:labelStyle="{ color: '#333333', fontSize: '30rpx' }">
|
||||||
|
<u-form-item label="投资账户" prop="accountName" required @click="handleAccountName">
|
||||||
|
<u--input v-model="form.accountName" disabled disabledColor="#ffffff" placeholder="请选择投资账户"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="交易类型" prop="dealTypeName" required @click="handleDealType">
|
||||||
|
<u--input v-model="form.dealTypeName" disabled disabledColor="#ffffff" placeholder="请选择交易类型"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="交易时间" prop="createTime" required @click="selectDate()">
|
||||||
|
<u--input v-model="form.createTime" disabled disabledColor="#ffffff" placeholder="请选择交易时间" inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="交易金额" prop="amount" required >
|
||||||
|
<u--input v-model="form.amount" placeholder="请填写交易金额"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="备注" prop="remark" labelPosition="top">
|
||||||
|
<u--textarea v-model="form.remark" placeholder="请填写备注" border="none" autoHeight inputAlign="right" count
|
||||||
|
maxlength="20000" style="padding:18rpx 0;"></u--textarea>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
<view class="form-btn">
|
||||||
|
<u-button type="primary" text="提交" @click="submit"></u-button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
<u-picker itemHeight="88" :show="showAccountName" :columns="accountNameList" keyName="nameCode" @cancel="handleAccountNameCancel"
|
||||||
|
@confirm="handleAccountNameConfirm"></u-picker>
|
||||||
|
<u-picker itemHeight="88" :show="showDealType" :columns="dealTypeList" keyName="dictLabel" @cancel="handleDealTypeCancel"
|
||||||
|
@confirm="handleDealTypeConfirm"></u-picker>
|
||||||
|
<u-datetime-picker
|
||||||
|
:show="datePickShow"
|
||||||
|
mode="datetime"
|
||||||
|
ref="createTimeRef"
|
||||||
|
@cancel="datePickShow=false"
|
||||||
|
@confirm="datePickConfirm"
|
||||||
|
itemHeight="88"
|
||||||
|
></u-datetime-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {getAccountDealRecord, addAccountDealRecord, updateAccountDealRecord } from '@/api/invest/accountDealRecord'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import { listAccounts } from '@/api/invest/accounts'
|
||||||
|
const { proxy } = getCurrentInstance()
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
import {onLoad,onReady} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed ,getCurrentInstance }from "vue";
|
||||||
|
const datePickShow = ref(false)
|
||||||
|
const showAccountType = ref(false)
|
||||||
|
const showAccountName = ref(false)
|
||||||
|
const showDealCategory = ref(false)
|
||||||
|
const showDealType = ref(false)
|
||||||
|
const title = ref("投资交易记录")
|
||||||
|
const accountTypeList = ref([])
|
||||||
|
const accountNameList = ref([])
|
||||||
|
const dealTypeList = ref([])
|
||||||
|
const data = reactive({
|
||||||
|
form: {
|
||||||
|
id: null,
|
||||||
|
name: null,
|
||||||
|
type: '5',
|
||||||
|
accountId: null,
|
||||||
|
amount: null,
|
||||||
|
dealType: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
delFlag: null,
|
||||||
|
remark: null,
|
||||||
|
dealCategory: '2'
|
||||||
|
},
|
||||||
|
queryAccountParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
type: '5',
|
||||||
|
state: '1',
|
||||||
|
pageSize: 1000
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
accountName: [{ required: true, message: '投资账户不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
amount: [{type: 'string', required: true, message: '交易金额不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
dealTypeName: [{ required: true, message: '交易类型不能为空', trigger:['change', 'blur'] }],
|
||||||
|
createTime: [{ required: true, message: '交易时间不能为空', trigger: ['change', 'blur'] }]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { form, queryAccountParams, rules} = toRefs(data)
|
||||||
|
|
||||||
|
|
||||||
|
onLoad((option) => {
|
||||||
|
form.value.id = option.id
|
||||||
|
if(form.value.id!=null){
|
||||||
|
title.value="投资交易记录-修改"
|
||||||
|
}else{
|
||||||
|
title.value="投资交易记录-新增"
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
onReady(() => {
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
getData()
|
||||||
|
})
|
||||||
|
function getData() {
|
||||||
|
// 类型
|
||||||
|
getDicts('profit_loss').then(res => {
|
||||||
|
dealTypeList.value =[res.data]
|
||||||
|
})
|
||||||
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
|
accountNameList.value = [response.rows]
|
||||||
|
})
|
||||||
|
if(form.value.id!=null){
|
||||||
|
getAccountDealRecord(form.value.id).then(res => {
|
||||||
|
form.value = res.data
|
||||||
|
// 交易类型
|
||||||
|
getDicts('profit_loss').then(result => {
|
||||||
|
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
queryAccountParams.value.type = ""
|
||||||
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
|
accountNameList.value = [response.rows]
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function handleAccountName() {
|
||||||
|
if (accountNameList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '投资账户为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showAccountName.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleAccountNameConfirm(e) {
|
||||||
|
form.value.accountName = e.value[0].nameCode
|
||||||
|
form.value.accountId = e.value[0].id
|
||||||
|
showAccountName.value = false
|
||||||
|
}
|
||||||
|
function handleAccountNameCancel() {
|
||||||
|
showAccountName.value = false
|
||||||
|
}
|
||||||
|
function handleDealType() {
|
||||||
|
if (dealTypeList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '交易类型为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showDealType.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleDealTypeConfirm(e) {
|
||||||
|
form.value.dealTypeName = e.value[0].dictLabel
|
||||||
|
form.value.dealType = e.value[0].dictValue
|
||||||
|
showDealType.value = false
|
||||||
|
}
|
||||||
|
function handleDealTypeCancel() {
|
||||||
|
showDealType.value = false
|
||||||
|
}
|
||||||
|
function selectDate() {
|
||||||
|
datePickShow.value = true
|
||||||
|
proxy.$refs['createTimeRef'].innerValue = new Date().getTime()
|
||||||
|
}
|
||||||
|
function datePickConfirm(e) {
|
||||||
|
form.value.createTime = dayjs(e.value).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
datePickShow.value = false
|
||||||
|
}
|
||||||
|
function submit() {
|
||||||
|
proxy.$refs['uForm'].validate().then(() => {
|
||||||
|
if (form.value.id != null) {
|
||||||
|
updateAccountDealRecord(form.value).then(res => {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '修改成功', complete() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/list` })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}else {
|
||||||
|
addAccountDealRecord(form.value).then(res => {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '新增成功', complete() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/list` })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.section {
|
||||||
|
margin: 24rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
width: 360rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-left: 6rpx solid #2681FF;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-view {
|
||||||
|
padding: 20rpx 0rpx 0 10rpx;
|
||||||
|
|
||||||
|
.form-btn {
|
||||||
|
padding-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
107
src/pages/work/accounts/investAccountDeal/details.vue
Normal file
107
src/pages/work/accounts/investAccountDeal/details.vue
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container" style="paddingBottom:1rpx;">
|
||||||
|
<u-navbar
|
||||||
|
leftIconSize="40rpx"
|
||||||
|
leftIconColor="#333333"
|
||||||
|
title="投资交易记录详情"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
|
<view class="section">
|
||||||
|
<!-- <view class="section-title">{{ detailInfo.name }}</view> -->
|
||||||
|
<u-cell-group>
|
||||||
|
<u-cell title="账户名称:" titleStyle="font-weight:bolder" :value="detailInfo.accountName"></u-cell>
|
||||||
|
<u-cell title="账户类型:" titleStyle="font-weight:bolder" :value="detailInfo.type"></u-cell>
|
||||||
|
<u-cell title="交易类型:" titleStyle="font-weight:bolder" :value="detailInfo.dealType"></u-cell>
|
||||||
|
<u-cell title="交易类别:" titleStyle="font-weight:bolder" :value="detailInfo.dealCategory"></u-cell>
|
||||||
|
<u-cell title="交易金额:" titleStyle="font-weight:bolder" :value="detailInfo.amount"></u-cell>
|
||||||
|
<u-cell title="当前余额:" titleStyle="font-weight:bolder" :value="detailInfo.currentBalance"></u-cell>
|
||||||
|
<u-cell title="交易时间:" titleStyle="font-weight:bolder" :value="detailInfo.createTime"></u-cell>
|
||||||
|
<u-cell title="备注:" titleStyle="font-weight:bolder" :value="detailInfo.remark" center> </u-cell>
|
||||||
|
|
||||||
|
</u-cell-group>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { getAccountDealRecord} from '@/api/invest/accountDealRecord'
|
||||||
|
import {onLoad} from "@dcloudio/uni-app";
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import {reactive ,toRefs,ref,computed }from "vue";
|
||||||
|
const id = ref('')
|
||||||
|
const data = reactive({
|
||||||
|
detailInfo: {}
|
||||||
|
})
|
||||||
|
const {detailInfo} = toRefs(data)
|
||||||
|
onLoad((option) => {
|
||||||
|
id.value = option.id
|
||||||
|
getInfo()
|
||||||
|
})
|
||||||
|
function getInfo() {
|
||||||
|
getAccountDealRecord(id.value).then(res => {
|
||||||
|
detailInfo.value = res.data
|
||||||
|
// 类型
|
||||||
|
getDicts('account_type').then(result => {
|
||||||
|
detailInfo.value.type=dictStr(detailInfo.value.type, result.data)
|
||||||
|
})
|
||||||
|
// 类型
|
||||||
|
getDicts('profit_loss').then(result => {
|
||||||
|
detailInfo.value.dealType=dictStr(detailInfo.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
// 类型
|
||||||
|
getDicts('deal_category').then(result => {
|
||||||
|
detailInfo.value.dealCategory=dictStr(detailInfo.value.dealCategory, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.section {
|
||||||
|
margin: 24rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
width: 280rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-left: 6rpx solid #2681FF;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: 647rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 40rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-con {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20rpx
|
||||||
|
}
|
||||||
|
.form-view {
|
||||||
|
padding: 20rpx 0rpx 0 10rpx;
|
||||||
|
|
||||||
|
.form-btn {
|
||||||
|
padding-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
476
src/pages/work/accounts/investAccountDeal/list.vue
Normal file
476
src/pages/work/accounts/investAccountDeal/list.vue
Normal file
@@ -0,0 +1,476 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||||
|
<view class="search-view">
|
||||||
|
<u--input v-model="queryParams.name" border="false" placeholder="请输入投资账户名称" class="search-input"
|
||||||
|
@blur="searchBlur">
|
||||||
|
<template slot="prefix">
|
||||||
|
<u-icon name="search" color="#B8B8B8" size="48"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u--input>
|
||||||
|
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="filterPanel = !filterPanel"></u-icon>
|
||||||
|
<u-icon name="plus-circle-fill" color="#666666" size="28" style="margin-left:10px" label="新增"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="handleAdd()"></u-icon>
|
||||||
|
<u-transition :show="filterPanel" mode="fade">
|
||||||
|
<view class="filter-panel" :style="{ height: `${windowHeight - 42}px` }">
|
||||||
|
<view class="filter-panel-content">
|
||||||
|
<view class="filter-title">交易类型</view>
|
||||||
|
<view class="state-list">
|
||||||
|
<view v-for="item in dealTypeList" :key="item.id" class="state-item"
|
||||||
|
:class="item.selected ? 'active' : ''" @click="selectDealType(item)">{{ item.dictLabel }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="select-header">交易时间</view>
|
||||||
|
<view class="selcet-content" style="padding: 0 24rpx">
|
||||||
|
<u-input
|
||||||
|
:disabled="true"
|
||||||
|
:disabledColor="'#fff'"
|
||||||
|
class="dateInput"
|
||||||
|
border="surround"
|
||||||
|
v-model="queryParams.startTime"
|
||||||
|
placeholder="请选择开始时间"
|
||||||
|
>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<u-icon name="calendar" @click="openOrCloseDate(true)"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u-input>
|
||||||
|
<u-input
|
||||||
|
:disabled="true"
|
||||||
|
:disabledColor="'#fff'"
|
||||||
|
class="dateInput"
|
||||||
|
border="surround"
|
||||||
|
v-model="queryParams.endTime"
|
||||||
|
placeholder="请选择结束时间"
|
||||||
|
>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<u-icon name="calendar" @click="openOrCloseDate(false)"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u-input>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btn-box">
|
||||||
|
<u-button text="重置" style="margin-right:20rpx" @click="resetQuery()"></u-button>
|
||||||
|
<u-button type="primary" text="确定" @click="searchSubmit()"></u-button>
|
||||||
|
</view>
|
||||||
|
<u-datetime-picker
|
||||||
|
:closeOnClickOverlay="true"
|
||||||
|
:show="timeShow"
|
||||||
|
v-model="time"
|
||||||
|
mode="datetime"
|
||||||
|
@close="openOrCloseDate"
|
||||||
|
@cancel="openOrCloseDate"
|
||||||
|
@confirm="confirm"
|
||||||
|
></u-datetime-picker>
|
||||||
|
</view>
|
||||||
|
</u-transition>
|
||||||
|
</view>
|
||||||
|
</u-sticky>
|
||||||
|
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
|
||||||
|
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||||
|
<view class="list-item">
|
||||||
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
|
:text="item.accountName+dictStr(item.dealType, dealTypeList) +':'+item.amount" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">交易类型:</text>
|
||||||
|
<text class="row-value">{{ dictStr(item.dealType, dealTypeList) }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">交易时间:</text>
|
||||||
|
<text class="row-value">{{ item.createTime }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">交易金额:</text>
|
||||||
|
<text class="row-value">{{ item.amount }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">当前余额:</text>
|
||||||
|
<text class="row-value">{{ item.currentBalance }}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">备注:</text>
|
||||||
|
<text class="row-value">{{ item.remark }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="operate" >
|
||||||
|
<view class="btn filling" @click="enterDetails(item)">查看</view>
|
||||||
|
<view class="btn filling" @click="handleEdit(item)">修改</view>
|
||||||
|
<view class="btn filling" @click="handleDelete(item)">删除</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-list-item>
|
||||||
|
<view>
|
||||||
|
</view>
|
||||||
|
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||||
|
</u-list>
|
||||||
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
listAccountDealRecord,
|
||||||
|
delAccountDealRecord,
|
||||||
|
} from '@/api/invest/accountDealRecord'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import { timeHandler } from '@/utils/common.ts'
|
||||||
|
import {onLoad,onShow} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed }from "vue";
|
||||||
|
const pageNum = ref(1)
|
||||||
|
const listData = ref([])
|
||||||
|
const isShow = ref(false)
|
||||||
|
const status = ref('loadmore')
|
||||||
|
const accountTypeList = ref([])
|
||||||
|
const dealTypeList = ref([])
|
||||||
|
const dealCategoryList = ref([])
|
||||||
|
const settingPickShow = ref(false)
|
||||||
|
const settingColumns = ref([])
|
||||||
|
const timeShow= ref(false)
|
||||||
|
const flag= ref(true)
|
||||||
|
const time =ref( Number(new Date()))
|
||||||
|
const data = reactive({
|
||||||
|
filterPanel: false,
|
||||||
|
queryParams: {
|
||||||
|
name: null,
|
||||||
|
type: '5',
|
||||||
|
time: '',
|
||||||
|
dealCategory: '2',
|
||||||
|
accountId: null,
|
||||||
|
dealType: null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { filterPanel, queryParams} = toRefs(data)
|
||||||
|
const windowHeight = computed(() => {
|
||||||
|
uni.getSystemInfoSync().windowHeight - 50
|
||||||
|
})
|
||||||
|
onLoad(() => {
|
||||||
|
getDict()
|
||||||
|
getList()
|
||||||
|
});
|
||||||
|
|
||||||
|
onShow(() => {
|
||||||
|
if (isShow.value) {
|
||||||
|
getList()
|
||||||
|
isShow.value = false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function openOrCloseDate(data) {
|
||||||
|
timeShow.value = !timeShow.value
|
||||||
|
flag.value = data
|
||||||
|
}
|
||||||
|
function loadmore() {
|
||||||
|
pageNum.value += 1
|
||||||
|
if (status.value == 'loadmore') {
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getList() {
|
||||||
|
status.value = 'loading'
|
||||||
|
listAccountDealRecord({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {
|
||||||
|
listData.value = listData.value.concat(res.rows)
|
||||||
|
if (listData.value.length < res.total) {
|
||||||
|
status.value = 'loadmore'
|
||||||
|
} else {
|
||||||
|
status.value = 'nomore'
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
status.value = 'nomore'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function confirm(e) {
|
||||||
|
const date = timeHandler(new Date(e.value), '-', ':')
|
||||||
|
if (flag.value) {
|
||||||
|
queryParams.value.startTime = date
|
||||||
|
} else {
|
||||||
|
queryParams.value.endTime = date
|
||||||
|
}
|
||||||
|
timeShow.value = false
|
||||||
|
}
|
||||||
|
function getDict() {
|
||||||
|
// 交易类型
|
||||||
|
getDicts('profit_loss').then(res => {
|
||||||
|
dealTypeList.value = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function settingConfirm(e) {
|
||||||
|
queryParams.value.settingId = e.value[0].settingId
|
||||||
|
queryParams.value.settingName = e.value[0].settingName
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function settingCancel() {
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function selectAccountType(item) {
|
||||||
|
queryParams.value.type = item.dictValue
|
||||||
|
accountTypeList.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function selectDealType(item) {
|
||||||
|
queryParams.value.dealType = item.dictValue
|
||||||
|
dealTypeList.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function selectDealCategory(item) {
|
||||||
|
queryParams.value.dealCategory = item.dictValue
|
||||||
|
dealCategoryList.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function searchSubmit() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
filterPanel.value = false
|
||||||
|
}
|
||||||
|
function searchBlur() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
function resetQuery() {
|
||||||
|
queryParams.value.name = ''
|
||||||
|
queryParams.value.type = ''
|
||||||
|
queryParams.value.dealType = ''
|
||||||
|
queryParams.value.startTime = ''
|
||||||
|
queryParams.value.endTime = ''
|
||||||
|
queryParams.value.dealCategory = ''
|
||||||
|
accountTypeList.value.map(ele => {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
})
|
||||||
|
dealTypeList.value.map(ele => {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
})
|
||||||
|
dealCategoryList.value.map(ele => {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function enterDetails(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/details?id=${item.id}` })
|
||||||
|
}
|
||||||
|
function handleEdit(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/addEdit?id=${item.id}` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleAdd() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/addEdit` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleDelete(item) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '你确定要删除吗',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
delAccountDealRecord(item.id)
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investAccountDeal/list` })
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.btnAdd {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
display:float;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-view {
|
||||||
|
padding: 12rpx 32rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
background: #F5F5F5;
|
||||||
|
color: #333333;
|
||||||
|
margin-right: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-panel {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 96rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
.filter-panel-content {
|
||||||
|
background-color: #ffff;
|
||||||
|
padding: 0 30rpx 30rpx;
|
||||||
|
|
||||||
|
.filter-title {
|
||||||
|
color: #000000;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
.state-item {
|
||||||
|
width: 210rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
border: 1rpx solid rgba(0, 0, 0, 0.25);
|
||||||
|
border-radius: 72rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
margin: 0 20rpx 20rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: rgba(222, 241, 255, 1);
|
||||||
|
border: 1rpx solid rgba(22, 119, 255, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-box {
|
||||||
|
display: flex;
|
||||||
|
padding: 24rpx 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
margin: 0 24rpx 24rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
.item-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 16rpx;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
.status-item {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 44rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 44rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status1 {
|
||||||
|
background: #F0F0F0;
|
||||||
|
color: #8C8C8C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status2 {
|
||||||
|
background: rgba(38, 129, 255, 0.2);
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status3 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status4 {
|
||||||
|
background: rgba(255, 85, 51, 0.2);
|
||||||
|
color: #FF5533;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status5 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status7 {
|
||||||
|
background: rgba(255, 129, 51, 0.2);
|
||||||
|
color: #FF8133;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status8 {
|
||||||
|
background: rgba(65, 217, 165, 0.2);
|
||||||
|
color: #41D9A5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-row {
|
||||||
|
padding: 16rpx 0;
|
||||||
|
|
||||||
|
.row-label {
|
||||||
|
color: rgba(0, 0, 0, 0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
.row-value {
|
||||||
|
color: rgba(0, 0, 0, 0.85)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circulation {
|
||||||
|
background: rgba(0, 0, 0, 0.04);
|
||||||
|
margin-right: 24rpx;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.filling {
|
||||||
|
background: #2681FF;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
238
src/pages/work/accounts/investTransferRecord/addEdit.vue
Normal file
238
src/pages/work/accounts/investTransferRecord/addEdit.vue
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container" style="paddingBottom:1rpx;">
|
||||||
|
<u-navbar
|
||||||
|
leftIconSize="40rpx"
|
||||||
|
leftIconColor="#333333"
|
||||||
|
title="投资账户记账"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
|
<view class="section">
|
||||||
|
<view class="section-title">{{ title}}</view>
|
||||||
|
<view class="form-view">
|
||||||
|
<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" label-width="auto"
|
||||||
|
:labelStyle="{ color: '#333333', fontSize: '30rpx' }">
|
||||||
|
<u-form-item label="投资账户" prop="inAccountName" required @click="handleFutruesStocks">
|
||||||
|
<u--input v-model="form.inAccountName" disabled disabledColor="#ffffff" placeholder="请选择投资账户"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="交易类型" prop="dealTypeName" required @click="handleDealType">
|
||||||
|
<u--input v-model="form.dealTypeName" disabled disabledColor="#ffffff" placeholder="请选择交易类型"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="转账时间" prop="createTime" required @click="selectDate()">
|
||||||
|
<u--input v-model="form.createTime" disabled disabledColor="#ffffff" placeholder="请选择转账时间" inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="转账金额" prop="amount" required >
|
||||||
|
<u--input v-model="form.amount" placeholder="请填写转账金额"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item label="备注" prop="remark" labelPosition="top">
|
||||||
|
<u--textarea v-model="form.remark" placeholder="请填写备注" border="none" autoHeight inputAlign="right" count
|
||||||
|
maxlength="20000" style="padding:18rpx 0;"></u--textarea>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
<view class="form-btn">
|
||||||
|
<u-button type="primary" text="提交" @click="submit"></u-button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
<u-picker itemHeight="88" :show="showFutruesStocks" :columns="futruesStocksList" keyName="nameDebitNameCode" @cancel="handleFutruesStocksCancel"
|
||||||
|
@confirm="handleFutruesStocksConfirm"></u-picker>
|
||||||
|
<u-picker itemHeight="88" :show="showDealType" :columns="dealTypeList" keyName="dictLabel" @cancel="handleDealTypeCancel"
|
||||||
|
@confirm="handleDealTypeConfirm"></u-picker>
|
||||||
|
<u-datetime-picker
|
||||||
|
:show="datePickShow"
|
||||||
|
mode="datetime"
|
||||||
|
ref="createTimeRef"
|
||||||
|
@cancel="datePickShow=false"
|
||||||
|
@confirm="datePickConfirm"
|
||||||
|
itemHeight="88"
|
||||||
|
></u-datetime-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {getAccountsTransferRecord, addAccountsTransferRecord, updateAccountsTransferRecord } from '@/api/invest/accountsTransferRecord'
|
||||||
|
import { listFutureStocks } from '@/api/invest/futureStocks'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
const { proxy } = getCurrentInstance()
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
import {onLoad,onReady} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed ,getCurrentInstance }from "vue";
|
||||||
|
const datePickShow = ref(false)
|
||||||
|
const showFutruesStocks = ref(false)
|
||||||
|
const showDealType = ref(false)
|
||||||
|
const title = ref("投资账户记账")
|
||||||
|
const futruesStocksList = ref([])
|
||||||
|
const dealTypeList = ref([])
|
||||||
|
const data = reactive({
|
||||||
|
form: {
|
||||||
|
id: null,
|
||||||
|
name: null,
|
||||||
|
type: '3',
|
||||||
|
outAccountId: null,
|
||||||
|
inAccountId: null,
|
||||||
|
posId: null,
|
||||||
|
commission: null,
|
||||||
|
amount: null,
|
||||||
|
actualAmount: null,
|
||||||
|
dealType: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
delFlag: null,
|
||||||
|
remark: null
|
||||||
|
},
|
||||||
|
queryFutruesStocksParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 1000
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
inAccountName: [{ required: true, message: '投资账户不能为空', trigger:['change', 'blur'] }],
|
||||||
|
dealTypeName: [{ required: true, message: '交易类型不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
amount: [{ required: true, message: '转账金额不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
createTime: [{ required: true, message: '转账时间不能为空', trigger: ['change', 'blur'] }]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { form, queryFutruesStocksParams, rules} = toRefs(data)
|
||||||
|
|
||||||
|
|
||||||
|
onLoad((option) => {
|
||||||
|
form.value.id = option.id
|
||||||
|
if(form.value.id!=null){
|
||||||
|
title.value="投资账户记账-修改"
|
||||||
|
}else{
|
||||||
|
title.value="投资账户记账-新增"
|
||||||
|
}
|
||||||
|
getData()
|
||||||
|
})
|
||||||
|
onReady(() => {
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
})
|
||||||
|
function getData() {
|
||||||
|
listFutureStocks(queryFutruesStocksParams.value).then((response) => {
|
||||||
|
futruesStocksList.value = [response.rows]
|
||||||
|
})
|
||||||
|
// 类型
|
||||||
|
getDicts('in_out').then(res => {
|
||||||
|
dealTypeList.value =[res.data]
|
||||||
|
})
|
||||||
|
if(form.value.id!=null){
|
||||||
|
getAccountsTransferRecord(form.value.id).then(res => {
|
||||||
|
form.value = res.data
|
||||||
|
|
||||||
|
// 交易类型
|
||||||
|
getDicts('in_out').then(result => {
|
||||||
|
form.value.amount = res.data.amount
|
||||||
|
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleFutruesStocks() {
|
||||||
|
if (futruesStocksList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '投资账户为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showFutruesStocks.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleFutruesStocksConfirm(e) {
|
||||||
|
form.value.inAccountName = e.value[0].nameDebitNameCode
|
||||||
|
form.value.inAccountId = e.value[0].id
|
||||||
|
showFutruesStocks.value = false
|
||||||
|
}
|
||||||
|
function handleFutruesStocksCancel() {
|
||||||
|
showFutruesStocks.value = false
|
||||||
|
}
|
||||||
|
function handleDealType() {
|
||||||
|
if (dealTypeList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '交易类型为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showDealType.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleDealTypeConfirm(e) {
|
||||||
|
form.value.dealTypeName = e.value[0].dictLabel
|
||||||
|
form.value.dealType = e.value[0].dictValue
|
||||||
|
showDealType.value = false
|
||||||
|
}
|
||||||
|
function handleDealTypeCancel() {
|
||||||
|
showDealType.value = false
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function selectDate() {
|
||||||
|
datePickShow.value = true
|
||||||
|
proxy.$refs['createTimeRef'].innerValue = new Date().getTime()
|
||||||
|
}
|
||||||
|
function datePickConfirm(e) {
|
||||||
|
form.value.createTime = dayjs(e.value).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
datePickShow.value = false
|
||||||
|
}
|
||||||
|
function submit() {
|
||||||
|
proxy.$refs['uForm'].validate().then(() => {
|
||||||
|
if (form.value.id != null) {
|
||||||
|
updateAccountsTransferRecord(form.value).then(res => {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '修改成功', complete() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}else {
|
||||||
|
addAccountsTransferRecord(form.value).then(res => {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '新增成功', complete() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.section {
|
||||||
|
margin: 24rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
width: 360rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-left: 6rpx solid #2681FF;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-view {
|
||||||
|
padding: 20rpx 0rpx 0 10rpx;
|
||||||
|
|
||||||
|
.form-btn {
|
||||||
|
padding-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
96
src/pages/work/accounts/investTransferRecord/details.vue
Normal file
96
src/pages/work/accounts/investTransferRecord/details.vue
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container" style="paddingBottom:1rpx;">
|
||||||
|
<u-navbar
|
||||||
|
leftIconSize="40rpx"
|
||||||
|
leftIconColor="#333333"
|
||||||
|
title="投资账户记账详情"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
|
<view class="section">
|
||||||
|
<!-- <view class="section-title">{{ detailInfo.name }}</view> -->
|
||||||
|
<u-cell-group>
|
||||||
|
<u-cell title="名称:" titleStyle="font-weight:bolder" :value="detailInfo.name"></u-cell>
|
||||||
|
<u-cell title="转出账户:" titleStyle="font-weight:bolder" :value="detailInfo.outAccountName"></u-cell>
|
||||||
|
<u-cell title="转入账户:" titleStyle="font-weight:bolder" :value="detailInfo.inAccountName"></u-cell>
|
||||||
|
<u-cell title="转账时间:" titleStyle="font-weight:bolder" :value="detailInfo.createTime"></u-cell>
|
||||||
|
<u-cell title="转账金额:" titleStyle="font-weight:bolder" :value="detailInfo.amount"></u-cell>
|
||||||
|
<u-cell title="交易类型:" titleStyle="font-weight:bolder" :value="detailInfo.dealType"></u-cell>
|
||||||
|
</u-cell-group>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { getAccountsTransferRecord} from '@/api/invest/accountsTransferRecord'
|
||||||
|
import {onLoad} from "@dcloudio/uni-app";
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import {reactive ,toRefs,ref }from "vue";
|
||||||
|
const id = ref('')
|
||||||
|
const data = reactive({
|
||||||
|
detailInfo: {}
|
||||||
|
})
|
||||||
|
const {detailInfo} = toRefs(data)
|
||||||
|
onLoad((option) => {
|
||||||
|
id.value = option.id
|
||||||
|
getInfo()
|
||||||
|
})
|
||||||
|
function getInfo() {
|
||||||
|
getAccountsTransferRecord(id.value).then(res => {
|
||||||
|
detailInfo.value = res.data
|
||||||
|
// 类型
|
||||||
|
getDicts('in_out').then(result => {
|
||||||
|
detailInfo.value.dealType=dictStr(detailInfo.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.section {
|
||||||
|
margin: 24rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
width: 280rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-left: 6rpx solid #2681FF;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: 647rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 40rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-con {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20rpx
|
||||||
|
}
|
||||||
|
.form-view {
|
||||||
|
padding: 20rpx 0rpx 0 10rpx;
|
||||||
|
|
||||||
|
.form-btn {
|
||||||
|
padding-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
446
src/pages/work/accounts/investTransferRecord/list.vue
Normal file
446
src/pages/work/accounts/investTransferRecord/list.vue
Normal file
@@ -0,0 +1,446 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||||
|
<view class="search-view">
|
||||||
|
<u--input v-model="queryParams.name" border="false" placeholder="请输入投资账户名称" class="search-input"
|
||||||
|
@blur="searchBlur">
|
||||||
|
<template slot="prefix">
|
||||||
|
<u-icon name="search" color="#B8B8B8" size="48"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u--input>
|
||||||
|
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="filterPanel = !filterPanel"></u-icon>
|
||||||
|
<u-icon name="plus-circle-fill" color="#666666" size="28" style="margin-left:10px" label="新增"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="handleAdd()"></u-icon>
|
||||||
|
<u-transition :show="filterPanel" mode="fade">
|
||||||
|
<view class="filter-panel" :style="{ height: `${windowHeight - 42}px` }">
|
||||||
|
<view class="filter-panel-content">
|
||||||
|
<view class="filter-title">交易类型</view>
|
||||||
|
<view class="state-list">
|
||||||
|
<view v-for="item in dealTypeList" :key="item.id" class="state-item"
|
||||||
|
:class="item.selected ? 'active' : ''" @click="selectStatus(item)">{{ item.dictLabel }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="select-header">还款时间</view>
|
||||||
|
<view class="selcet-content" style="padding: 0 24rpx">
|
||||||
|
<u-input
|
||||||
|
:disabled="true"
|
||||||
|
:disabledColor="'#fff'"
|
||||||
|
class="dateInput"
|
||||||
|
border="surround"
|
||||||
|
v-model="queryParams.startTime"
|
||||||
|
placeholder="请选择开始时间"
|
||||||
|
>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<u-icon name="calendar" @click="openOrCloseDate(true)"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u-input>
|
||||||
|
<u-input
|
||||||
|
:disabled="true"
|
||||||
|
:disabledColor="'#fff'"
|
||||||
|
class="dateInput"
|
||||||
|
border="surround"
|
||||||
|
v-model="queryParams.endTime"
|
||||||
|
placeholder="请选择结束时间"
|
||||||
|
>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<u-icon name="calendar" @click="openOrCloseDate(false)"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u-input>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btn-box">
|
||||||
|
<u-button text="重置" style="margin-right:20rpx" @click="resetQuery()"></u-button>
|
||||||
|
<u-button type="primary" text="确定" @click="searchSubmit()"></u-button>
|
||||||
|
</view>
|
||||||
|
<u-datetime-picker
|
||||||
|
:closeOnClickOverlay="true"
|
||||||
|
:show="timeShow"
|
||||||
|
v-model="time"
|
||||||
|
mode="datetime"
|
||||||
|
@close="openOrCloseDate"
|
||||||
|
@cancel="openOrCloseDate"
|
||||||
|
@confirm="confirm"
|
||||||
|
></u-datetime-picker>
|
||||||
|
</view>
|
||||||
|
</u-transition>
|
||||||
|
</view>
|
||||||
|
</u-sticky>
|
||||||
|
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
|
||||||
|
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||||
|
<view class="list-item">
|
||||||
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
|
:text="item.name" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">转出账户:</text>
|
||||||
|
<text class="row-value">{{ item.outAccountName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">转入账户:</text>
|
||||||
|
<text class="row-value">{{ item.inAccountName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">转账时间:</text>
|
||||||
|
<text class="row-value">{{ item.createTime }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">转账金额:</text>
|
||||||
|
<text class="row-value">{{ item.amount }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">交易类型:</text>
|
||||||
|
<text class="row-value">{{ dictStr(item.dealType, dealTypeList) }}</text>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="operate" >
|
||||||
|
<view class="btn filling" @click="enterDetails(item)">查看</view>
|
||||||
|
<view class="btn filling" @click="handleEdit(item)">修改</view>
|
||||||
|
<view class="btn filling" @click="handleDelete(item)">删除</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-list-item>
|
||||||
|
<view>
|
||||||
|
</view>
|
||||||
|
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||||
|
</u-list>
|
||||||
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
listAccountsTransferRecord,
|
||||||
|
delAccountsTransferRecord,
|
||||||
|
} from '@/api/invest/accountsTransferRecord'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import { timeHandler } from '@/utils/common.ts'
|
||||||
|
import {onLoad,onShow} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed }from "vue";
|
||||||
|
const pageNum = ref(1)
|
||||||
|
const listData = ref([])
|
||||||
|
const isShow = ref(false)
|
||||||
|
const status = ref('loadmore')
|
||||||
|
const dealTypeList = ref([])
|
||||||
|
const settingPickShow = ref(false)
|
||||||
|
const settingColumns = ref([])
|
||||||
|
const timeShow= ref(false)
|
||||||
|
const flag= ref(true)
|
||||||
|
const time =ref( Number(new Date()))
|
||||||
|
const data = reactive({
|
||||||
|
filterPanel: false,
|
||||||
|
queryParams: {
|
||||||
|
name: null,
|
||||||
|
type: '3',
|
||||||
|
time: '',
|
||||||
|
posId: null,
|
||||||
|
inAccountId: null,
|
||||||
|
outAccountId: null,
|
||||||
|
dealType: null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { filterPanel, queryParams} = toRefs(data)
|
||||||
|
const windowHeight = computed(() => {
|
||||||
|
uni.getSystemInfoSync().windowHeight - 50
|
||||||
|
})
|
||||||
|
onLoad(() => {
|
||||||
|
getDict()
|
||||||
|
getList()
|
||||||
|
});
|
||||||
|
|
||||||
|
onShow(() => {
|
||||||
|
if (isShow.value) {
|
||||||
|
getList()
|
||||||
|
isShow.value = false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function openOrCloseDate(data) {
|
||||||
|
timeShow.value = !timeShow.value
|
||||||
|
flag.value = data
|
||||||
|
}
|
||||||
|
function loadmore() {
|
||||||
|
pageNum.value += 1
|
||||||
|
if (status.value == 'loadmore') {
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getList() {
|
||||||
|
status.value = 'loading'
|
||||||
|
listAccountsTransferRecord({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {
|
||||||
|
listData.value = listData.value.concat(res.rows)
|
||||||
|
if (listData.value.length < res.total) {
|
||||||
|
status.value = 'loadmore'
|
||||||
|
} else {
|
||||||
|
status.value = 'nomore'
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
status.value = 'nomore'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function confirm(e) {
|
||||||
|
const date = timeHandler(new Date(e.value), '-', ':')
|
||||||
|
if (flag.value) {
|
||||||
|
queryParams.value.startTime = date
|
||||||
|
} else {
|
||||||
|
queryParams.value.endTime = date
|
||||||
|
}
|
||||||
|
timeShow.value = false
|
||||||
|
}
|
||||||
|
function getDict() {
|
||||||
|
// 交易类型
|
||||||
|
getDicts('in_out').then(res => {
|
||||||
|
dealTypeList.value = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function selectStatus(item) {
|
||||||
|
queryParams.value.dealType = item.dictValue
|
||||||
|
dealTypeList.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function settingConfirm(e) {
|
||||||
|
queryParams.value.settingId = e.value[0].settingId
|
||||||
|
queryParams.value.settingName = e.value[0].settingName
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function settingCancel() {
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function searchSubmit() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
filterPanel.value = false
|
||||||
|
}
|
||||||
|
function searchBlur() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
function resetQuery() {
|
||||||
|
queryParams.value.name = ''
|
||||||
|
queryParams.value.type = ''
|
||||||
|
queryParams.value.dealType = ''
|
||||||
|
queryParams.value.startTime = ''
|
||||||
|
queryParams.value.endTime = ''
|
||||||
|
dealTypeList.value.map(ele => {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function enterDetails(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/details?id=${item.id}` })
|
||||||
|
}
|
||||||
|
function handleEdit(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit?id=${item.id}` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleAdd() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/addEdit` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleDelete(item) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '你确定要删除吗',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
delAccountsTransferRecord(item.id)
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/investTransferRecord/list` })
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.btnAdd {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
display:float;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-view {
|
||||||
|
padding: 12rpx 32rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
background: #F5F5F5;
|
||||||
|
color: #333333;
|
||||||
|
margin-right: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-panel {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 96rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
.filter-panel-content {
|
||||||
|
background-color: #ffff;
|
||||||
|
padding: 0 30rpx 30rpx;
|
||||||
|
|
||||||
|
.filter-title {
|
||||||
|
color: #000000;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
.state-item {
|
||||||
|
width: 210rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
border: 1rpx solid rgba(0, 0, 0, 0.25);
|
||||||
|
border-radius: 72rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
margin: 0 20rpx 20rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: rgba(222, 241, 255, 1);
|
||||||
|
border: 1rpx solid rgba(22, 119, 255, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-box {
|
||||||
|
display: flex;
|
||||||
|
padding: 24rpx 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
margin: 0 24rpx 24rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
.item-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 16rpx;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
.status-item {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 44rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 44rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status1 {
|
||||||
|
background: #F0F0F0;
|
||||||
|
color: #8C8C8C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status2 {
|
||||||
|
background: rgba(38, 129, 255, 0.2);
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status3 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status4 {
|
||||||
|
background: rgba(255, 85, 51, 0.2);
|
||||||
|
color: #FF5533;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status5 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status7 {
|
||||||
|
background: rgba(255, 129, 51, 0.2);
|
||||||
|
color: #FF8133;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status8 {
|
||||||
|
background: rgba(65, 217, 165, 0.2);
|
||||||
|
color: #41D9A5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-row {
|
||||||
|
padding: 16rpx 0;
|
||||||
|
|
||||||
|
.row-label {
|
||||||
|
color: rgba(0, 0, 0, 0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
.row-value {
|
||||||
|
color: rgba(0, 0, 0, 0.85)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circulation {
|
||||||
|
background: rgba(0, 0, 0, 0.04);
|
||||||
|
margin-right: 24rpx;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.filling {
|
||||||
|
background: #2681FF;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
293
src/pages/work/accounts/lendTransferRecord/addEdit.vue
Normal file
293
src/pages/work/accounts/lendTransferRecord/addEdit.vue
Normal file
@@ -0,0 +1,293 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container" style="paddingBottom:1rpx;">
|
||||||
|
<u-navbar
|
||||||
|
leftIconSize="40rpx"
|
||||||
|
leftIconColor="#333333"
|
||||||
|
title="借贷账户记账"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
|
<view class="section">
|
||||||
|
<view class="section-title">{{ title}}</view>
|
||||||
|
<view class="form-view">
|
||||||
|
<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" label-width="auto"
|
||||||
|
:labelStyle="{ color: '#333333', fontSize: '30rpx' }">
|
||||||
|
<u-form-item label="借贷账户" prop="outAccountName" required @click="handleOutAccount">
|
||||||
|
<u--input v-model="form.outAccountName" disabled disabledColor="#ffffff" placeholder="请选择转出账户"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="储蓄卡" prop="inAccountName" required @click="handleInAccount">
|
||||||
|
<u--input v-model="form.inAccountName" disabled disabledColor="#ffffff" placeholder="请选择转入账户"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="交易类型" prop="dealTypeName" required @click="handleDealType">
|
||||||
|
<u--input v-model="form.dealTypeName" disabled disabledColor="#ffffff" placeholder="请选择交易类型"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item :label="createTimeLabel" prop="createTime" required @click="selectDate()">
|
||||||
|
<u--input v-model="form.createTime" disabled disabledColor="#ffffff" placeholder="请选择借贷时间" inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item :label="amountLabel" prop="amount" required >
|
||||||
|
<u--input v-model="form.amount" placeholder="请填写借贷金额"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="还款利息" v-show="commissionShow" prop="commission" >
|
||||||
|
<u--input v-model="form.commission" placeholder="请填写还款利息"
|
||||||
|
inputAlign="right" border="none"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="备注" prop="remark" labelPosition="top">
|
||||||
|
<u--textarea v-model="form.remark" placeholder="请填写备注" border="none" autoHeight inputAlign="right" count
|
||||||
|
maxlength="20000" style="padding:18rpx 0;"></u--textarea>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
<view class="form-btn">
|
||||||
|
<u-button type="primary" text="提交" @click="submit"></u-button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
<u-picker itemHeight="88" :show="showOutAccount" :columns="outAccountList" keyName="nameCode" @cancel="handleOutAccountCancel"
|
||||||
|
@confirm="handleOutAccountConfirm"></u-picker>
|
||||||
|
<u-picker itemHeight="88" :show="showInAccount" :columns="inAccountList" keyName="nameCode" @cancel="handleInAccountCancel"
|
||||||
|
@confirm="handleInAccountConfirm"></u-picker>
|
||||||
|
<u-picker itemHeight="88" :show="showDealType" :columns="dealTypeList" keyName="dictLabel" @cancel="handleDealTypeCancel"
|
||||||
|
@confirm="handleDealTypeConfirm"></u-picker>
|
||||||
|
<u-datetime-picker
|
||||||
|
:show="datePickShow"
|
||||||
|
mode="datetime"
|
||||||
|
ref="createTimeRef"
|
||||||
|
@cancel="datePickShow=false"
|
||||||
|
@confirm="datePickConfirm"
|
||||||
|
itemHeight="88"
|
||||||
|
></u-datetime-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {getAccountsTransferRecord, addAccountsTransferRecord, updateAccountsTransferRecord } from '@/api/invest/accountsTransferRecord'
|
||||||
|
import { listAccounts } from '@/api/invest/accounts'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
const { proxy } = getCurrentInstance()
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
import {onLoad,onReady} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed ,getCurrentInstance }from "vue";
|
||||||
|
const commissionShow = ref(false)
|
||||||
|
const createTimeLabel = ref('借贷时间')
|
||||||
|
const amountLabel = ref('借贷金额')
|
||||||
|
const datePickShow = ref(false)
|
||||||
|
const showOutAccount = ref(false)
|
||||||
|
const showInAccount = ref(false)
|
||||||
|
const showDealType = ref(false)
|
||||||
|
const title = ref("借贷账户记账")
|
||||||
|
const dealTypeList = ref([])
|
||||||
|
const inAccountList = ref([])
|
||||||
|
const outAccountList = ref([])
|
||||||
|
const data = reactive({
|
||||||
|
form: {
|
||||||
|
id: null,
|
||||||
|
name: null,
|
||||||
|
type: '4',
|
||||||
|
outAccountId: null,
|
||||||
|
inAccountId: null,
|
||||||
|
posId: null,
|
||||||
|
commission: null,
|
||||||
|
amount: null,
|
||||||
|
actualAmount: null,
|
||||||
|
dealType: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
delFlag: null,
|
||||||
|
remark: null
|
||||||
|
},
|
||||||
|
queryOutAccountParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
type: '3',
|
||||||
|
state: '1',
|
||||||
|
pageSize: 1000
|
||||||
|
},
|
||||||
|
queryInAccountParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
type: '1',
|
||||||
|
state: '1',
|
||||||
|
pageSize: 1000
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
inAccountName: [{ required: true, message: '储蓄卡不能为空', trigger:['change', 'blur'] }],
|
||||||
|
outAccountName: [{ required: true, message: '借贷账户不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
amount: [{ required: true, message: '借贷金额不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
dealTypeName: [{ required: true, message: '交易类型不能为空', trigger: ['change', 'blur'] }],
|
||||||
|
createTime: [{ required: true, message: '借贷时间不能为空', trigger: ['change', 'blur'] }]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { form, queryOutAccountParams, queryInAccountParams, rules} = toRefs(data)
|
||||||
|
|
||||||
|
|
||||||
|
onLoad((option) => {
|
||||||
|
form.value.id = option.id
|
||||||
|
if(form.value.id!=null){
|
||||||
|
title.value="借贷账户记账-修改"
|
||||||
|
}else{
|
||||||
|
title.value="借贷账户记账-新增"
|
||||||
|
}
|
||||||
|
getData()
|
||||||
|
})
|
||||||
|
onReady(() => {
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
})
|
||||||
|
function getData() {
|
||||||
|
listAccounts(queryInAccountParams.value).then((response) => {
|
||||||
|
inAccountList.value = [response.rows]
|
||||||
|
})
|
||||||
|
listAccounts(queryOutAccountParams.value).then((response) => {
|
||||||
|
outAccountList.value = [response.rows]
|
||||||
|
})
|
||||||
|
// 类型
|
||||||
|
getDicts('record_lend_type').then(res => {
|
||||||
|
dealTypeList.value =[res.data]
|
||||||
|
})
|
||||||
|
if(form.value.id!=null){
|
||||||
|
getAccountsTransferRecord(form.value.id).then(res => {
|
||||||
|
form.value = res.data
|
||||||
|
|
||||||
|
// 交易类型
|
||||||
|
getDicts('record_lend_type').then(result => {
|
||||||
|
form.value.amount = res.data.amount
|
||||||
|
form.value.dealTypeName=dictStr(form.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleOutAccount() {
|
||||||
|
if (outAccountList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '借贷账户为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showOutAccount.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleOutAccountConfirm(e) {
|
||||||
|
form.value.outAccountName = e.value[0].nameCode
|
||||||
|
form.value.outAccountId = e.value[0].id
|
||||||
|
showOutAccount.value = false
|
||||||
|
|
||||||
|
}
|
||||||
|
function handleOutAccountCancel() {
|
||||||
|
showOutAccount.value = false
|
||||||
|
}
|
||||||
|
function handleInAccount() {
|
||||||
|
if (inAccountList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '储蓄卡为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showInAccount.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleInAccountConfirm(e) {
|
||||||
|
form.value.inAccountName = e.value[0].nameCode
|
||||||
|
form.value.inAccountId = e.value[0].id
|
||||||
|
showInAccount.value = false
|
||||||
|
}
|
||||||
|
function handleInAccountCancel() {
|
||||||
|
showInAccount.value = false
|
||||||
|
}
|
||||||
|
function handleDealType() {
|
||||||
|
if (dealTypeList.value[0].length === 0) {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '交易类型为空 ', type: 'warning'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
showDealType.value = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function handleDealTypeConfirm(e) {
|
||||||
|
form.value.dealTypeName = e.value[0].dictLabel
|
||||||
|
form.value.dealType = e.value[0].dictValue
|
||||||
|
//1表示借款,2表示还款
|
||||||
|
if (form.value.dealType === '1') {
|
||||||
|
commissionShow.value = false
|
||||||
|
createTimeLabel.value = '借款时间'
|
||||||
|
amountLabel.value = '借款金额'
|
||||||
|
} else if (form.value.dealType === '2') {
|
||||||
|
amountLabel.value = '还款本金'
|
||||||
|
createTimeLabel.value = '还款时间'
|
||||||
|
commissionShow.value = true
|
||||||
|
}
|
||||||
|
showDealType.value = false
|
||||||
|
}
|
||||||
|
function handleDealTypeCancel() {
|
||||||
|
showDealType.value = false
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function selectDate() {
|
||||||
|
datePickShow.value = true
|
||||||
|
proxy.$refs['createTimeRef'].innerValue = new Date().getTime()
|
||||||
|
}
|
||||||
|
function datePickConfirm(e) {
|
||||||
|
form.value.createTime = dayjs(e.value).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
datePickShow.value = false
|
||||||
|
}
|
||||||
|
function submit() {
|
||||||
|
proxy.$refs['uForm'].validate().then(() => {
|
||||||
|
if (form.value.id != null) {
|
||||||
|
updateAccountsTransferRecord(form.value).then(res => {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '修改成功', complete() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/list` })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}else {
|
||||||
|
addAccountsTransferRecord(form.value).then(res => {
|
||||||
|
proxy.$refs['uToast'].show({
|
||||||
|
message: '新增成功', complete() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/list` })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.section {
|
||||||
|
margin: 24rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
width: 360rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-left: 6rpx solid #2681FF;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-view {
|
||||||
|
padding: 20rpx 0rpx 0 10rpx;
|
||||||
|
|
||||||
|
.form-btn {
|
||||||
|
padding-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
97
src/pages/work/accounts/lendTransferRecord/details.vue
Normal file
97
src/pages/work/accounts/lendTransferRecord/details.vue
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container" style="paddingBottom:1rpx;">
|
||||||
|
<u-navbar
|
||||||
|
leftIconSize="40rpx"
|
||||||
|
leftIconColor="#333333"
|
||||||
|
title="借贷账户记账详情"
|
||||||
|
>
|
||||||
|
</u-navbar>
|
||||||
|
<view class="section">
|
||||||
|
<!-- <view class="section-title">{{ detailInfo.name }}</view> -->
|
||||||
|
<u-cell-group>
|
||||||
|
<u-cell title="名称:" titleStyle="font-weight:bolder" :value="detailInfo.name"></u-cell>
|
||||||
|
<u-cell title="交易类型:" titleStyle="font-weight:bolder" :value="detailInfo.dealType"></u-cell>
|
||||||
|
<u-cell title="转出账户:" titleStyle="font-weight:bolder" :value="detailInfo.outAccountName"></u-cell>
|
||||||
|
<u-cell title="转入账户:" titleStyle="font-weight:bolder" :value="detailInfo.inAccountName"></u-cell>
|
||||||
|
<u-cell title="借贷时间:" titleStyle="font-weight:bolder" :value="detailInfo.createTime"></u-cell>
|
||||||
|
<u-cell title="借贷金额:" titleStyle="font-weight:bolder" :value="detailInfo.amount"></u-cell>
|
||||||
|
<u-cell title="还款利息:" titleStyle="font-weight:bolder" :value="detailInfo.commission"></u-cell>
|
||||||
|
</u-cell-group>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<u-toast ref="uToast"></u-toast>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { getAccountsTransferRecord} from '@/api/invest/accountsTransferRecord'
|
||||||
|
import {onLoad} from "@dcloudio/uni-app";
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import {reactive ,toRefs,ref }from "vue";
|
||||||
|
const id = ref('')
|
||||||
|
const data = reactive({
|
||||||
|
detailInfo: {}
|
||||||
|
})
|
||||||
|
const {detailInfo} = toRefs(data)
|
||||||
|
onLoad((option) => {
|
||||||
|
id.value = option.id
|
||||||
|
getInfo()
|
||||||
|
})
|
||||||
|
function getInfo() {
|
||||||
|
getAccountsTransferRecord(id.value).then(res => {
|
||||||
|
detailInfo.value = res.data
|
||||||
|
// 类型
|
||||||
|
getDicts('record_lend_type').then(result => {
|
||||||
|
detailInfo.value.dealType=dictStr(detailInfo.value.dealType, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.section {
|
||||||
|
margin: 24rpx;
|
||||||
|
padding: 16rpx 24rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
width: 280rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 44rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-left: 6rpx solid #2681FF;
|
||||||
|
padding-left: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: 647rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 40rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-con {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20rpx
|
||||||
|
}
|
||||||
|
.form-view {
|
||||||
|
padding: 20rpx 0rpx 0 10rpx;
|
||||||
|
|
||||||
|
.form-btn {
|
||||||
|
padding-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
444
src/pages/work/accounts/lendTransferRecord/list.vue
Normal file
444
src/pages/work/accounts/lendTransferRecord/list.vue
Normal file
@@ -0,0 +1,444 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||||
|
<view class="search-view">
|
||||||
|
<u--input v-model="queryParams.name" border="false" placeholder="请输入借贷账户名称" class="search-input"
|
||||||
|
@blur="searchBlur">
|
||||||
|
<template slot="prefix">
|
||||||
|
<u-icon name="search" color="#B8B8B8" size="48"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u--input>
|
||||||
|
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="filterPanel = !filterPanel"></u-icon>
|
||||||
|
<u-icon name="plus-circle-fill" color="#666666" size="28" style="margin-left:10px" label="新增"
|
||||||
|
labelPos="left" labelSize="32rpx" labelColor="#666666" @click="handleAdd()"></u-icon>
|
||||||
|
<u-transition :show="filterPanel" mode="fade">
|
||||||
|
<view class="filter-panel" :style="{ height: `${windowHeight - 42}px` }">
|
||||||
|
<view class="filter-panel-content">
|
||||||
|
<view class="select-header">借贷时间</view>
|
||||||
|
<view class="selcet-content" style="padding: 0 24rpx">
|
||||||
|
<u-input
|
||||||
|
:disabled="true"
|
||||||
|
:disabledColor="'#fff'"
|
||||||
|
class="dateInput"
|
||||||
|
border="surround"
|
||||||
|
v-model="queryParams.startTime"
|
||||||
|
placeholder="请选择开始时间"
|
||||||
|
>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<u-icon name="calendar" @click="openOrCloseDate(true)"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u-input>
|
||||||
|
<u-input
|
||||||
|
:disabled="true"
|
||||||
|
:disabledColor="'#fff'"
|
||||||
|
class="dateInput"
|
||||||
|
border="surround"
|
||||||
|
v-model="queryParams.endTime"
|
||||||
|
placeholder="请选择结束时间"
|
||||||
|
>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<u-icon name="calendar" @click="openOrCloseDate(false)"></u-icon>
|
||||||
|
</template>
|
||||||
|
</u-input>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btn-box">
|
||||||
|
<u-button text="重置" style="margin-right:20rpx" @click="resetQuery()"></u-button>
|
||||||
|
<u-button type="primary" text="确定" @click="searchSubmit()"></u-button>
|
||||||
|
</view>
|
||||||
|
<u-datetime-picker
|
||||||
|
:closeOnClickOverlay="true"
|
||||||
|
:show="timeShow"
|
||||||
|
v-model="time"
|
||||||
|
mode="datetime"
|
||||||
|
@close="openOrCloseDate"
|
||||||
|
@cancel="openOrCloseDate"
|
||||||
|
@confirm="confirm"
|
||||||
|
></u-datetime-picker>
|
||||||
|
</view>
|
||||||
|
</u-transition>
|
||||||
|
</view>
|
||||||
|
</u-sticky>
|
||||||
|
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
|
||||||
|
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||||
|
<view class="list-item">
|
||||||
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
|
:text="item.name" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">交易类型:</text>
|
||||||
|
<text class="row-value">{{ dictStr(item.dealType, dealTypeList) }}</text>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">转出账户:</text>
|
||||||
|
<text class="row-value">{{ item.outAccountName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">转入账户:</text>
|
||||||
|
<text class="row-value">{{ item.inAccountName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">借贷时间:</text>
|
||||||
|
<text class="row-value">{{ item.createTime }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">借贷金额:</text>
|
||||||
|
<text class="row-value">{{ item.amount }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="item-row">
|
||||||
|
<text class="row-label">还款利息:</text>
|
||||||
|
<text class="row-value">{{ item.commission }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="operate" >
|
||||||
|
<view class="btn filling" @click="enterDetails(item)">查看</view>
|
||||||
|
<view class="btn filling" @click="handleDelete(item)">删除</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-list-item>
|
||||||
|
<view>
|
||||||
|
</view>
|
||||||
|
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||||
|
</u-list>
|
||||||
|
<u-picker itemHeight="88" :show="settingPickShow" :columns="settingColumns" keyName="settingName"
|
||||||
|
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
listAccountsTransferRecord,
|
||||||
|
delAccountsTransferRecord,
|
||||||
|
} from '@/api/invest/accountsTransferRecord'
|
||||||
|
import { getDicts } from '@/api/system/dict/data.js'
|
||||||
|
import { timeHandler } from '@/utils/common.ts'
|
||||||
|
import {onLoad,onShow} from "@dcloudio/uni-app";
|
||||||
|
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
|
||||||
|
import {reactive ,toRefs,ref,computed }from "vue";
|
||||||
|
const pageNum = ref(1)
|
||||||
|
const listData = ref([])
|
||||||
|
const isShow = ref(false)
|
||||||
|
const status = ref('loadmore')
|
||||||
|
const dealTypeList = ref([])
|
||||||
|
const settingPickShow = ref(false)
|
||||||
|
const settingColumns = ref([])
|
||||||
|
const timeShow= ref(false)
|
||||||
|
const flag= ref(true)
|
||||||
|
const time =ref( Number(new Date()))
|
||||||
|
const data = reactive({
|
||||||
|
filterPanel: false,
|
||||||
|
queryParams: {
|
||||||
|
name: null,
|
||||||
|
type: '5',
|
||||||
|
time: '',
|
||||||
|
posId: null,
|
||||||
|
inAccountId: null,
|
||||||
|
outAccountId: null,
|
||||||
|
dealType: null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const { filterPanel, queryParams} = toRefs(data)
|
||||||
|
const windowHeight = computed(() => {
|
||||||
|
uni.getSystemInfoSync().windowHeight - 50
|
||||||
|
})
|
||||||
|
onLoad(() => {
|
||||||
|
getDict()
|
||||||
|
getList()
|
||||||
|
});
|
||||||
|
|
||||||
|
onShow(() => {
|
||||||
|
if (isShow.value) {
|
||||||
|
getList()
|
||||||
|
isShow.value = false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function openOrCloseDate(data) {
|
||||||
|
timeShow.value = !timeShow.value
|
||||||
|
flag.value = data
|
||||||
|
}
|
||||||
|
function loadmore() {
|
||||||
|
pageNum.value += 1
|
||||||
|
if (status.value == 'loadmore') {
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getList() {
|
||||||
|
status.value = 'loading'
|
||||||
|
listAccountsTransferRecord({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {
|
||||||
|
listData.value = listData.value.concat(res.rows)
|
||||||
|
if (listData.value.length < res.total) {
|
||||||
|
status.value = 'loadmore'
|
||||||
|
} else {
|
||||||
|
status.value = 'nomore'
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
status.value = 'nomore'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function confirm(e) {
|
||||||
|
const date = timeHandler(new Date(e.value), '-', ':')
|
||||||
|
if (flag.value) {
|
||||||
|
queryParams.value.startTime = date
|
||||||
|
} else {
|
||||||
|
queryParams.value.endTime = date
|
||||||
|
}
|
||||||
|
timeShow.value = false
|
||||||
|
}
|
||||||
|
function getDict() {
|
||||||
|
// 交易类型
|
||||||
|
getDicts('record_lend_type').then(res => {
|
||||||
|
dealTypeList.value = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function selectStatus(item) {
|
||||||
|
queryParams.value.dealType = item.dictValue
|
||||||
|
dealTypeList.value.map(ele => {
|
||||||
|
if (ele.dictValue == item.dictValue) {
|
||||||
|
ele.selected = true
|
||||||
|
Reflect.set(ele, 'selected', true)
|
||||||
|
} else {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function settingConfirm(e) {
|
||||||
|
queryParams.value.settingId = e.value[0].settingId
|
||||||
|
queryParams.value.settingName = e.value[0].settingName
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function settingCancel() {
|
||||||
|
settingPickShow.value = false
|
||||||
|
}
|
||||||
|
function dictStr(val, arr) {
|
||||||
|
let str = ''
|
||||||
|
arr.map(item => {
|
||||||
|
if (item.dictValue === val) {
|
||||||
|
str = item.dictLabel
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function searchSubmit() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
filterPanel.value = false
|
||||||
|
}
|
||||||
|
function searchBlur() {
|
||||||
|
pageNum.value = 1
|
||||||
|
listData.value = []
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
function resetQuery() {
|
||||||
|
queryParams.value.name = ''
|
||||||
|
queryParams.value.type = ''
|
||||||
|
queryParams.value.dealType = ''
|
||||||
|
queryParams.value.startTime = ''
|
||||||
|
queryParams.value.endTime = ''
|
||||||
|
dealTypeList.value.map(ele => {
|
||||||
|
Reflect.set(ele, 'selected', false)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function enterDetails(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/details?id=${item.id}` })
|
||||||
|
}
|
||||||
|
function handleEdit(item) {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/addEdit?id=${item.id}` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleAdd() {
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/addEdit` })
|
||||||
|
isShow.value = true
|
||||||
|
}
|
||||||
|
function handleDelete(item) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '你确定要删除吗',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
delAccountsTransferRecord(item.id)
|
||||||
|
uni.navigateTo({ url: `/pages/work/accounts/lendTransferRecord/list` })
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.btnAdd {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
display:float;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-view {
|
||||||
|
padding: 12rpx 32rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
background: #F5F5F5;
|
||||||
|
color: #333333;
|
||||||
|
margin-right: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-panel {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 96rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
.filter-panel-content {
|
||||||
|
background-color: #ffff;
|
||||||
|
padding: 0 30rpx 30rpx;
|
||||||
|
|
||||||
|
.filter-title {
|
||||||
|
color: #000000;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
.state-item {
|
||||||
|
width: 210rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
border: 1rpx solid rgba(0, 0, 0, 0.25);
|
||||||
|
border-radius: 72rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
margin: 0 20rpx 20rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: rgba(222, 241, 255, 1);
|
||||||
|
border: 1rpx solid rgba(22, 119, 255, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-box {
|
||||||
|
display: flex;
|
||||||
|
padding: 24rpx 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
margin: 0 24rpx 24rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
.item-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 16rpx;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
.status-item {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 44rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 44rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status1 {
|
||||||
|
background: #F0F0F0;
|
||||||
|
color: #8C8C8C;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status2 {
|
||||||
|
background: rgba(38, 129, 255, 0.2);
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status3 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: #2681FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status4 {
|
||||||
|
background: rgba(255, 85, 51, 0.2);
|
||||||
|
color: #FF5533;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status5 {
|
||||||
|
background: #F7F7F7;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status7 {
|
||||||
|
background: rgba(255, 129, 51, 0.2);
|
||||||
|
color: #FF8133;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status8 {
|
||||||
|
background: rgba(65, 217, 165, 0.2);
|
||||||
|
color: #41D9A5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-row {
|
||||||
|
padding: 16rpx 0;
|
||||||
|
|
||||||
|
.row-label {
|
||||||
|
color: rgba(0, 0, 0, 0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
.row-value {
|
||||||
|
color: rgba(0, 0, 0, 0.85)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 146rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circulation {
|
||||||
|
background: rgba(0, 0, 0, 0.04);
|
||||||
|
margin-right: 24rpx;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.filling {
|
||||||
|
background: #2681FF;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
<view class="list-item">
|
<view class="list-item">
|
||||||
<view class="item-header" @click="enterDetails(item)">
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
:text="item.posName+'-'+item.outAccountName" size="36rpx" color="#333333" :bold="true"></u--text>
|
:text="item.posName+'-'+item.outAccountName+'刷卡:'+item.amount" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="row-label">POS机名称:</text>
|
<text class="row-label">POS机名称:</text>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
<text class="row-value">{{ item.createTime }}</text>
|
<text class="row-value">{{ item.createTime }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="row-label">交易金额:</text>
|
<text class="row-label">刷卡金额:</text>
|
||||||
<text class="row-value">{{ item.amount }}</text>
|
<text class="row-value">{{ item.amount }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<view class="list-item">
|
<view class="list-item">
|
||||||
<view class="item-header" @click="enterDetails(item)">
|
<view class="item-header" @click="enterDetails(item)">
|
||||||
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||||
:text="item.name" size="36rpx" color="#333333" :bold="true"></u--text>
|
:text="item.name" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="row-label">类型:</text>
|
<text class="row-label">类型:</text>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
|
|||||||
{ path: '/pages/work/accounts/posTransferRecord/list', text: 'POS机刷卡记账', icon: 'reload', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/posTransferRecord/list', text: 'POS机刷卡记账', icon: 'reload', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/work/accounts/creditTransferRecord/list', text: '信用卡还款', icon: 'arrow-left', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/creditTransferRecord/list', text: '信用卡还款', icon: 'arrow-left', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/work/accounts/debitTransferRecord/list', text: '储蓄账户记账', icon: 'tune', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/debitTransferRecord/list', text: '储蓄账户记账', icon: 'tune', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/work/accounts/accounts/list', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
{ path: '/pages/work/accounts/accounts/commonList', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
||||||
{ path: '/pages/page1/page1', text: '网贷账单', icon: 'settings', permission: 'invest:installmentHistory:list' },
|
{ path: '/pages/page1/page1', text: '网贷账单', icon: 'settings', permission: 'invest:installmentHistory:list' },
|
||||||
{ path: '/pages/page1/page1', text: '信用卡分期账单', icon: 'bars', permission: 'invest:installmentHistory:list' },
|
{ path: '/pages/page1/page1', text: '信用卡分期账单', icon: 'bars', permission: 'invest:installmentHistory:list' },
|
||||||
{ path: '/pages/page1/page1', text: '征信查询记录', icon: 'search', permission: 'invest:creditQueryRecord:list' }
|
{ path: '/pages/page1/page1', text: '征信查询记录', icon: 'search', permission: 'invest:creditQueryRecord:list' }
|
||||||
@@ -104,10 +104,10 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
|
|||||||
{ path: '/pages/work/accounts/accounts/list', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
{ path: '/pages/work/accounts/accounts/list', text: '记账账户', icon: 'staff', permission: 'invest:accounts:list' },
|
||||||
{ path: '/pages/work/accounts/posTransferRecord/list', text: 'POS机刷卡记账', icon: 'reload', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/posTransferRecord/list', text: 'POS机刷卡记账', icon: 'reload', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/work/accounts/creditTransferRecord/list', text: '信用卡还款', icon: 'arrow-left', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/creditTransferRecord/list', text: '信用卡还款', icon: 'arrow-left', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/page1/page1', text: '投资账户记账', icon: 'auth-filled', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/investTransferRecord/list', text: '投资账户记账', icon: 'auth-filled', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/page1/page1', text: '投资交易记录', icon: 'chatboxes', permission: 'invest:accountDealRecord:list' },
|
{ path: '/pages/work/accounts/investAccountDeal/list', text: '投资交易记录', icon: 'chatboxes', permission: 'invest:accountDealRecord:list' },
|
||||||
{ path: '/pages/work/accounts/debitTransferRecord/list', text: '储蓄账户记账', icon: 'tune', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/debitTransferRecord/list', text: '储蓄账户记账', icon: 'tune', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/page1/page1', text: '借贷账户记账', icon: 'link', permission: 'invest:accountsTransferRecord:list' },
|
{ path: '/pages/work/accounts/lendTransferRecord/list', text: '借贷账户记账', icon: 'link', permission: 'invest:accountsTransferRecord:list' },
|
||||||
{ path: '/pages/work/accounts/accountDealRecord/list', text: '账户交易记录', icon: 'paperclip', permission: 'invest:accountDealRecord:list' }
|
{ path: '/pages/work/accounts/accountDealRecord/list', text: '账户交易记录', icon: 'paperclip', permission: 'invest:accountDealRecord:list' }
|
||||||
])
|
])
|
||||||
const heartJourneyGridList=ref([
|
const heartJourneyGridList=ref([
|
||||||
|
|||||||
Reference in New Issue
Block a user