Compare commits

...

7 Commits

Author SHA1 Message Date
zhangrenyuan 8a3cefa918 Merge branch 'zhangrenyuan/feature-20251209163007-多语言二期' into milestone-20251209-多语言二期 4 weeks ago
zhangrenyuan 06f1892332 feat(i18n): 添加退款相关文本和优化语言设置 4 weeks ago
zhangrenyuan ead292d1e5 fix: 修复翻译文件和退款服务页面中的文本引用问题 1 month ago
huangqizhen 926e8c99ce Merge remote-tracking branch 'origin/milestone-20251209-多语言二期' into milestone-20251209-多语言二期 1 month ago
huangqizhen 4f4639716b 12.13现仅退款 1 month ago
zhangrenyuan 62ea785834 Merge branch 'zhangrenyuan/feature-20251209163007-多语言二期' into milestone-20251209-多语言二期 1 month ago
zhangrenyuan 8390e117c3 feat: 添加红包使用选项并优化输入验证逻辑 1 month ago
  1. 80
      src/views/moneyManage/refundDetail/refundFinance.vue
  2. 3
      src/views/moneyManage/refundDetail/refundService.vue

80
src/views/moneyManage/refundDetail/refundFinance.vue

@ -335,6 +335,7 @@
</template>
</el-dialog>
</template>
<script setup>
import { ref, onMounted, computed } from 'vue'
import { ElMessage } from 'element-plus'
@ -470,16 +471,13 @@ const getRefund = async function () {
pageNum: pagination.value.pageNum,
pageSize: pagination.value.pageSize,
cashRecordDTO: {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
jwcode: searchForm.value.jwcode,
name: searchForm.value.name,
markets: searchForm.value.markets && searchForm.value.markets.length > 0 ? [searchForm.value.markets[searchForm.value.markets.length - 1]] : [],
goodsName: goodsName,//
statuses: statusParam.value,//1012
// 2022
// 3032
// 4041退
paymentCurrency: CurrencyForId(searchForm.value.paymentCurrency),//
payType: searchForm.value.payType,//
goodsName: goodsName,
statuses: statusParam.value,
paymentCurrency: CurrencyForId(searchForm.value.paymentCurrency),
payType: searchForm.value.payType,
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "",
endTime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "",
adminId: adminData.value.id
@ -498,6 +496,7 @@ const getRefund = async function () {
ElMessage.error(error.message || t('elmessage.searchFailed'))
}
}
//
const handlePass = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.audit_area_finance_refund)) {
@ -525,6 +524,7 @@ const handlePass = async function () {
ElMessage.error(error.message || t('elmessage.approveFailed'))
}
}
//
const handleReject = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.audit_area_finance_refund)) {
@ -560,19 +560,14 @@ const handleReject = async function () {
const getMarket = async function () {
try {
const result = await API({
url: '/market/selectMarket',
})
console.log('看看地区树', result)
const transformTree = (nodes) => {
const allChildren = nodes.flatMap(node => node.children || []);
return allChildren.map(child => {
const grandchildren = child.children && child.children.length
? transformTree([child])
: null;
return {
value: child.id,
label: child.name,
@ -581,11 +576,11 @@ const getMarket = async function () {
});
};
market.value = transformTree(result.data)
console.log('转换后的地区树==============', market.value)
} catch (error) {
console.log('请求失败', error)
}
}
const showStep = function (row) {
if (!hasMenuPermission(menuTree.value, permissionMapping.track_area_finance_refund_progress)) {
ElMessage.error(t('elmessage.noPermission'))
@ -607,9 +602,9 @@ const showStep = function (row) {
isReject.value = reject
}
console.log('步骤条状态', currentStep.value)
showSteps.value = true
}
const exportExcel = async function () {
const statusParam = ref([10, 20, 22, 30, 32, 40, 41])
if (searchForm.value.statuses === t('cash.statusList.passed')) {
@ -644,16 +639,13 @@ const exportExcel = async function () {
pageNum: pagination.value.pageNum,
pageSize: pagination.value.pageSize,
cashRecordDTO: {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
jwcode: searchForm.value.jwcode,
name: searchForm.value.name,
markets: searchForm.value.markets && searchForm.value.markets.length > 0 ? [searchForm.value.markets[searchForm.value.markets.length - 1]] : [],
goodsName: goodsName,//
statuses: statusParam.value,//1012
// 2022
// 3032
// 4041退
paymentCurrency: CurrencyForId(searchForm.value.paymentCurrency),//
payType: searchForm.value.payType,//
goodsName: goodsName,
statuses: statusParam.value,
paymentCurrency: CurrencyForId(searchForm.value.paymentCurrency),
payType: searchForm.value.payType,
startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "",
endTime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "",
adminId: adminData.value.id
@ -667,10 +659,12 @@ const exportExcel = async function () {
ElMessage.error(res.msg || t('elmessage.exportFailed'))
}
}
const openExportList = () => {
getExportList()
exportListVisible.value = true
}
const getExportList = async () => {
exportListLoading.value = true
try {
@ -690,6 +684,7 @@ const getExportList = async () => {
exportListLoading.value = false
}
}
const downloadExportFile = (item) => {
if (item.state === 2) {
const link = document.createElement('a')
@ -700,22 +695,17 @@ const downloadExportFile = (item) => {
ElMessage.warning(t('elmessage.exportingInProgress'))
}
}
//
const getTagType = (state) => {
switch (state) {
case 0:
return 'info';
case 1:
return 'primary';
case 2:
return 'success';
case 3:
return 'danger';
default:
return 'info';
case 0: return 'info';
case 1: return 'primary';
case 2: return 'success';
case 3: return 'danger';
default: return 'info';
}
}
//
const getTagText = (state) => {
switch (state) {
case 0:
@ -730,48 +720,60 @@ const getTagText = (state) => {
return t('elmessage.unknownStatus');
}
}
const showAudit2 = function (row) {
auditRow.value = row
showAudit.value = true
}
const reset = function () {
searchForm.value = {
jwcode: '',
markets: [],
statuses: []
}
//
pagination.value.pageNum = 1
dateRange.value = []
getRefund()
}
const hideReject = function () {
showReject.value = false
addForm.value.remark = ''
}
const defaultTime = [
new Date(2000, 1, 1, 0, 0, 0),
new Date(2000, 2, 1, 23, 59, 59),
]
const disabledDate = (time) => {
const limitDate = new Date(2025, 0, 1);
return time.getTime() < limitDate.getTime();
}
const handlePageSizeChange = function (val) {
pagination.value.pageSize = val
getRefund()
}
const handleCurrentChange = function (val) {
pagination.value.pageNum = val
getRefund()
}
const handleDatePickerChange = () => {
//
}
onMounted(() => {
console.log('???????????????????', adminData.value)
getRefund()
getMarket()
})
</script>
<style scoped lang="scss">
/* 样式完全保留,仅注释微调 */
:deep(.el-table__header-wrapper),
:deep(.el-table__body-wrapper),
:deep(.el-table__cell),

3
src/views/moneyManage/refundDetail/refundService.vue

@ -219,6 +219,7 @@
</div>
</el-dialog>
</template>
<script setup>
import { ref, onMounted, computed } from 'vue'
import { ElMessage } from 'element-plus'
@ -231,7 +232,6 @@ const adminStore = useAdminStore()
const { adminData, menuTree } = storeToRefs(adminStore)
import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menuTreePermission.js"
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'
import { pa } from 'element-plus/es/locales.mjs'
import { productList, CurrencyForId } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
import RefundRecallBackground from '@/assets/images/refund-recall.png'
import { isNumber } from 'lodash'
@ -580,6 +580,7 @@ onMounted(() => {
console.log('???????????????????', adminData.value)
})
</script>
<style scoped lang="scss">
:deep(.el-table__header-wrapper),
:deep(.el-table__body-wrapper),

Loading…
Cancel
Save