fix: 模块增加时间查询功能。
This commit is contained in:
@@ -3,15 +3,18 @@
|
||||
<div class="search-con">
|
||||
<div class="title">查询条件</div>
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="100px">
|
||||
<el-form-item label="转出账户" style="width: 500px" prop="outAccountId">
|
||||
<el-select v-model="queryParams.outAccountId" placeholder="请选择转出账户" clearable>
|
||||
<el-option v-for="debitCard in debitCardList" :key="debitCard.id" :label="debitCard.nameCode" :value="debitCard.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="转入账户" style="width: 500px" prop="inAccountId">
|
||||
<el-select v-model="queryParams.inAccountId" placeholder="请选择转入账户" clearable>
|
||||
<el-option v-for="debitCard in debitCardList" :key="debitCard.id" :label="debitCard.nameCode" :value="debitCard.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="转出账户" style="width: 500px" prop="outAccountId">
|
||||
<el-select v-model="queryParams.outAccountId" placeholder="请选择转出账户" clearable>
|
||||
<el-option v-for="debitCard in debitCardList" :key="debitCard.id" :label="debitCard.nameCode" :value="debitCard.id" />
|
||||
</el-select>
|
||||
<el-form-item label="转账时间" prop="time">
|
||||
<el-date-picker v-model="queryParams.time" type="daterange" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="search-btn-con">
|
||||
@@ -96,6 +99,7 @@ import {
|
||||
updateAccountsTransferRecord
|
||||
} from '@/api/invest/accountsTransferRecord'
|
||||
import { listAccounts } from '@/api/invest/accounts'
|
||||
import dayjs from 'dayjs'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import { require } from '@/utils/require'
|
||||
const { proxy } = getCurrentInstance()
|
||||
@@ -125,6 +129,7 @@ const data = reactive({
|
||||
pageSize: 10,
|
||||
name: null,
|
||||
type: '4',
|
||||
time: '',
|
||||
posId: null,
|
||||
inAccountId: null,
|
||||
outAccountId: null,
|
||||
@@ -202,6 +207,15 @@ function getFutruesStocksList() {
|
||||
/** 查询储蓄卡转账列表 */
|
||||
function getList() {
|
||||
loading.value = true
|
||||
const timeRange = queryParams.value.time
|
||||
let st = ''
|
||||
let et = ''
|
||||
if (timeRange && timeRange.length === 2) {
|
||||
st = dayjs(timeRange[0]).format('YYYY-MM-DD')
|
||||
et = dayjs(timeRange[1]).format('YYYY-MM-DD')
|
||||
}
|
||||
queryParams.value.startTime = st
|
||||
queryParams.value.endTime = et
|
||||
listAccountsTransferRecord(queryParams.value).then((response) => {
|
||||
accountsTransferRecordList.value = response.rows
|
||||
total.value = response.total
|
||||
|
||||
Reference in New Issue
Block a user