fix: 新功能增加,原有功能优化。

This commit is contained in:
tianyongbao
2024-06-15 15:52:47 +08:00
parent 2f1175183f
commit 7ce6161b01
33 changed files with 4630 additions and 86 deletions

View File

@@ -52,7 +52,7 @@
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showAccountType" :columns="accountTypeList" keyName="dictLabel" @cancel="handleAccountTypeCancel"
@confirm="handleAccountTypeConfirm"></u-picker>
<u-picker itemHeight="88" :show="showAccountName" :columns="accountNameList" keyName="nameCode" @cancel="handleAccountNameCancel"
<u-picker itemHeight="88" :show="showAccountName" :columns="accountNameList" keyName="nameCodeAvailableLimit" @cancel="handleAccountNameCancel"
@confirm="handleAccountNameConfirm"></u-picker>
<u-picker itemHeight="88" :show="showDealCategory" :columns="dealCategoryList" keyName="dictLabel" @cancel="handleDealCategoryCancel"
@confirm="handleDealCategoryConfirm"></u-picker>
@@ -233,7 +233,7 @@ getDicts('deal_category').then(result => {
}
}
function handleAccountNameConfirm(e) {
form.value.accountName = e.value[0].nameCode
form.value.accountName = e.value[0].nameCodeAvailableLimit
form.value.accountId = e.value[0].id
showAccountName.value = false
}

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -111,7 +108,7 @@
<text class="row-value">{{ item.remark }}</text>
</view>
<view class="operate" >
<view class="btn filling" @click="enterDetails(item)">查看</view>
<!-- <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 File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -84,9 +81,9 @@
</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 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 File

@@ -45,9 +45,9 @@
</view>
</view>
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showDebitCard" :columns="debitCardList" keyName="nameCode" @cancel="handleDebitCardCancel"
<u-picker itemHeight="88" :show="showDebitCard" :columns="debitCardList" keyName="nameCodeAvailableLimit" @cancel="handleDebitCardCancel"
@confirm="handleDebitCardConfirm"></u-picker>
<u-picker itemHeight="88" :show="showCreditCard" :columns="bankCardLendList" keyName="nameCode" @cancel="handleCreditCardCancel"
<u-picker itemHeight="88" :show="showCreditCard" :columns="bankCardLendList" keyName="nameCodeAvailableLimit" @cancel="handleCreditCardCancel"
@confirm="handleCreditCardConfirm"></u-picker>
<u-picker itemHeight="88" :show="showDealType" :columns="dealTypeList" keyName="dictLabel" @cancel="handleDealTypeCancel"
@confirm="handleDealTypeConfirm"></u-picker>
@@ -167,7 +167,7 @@ onLoad((option) => {
}
}
function handleDebitCardConfirm(e) {
form.value.outAccountName = e.value[0].nameCode
form.value.outAccountName = e.value[0].nameCodeAvailableLimit
form.value.outAccountId = e.value[0].id
showDebitCard.value = false
}
@@ -184,7 +184,7 @@ function handleCreditCard() {
}
}
function handleCreditCardConfirm(e) {
form.value.inAccountName = e.value[0].nameCode
form.value.inAccountName = e.value[0].nameCodeAvailableLimit
form.value.inAccountId= e.value[0].id
showCreditCard.value = false
}

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -94,8 +91,8 @@
</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="enterDetails(item)">查看</view> -->
<!-- <view class="btn filling" @click="handleEdit(item)">修改</view> -->
<view class="btn filling" @click="handleDelete(item)">删除</view>
</view>
</view>
@@ -235,7 +232,7 @@ function dictStr(val, arr) {
}
function resetQuery() {
queryParams.value.name = ''
queryParams.value.type = ''
queryParams.value.type = '2'
queryParams.value.dealType = ''
queryParams.value.startTime = ''
queryParams.value.endTime = ''

View File

@@ -40,9 +40,9 @@
</view>
</view>
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showOutAccount" :columns="outAccountList" keyName="nameCode" @cancel="handleOutAccountCancel"
<u-picker itemHeight="88" :show="showOutAccount" :columns="outAccountList" keyName="nameCodeAvailableLimit" @cancel="handleOutAccountCancel"
@confirm="handleOutAccountConfirm"></u-picker>
<u-picker itemHeight="88" :show="showInAccount" :columns="inAccountList" keyName="nameCode" @cancel="handleInAccountCancel"
<u-picker itemHeight="88" :show="showInAccount" :columns="inAccountList" keyName="nameCodeAvailableLimit" @cancel="handleInAccountCancel"
@confirm="handleInAccountConfirm"></u-picker>
<u-datetime-picker
:show="datePickShow"
@@ -147,7 +147,7 @@ onLoad((option) => {
}
}
function handleOutAccountConfirm(e) {
form.value.outAccountName = e.value[0].nameCode
form.value.outAccountName = e.value[0].nameCodeAvailableLimit
form.value.outAccountId = e.value[0].id
showOutAccount.value = false
@@ -165,7 +165,7 @@ function handleInAccount() {
}
}
function handleInAccountConfirm(e) {
form.value.inAccountName = e.value[0].nameCode
form.value.inAccountName = e.value[0].nameCodeAvailableLimit
form.value.inAccountId = e.value[0].id
showInAccount.value = false
}

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -84,7 +81,7 @@
<text class="row-value">{{ item.amount }}</text>
</view>
<view class="operate" >
<view class="btn filling" @click="enterDetails(item)">查看</view>
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view> -->
<view class="btn filling" @click="handleDelete(item)">删除</view>
</view>
</view>

View File

@@ -40,7 +40,7 @@
</view>
</view>
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showAccountName" :columns="accountNameList" keyName="nameCode" @cancel="handleAccountNameCancel"
<u-picker itemHeight="88" :show="showAccountName" :columns="accountNameList" keyName="nameCodeAvailableLimit" @cancel="handleAccountNameCancel"
@confirm="handleAccountNameConfirm"></u-picker>
<u-picker itemHeight="88" :show="showDealType" :columns="dealTypeList" keyName="dictLabel" @cancel="handleDealTypeCancel"
@confirm="handleDealTypeConfirm"></u-picker>
@@ -159,7 +159,7 @@ onLoad((option) => {
}
}
function handleAccountNameConfirm(e) {
form.value.accountName = e.value[0].nameCode
form.value.accountName = e.value[0].nameCodeAvailableLimit
form.value.accountId = e.value[0].id
showAccountName.value = false
}

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -94,8 +91,8 @@
<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="enterDetails(item)">查看</view> -->
<!-- <view class="btn filling" @click="handleEdit(item)">修改</view> -->
<view class="btn filling" @click="handleDelete(item)">删除</view>
</view>
</view>
@@ -258,11 +255,11 @@ function selectAccountType(item) {
}
function resetQuery() {
queryParams.value.name = ''
queryParams.value.type = ''
queryParams.value.type = '5'
queryParams.value.dealType = ''
queryParams.value.startTime = ''
queryParams.value.endTime = ''
queryParams.value.dealCategory = ''
queryParams.value.dealCategory = '2'
accountTypeList.value.map(ele => {
Reflect.set(ele, 'selected', false)
})

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -94,8 +91,8 @@
</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="enterDetails(item)">查看</view> -->
<!-- <view class="btn filling" @click="handleEdit(item)">修改</view> -->
<view class="btn filling" @click="handleDelete(item)">删除</view>
</view>
</view>
@@ -235,7 +232,7 @@ function dictStr(val, arr) {
}
function resetQuery() {
queryParams.value.name = ''
queryParams.value.type = ''
queryParams.value.type = '3'
queryParams.value.dealType = ''
queryParams.value.startTime = ''
queryParams.value.endTime = ''

View File

@@ -49,9 +49,9 @@
</view>
</view>
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showOutAccount" :columns="outAccountList" keyName="nameCode" @cancel="handleOutAccountCancel"
<u-picker itemHeight="88" :show="showOutAccount" :columns="outAccountList" keyName="nameCodeAvailableLimit" @cancel="handleOutAccountCancel"
@confirm="handleOutAccountConfirm"></u-picker>
<u-picker itemHeight="88" :show="showInAccount" :columns="inAccountList" keyName="nameCode" @cancel="handleInAccountCancel"
<u-picker itemHeight="88" :show="showInAccount" :columns="inAccountList" keyName="nameCodeAvailableLimit" @cancel="handleInAccountCancel"
@confirm="handleInAccountConfirm"></u-picker>
<u-picker itemHeight="88" :show="showDealType" :columns="dealTypeList" keyName="dictLabel" @cancel="handleDealTypeCancel"
@confirm="handleDealTypeConfirm"></u-picker>
@@ -174,7 +174,7 @@ onLoad((option) => {
}
}
function handleOutAccountConfirm(e) {
form.value.outAccountName = e.value[0].nameCode
form.value.outAccountName = e.value[0].nameCodeAvailableLimit
form.value.outAccountId = e.value[0].id
showOutAccount.value = false
@@ -192,7 +192,7 @@ function handleInAccount() {
}
}
function handleInAccountConfirm(e) {
form.value.inAccountName = e.value[0].nameCode
form.value.inAccountName = e.value[0].nameCodeAvailableLimit
form.value.inAccountId = e.value[0].id
showInAccount.value = false
}

View File

@@ -3,10 +3,7 @@
<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>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -93,7 +90,7 @@
<text class="row-value">{{ item.commission }}</text>
</view>
<view class="operate" >
<view class="btn filling" @click="enterDetails(item)">查看</view>
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view> -->
<view class="btn filling" @click="handleDelete(item)">删除</view>
</view>
</view>
@@ -233,7 +230,7 @@ function dictStr(val, arr) {
}
function resetQuery() {
queryParams.value.name = ''
queryParams.value.type = ''
queryParams.value.type = '5'
queryParams.value.dealType = ''
queryParams.value.startTime = ''
queryParams.value.endTime = ''

View File

@@ -50,7 +50,7 @@
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showPosMachine" :columns="posMachineList" keyName="nameMerchantName" @cancel="handlePosMachineCancel"
@confirm="handlePosMachineConfirm"></u-picker>
<u-picker itemHeight="88" :show="showCreditCard" :columns="bankCardLendList" keyName="nameCode" @cancel="handleCreditCardCancel"
<u-picker itemHeight="88" :show="showCreditCard" :columns="bankCardLendList" keyName="nameCodeAvailableLimit" @cancel="handleCreditCardCancel"
@confirm="handleCreditCardConfirm"></u-picker>
<u-datetime-picker
:show="datePickShow"
@@ -180,7 +180,7 @@ function handleCreditCard() {
}
}
function handleCreditCardConfirm(e) {
form.value.outAccountName = e.value[0].nameCode
form.value.outAccountName = e.value[0].nameCodeAvailableLimit
form.value.outAccountId = e.value[0].id
showCreditCard.value = false
}

View File

@@ -3,10 +3,7 @@
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
<view class="search-view">
<u--input v-model="queryParams.name" border="false" placeholder="请输入POS机或信用卡名称" class="search-input"
@blur="searchBlur">
<template slot="prefix">
<u-icon name="search" color="#B8B8B8" size="48"></u-icon>
</template>
@blur="searchBlur" suffixIcon="search" suffixIconStyle="color: #909399">
</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>
@@ -100,7 +97,7 @@
<text class="row-value">{{ item.actualAmount }}</text>
</view>
<view class="operate" >
<view class="btn filling" @click="enterDetails(item)">查看</view>
<!-- <view class="btn filling" @click="enterDetails(item)">查看</view> -->
<view class="btn filling" @click="handleDelete(item)">删除</view>
</view>
</view>
@@ -212,7 +209,7 @@ function settingCancel() {
}
function resetQuery() {
queryParams.value.name = ''
queryParams.value.type = ''
queryParams.value.type = '1'
queryParams.value.dealType = ''
queryParams.value.startTime = ''
queryParams.value.endTime = ''