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

@@ -3,7 +3,7 @@
<u-navbar
leftIconSize="40rpx"
leftIconColor="#333333"
title="贷账单"
title="贷账单"
>
</u-navbar>
<view class="section">
@@ -11,8 +11,8 @@
<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="onlineLendName" required @click="handleOnlineLend">
<u--input v-model="form.onlineLendName" disabled disabledColor="#ffffff" placeholder="请选择贷机构"
<u-form-item label="贷机构" prop="onlineLendName" required @click="handleOnlineLend">
<u--input v-model="form.onlineLendName" disabled disabledColor="#ffffff" placeholder="请选择贷机构"
inputAlign="right" border="none"></u--input>
<u-icon slot="right" name="arrow-down"></u-icon>
</u-form-item>
@@ -104,7 +104,7 @@ const datePickShow = ref(false)
const closeDatePickShow = ref(false)
const showTeam = ref(false)
const showOnlineLend = ref(false)
const title = ref("贷账单")
const title = ref("贷账单")
const bankCardLendList = ref([])
const settleStateList = ref([])
const data = reactive({
@@ -139,7 +139,7 @@ const data = reactive({
pageSize: 1000
},
rules: {
onlineLendName: [{ type: 'string', required: true, message: '贷机构不能为空', trigger: ['change', 'blur'] }],
onlineLendName: [{ type: 'string', required: true, message: '贷机构不能为空', trigger: ['change', 'blur'] }],
billDate: [{ type: 'string', required: true, message: '借款日期不能为空', trigger: ['change', 'blur'] }],
settleStateName: [{ type: 'string', required: true, message: '结清状态不能为空', trigger: ['change', 'blur'] }],
installmentAmount: [{ type: 'number', required: true, message: '借款金额不能为空', trigger: ['change', 'blur'] }],
@@ -154,9 +154,9 @@ const { form, queryBankCardLendParams, rules} = toRefs(data)
onLoad((option) => {
form.value.id = option.id
if(form.value.id!=null){
title.value="贷账单-修改"
title.value="贷账单-修改"
}else{
title.value="贷账单-新增"
title.value="贷账单-新增"
}
getDict()
})
@@ -213,7 +213,7 @@ onLoad((option) => {
function handleOnlineLend() {
if (bankCardLendList.value[0].length === 0) {
proxy.$refs['uToast'].show({
message: '贷机构为空 ', type: 'warning'
message: '贷机构为空 ', type: 'warning'
})
} else {
showOnlineLend.value = true

View File

@@ -3,7 +3,7 @@
<u-navbar
leftIconSize="40rpx"
leftIconColor="#333333"
title="贷账单还款明细"
title="贷账单还款明细"
>
</u-navbar>
<view class="section">
@@ -75,7 +75,7 @@ import {
import {reactive ,toRefs,ref,computed ,getCurrentInstance }from "vue";
const datePickShow = ref(false)
const showTeam = ref(false)
const title = ref("贷账单还款明细")
const title = ref("贷账单还款明细")
const postingStateList = ref([])
const data = reactive({
form: {},
@@ -94,9 +94,9 @@ onLoad((option) => {
form.value.installmentHistoryId = option.installmentHistoryId
form.value.name = option.name
if(form.value.id!=null){
title.value="贷账单还款明细-修改"
title.value="贷账单还款明细-修改"
}else{
title.value="贷账单还款明细-新增"
title.value="贷账单还款明细-新增"
}
getDict()
})

View File

@@ -2,7 +2,7 @@
<view class="container">
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
<view class="search-view">
<u-input v-model="queryParams.onlineLendName" border="false" type="select" @click="handleOnlineLend" placeholder="请选择贷机构" suffixIcon="search"
<u-input v-model="queryParams.onlineLendName" border="false" type="select" @click="handleOnlineLend" placeholder="请选择贷机构" suffixIcon="search"
suffixIconStyle="color: #909399" class="search-input">
</u-input>
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#666666" size="28" label="筛选"
@@ -215,7 +215,7 @@ function selectStatus(item) {
function handleOnlineLend() {
if (bankCardLendList.value[0].length === 0) {
proxy.$refs['uToast'].show({
message: '贷机构为空 ', type: 'warning'
message: '贷机构为空 ', type: 'warning'
})
} else {
showOnlineLend.value = true