|
|
@ -622,9 +622,6 @@ import _ from 'lodash'; |
|
|
import { Plus } from '@element-plus/icons-vue'; |
|
|
import { Plus } from '@element-plus/icons-vue'; |
|
|
import { startsWith } from './utils/util.js' |
|
|
import { startsWith } from './utils/util.js' |
|
|
import { isNumber } from 'lodash' |
|
|
import { isNumber } from 'lodash' |
|
|
// 筛选地区树 |
|
|
|
|
|
const market = ref([]) |
|
|
|
|
|
|
|
|
|
|
|
// 地区财务专属组件 |
|
|
// 地区财务专属组件 |
|
|
import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue'; |
|
|
import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue'; |
|
|
|
|
|
|
|
|
@ -649,6 +646,8 @@ const tableData = ref([]); |
|
|
const total = ref(0); |
|
|
const total = ref(0); |
|
|
const pageInfo = ref({ pageSize: 10, pageNum: 1 }); |
|
|
const pageInfo = ref({ pageSize: 10, pageNum: 1 }); |
|
|
|
|
|
|
|
|
|
|
|
// 筛选地区树 |
|
|
|
|
|
const market = ref([]) |
|
|
|
|
|
|
|
|
// 搜索条件 |
|
|
// 搜索条件 |
|
|
const searchData = ref({}); |
|
|
const searchData = ref({}); |
|
|
@ -763,10 +762,10 @@ const exportExcel = async function () { |
|
|
payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); |
|
|
payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { |
|
|
|
|
|
ElMessage.error('精网号只能是数字') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { |
|
|
|
|
|
// ElMessage.error('精网号只能是数字') |
|
|
|
|
|
// return |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
const cashRoleId = '1'; |
|
|
const cashRoleId = '1'; |
|
|
const submitterMarket = adminData.value.markets; |
|
|
const submitterMarket = adminData.value.markets; |
|
|
@ -883,6 +882,11 @@ const getlist = async () => { |
|
|
payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); |
|
|
payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { |
|
|
|
|
|
// ElMessage.error('精网号只能是数字') |
|
|
|
|
|
// return |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
// 地区财务固定参数:角色ID=1,按标签页筛选状态 |
|
|
// 地区财务固定参数:角色ID=1,按标签页筛选状态 |
|
|
const cashRoleId = '1'; |
|
|
const cashRoleId = '1'; |
|
|
const receivedMarket = adminData.value.markets; |
|
|
const receivedMarket = adminData.value.markets; |
|
|
@ -993,7 +997,6 @@ const submitRefund = async () => { |
|
|
// 2.2 搜索与重置 |
|
|
// 2.2 搜索与重置 |
|
|
const search = () => { |
|
|
const search = () => { |
|
|
getlist(); |
|
|
getlist(); |
|
|
ElMessage.success('查询成功'); |
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const reset = () => { |
|
|
const reset = () => { |
|
|
@ -1013,7 +1016,7 @@ const navigateTo = async (tab) => { |
|
|
// 2.4 审核功能 |
|
|
// 2.4 审核功能 |
|
|
// 打开审核弹窗 |
|
|
// 打开审核弹窗 |
|
|
const openAuditForm = (row) => { |
|
|
const openAuditForm = (row) => { |
|
|
auditFormData.value = { ...row, market: row.marketName }; |
|
|
|
|
|
|
|
|
auditFormData.value = {...row, market: row.marketName}; |
|
|
ifGold(auditFormData.value) |
|
|
ifGold(auditFormData.value) |
|
|
console.log('isGold', isGold.value); |
|
|
console.log('isGold', isGold.value); |
|
|
|
|
|
|
|
|
@ -1119,7 +1122,7 @@ watch(auditFormisible, (val) => { |
|
|
const openEditForm = (row) => { |
|
|
const openEditForm = (row) => { |
|
|
console.log('row.aaa', row.handlingCharge); |
|
|
console.log('row.aaa', row.handlingCharge); |
|
|
|
|
|
|
|
|
editFormData.value = { ...row }; |
|
|
|
|
|
|
|
|
editFormData.value = {...row}; |
|
|
// 区分金币产品与普通产品 |
|
|
// 区分金币产品与普通产品 |
|
|
if (row.goodsName === '金币充值') isEditGold.value = true; |
|
|
if (row.goodsName === '金币充值') isEditGold.value = true; |
|
|
else isEditGold.value = false; |
|
|
else isEditGold.value = false; |
|
|
@ -1231,21 +1234,21 @@ const handleMouseMove = (e) => { |
|
|
// 获取管理员信息 |
|
|
// 获取管理员信息 |
|
|
const getAdminData = async () => { |
|
|
const getAdminData = async () => { |
|
|
try { |
|
|
try { |
|
|
const result = await API({ url: '/admin/userinfo', data: {} }); |
|
|
|
|
|
|
|
|
const result = await API({url: '/admin/userinfo', data: {}}); |
|
|
adminData.value = result; |
|
|
adminData.value = result; |
|
|
|
|
|
|
|
|
// 超级管理员判断(仅用于角色切换权限) |
|
|
// 超级管理员判断(仅用于角色切换权限) |
|
|
if (adminData.value.roleId === 2) { |
|
|
|
|
|
superAdmin.value = true; |
|
|
|
|
|
// 管理员所属地区提示 |
|
|
|
|
|
if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') { |
|
|
|
|
|
ElMessageBox.alert( |
|
|
|
|
|
'管理员账号仅显示所属地区的财务数据,请确认地区设置', |
|
|
|
|
|
'温馨提示', |
|
|
|
|
|
{ type: 'warning' } |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (adminData.value.roleId === 2) { |
|
|
|
|
|
// superAdmin.value = true; |
|
|
|
|
|
// // 管理员所属地区提示 |
|
|
|
|
|
// if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') { |
|
|
|
|
|
// ElMessageBox.alert( |
|
|
|
|
|
// '管理员账号仅显示所属地区的财务数据,请确认地区设置', |
|
|
|
|
|
// '温馨提示', |
|
|
|
|
|
// { type: 'warning' } |
|
|
|
|
|
// ); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error('管理员信息获取失败:', error); |
|
|
console.error('管理员信息获取失败:', error); |
|
|
ElMessage.error('管理员信息加载异常'); |
|
|
ElMessage.error('管理员信息加载异常'); |
|
|
@ -1255,7 +1258,7 @@ const getAdminData = async () => { |
|
|
// 获取活动列表 |
|
|
// 获取活动列表 |
|
|
const getActivitys = async () => { |
|
|
const getActivitys = async () => { |
|
|
try { |
|
|
try { |
|
|
const result = await API({ url: '/cashCollection/getActivityList', data: {} }); |
|
|
|
|
|
|
|
|
const result = await API({url: '/cashCollection/getActivityList', data: {}}); |
|
|
if (result.code === 200) { |
|
|
if (result.code === 200) { |
|
|
activityList.value = result.data; |
|
|
activityList.value = result.data; |
|
|
} else { |
|
|
} else { |
|
|
@ -1268,8 +1271,8 @@ const getActivitys = async () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 2.8 节流函数(防止重复提交) |
|
|
// 2.8 节流函数(防止重复提交) |
|
|
const throttledhandelAuditReject = _.throttle(handelAuditReject, 3000, { trailing: false }); |
|
|
|
|
|
const throttledsubmitEditForm = _.throttle(submitEditForm, 3000, { trailing: false }); |
|
|
|
|
|
|
|
|
const throttledhandelAuditReject = _.throttle(handelAuditReject, 3000, {trailing: false}); |
|
|
|
|
|
const throttledsubmitEditForm = _.throttle(submitEditForm, 3000, {trailing: false}); |
|
|
const throttledsubmitRefund = _.throttle(submitRefund, 5000, { |
|
|
const throttledsubmitRefund = _.throttle(submitRefund, 5000, { |
|
|
trailing: false |
|
|
trailing: false |
|
|
}) |
|
|
}) |
|
|
@ -1296,14 +1299,20 @@ onMounted(async () => { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// 2.10 未使用函数占位(避免报错) |
|
|
// 2.10 未使用函数占位(避免报错) |
|
|
const handleCurrencyChange = () => { }; |
|
|
|
|
|
|
|
|
const handleCurrencyChange = () => { |
|
|
|
|
|
}; |
|
|
const beforeUpload = () => true; |
|
|
const beforeUpload = () => true; |
|
|
const handelImgErr = () => { }; |
|
|
|
|
|
const handleImageChange = () => { }; |
|
|
|
|
|
const customUpload = () => { }; |
|
|
|
|
|
const handleDatePickerChange = () => { }; |
|
|
|
|
|
|
|
|
const handelImgErr = () => { |
|
|
|
|
|
}; |
|
|
|
|
|
const handleImageChange = () => { |
|
|
|
|
|
}; |
|
|
|
|
|
const customUpload = () => { |
|
|
|
|
|
}; |
|
|
|
|
|
const handleDatePickerChange = () => { |
|
|
|
|
|
}; |
|
|
const disabledDate = () => false; |
|
|
const disabledDate = () => false; |
|
|
const handleSortChange = () => { }; |
|
|
|
|
|
|
|
|
const handleSortChange = () => { |
|
|
|
|
|
}; |
|
|
const getMarket = async function () { |
|
|
const getMarket = async function () { |
|
|
try { |
|
|
try { |
|
|
const result = await API({ |
|
|
const result = await API({ |
|
|
|