|
|
@ -273,7 +273,6 @@ const openRefundConfirm = () => { |
|
|
permanentGold: null, |
|
|
permanentGold: null, |
|
|
freeGold: null, |
|
|
freeGold: null, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const openRefundDialog = () => { |
|
|
const openRefundDialog = () => { |
|
|
refundDialog.value = true |
|
|
refundDialog.value = true |
|
|
@ -297,6 +296,10 @@ const resetRefund = () => { |
|
|
} |
|
|
} |
|
|
const handleRefund = async () => { |
|
|
const handleRefund = async () => { |
|
|
try { |
|
|
try { |
|
|
|
|
|
if(refundFormData.value.status == 6){ |
|
|
|
|
|
ElMessage.error(t('elmessage.refundagain')) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (refundFormData.value.refundModel == 1) { |
|
|
if (refundFormData.value.refundModel == 1) { |
|
|
if (Number(refundFormData.value.permanentGold || 0) > Number(refundFormData.value.oldpermanentGold || 0)) { |
|
|
if (Number(refundFormData.value.permanentGold || 0) > Number(refundFormData.value.oldpermanentGold || 0)) { |
|
|
ElMessage.error(t('elmessage.limitRefundGoldNotExceedOriginal')) |
|
|
ElMessage.error(t('elmessage.limitRefundGoldNotExceedOriginal')) |
|
|
@ -907,7 +910,7 @@ onMounted(async () => { |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div style="display:flex;justify-content: center;margin-top: 5vh;" class="btnDiv"> |
|
|
<div style="display:flex;justify-content: center;margin-top: 5vh;" class="btnDiv"> |
|
|
<el-button type="default" style="background-color: #7E91FF;" @click="showDetail = false">{{t('common.cancel')}}</el-button> |
|
|
<el-button type="default" style="background-color: #7E91FF;" @click="showDetail = false">{{t('common.cancel')}}</el-button> |
|
|
<el-button type="primary" style="background-color: #2741DE; margin-left: 2.5vw;" @click="openRefundConfirm">{{ t('common.refund') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button v-show="formDataRow.orderCode.slice(0, 4) == 'GOLD' && formDataRow.status === 4 " type="primary" style="background-color: #2741DE; margin-left: 2.5vw;" @click="openRefundConfirm">{{ t('common.refund') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
@ -1333,6 +1336,7 @@ onMounted(async () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.newAdd { |
|
|
.newAdd { |
|
|
|
|
|
margin-left: auto; |
|
|
display: flex; |
|
|
display: flex; |
|
|
width: 240px; |
|
|
width: 240px; |
|
|
justify-content: flex-end; |
|
|
justify-content: flex-end; |
|
|
|