退款
正常
@@ -543,12 +543,12 @@
永久金币:
+ v-model="refundFormData.partRefundGold" dsabled />
免费金币:
+ v-model="refundFormData.partRefundFree" />
@@ -650,16 +650,8 @@ const openRefundDialog = () => {
const closeRefundForm = () => {
refundDialog.value = false
refundFormData.value = {}
- refundCoinData.value = {
- permanentGold: 0,
- freeGold: 0
- }
}
-const refundCoinData = ref({
- permanentGold: 0,
- freeGold: 0
-})
const isRefundGold = ref(false)
const ifRefundGold = () => {
if (refundFormData.value.goodsName === '金币充值') {
@@ -763,10 +755,6 @@ const getlist = async () => {
const resetRefund = () => {
refundFormData.value.refundModel = ''
refundFormData.value.refundReason = ''
- refundCoinData.value = {
- permanentGold: 0,
- freeGold: 0
- }
}
//提交退款
const submitRefund = async () => {
@@ -781,24 +769,27 @@ const submitRefund = async () => {
if (!refundFormData.value.refundReason) {
return ElMessage.error('请输入退款原因');
}
- if(refundFormData.value.refundReason){
-
+ if (refundFormData.value.refundModel == 0) {
+ refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
+ refundFormData.value.partRefundFree = refundFormData.value.freeGold
}
const result = await request({
url: '/Money/addOnline',
data: {
- jwcode: refundFormData.value.jwcode, // 精网号(必填)
- name: refundFormData.value.name, // 姓名(必填)
- market: refundFormData.value.marketName, // 所属地区(必填)
- submitterMarket:adminData.value.markets,
+ jwcode: refundFormData.value.jwcode,
+ name: refundFormData.value.name,
+ market: refundFormData.value.marketName,
submitterId: adminData.value.id,
- remark: refundFormData.value.remark, // 备注信息(可选)
- refundReason: refundFormData.value.refundReason, // 退款备注-客服填写(可选)
- refundModel: refundFormData.value.refundModel, // 退款方式:0-全额,1-部分(可选)
- id: refundFormData.value.id, //订单id
+ submitterMarket: adminData.value.markets,
+ remark: refundFormData.value.remark,
+ refundReason: refundFormData.value.refundReason,
+ refundModel: refundFormData.value.refundModel,
+ id: refundFormData.value.id,
orderCode: refundFormData.value.orderCode,
- permanentGold: (refundCoinData.value.permanentGold) * 100 || 0,
- freeGold: (refundCoinData.value.freeGold) * 100 || 0
+ permanentGold: (refundFormData.value.permanentGold) * 100 || 0,
+ freeGold: (refundFormData.value.freeGold) * 100 || 0,
+ partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0,
+ partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0,
}
})
if (result.code == 200) {
diff --git a/src/views/moneyManage/receiveDetail/receiveService.vue b/src/views/moneyManage/receiveDetail/receiveService.vue
index 068338b..e5721c1 100644
--- a/src/views/moneyManage/receiveDetail/receiveService.vue
+++ b/src/views/moneyManage/receiveDetail/receiveService.vue
@@ -139,9 +139,9 @@
@@ -189,7 +189,7 @@
-
+
@@ -244,7 +244,7 @@
-
+
-
+
@@ -302,8 +302,8 @@
产品数量
-
+
@@ -364,11 +364,13 @@
部分退款
-
+
永久金币
个
-
+
免费金币
个
@@ -434,8 +436,8 @@ const search = () => {
const reset = () => {
searchData.value = {}
getTime.value = []
- // 重置页码
- pageInfo.value.pageNum = 1
+ // 重置页码
+ pageInfo.value.pageNum = 1
getlist()
}
@@ -532,7 +534,7 @@ const ifGold = () => {
addFormData.value.numUnit = ''
} else if (addFormData.value.goodsName == '静态信息费') {
addFormData.value.numUnit = '年'
- }else{
+ } else {
addFormData.value.numUnit = '个'
}
}
@@ -819,6 +821,10 @@ const closeRefundForm = () => {
// 提交退款
const submitRefund = async () => {
try {
+ if (refundFormData.value.refundModel == 0) {
+ refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
+ refundFormData.value.partRefundFree = refundFormData.value.freeGold
+ }
const result = await request({
url: '/Money/add',
data: {
@@ -826,7 +832,7 @@ const submitRefund = async () => {
name: refundFormData.value.name,
market: refundFormData.value.marketName,
submitterId: adminData.value.id,
- submitterMarket:adminData.value.markets,
+ submitterMarket: adminData.value.markets,
remark: refundFormData.value.remark,
refundReason: refundFormData.value.refundReason,
refundModel: refundFormData.value.refundModel,