|
|
|
@ -206,11 +206,11 @@ |
|
|
|
<el-radio value="1">{{ t('common_add.refundModelPart') }}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
<div class="add-item" v-show="editRow.goodsName === '金币充值' && editForm.refundModel === '1'"> |
|
|
|
<div class="add-item" v-show="editRow.goodsName == t('cash.coinRecharge') && editForm.refundModel === '1'"> |
|
|
|
<el-text style="width:4vw;">{{ t('common_add.permanentGold') }}</el-text> |
|
|
|
<el-input v-model="editForm.partRefundGold" style="width:5vw;" /> {{ t('cash.unit') }} |
|
|
|
</div> |
|
|
|
<div class="add-item" v-show="editRow.goodsName === '金币充值' && editForm.refundModel === '1'"> |
|
|
|
<div class="add-item" v-show="editRow.goodsName == t('cash.coinRecharge') && editForm.refundModel === '1'"> |
|
|
|
<el-text style="width:4vw;">{{ t('common_add.freeGold') }}</el-text> |
|
|
|
<el-input v-model="editForm.partRefundFree" style="width:5vw;" /> {{ t('cash.unit') }} |
|
|
|
</div> |
|
|
|
@ -420,7 +420,7 @@ const submitEdit = async function () { |
|
|
|
} else if (!editForm.value.refundReason) { |
|
|
|
ElMessage.error(t('elmessage.refundReasonPlaceholder')) |
|
|
|
return |
|
|
|
} else if (editRow.value.goodsName === '金币充值' && editForm.value.refundModel == 1) { |
|
|
|
} else if (editRow.value.goodsName === t('cash.coinRecharge') && editForm.value.refundModel == 1) { |
|
|
|
if (!editForm.value.partRefundGold || !editForm.value.partRefundFree) { |
|
|
|
ElMessage.error(t('elmessage.inputRefundBeansBoth')) |
|
|
|
return |
|
|
|
@ -458,11 +458,11 @@ const submitEdit = async function () { |
|
|
|
} |
|
|
|
console.log('params',params); |
|
|
|
|
|
|
|
if (editRow.value.goodsName != '金币充值') { |
|
|
|
if (editRow.value.goodsName != t('cash.coinRecharge')) { |
|
|
|
params.newRefundGold = '' |
|
|
|
params.newRefundFree = '' |
|
|
|
} |
|
|
|
if (editRow.value.goodsName == '金币充值') { |
|
|
|
if (editRow.value.goodsName == t('cash.coinRecharge')) { |
|
|
|
if (editForm.value.partRefundGold > editRow.value.gold) { |
|
|
|
ElMessage.error(t('elmessage.limitRefundGoldNotExceedOriginal')) |
|
|
|
return |
|
|
|
|