|
|
@ -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 = () => { |
|
|
@ -1235,17 +1238,17 @@ const getAdminData = async () => { |
|
|
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('管理员信息加载异常'); |
|
|
@ -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({ |
|
|
|