From 085a83d4e4a4f8476a89b2cf2fb496fad5aa6113 Mon Sep 17 00:00:00 2001 From: luo Date: Sun, 20 Sep 2026 10:10:50 +0800 Subject: [PATCH] fix: some --- src/api/modules/h5PopupConfiguration.ts | 2 +- .../business/PaymentVoucherDialog.vue | 37 ++- src/locales/langs/en.json | 1 + src/locales/langs/zh.json | 1 + src/router/routes/asyncRoutes.ts | 59 +++-- src/router/routesAlias.ts | 5 +- src/types/api/employeeCollection.ts | 8 +- src/types/api/h5PopupConfiguration.ts | 15 +- src/utils/http/index.ts | 40 +++ .../detail.vue | 0 .../index.vue | 0 src/views/finance/agent-recharge/index.vue | 84 ++++--- .../components/ApplicationFormDialog.vue | 233 ++++++++++-------- .../applications/detail.vue | 23 +- .../applications/index.vue | 10 +- .../employee-collection/bills/index.vue | 16 +- .../h5-popup-configuration/detail.vue | 226 +++++++++++++++++ .../settings/h5-popup-configuration/index.vue | 177 ++++++------- .../business-owner-import/index.vue | 231 +++++++++-------- 19 files changed, 744 insertions(+), 424 deletions(-) rename src/views/asset-management/{phone-asset-association/unbind-import-tasks => task-management/phone-asset-unbind-import-tasks}/detail.vue (100%) rename src/views/asset-management/{phone-asset-association/unbind-import-tasks => task-management/phone-asset-unbind-import-tasks}/index.vue (100%) create mode 100644 src/views/settings/h5-popup-configuration/detail.vue diff --git a/src/api/modules/h5PopupConfiguration.ts b/src/api/modules/h5PopupConfiguration.ts index 366e1df..1ad9c7c 100644 --- a/src/api/modules/h5PopupConfiguration.ts +++ b/src/api/modules/h5PopupConfiguration.ts @@ -1,6 +1,6 @@ /** * H5 运营弹窗配置相关 API - * 契约来源:docs/产品迭代8月份/通知.md + * 契约来源:docs/产品迭代8月份/h5.md */ import { BaseService } from '../BaseService' diff --git a/src/components/business/PaymentVoucherDialog.vue b/src/components/business/PaymentVoucherDialog.vue index cce5515..340db4f 100644 --- a/src/components/business/PaymentVoucherDialog.vue +++ b/src/components/business/PaymentVoucherDialog.vue @@ -1,5 +1,33 @@ @@ -150,7 +147,6 @@ const loading = ref(false) const detail = ref(null) - const voucherVisible = ref(false) const application = computed( () => detail.value?.application || null @@ -169,7 +165,11 @@ { title: '申请信息', fields: [ - { label: '申请编号', prop: 'id', formatter: (value) => (value ? `#${value}` : '-') }, + { + label: '外部交易流水号', + prop: 'external_transaction_no', + formatter: (value) => value || '-' + }, { label: '收款方式', prop: 'payment_method_name', formatter: (value) => value || '-' }, { label: '付款金额', @@ -181,11 +181,6 @@ prop: 'paid_at', formatter: (value) => formatDateTime(value) }, - { - label: '外部交易流水号', - prop: 'external_transaction_no', - formatter: (value) => value || '-' - }, { label: '状态', prop: 'status', diff --git a/src/views/finance/employee-collection/applications/index.vue b/src/views/finance/employee-collection/applications/index.vue index b9a3fc5..334337a 100644 --- a/src/views/finance/employee-collection/applications/index.vue +++ b/src/views/finance/employee-collection/applications/index.vue @@ -136,7 +136,7 @@ ] const columnOptions = [ - { label: '申请编号', prop: 'id' }, + { label: '外部交易流水号', prop: 'external_transaction_no' }, { label: '收款方式', prop: 'payment_method_name' }, { label: '付款金额', prop: 'paid_amount' }, { label: '状态', prop: 'status' }, @@ -149,9 +149,9 @@ const { columnChecks, columns } = useCheckedColumns(() => [ { - prop: 'id', - label: '申请编号', - minWidth: 140, + prop: 'external_transaction_no', + label: '外部交易流水号', + minWidth: 220, formatter: (row: EmployeeCollectionApplication) => h( 'span', @@ -159,7 +159,7 @@ style: 'color: var(--el-color-primary); cursor: pointer; text-decoration: underline;', onClick: () => handleViewDetail(row) }, - `#${row.id}` + row.external_transaction_no || '-' ) }, { diff --git a/src/views/finance/employee-collection/bills/index.vue b/src/views/finance/employee-collection/bills/index.vue index 2842bb0..c1e3032 100644 --- a/src/views/finance/employee-collection/bills/index.vue +++ b/src/views/finance/employee-collection/bills/index.vue @@ -167,8 +167,8 @@ status: undefined as number | undefined, customer_id: undefined as number | undefined, dateRange: [] as string[], - created_from: '', - created_to: '' + start_time: '', + end_time: '' } const searchForm = reactive({ ...initialSearchState }) const pagination = reactive({ page: 1, page_size: 20, total: 0 }) @@ -258,8 +258,8 @@ source_no: searchForm.source_no.trim() || undefined, status: searchForm.status, customer_id: searchForm.customer_id, - created_from: searchForm.created_from || undefined, - created_to: searchForm.created_to || undefined + start_time: searchForm.start_time || undefined, + end_time: searchForm.end_time || undefined }) const searchShops = async (query: string) => { @@ -391,11 +391,11 @@ const handleSearch = () => { if (Array.isArray(searchForm.dateRange) && searchForm.dateRange.length === 2) { - searchForm.created_from = searchForm.dateRange[0] - searchForm.created_to = searchForm.dateRange[1] + searchForm.start_time = searchForm.dateRange[0] + searchForm.end_time = searchForm.dateRange[1] } else { - searchForm.created_from = '' - searchForm.created_to = '' + searchForm.start_time = '' + searchForm.end_time = '' } pagination.page = 1 reload() diff --git a/src/views/settings/h5-popup-configuration/detail.vue b/src/views/settings/h5-popup-configuration/detail.vue new file mode 100644 index 0000000..a086922 --- /dev/null +++ b/src/views/settings/h5-popup-configuration/detail.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/src/views/settings/h5-popup-configuration/index.vue b/src/views/settings/h5-popup-configuration/index.vue index ac5c1b8..b121627 100644 --- a/src/views/settings/h5-popup-configuration/index.vue +++ b/src/views/settings/h5-popup-configuration/index.vue @@ -52,6 +52,16 @@ @closed="resetForm" > + + + + + - - - -
加载中...
- - {{ detail.id }} - {{ detail.version }} - {{ detail.title }} - - {{ detail.content }} - - - {{ formatPages(detail.pages) }} - - - {{ formatScope(detail.shop_ids) }} - - - {{ formatScope(detail.device_types) }} - - - {{ formatCardTypes(detail.card_types) }} - - {{ detail.priority }} - - {{ detail.frequency_text || FREQUENCY_NAMES[detail.frequency] || detail.frequency }} - - - {{ detail.enabled_text || (detail.enabled ? '启用' : '停用') }} - - - {{ ACTION_TYPE_NAMES[detail.action_type] || '无' }} - - - {{ formatDateTime(detail.starts_at) }} - - - {{ formatDateTime(detail.ends_at) }} - - {{ detail.creator }} - {{ - formatDateTime(detail.created_at) - }} - {{ detail.updater }} - {{ - formatDateTime(detail.updated_at) - }} - -