11
This commit is contained in:
1 parent
7ec0a41069
commit
3fed11a448
1 file changed
+7
@@ -20,6 +20,7 @@
|
||||
<script setup lang="ts" name="select-wallet-invoice">
|
||||
import { reactive } from "vue"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
import { useUserInfo } from "/@/stores/userInfo"
|
||||
import { displayPrice } from "/@/utils/formatMoney"
|
||||
|
||||
import * as invoiceManager from "/@/api/wallet/wallet-recharge-invoice"
|
||||
@@ -60,6 +61,10 @@ const state = reactive<any>({
|
||||
hardType: [],
|
||||
})
|
||||
|
||||
const currentUserId = computed(() => {
|
||||
return useUserInfo().userInfos.user.userId
|
||||
})
|
||||
|
||||
watch(
|
||||
selectId,
|
||||
(newVal, oldValue) => {
|
||||
@@ -76,7 +81,9 @@ async function getOptions() {
|
||||
const _pa = {
|
||||
...queryForm,
|
||||
...props.apiParams,
|
||||
userIds: [currentUserId.value],
|
||||
}
|
||||
|
||||
const { data } = await invoiceManager.invoiceSelect(_pa)
|
||||
state.options = data.records ?? []
|
||||
if (props.autoFirst && state.options.length != 0) {
|
||||
|
||||
Reference in new issue
Block a user