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