|
@@ -1,11 +1,47 @@
|
|
|
import { reactive, shallowRef, computed } from 'vue'
|
|
import { reactive, shallowRef, computed } from 'vue'
|
|
|
import { useDataTable } from '@/hooks/datatable'
|
|
import { useDataTable } from '@/hooks/datatable'
|
|
|
import { useLoginStore, useUserStore } from '@/stores'
|
|
import { useLoginStore, useUserStore } from '@/stores'
|
|
|
-import { queryHisAmountLog, t2bBankWithdraw, queryBankAccountSign, t2bBankDeposit, queryAccountInOutApply, queryCusBankSignBank, t2bBankSign, t2bBankCancelSign, accountFundInfoReq } from '@/services/api/bank'
|
|
|
|
|
|
|
+import { queryHisAmountLog, queryAmountLog, t2bBankWithdraw, queryBankAccountSign, t2bBankDeposit, queryAccountInOutApply, queryCusBankSignBank, t2bBankSign, t2bBankCancelSign, accountFundInfoReq } from '@/services/api/bank'
|
|
|
import { decryptAES } from '@/utils/websocket/crypto'
|
|
import { decryptAES } from '@/utils/websocket/crypto'
|
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 历史资金流水列表
|
|
// 历史资金流水列表
|
|
|
|
|
+export function useAmountStatementList() {
|
|
|
|
|
+ const { getFirstAccountId } = useLoginStore()
|
|
|
|
|
+ const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.AmountLogRsp>()
|
|
|
|
|
+ const loading = shallowRef(false)
|
|
|
|
|
+
|
|
|
|
|
+ const getAmountStatementList = () => {
|
|
|
|
|
+ loading.value = true
|
|
|
|
|
+ return queryAmountLog({
|
|
|
|
|
+ data: {
|
|
|
|
|
+ page: pageIndex.value,
|
|
|
|
|
+ pagesize: pageSize.value,
|
|
|
|
|
+ accountID: getFirstAccountId().toString(),
|
|
|
|
|
+ },
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ total.value = res.total
|
|
|
|
|
+ dataList.value = res.data
|
|
|
|
|
+ },
|
|
|
|
|
+ complete: () => {
|
|
|
|
|
+ loading.value = false
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return {
|
|
|
|
|
+ loading,
|
|
|
|
|
+ dataList,
|
|
|
|
|
+ total,
|
|
|
|
|
+ pageIndex,
|
|
|
|
|
+ pageSize,
|
|
|
|
|
+ pageCount,
|
|
|
|
|
+ getAmountStatementList,
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 历史出入金流水列表
|
|
|
export function useHisAmountStatementList() {
|
|
export function useHisAmountStatementList() {
|
|
|
const { getFirstAccountId } = useLoginStore()
|
|
const { getFirstAccountId } = useLoginStore()
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.HisAmountLogRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.HisAmountLogRsp>()
|
|
@@ -41,7 +77,7 @@ export function useHisAmountStatementList() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取出入金流水列表
|
|
// 获取出入金流水列表
|
|
|
-export function useAmountStatementList() {
|
|
|
|
|
|
|
+export function useAccouuntInOutApplyListList() {
|
|
|
|
|
|
|
|
const { getUserId } = useLoginStore()
|
|
const { getUserId } = useLoginStore()
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.AccountOutInApplyRsp>()
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.AccountOutInApplyRsp>()
|