fix: 前端功能优化完善相关字段。

This commit is contained in:
tianyongbao
2024-07-31 17:24:36 +08:00
parent da3c94d260
commit 34425c8273
13 changed files with 87 additions and 83 deletions

View File

@@ -19,7 +19,7 @@
</view>
<view class="filter-title">账户状态</view>
<view class="state-list">
<view v-for="item in accountState" :key="item.id" class="state-item"
<view v-for="item in accountStatus" :key="item.id" class="state-item"
:class="item.selected ? 'active' : ''" @click="selectStatus(item)">{{ item.dictLabel }}</view>
</view>
</view>
@@ -46,6 +46,10 @@
<text class="row-label">储蓄账户类型</text>
<text class="row-value">{{ dictStr(item.debitType, debitType) }}</text>
</view>
<view class="item-row" >
<text class="row-label">账户状态</text>
<text class="row-value">{{ dictStr(item.status, accountStatus) }}</text>
</view>
</view>
</u-list-item>
<view>
@@ -71,7 +75,7 @@ const isShow = ref(false)
const status = ref('loadmore')
const accountType = ref([])
const debitType = ref([])
const accountState= ref([])
const accountStatus= ref([])
const showAccount = ref(false)
const accountList = ref([])
const settingPickShow = ref(false)
@@ -135,8 +139,8 @@ function getDict() {
})
// 类型
getDicts('account_state').then(res => {
accountState.value = res.data
getDicts('account_status').then(res => {
accountStatus.value = res.data
})
// 类型
getDicts('debit_type').then(res => {
@@ -173,7 +177,7 @@ function selectType(item) {
}
function selectStatus(item) {
queryParams.value.state = item.dictValue
accountState.value.map(ele => {
accountStatus.value.map(ele => {
if (ele.dictValue == item.dictValue) {
ele.selected = true
Reflect.set(ele, 'selected', true)
@@ -221,7 +225,7 @@ function selectType(item) {
accountType.value.map(ele => {
Reflect.set(ele, 'selected', false)
})
accountState.value.map(ele => {
accountStatus.value.map(ele => {
Reflect.set(ele, 'selected', false)
})
}

View File

@@ -17,7 +17,7 @@
<u-cell title="账单日:" v-if="detailInfo.type=='信用卡账户'" titleStyle="font-weight:bolder" center :value="detailInfo.billDateName"> </u-cell>
<u-cell title="还款日:" v-if="detailInfo.type=='信用卡账户'" titleStyle="font-weight:bolder" center :value="detailInfo.payDateName"> </u-cell>
<u-cell title="储蓄卡类型:" v-if="detailInfo.type=='储蓄卡账户'" titleStyle="font-weight:bolder" center :value="detailInfo.debitType"> </u-cell>
<u-cell title="账户状态:" titleStyle="font-weight:bolder" center :value="detailInfo.state"> </u-cell>
<u-cell title="账户状态:" titleStyle="font-weight:bolder" center :value="detailInfo.status"> </u-cell>
<u-cell title="备注:" titleStyle="font-weight:bolder" center :value="detailInfo.remark"> </u-cell>
</u-cell-group>
</view>
@@ -48,8 +48,8 @@ onLoad((option) => {
detailInfo.value.type=dictStr(detailInfo.value.type, result.data)
})
// 类型
getDicts('account_state').then(result => {
detailInfo.value.state=dictStr(detailInfo.value.state, result.data)
getDicts('account_status').then(result => {
detailInfo.value.status=dictStr(detailInfo.value.status, result.data)
})
// 类型
getDicts('debit_type').then(result => {

View File

@@ -19,7 +19,7 @@
</view>
<view class="filter-title">账户状态</view>
<view class="state-list">
<view v-for="item in accountState" :key="item.id" class="state-item"
<view v-for="item in accountStatus" :key="item.id" class="state-item"
:class="item.selected ? 'active' : ''" @click="selectStatus(item)">{{ item.dictLabel }}</view>
</view>
</view>
@@ -73,7 +73,7 @@
</view>
<view class="item-row">
<text class="row-label">账户状态</text>
<text class="row-value">{{ dictStr(item.state, accountState) }}</text>
<text class="row-value">{{ dictStr(item.status, accountStatus) }}</text>
</view>
<view class="item-row">
<text class="row-label">备注</text>
@@ -110,7 +110,7 @@ const isShow = ref(false)
const status = ref('loadmore')
const accountType = ref([])
const debitType = ref([])
const accountState= ref([])
const accountStatus= ref([])
const showAccount = ref(false)
const accountList = ref([])
const settingPickShow = ref(false)
@@ -174,8 +174,8 @@ function getDict() {
})
// 类型
getDicts('account_state').then(res => {
accountState.value = res.data
getDicts('account_status').then(res => {
accountStatus.value = res.data
})
// 类型
getDicts('debit_type').then(res => {
@@ -211,8 +211,8 @@ function selectType(item) {
})
}
function selectStatus(item) {
queryParams.value.state = item.dictValue
accountState.value.map(ele => {
queryParams.value.status = item.dictValue
accountStatus.value.map(ele => {
if (ele.dictValue == item.dictValue) {
ele.selected = true
Reflect.set(ele, 'selected', true)