|
|
@ -162,8 +162,8 @@ |
|
|
v-if="activeTab == 'pass' || activeTab == 'done'" width="180px" /> |
|
|
v-if="activeTab == 'pass' || activeTab == 'done'" width="180px" /> |
|
|
<el-table-column prop="remark" label="备注" v-if="activeTab != 'reject'" width="150px" |
|
|
<el-table-column prop="remark" label="备注" v-if="activeTab != 'reject'" width="150px" |
|
|
show-overflow-tooltip></el-table-column> |
|
|
show-overflow-tooltip></el-table-column> |
|
|
<el-table-column prop="status" fixed="right" label="订单状态" v-if="activeTab == 'done'" width="150px" |
|
|
|
|
|
show-overflow-tooltip> |
|
|
|
|
|
|
|
|
<el-table-column prop="status" fixed="right" label="订单状态" v-if="activeTab == 'done'" |
|
|
|
|
|
width="150px" show-overflow-tooltip> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">退款</span> |
|
|
<span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">退款</span> |
|
|
<span style="color: rgb(127,204,133);" v-else>正常</span> |
|
|
<span style="color: rgb(127,204,133);" v-else>正常</span> |
|
|
@ -543,12 +543,12 @@ |
|
|
<div style=" display: flex; align-items: center;justify-content: center; "> |
|
|
<div style=" display: flex; align-items: center;justify-content: center; "> |
|
|
<span style="color: #999999; white-space: nowrap;">永久金币:</span> |
|
|
<span style="color: #999999; white-space: nowrap;">永久金币:</span> |
|
|
<el-input style="padding-right: 10px; height: 30px; width: 70px;" |
|
|
<el-input style="padding-right: 10px; height: 30px; width: 70px;" |
|
|
v-model="refundCoinData.permanentGold" dsabled /> |
|
|
|
|
|
|
|
|
v-model="refundFormData.partRefundGold" dsabled /> |
|
|
</div> |
|
|
</div> |
|
|
<div style=" display: flex; align-items: center;justify-content: center; "> |
|
|
<div style=" display: flex; align-items: center;justify-content: center; "> |
|
|
<span style="color: #999999; white-space: nowrap;">免费金币:</span> |
|
|
<span style="color: #999999; white-space: nowrap;">免费金币:</span> |
|
|
<el-input style="padding-right: 10px; height: 30px; width: 70px;" |
|
|
<el-input style="padding-right: 10px; height: 30px; width: 70px;" |
|
|
v-model="refundCoinData.freeGold" /> |
|
|
|
|
|
|
|
|
v-model="refundFormData.partRefundFree" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="add-item"> |
|
|
<div class="add-item"> |
|
|
@ -650,16 +650,8 @@ const openRefundDialog = () => { |
|
|
const closeRefundForm = () => { |
|
|
const closeRefundForm = () => { |
|
|
refundDialog.value = false |
|
|
refundDialog.value = false |
|
|
refundFormData.value = {} |
|
|
refundFormData.value = {} |
|
|
refundCoinData.value = { |
|
|
|
|
|
permanentGold: 0, |
|
|
|
|
|
freeGold: 0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const refundCoinData = ref({ |
|
|
|
|
|
permanentGold: 0, |
|
|
|
|
|
freeGold: 0 |
|
|
|
|
|
}) |
|
|
|
|
|
const isRefundGold = ref(false) |
|
|
const isRefundGold = ref(false) |
|
|
const ifRefundGold = () => { |
|
|
const ifRefundGold = () => { |
|
|
if (refundFormData.value.goodsName === '金币充值') { |
|
|
if (refundFormData.value.goodsName === '金币充值') { |
|
|
@ -763,10 +755,6 @@ const getlist = async () => { |
|
|
const resetRefund = () => { |
|
|
const resetRefund = () => { |
|
|
refundFormData.value.refundModel = '' |
|
|
refundFormData.value.refundModel = '' |
|
|
refundFormData.value.refundReason = '' |
|
|
refundFormData.value.refundReason = '' |
|
|
refundCoinData.value = { |
|
|
|
|
|
permanentGold: 0, |
|
|
|
|
|
freeGold: 0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
//提交退款 |
|
|
//提交退款 |
|
|
const submitRefund = async () => { |
|
|
const submitRefund = async () => { |
|
|
@ -781,35 +769,27 @@ const submitRefund = async () => { |
|
|
if (!refundFormData.value.refundReason) { |
|
|
if (!refundFormData.value.refundReason) { |
|
|
return ElMessage.error('请输入退款原因'); |
|
|
return ElMessage.error('请输入退款原因'); |
|
|
} |
|
|
} |
|
|
|
|
|
if (refundFormData.value.refundModel == 0) { |
|
|
|
|
|
refundFormData.value.partRefundGold = refundFormData.value.permanentGold, |
|
|
|
|
|
refundFormData.value.partRefundFree = refundFormData.value.freeGold |
|
|
|
|
|
} |
|
|
const result = await request({ |
|
|
const result = await request({ |
|
|
url: '/Money/addOnline', |
|
|
url: '/Money/addOnline', |
|
|
data: { |
|
|
data: { |
|
|
jwcode: refundFormData.value.jwcode, // 精网号(必填) |
|
|
|
|
|
name: refundFormData.value.name, // 姓名(必填) |
|
|
|
|
|
market: refundFormData.value.marketName, // 所属地区(必填) |
|
|
|
|
|
activity: refundFormData.value.activity, // 活动名称(可选) |
|
|
|
|
|
bankCode: refundFormData.value.bankCode, // 银行流水订单号(必填) |
|
|
|
|
|
goodsName: refundFormData.value.goodsName, // 商品名称(必填) |
|
|
|
|
|
goodNum: refundFormData.value.goodNum, // 商品数量(必填,默认0) |
|
|
|
|
|
paymentCurrency: refundFormData.value.paymentCurrency, // 付款币种(必填) |
|
|
|
|
|
paymentAmount: (refundFormData.value.paymentAmount) * 100, // 付款金额(必填) |
|
|
|
|
|
receivedCurrency: refundFormData.value.receivedCurrency, // 到账币种(必填) |
|
|
|
|
|
receivedAmount: (refundFormData.value.receivedAmount) * 100, // 到账金额(必填) |
|
|
|
|
|
handlingCharge: (refundFormData.value.handlingCharge) * 100, // 手续费(可选) |
|
|
|
|
|
receivedMarket: refundFormData.value.receivedMarket, // 到账地区(可选) |
|
|
|
|
|
payType: refundFormData.value.payType, // 支付方式(必填) |
|
|
|
|
|
payTime: refundFormData.value.payTime, // 付款时间,格式:yyyy-MM-dd HH:mm:ss(可选) |
|
|
|
|
|
receivedTime: refundFormData.value.receivedTime, // 到账时间,格式:yyyy-MM-dd HH:mm:ss(可选) |
|
|
|
|
|
areaServise: adminData.value.adminName, // 提交人(可选) |
|
|
|
|
|
|
|
|
jwcode: refundFormData.value.jwcode, |
|
|
|
|
|
name: refundFormData.value.name, |
|
|
|
|
|
market: refundFormData.value.marketName, |
|
|
submitterId: adminData.value.id, |
|
|
submitterId: adminData.value.id, |
|
|
voucher: refundFormData.value.voucher, // 转账凭证URL(可选) |
|
|
|
|
|
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, |
|
|
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) { |
|
|
if (result.code == 200) { |
|
|
@ -1113,9 +1093,9 @@ onMounted(async () => { |
|
|
await getlist(); |
|
|
await getlist(); |
|
|
|
|
|
|
|
|
// 菜单权限校验(确保地区财务权限) |
|
|
// 菜单权限校验(确保地区财务权限) |
|
|
if (!hasMenuPermission(menuTree.value, 78)) { |
|
|
|
|
|
|
|
|
if (!hasMenuPermission(menuTree.value, 79)) { |
|
|
ElMessageBox.alert( |
|
|
ElMessageBox.alert( |
|
|
'您暂无地区财务操作权限,请联系管理员', |
|
|
|
|
|
|
|
|
'您暂无该页面操作权限,请联系管理员', |
|
|
'权限提示', |
|
|
'权限提示', |
|
|
{ type: 'error' } |
|
|
{ type: 'error' } |
|
|
).then(() => { |
|
|
).then(() => { |
|
|
|