fix: 信用卡账单修改。
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
<el-option v-for="creditCard in creditCardList" :key="creditCard.id" :label="creditCard.nameCode" :value="creditCard.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="账单状态" prop="billState">
|
||||
<el-select v-model="queryParams.billState" placeholder="请选择账单状态" clearable>
|
||||
<el-option v-for="dict in bill_state" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="search-btn-con">
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
@@ -38,6 +43,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="账单周期" align="center" prop="billDatePeriod" />
|
||||
<el-table-column label="账单金额" align="center" prop="billAmount" />
|
||||
<el-table-column label="账单状态" align="center" prop="billState">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="bill_state" :value="scope.row.billState" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template v-slot="scope">
|
||||
<div class="ctrl-btn d-flex">
|
||||
@@ -65,6 +75,11 @@
|
||||
<el-form-item label="账单金额" prop="billAmount">
|
||||
<el-input v-model="form.billAmount" placeholder="请输入账单金额" />
|
||||
</el-form-item>
|
||||
<el-form-item label="账单状态" prop="billState">
|
||||
<el-select v-model="form.billState" placeholder="请选择账单状态">
|
||||
<el-option v-for="dict in bill_state" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template v-if="title !== '查看信用卡账单'" #footer>
|
||||
<div class="dialog-footer">
|
||||
@@ -82,7 +97,7 @@ import { listBankcardLend } from '@/api/invest/bankcardlend'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import { require } from '@/utils/require'
|
||||
const { proxy } = getCurrentInstance()
|
||||
|
||||
const { bill_state } = proxy.useDict('bill_state')
|
||||
const creditCardBillList = ref([])
|
||||
const open = ref(false)
|
||||
const loading = ref(true)
|
||||
@@ -105,7 +120,7 @@ const data = reactive({
|
||||
pageSize: 10,
|
||||
name: null,
|
||||
creditCardId: null,
|
||||
billState: '1'
|
||||
billState: null
|
||||
},
|
||||
queryCreditCardParams: {
|
||||
pageNum: 1,
|
||||
@@ -114,6 +129,7 @@ const data = reactive({
|
||||
},
|
||||
rules: {
|
||||
billDate: [{ required: true, message: '账单日不能为空', trigger: 'blur' }],
|
||||
billState: [{ required: true, message: '账单状态不能为空', trigger: 'blur' }],
|
||||
creditCardId: [{ required: true, message: '信用卡不能为空', trigger: 'blur' }],
|
||||
billAmount: [{ required: true, message: '账单金额不能为空', trigger: 'blur' }]
|
||||
}
|
||||
@@ -173,7 +189,7 @@ function reset() {
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
billState: '1',
|
||||
billState: null,
|
||||
delFlag: null
|
||||
}
|
||||
proxy.resetForm('creditCardBillRef')
|
||||
|
||||
Reference in New Issue
Block a user