Browse Source

更新总部界面

zhangrenyuan/feature-20251104133449-现金管理二期
ZhangYong 3 weeks ago
parent
commit
c412297b12
  1. 4
      src/views/moneyManage/receiveDetail/receiveFinance.vue
  2. 1939
      src/views/moneyManage/receiveDetail/receiveHead.vue
  3. 64
      src/views/moneyManage/receiveDetail/receiveManage.vue

4
src/views/moneyManage/receiveDetail/receiveFinance.vue

@ -1093,9 +1093,9 @@ onMounted(async () => {
await getlist();
//
if (!hasMenuPermission(menuTree.value, 78)) {
if (!hasMenuPermission(menuTree.value, 67)) {
ElMessageBox.alert(
'您暂无地区财务操作权限,请联系管理员',
'您暂无该页面操作权限,请联系管理员',
'权限提示',
{ type: 'error' }
).then(() => {

1939
src/views/moneyManage/receiveDetail/receiveHead.vue
File diff suppressed because it is too large
View File

64
src/views/moneyManage/receiveDetail/receiveManage.vue

@ -162,8 +162,8 @@
v-if="activeTab == 'pass' || activeTab == 'done'" width="180px" />
<el-table-column prop="remark" label="备注" v-if="activeTab != 'reject'" width="150px"
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">
<span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">退款</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; ">
<span style="color: #999999; white-space: nowrap;">永久金币</span>
<el-input style="padding-right: 10px; height: 30px; width: 70px;"
v-model="refundCoinData.permanentGold" dsabled />
v-model="refundFormData.partRefundGold" dsabled />
</div>
<div style=" display: flex; align-items: center;justify-content: center; ">
<span style="color: #999999; white-space: nowrap;">免费金币</span>
<el-input style="padding-right: 10px; height: 30px; width: 70px;"
v-model="refundCoinData.freeGold" />
v-model="refundFormData.partRefundFree" />
</div>
</div>
<div class="add-item">
@ -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,35 +769,27 @@ const submitRefund = async () => {
if (!refundFormData.value.refundReason) {
return ElMessage.error('请输入退款原因');
}
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, //
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,
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,
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) {
@ -1113,9 +1093,9 @@ onMounted(async () => {
await getlist();
//
if (!hasMenuPermission(menuTree.value, 78)) {
if (!hasMenuPermission(menuTree.value, 79)) {
ElMessageBox.alert(
'您暂无地区财务操作权限,请联系管理员',
'您暂无该页面操作权限,请联系管理员',
'权限提示',
{ type: 'error' }
).then(() => {

Loading…
Cancel
Save