Browse Source

回显钱包

jiangcheng/feature-20260306102603-钱包体系
ZhangYong 1 month ago
parent
commit
c61d8e7d53
  1. 1
      src/views/moneyManage/financialAccount/cashFlow.vue
  2. 17
      src/views/moneyManage/receiveDetail/receiveService.vue

1
src/views/moneyManage/financialAccount/cashFlow.vue

@ -236,6 +236,7 @@ const handleRefund = async () => {
freeGold: (refundFormData.value.freeGold) * 100 || 0,
partRefundGold: (refundFormData.value.permanentGold * 100 || 0),
partRefundFree: (refundFormData.value.freeGold * 100 || 0),
payType: refundFormData.value.payType,
}
console.log('这是退款参数:', params);

17
src/views/moneyManage/receiveDetail/receiveService.vue

@ -463,7 +463,7 @@ import { isNumber } from 'lodash'
//
import { addFormRule as getAddFormRule } from './utils/recriveFormRules.js'
import { productList, MarketNameForId, CurrencyForId, marketList,statusList, normalizeSubmitterMarket, normalizeGoodsName, normalizePayType ,WalletForId } from './utils/staticData.js'
import { selectAllWallets } from '@/api/common/common.js'
//
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
@ -825,7 +825,9 @@ const openAddForm = (row) => {
addOrEdit.value = 2
addFormData.value = {
...row,
receivedWallet: walletList.value.find(item => item.id == row.walletId)?.walletName || ''
}
console.log('这是编辑数据:', addFormData.value);
jwcodeSeachMarket()
ifGold()
@ -1328,6 +1330,18 @@ const getMarket = async function () {
console.log('请求失败', error)
}
}
const walletList = ref([])
const getWalletList = async () => {
try {
const result = await selectAllWallets()
if (result.code == 200) {
walletList.value = result.data
}
} catch (error) {
console.log('钱包列表请求失败', error)
}
}
//
onMounted(async () => {
await getAdminData()
@ -1335,6 +1349,7 @@ onMounted(async () => {
//
getlist()
await getMarket()
await getWalletList()
})
</script>

Loading…
Cancel
Save