fix: 前端功能优化完善相关字段。
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user