fix: 系统功能升级,账户增加status字段,修改相关功能。
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
<el-form-item label="信用卡名称" prop="name">
|
||||
<el-input v-model="queryParams.name" placeholder="请输入信用卡名称" clearable @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="账户状态" prop="status">
|
||||
<el-select v-model="queryParams.status" placeholder="请选择账户状态" clearable>
|
||||
<el-option v-for="dict in account_status" :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>
|
||||
@@ -45,10 +50,15 @@
|
||||
<dict-tag :options="is_next_bill_date" :value="scope.row.isNextBillDate" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="0账单操作" align="center" prop="isZeroBill">
|
||||
<!-- <el-table-column label="0账单操作" align="center" prop="isZeroBill">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="is_zero_bill" :value="scope.row.isZeroBill" />
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="账户状态" align="center" prop="status">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="account_status" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template v-slot="scope">
|
||||
@@ -75,6 +85,11 @@
|
||||
<el-form-item label="信用卡额度" prop="creditLimit">
|
||||
<el-input v-model="form.creditLimit" placeholder="请输入信用卡额度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="账户状态" prop="status">
|
||||
<el-select v-model="form.status" placeholder="请选择账户状态">
|
||||
<el-option v-for="dict in account_status" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="账单日" prop="billDate">
|
||||
<el-input v-model="form.billDate" placeholder="请输入账单日" />
|
||||
</el-form-item>
|
||||
@@ -134,7 +149,7 @@ import { listBankcardLend, getBankcardLend, delBankcardLend, addBankcardLend, up
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import { require } from '@/utils/require'
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { is_zero_bill, is_next_bill_date } = proxy.useDict('is_zero_bill', 'is_next_bill_date')
|
||||
const { is_zero_bill, is_next_bill_date, account_status } = proxy.useDict('is_zero_bill', 'is_next_bill_date', 'account_status')
|
||||
|
||||
const bankcardList = ref([])
|
||||
const open = ref(false)
|
||||
@@ -155,6 +170,7 @@ const data = reactive({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
status: null,
|
||||
name: null,
|
||||
type: '2'
|
||||
},
|
||||
@@ -165,6 +181,7 @@ const data = reactive({
|
||||
payDate: [{ required: true, message: '还款日不能为空', trigger: 'blur' }],
|
||||
creditLimit: [{ required: true, message: '信用卡额度不能为空', trigger: 'blur' }],
|
||||
balance: [{ required: true, message: '余额不能为空', trigger: 'blur' }],
|
||||
status: [{ required: true, message: '账户状态不能为空', trigger: 'blur' }],
|
||||
availableLimit: [{ required: true, message: '可用额度不能为空', trigger: 'blur' }]
|
||||
}
|
||||
})
|
||||
@@ -229,7 +246,8 @@ function reset() {
|
||||
debitType: null,
|
||||
isNextBillDate: null,
|
||||
nextBillDateTime: null,
|
||||
isZeroBill: null
|
||||
isZeroBill: null,
|
||||
status: null
|
||||
}
|
||||
proxy.resetForm('bankcardRef')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user