|
|
|
@ -615,7 +615,6 @@ const openAddForm = (row) => { |
|
|
|
addOrEdit.value = 2 |
|
|
|
addFormData.value = { |
|
|
|
...row, |
|
|
|
activity: row.activityId |
|
|
|
} |
|
|
|
jwcodeSeachMarket() |
|
|
|
ifGold() |
|
|
|
@ -637,7 +636,7 @@ const closeAddForm = () => { |
|
|
|
} |
|
|
|
const testGold = () => { |
|
|
|
// 转换为数字(处理字符串类型的数字) |
|
|
|
|
|
|
|
if (addFormData.value.goodsName == '金币充值') { |
|
|
|
if (addFormData.value.permanentGold == null) { |
|
|
|
addFormData.value.permanentGold = 0 |
|
|
|
} |
|
|
|
@ -657,6 +656,7 @@ const testGold = () => { |
|
|
|
if (permanentGold == 0 && freeNum == 0) { |
|
|
|
return { valid: false, message: '永久金币或免费金币不能同为0' }; |
|
|
|
} |
|
|
|
} |
|
|
|
return { valid: true }; |
|
|
|
} |
|
|
|
// 客服新增收款 |
|
|
|
@ -718,7 +718,8 @@ const handleEditForm = async () => { |
|
|
|
goodNum: addFormData.value.goodNum || 0, |
|
|
|
paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '', |
|
|
|
receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '', |
|
|
|
paymentAmount: (addFormData.value.paymentAmount) * 100 |
|
|
|
paymentAmount: (addFormData.value.paymentAmount) * 100, |
|
|
|
activity: addFormData.value.activityId, |
|
|
|
} |
|
|
|
}) |
|
|
|
if (result.code == 200) { |
|
|
|
|