|
|
@ -218,8 +218,8 @@ |
|
|
:value="item.id" /> |
|
|
:value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="t('common_add.productName')" required prop="goodsName"> |
|
|
|
|
|
<ProductSelect ref="productSelectRef" v-model="addFormData.goodsName"></ProductSelect> |
|
|
|
|
|
|
|
|
<el-form-item :label="t('common_add.productName')" required prop="goodsName" > |
|
|
|
|
|
<ProductSelect ref="productSelectRef" v-model="addFormData.goodsName" @change="handleProductChange(addFormData.goodsName)"></ProductSelect> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-show="!isGold" :label="t('common_add.productNum')" required> |
|
|
<el-form-item v-show="!isGold" :label="t('common_add.productNum')" required> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
@ -271,7 +271,7 @@ |
|
|
:placeholder="t('common_add.receiveAreaPlaceholder')" |
|
|
:placeholder="t('common_add.receiveAreaPlaceholder')" |
|
|
style="flex: 1; min-width: 100px;" |
|
|
style="flex: 1; min-width: 100px;" |
|
|
:disabled="isGroup" |
|
|
:disabled="isGroup" |
|
|
@change="showWallet"> |
|
|
|
|
|
|
|
|
@change="showWallet(addFormData.receivedMarket)"> |
|
|
</CurrencySelect> |
|
|
</CurrencySelect> |
|
|
<CurrencySelect v-model="addFormData.receivedWallet" :items="MoneyWalletOptions" |
|
|
<CurrencySelect v-model="addFormData.receivedWallet" :items="MoneyWalletOptions" |
|
|
:placeholder="t('common_add.receiveWalletPlaceholder')" |
|
|
:placeholder="t('common_add.receiveWalletPlaceholder')" |
|
|
@ -732,6 +732,7 @@ const ifGroup = () => { |
|
|
//选择地区之后 钱包下拉框显示对应地区的钱包 |
|
|
//选择地区之后 钱包下拉框显示对应地区的钱包 |
|
|
const MoneyWalletOptions=ref([]) |
|
|
const MoneyWalletOptions=ref([]) |
|
|
const showWallet =(receivedMarket)=>{ |
|
|
const showWallet =(receivedMarket)=>{ |
|
|
|
|
|
console.log('selectedMarket', receivedMarket); |
|
|
MoneyWalletOptions.value=[] |
|
|
MoneyWalletOptions.value=[] |
|
|
addFormData.value.receivedWallet='' |
|
|
addFormData.value.receivedWallet='' |
|
|
if(receivedMarket===t('cash.markets.HongKong')){ |
|
|
if(receivedMarket===t('cash.markets.HongKong')){ |
|
|
@ -831,7 +832,6 @@ const openAddForm = (row) => { |
|
|
} |
|
|
} |
|
|
console.log('这是编辑数据:', addFormData.value); |
|
|
console.log('这是编辑数据:', addFormData.value); |
|
|
jwcodeSeachMarket() |
|
|
jwcodeSeachMarket() |
|
|
ifGold() |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
// 新增模式 |
|
|
// 新增模式 |
|
|
@ -989,6 +989,7 @@ const handleEditForm = async () => { |
|
|
paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '', |
|
|
paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '', |
|
|
receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '', |
|
|
receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '', |
|
|
paymentAmount: (addFormData.value.paymentAmount) * 100, |
|
|
paymentAmount: (addFormData.value.paymentAmount) * 100, |
|
|
|
|
|
walletId:WalletForId(addFormData.value.receivedWallet) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (result.code == 200) { |
|
|
if (result.code == 200) { |
|
|
@ -1039,12 +1040,20 @@ const MoneyAddressOptions = ref([ |
|
|
t('cash.markets.Thailand'), // 泰国 |
|
|
t('cash.markets.Thailand'), // 泰国 |
|
|
t('cash.markets.VietnamHCM'), // 越南HCM |
|
|
t('cash.markets.VietnamHCM'), // 越南HCM |
|
|
t('cash.markets.Canada'), // 加拿大 |
|
|
t('cash.markets.Canada'), // 加拿大 |
|
|
// t('cash.markets.Beijing') // 北京 |
|
|
|
|
|
|
|
|
t('cash.markets.Beijing') // 北京 |
|
|
]) |
|
|
]) |
|
|
const handleCurrencyChange = (option) => { |
|
|
const handleCurrencyChange = (option) => { |
|
|
console.log('选中的币种:', option); |
|
|
console.log('选中的币种:', option); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// 产品名称改变时触发 |
|
|
|
|
|
const handleProductChange = (productName) => { |
|
|
|
|
|
console.log('选中的产品名称:', productName); |
|
|
|
|
|
if (productName && productName == t('cash.coinRecharge')) { |
|
|
|
|
|
showWallet(addFormData.value.receivedMarket) |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
// 图片上传相关 |
|
|
// 图片上传相关 |
|
|
const handleImgSuccess = (response) => { |
|
|
const handleImgSuccess = (response) => { |
|
|
try { |
|
|
try { |
|
|
|