|
@@ -4,7 +4,7 @@
|
|
|
<template #headerLeft>
|
|
<template #headerLeft>
|
|
|
<app-filter :options="filterOptons">
|
|
<app-filter :options="filterOptons">
|
|
|
<template #before>
|
|
<template #before>
|
|
|
- <el-date-picker type="daterange" effect="dark" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
|
|
|
|
+ <el-date-picker type="daterange" effect="dark" :start-placeholder="t('common.startdate')" :end-placeholder="t('common.enddate')"
|
|
|
value-format="YYYYMMDD" v-model="filterDate" />
|
|
value-format="YYYYMMDD" v-model="filterDate" />
|
|
|
</template>
|
|
</template>
|
|
|
</app-filter>
|
|
</app-filter>
|
|
@@ -31,7 +31,7 @@ import { useDataFilter } from '@/hooks/datatable'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryAccountInOutApply } from '@/services/api/bank'
|
|
import { queryAccountInOutApply } from '@/services/api/bank'
|
|
|
import { getInOutApplyStatusName, getInOutExecuteTypeName, getInOutApplyStatusList } from '@/constants/order'
|
|
import { getInOutApplyStatusName, getInOutExecuteTypeName, getInOutApplyStatusList } from '@/constants/order'
|
|
|
-import { useTableColumnsStore } from '@/stores'
|
|
|
|
|
|
|
+import { useTableColumnsStore, i18n } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import AppFilter from '@pc/components/base/table-filter/index.vue'
|
|
import AppFilter from '@pc/components/base/table-filter/index.vue'
|
|
|
|
|
|
|
@@ -39,12 +39,13 @@ const { getTableColumns } = useTableColumnsStore()
|
|
|
const { filterOptons, getQueryParams } = useDataFilter<Model.AccountInOutApplyReq>()
|
|
const { filterOptons, getQueryParams } = useDataFilter<Model.AccountInOutApplyReq>()
|
|
|
const filterDate = shallowRef<string[]>([])
|
|
const filterDate = shallowRef<string[]>([])
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([])
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([])
|
|
|
|
|
+const { t } = i18n.global
|
|
|
|
|
|
|
|
const { loading, dataList, run } = useRequest(queryAccountInOutApply, { manual: true })
|
|
const { loading, dataList, run } = useRequest(queryAccountInOutApply, { manual: true })
|
|
|
|
|
|
|
|
filterOptons.buttonList = [
|
|
filterOptons.buttonList = [
|
|
|
- { lable: '重置', className: 'el-button--info', onClick: () => onSearch(true) },
|
|
|
|
|
- { lable: '查询', className: 'el-button--info', onClick: () => onSearch() }
|
|
|
|
|
|
|
+ { lable: t('operation.reset'), className: 'el-button--info', onClick: () => onSearch(true) },
|
|
|
|
|
+ { lable: t('operation.search'), className: 'el-button--info', onClick: () => onSearch() }
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
filterOptons.selectList = [
|
|
filterOptons.selectList = [
|
|
@@ -52,8 +53,8 @@ filterOptons.selectList = [
|
|
|
key: 'querytype',
|
|
key: 'querytype',
|
|
|
selectedValue: undefined,
|
|
selectedValue: undefined,
|
|
|
options: [
|
|
options: [
|
|
|
- { label: '出金', value: 1 },
|
|
|
|
|
- { label: '入金', value: 2 },
|
|
|
|
|
|
|
+ { label: t('mine.cashin'), value: 1 },
|
|
|
|
|
+ { label:t('mine.cashout'), value: 2 },
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|