From f497c06aed35d38bc0fe4ff3105d5efec5035beb Mon Sep 17 00:00:00 2001 From: “wangming” <“wangming@antissoft.com”> Date: Tue, 28 Jul 2026 17:23:25 +0800 Subject: [PATCH] feat: 补充报销编号/退卡导出/上传人员筛选等并更新 V2.0.1 说明 --- .cursor/skills/duplicate-recharge-exception-types/SKILL.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/api/extend/employee-profile-submission.js | 11 ++++++++--- antis-ncc-admin/src/views/lqHytkHytk/index.vue | 43 ++++++++++++++++++++++++++++++++++++++----- antis-ncc-admin/src/views/lqReimbursementApplication/edit-dialog.vue | 22 ++++++++++++++++++++++ antis-ncc-admin/src/views/lqReimbursementApplication/form-dialog.vue | 22 ++++++++++++++++++++++ antis-ncc-admin/src/views/lqReimbursementApplication/index.vue | 13 ++++++++++++- antis-ncc-admin/src/views/lqUploadRecord/index.vue | 19 +++++++++++++++---- antis-ncc-admin/src/views/monitorCenter/duplicate-recharge-audit/components/related-biz-dialog.vue | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/monitorCenter/duplicate-recharge-audit/index.vue | 229 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- antis-ncc-admin/src/views/permission/employee-profile-submission/detail-dialog.vue | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- antis-ncc-admin/src/views/permission/user/components/user-form-employee-profile.vue | 189 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- antis-ncc-admin/src/views/statisticsList/form16.vue | 11 ++++++++--- antis-ncc-admin/src/views/statisticsList/form21.vue | 40 ++++++++++++++++++++++++++++++++++++++-- netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqBusinessUnitDashboard/BusinessUnitDashboardCapabilityDtos.cs | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqEmployeeProfile/LqEmployeeProfileInfoOutput.cs | 20 ++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqEmployeeProfile/LqEmployeeProfileSaveInput.cs | 20 ++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqEmployeeProfileSubmission/LqEmployeeProfileSubmissionCrInput.cs | 20 ++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqEmployeeProfileSubmission/LqEmployeeProfileSubmissionInfoOutput.cs | 20 ++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqEmployeeProfileSubmission/LqEmployeeProfileSubmissionPublicConfigOutput.cs | 5 +++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqHytkHytk/LqHytkHytkListQueryInput.cs | 10 ++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqHytkHytk/RefundDetailListOutput.cs | 5 +++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatistics/StoreStatisticsListOutput.cs | 11 ++++++++--- netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqUploadRecord/UploadRecordListQueryInput.cs | 5 +++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_employee_profile/LqEmployeeProfileEntity.cs | 24 ++++++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_employee_profile_submission/LqEmployeeProfileSubmissionEntity.cs | 24 ++++++++++++++++++++++++ netcore/src/Modularity/Extend/NCC.Extend/EmployeeProfileSensitiveHelper.cs | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- netcore/src/Modularity/Extend/NCC.Extend/LqBusinessUnitDashboardService.Features.cs | 398 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------- netcore/src/Modularity/Extend/NCC.Extend/LqEmployeeProfileService.cs | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- netcore/src/Modularity/Extend/NCC.Extend/LqEmployeeProfileSubmissionService.cs | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- netcore/src/Modularity/Extend/NCC.Extend/LqHytkHytkService.cs | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------- netcore/src/Modularity/Extend/NCC.Extend/LqReimbursementApplicationService.cs | 48 +++++++++++++++++++++++++++++++++++++++++++----- netcore/src/Modularity/Extend/NCC.Extend/LqStatisticsService.cs | 66 ++++++++++++++++++++++++++++++++++++++++++++++++------------------ netcore/src/Modularity/Extend/NCC.Extend/OssDirectUploadService.cs | 5 +++-- 绿纤uni-app/pages/employee-onboard/employee-onboard.vue | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------- 绿纤uni-app/pages/reimbursement-audit-list/reimbursement-audit-list.vue | 4 ++++ 绿纤uni-app/pages/reimbursement-list/reimbursement-list.vue | 4 ++++ 绿纤uni-app/pagesA/my-application-detail/my-application-detail.vue | 29 ++++++++++++++++++++++++++--- 绿纤uni-app/pagesA/my-approval-detail/my-approval-detail.vue | 25 ++++++++++++++++++++++++- 绿纤uni-app/pagesA/reimbursement-form/reimbursement-form.vue | 27 ++++++++++++++++++++++++--- 绿纤uni-app/utils/flow-next-approver.js | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 项目文档相关/docs/V2.0.1-系统更新说明-草稿.md | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 项目文档相关/docs/数据库说明.md | 5 +++-- 项目文档相关/sql/2026-07-28/入职资料_银行实名与身份证地址照片.sql | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 项目文档相关/sql/2026-07-28/系统更新说明_V2.0.1.sql | 25 ++++++++++++++++++++++--- 44 files changed, 2712 insertions(+), 154 deletions(-) create mode 100644 .cursor/skills/duplicate-recharge-exception-types/SKILL.md create mode 100644 antis-ncc-admin/src/views/monitorCenter/duplicate-recharge-audit/components/related-biz-dialog.vue create mode 100644 绿纤uni-app/utils/flow-next-approver.js create mode 100644 项目文档相关/docs/V2.0.1-系统更新说明-草稿.md create mode 100644 项目文档相关/sql/2026-07-28/入职资料_银行实名与身份证地址照片.sql diff --git a/.cursor/skills/duplicate-recharge-exception-types/SKILL.md b/.cursor/skills/duplicate-recharge-exception-types/SKILL.md new file mode 100644 index 0000000..4413396 --- /dev/null +++ b/.cursor/skills/duplicate-recharge-exception-types/SKILL.md @@ -0,0 +1,64 @@ +--- +name: duplicate-recharge-exception-types +description: 重复充值/异常开单耗卡审计口径。在开发或修改重复充值审计、异常开单、异常耗卡、监控中心审计列表时使用;触发词:重复充值、异常开单、异常耗卡、同日多笔、短时间金额一致、系统卡顿重复提交。 +--- + +# 异常开单 / 异常耗卡审计口径 + +## 一、何时使用 + +- 开发或修改「重复充值审计」「单据充值审计」相关前后端 +- 定义异常类型、列表筛选、关联单据展示 +- 排查同会员短时间重复单据是否为系统卡顿导致 + +## 二、异常类型(必须区分) + +### 1. 同日多笔(已有) + +| 类型编码(建议) | 名称 | 判定 | +|------------------|------|------| +| `SameDayDuplicateBilling` | 同日重复开单 | 同会员 + 同一自然日,≥2 笔开单(合并为 1 行) | +| `SameDayDuplicateConsume` | 同日重复耗卡 | 同会员 + 同一自然日,≥2 笔耗卡(合并为 1 行) | +| `SameDayMixed` | 同日开单+耗卡 | **已停用自动产出**:一开一耗属常态,计入审计会刷屏;筛选项可保留兼容 | + +说明:同日重复开单/耗卡列表**合并为单行**,`RelatedBizList` 仅含同类型当日单据。已被「异常开单/耗卡」簇覆盖的单据不再计入同日重复。 + +### 2. 短时间金额一致(系统卡顿疑似重复提交)— 必须支持 + +| 类型编码(建议) | 名称 | 判定 | +|------------------|------|------| +| `ShortIntervalSameAmountBilling` | 异常开单 | 同会员 + **短时间内** + **金额一致** 的多笔开单 | +| `ShortIntervalSameAmountConsume` | 异常耗卡 | 同会员 + **短时间内** + **金额一致** 的多笔耗卡 | + +**业务含义**:极可能是前端/网络卡顿导致用户重复提交,系统生成了多笔相同金额单据,而非真实二次消费。 + +#### 判定细则(实现时遵守) + +1. **同一会员**(开单看 `kdhy`,耗卡看 `hy`) +2. **业务类型相同**(开单只跟开单比,耗卡只跟耗卡比) +3. **金额一致**:开单用实付 `sfyj`;耗卡用消耗金额 `xfje`;`ABS(a-b) < 0.01` +4. **操作人一致**:开单 `F_CreateUser`;耗卡 `czry`;两侧都非空且相同 +5. **内容一致(品项指纹)**: + - 开单:`lq_kd_pxmx` 按 `px + 次数 + 实付金额` 排序拼接 + - 耗卡:`lq_xh_pxmx` 按 `px + 次数 + 合计金额` 排序拼接 + - 两侧都无明细时**不**因空内容相同而判异常 +6. **短时间窗口**:业务时间差 ≤ **3 分钟**(连通簇:同金额桶内按时间间隔并查集) +7. **有效单据**:仅有效记录;**金额必须 > 0**(0 元不进异常开单/耗卡,避免赠送/体验单刷屏) +8. 命中后展示异常类型并高亮,同组合并为 **1 行**,关联单据仅含同组同金额单号/时间/金额 + +**核心思路**:异常单主要用于检查是否「重复开单/重复耗卡」(卡顿重复提交),不是普通的同日多笔业务。 + +#### 与「同日多笔」的关系 + +- **可同时命中**:例如同日多笔里其中两笔又满足短时间+同金额 → 优先或同时打上「异常开单/异常耗卡」标签(产品若要求单一类型,**短时间同金额优先**于普通同日多笔,因指向更明确的故障原因) +- 展示上名称使用:**异常开单** / **异常耗卡**(不要只写「重复」) + +## 三、实现注意 + +- 统计与列表过滤条件、时间范围、门店权限必须一致 +- 关联单据弹窗/列需能看清:哪几笔单号、各自时间与金额 +- 修改该口径后需用真实库数据抽验(短时间同金额成对样本) + +## 四、触发词 + +异常开单、异常耗卡、短时间金额一致、系统卡顿、重复提交、重复充值审计、单据充值审计 diff --git a/antis-ncc-admin/src/api/extend/employee-profile-submission.js b/antis-ncc-admin/src/api/extend/employee-profile-submission.js index 9de0bf2..c628403 100644 --- a/antis-ncc-admin/src/api/extend/employee-profile-submission.js +++ b/antis-ncc-admin/src/api/extend/employee-profile-submission.js @@ -17,12 +17,17 @@ export function getEmployeeProfileSubmissionList(data) { }) } -/** 申请详情(敏感字段脱敏) */ -export function getEmployeeProfileSubmissionInfo(id, showTail4 = false) { +/** + * 申请详情 + * @param {string} id 申请 ID + * @param {boolean} showTail4 仅后 4 位 + * @param {boolean} revealSensitive 人事审核:手机号/身份证完整明文 + */ +export function getEmployeeProfileSubmissionInfo(id, showTail4 = false, revealSensitive = false) { return request({ url: '/api/Extend/LqEmployeeProfileSubmission/GetInfo', method: 'get', - data: { id, showTail4 } + data: { id, showTail4, revealSensitive } }) } diff --git a/antis-ncc-admin/src/views/lqHytkHytk/index.vue b/antis-ncc-admin/src/views/lqHytkHytk/index.vue index 68afe77..e89a792 100644 --- a/antis-ncc-admin/src/views/lqHytkHytk/index.vue +++ b/antis-ncc-admin/src/views/lqHytkHytk/index.vue @@ -62,6 +62,14 @@ + + + + + + + + @@ -79,11 +87,9 @@
- +
@@ -193,6 +199,16 @@ {{ scope.row.actualRefundAmount || '无' }} + + + @@ -261,6 +277,7 @@ czry:undefined, jksId:undefined, kjblsId:undefined, + refundType:undefined, }, list: [], listLoading: true, @@ -281,14 +298,18 @@ { prop: 'hy', label: '会员' }, { prop: 'hymc', label: '会员姓名' }, { prop: 'hyzh', label: '会员账号' }, + { prop: 'hyPhone', label: '会员电话' }, { prop: 'jks', label: '健康师' }, { prop: 'jkszh', label: '健康师账号' }, { prop: 'jksxm', label: '健康师姓名' }, { prop: 'bz', label: '备注' }, { prop: 'tkpx', label: '退卡品项' }, + { prop: 'tkje', label: '退卡金额' }, + { prop: 'actualRefundAmount', label: '实际退款金额' }, + { prop: 'tkyy', label: '类型' }, { prop: 'tksj', label: '退卡时间' }, { prop: 'czry', label: '退卡人' }, - ], + ], mdOptions : [], hyOptions : [], kdhyOptions:[], @@ -415,12 +436,18 @@ }; let query = {} for (let key in _query) { + if (key === 'refundType') continue if (Array.isArray(_query[key])) { query[key] = _query[key].join() } else { query[key] = _query[key] } } + if (this.query.refundType === 'refund') { + query.excludeTransferCard = 1 + } else if (this.query.refundType === 'transfer') { + query.onlyTransferCard = 1 + } request({ url: `/api/Extend/LqHytkHytk`, method: 'GET', @@ -496,6 +523,12 @@ }, download(data) { let query = { ...data, ...this.listQuery, ...this.query } + delete query.refundType + if (this.query.refundType === 'refund') { + query.excludeTransferCard = 1 + } else if (this.query.refundType === 'transfer') { + query.onlyTransferCard = 1 + } request({ url: `/api/Extend/LqHytkHytk/Actions/Export`, method: 'GET', diff --git a/antis-ncc-admin/src/views/lqReimbursementApplication/edit-dialog.vue b/antis-ncc-admin/src/views/lqReimbursementApplication/edit-dialog.vue index ae70f3d..bf21923 100644 --- a/antis-ncc-admin/src/views/lqReimbursementApplication/edit-dialog.vue +++ b/antis-ncc-admin/src/views/lqReimbursementApplication/edit-dialog.vue @@ -67,7 +67,9 @@ placeholder="请选择申请时间" format="yyyy-MM-dd HH:mm:ss" value-format="timestamp" + :default-time="applicationTimeDefaultTime" style="width: 100%" + @change="onApplicationTimePickerChange" /> @@ -275,10 +277,30 @@ export default { initialPurchaseRecordIds: [] // 存储初始的购买记录ID列表 } }, + computed: { + applicationTimeDefaultTime() { + const now = new Date() + const hh = String(now.getHours()).padStart(2, '0') + const mm = String(now.getMinutes()).padStart(2, '0') + const ss = String(now.getSeconds()).padStart(2, '0') + return `${hh}:${mm}:${ss}` + } + }, created() { this.loadStoreOptions() }, methods: { + /** 日期时间选择器若落成 00:00:00,补当前时分秒,避免申请时间只剩日期 */ + onApplicationTimePickerChange(val) { + if (!val && val !== 0) return + const date = new Date(val) + if (Number.isNaN(date.getTime())) return + if (date.getHours() === 0 && date.getMinutes() === 0 && date.getSeconds() === 0) { + const now = new Date() + date.setHours(now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds()) + this.dataForm.applicationTime = date.getTime() + } + }, async init(id) { this.visible = true this.loading = true diff --git a/antis-ncc-admin/src/views/lqReimbursementApplication/form-dialog.vue b/antis-ncc-admin/src/views/lqReimbursementApplication/form-dialog.vue index 8af71da..db4eadb 100644 --- a/antis-ncc-admin/src/views/lqReimbursementApplication/form-dialog.vue +++ b/antis-ncc-admin/src/views/lqReimbursementApplication/form-dialog.vue @@ -66,7 +66,9 @@ placeholder="请选择申请时间" format="yyyy-MM-dd HH:mm:ss" value-format="timestamp" + :default-time="applicationTimeDefaultTime" style="width: 100%" + @change="onApplicationTimePickerChange" /> @@ -369,11 +371,31 @@ export default { purchaseSelection: [] } }, + computed: { + applicationTimeDefaultTime() { + const now = new Date() + const hh = String(now.getHours()).padStart(2, '0') + const mm = String(now.getMinutes()).padStart(2, '0') + const ss = String(now.getSeconds()).padStart(2, '0') + return `${hh}:${mm}:${ss}` + } + }, created() { this.loadStoreOptions() this.loadWorkflowConfigOptions() }, methods: { + /** 日期时间选择器若落成 00:00:00,补当前时分秒,避免申请时间只剩日期 */ + onApplicationTimePickerChange(val) { + if (!val && val !== 0) return + const date = new Date(val) + if (Number.isNaN(date.getTime())) return + if (date.getHours() === 0 && date.getMinutes() === 0 && date.getSeconds() === 0) { + const now = new Date() + date.setHours(now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds()) + this.dataForm.applicationTime = date.getTime() + } + }, openPurchaseDialog() { this.showPurchaseDialog = true this.loadPurchaseRecords() diff --git a/antis-ncc-admin/src/views/lqReimbursementApplication/index.vue b/antis-ncc-admin/src/views/lqReimbursementApplication/index.vue index 52e9569..517f767 100644 --- a/antis-ncc-admin/src/views/lqReimbursementApplication/index.vue +++ b/antis-ncc-admin/src/views/lqReimbursementApplication/index.vue @@ -123,6 +123,15 @@
+ + + +