verce-vue-test 0.0.168 → 0.0.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.168",
3
+ "version": "0.0.169",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
Binary file
@@ -164,16 +164,12 @@ const forecastVerifyStatusMap: Record<string, string> = {
164
164
 
165
165
  const amountColumnProps = new Set(['predAmt', 'verifyAmt'])
166
166
 
167
+ // 两张表的共有字段保持相同列位,各表独有字段放在共有字段之后。
167
168
  const forecastColumns: TableColumn[] = [
168
- { prop: 'predStatus', label: '预报状态', minWidth: 90 },
169
- { prop: 'payDirec', label: '收支方向', minWidth: 90 },
170
169
  { prop: 'predAmt', label: '预报金额(元)', minWidth: 126 },
171
- { prop: 'verifyAmt', label: '已核销金额(元)', minWidth: 134 },
172
- { prop: 'verifyStatus', label: '核销状态', minWidth: 90 },
173
- { prop: 'relsFlag', label: '释放状态', minWidth: 90 },
170
+ { prop: 'payDirec', label: '收支方向', minWidth: 90 },
174
171
  { prop: 'payChannel', label: '支付渠道', minWidth: 96 },
175
172
  { prop: 'clientName', label: '客户名称', minWidth: 100 },
176
- { prop: 'clientType', label: '客户类型', minWidth: 96 },
177
173
  { prop: 'competName', label: '交易对手名称', minWidth: 124 },
178
174
  { prop: 'competAcct', label: '交易对手账号', minWidth: 132 },
179
175
  { prop: 'standardName', label: '标准名称', minWidth: 100 },
@@ -181,30 +177,33 @@ const forecastColumns: TableColumn[] = [
181
177
  { prop: 'billDate', label: '出票日期', minWidth: 96 },
182
178
  { prop: 'tranDate', label: '交易日期', minWidth: 96 },
183
179
  { prop: 'busiType', label: '业务类型', minWidth: 96 },
180
+ { prop: 'groundBranch', label: '落地机构', minWidth: 100 },
181
+ { prop: 'predStatus', label: '预报状态', minWidth: 90 },
182
+ { prop: 'verifyAmt', label: '已核销金额(元)', minWidth: 134 },
183
+ { prop: 'relsFlag', label: '释放状态', minWidth: 90 },
184
+ { prop: 'clientType', label: '客户类型', minWidth: 96 },
184
185
  { prop: 'predDate', label: '预报日期', minWidth: 96 },
185
186
  { prop: 'predCode', label: '预报人员编号', minWidth: 118 },
186
187
  { prop: 'predRefNo', label: '预报流水号', minWidth: 118 },
187
- { prop: 'groundBranch', label: '落地机构', minWidth: 100 },
188
188
  { prop: 'groundBranchCode', label: '机构代码', minWidth: 96 },
189
189
  ]
190
190
 
191
191
  const flowColumns: TableColumn[] = [
192
192
  { prop: 'amt', label: '金额(元)', minWidth: 108 },
193
- { prop: 'billDate', label: '出票日期', minWidth: 96 },
194
- { prop: 'billNo', label: '票号', minWidth: 82 },
195
- { prop: 'busiType', label: '支付系统业务类型', minWidth: 138 },
196
- { prop: 'clientAcct', label: '我方账号', minWidth: 112 },
193
+ { prop: 'payDirec', label: '收支方向', minWidth: 90 },
194
+ { prop: 'payChannel', label: '支付渠道', minWidth: 92 },
197
195
  { prop: 'clientName', label: '我方户名', minWidth: 100 },
198
- { prop: 'competAcct', label: '对方账号', minWidth: 112 },
199
196
  { prop: 'competName', label: '对方户名', minWidth: 100 },
200
- { prop: 'groundBranch', label: '我方机构', minWidth: 100 },
201
- { prop: 'payChannel', label: '支付渠道', minWidth: 92 },
202
- { prop: 'payDirec', label: '收支方向', minWidth: 90 },
203
- { prop: 'refNo', label: '流水号', minWidth: 118 },
197
+ { prop: 'competAcct', label: '对方账号', minWidth: 112 },
204
198
  { prop: 'standardName', label: '标准名称', minWidth: 100 },
199
+ { prop: 'billNo', label: '票号', minWidth: 82 },
200
+ { prop: 'billDate', label: '出票日期', minWidth: 96 },
205
201
  { prop: 'tranDate', label: '交易日期', minWidth: 96 },
202
+ { prop: 'busiType', label: '支付系统业务类型', minWidth: 138 },
203
+ { prop: 'groundBranch', label: '我方机构', minWidth: 100 },
204
+ { prop: 'clientAcct', label: '我方账号', minWidth: 112 },
205
+ { prop: 'refNo', label: '流水号', minWidth: 118 },
206
206
  { prop: 'tranTimeStamp', label: '清算时间', minWidth: 128 },
207
- { prop: 'verifyStatus', label: '核销状态', minWidth: 90 },
208
207
  ]
209
208
 
210
209
  function createDefaultForecastForm() {
@@ -1338,7 +1337,7 @@ onBeforeUnmount(() => {
1338
1337
  :data="forecastRows"
1339
1338
  :total="forecastTotal"
1340
1339
  v-loading="forecastLoading"
1341
- table-key="rmb-position-settlement-forecast-info"
1340
+ table-key="rmb-position-settlement-forecast-info-v2"
1342
1341
  :selection-reset-key="forecastSelectionResetKey"
1343
1342
  :append-to="overlayContainer || undefined"
1344
1343
  :pagination-append-to="overlayContainerSelector"
@@ -1419,6 +1418,11 @@ onBeforeUnmount(() => {
1419
1418
  fixed="left"
1420
1419
  disabled
1421
1420
  />
1421
+ <el-table-column prop="verifyStatus" label="核销状态" min-width="90" align="center" fixed="left">
1422
+ <template #default="{ row }">
1423
+ {{ forecastVerifyStatusMap[String(row.verifyStatus)] ?? row.verifyStatus ?? '-' }}
1424
+ </template>
1425
+ </el-table-column>
1422
1426
  <!-- 序号随分页连续递增,不写入后端行数据。 -->
1423
1427
  <el-table-column
1424
1428
  type="index"
@@ -1441,9 +1445,6 @@ onBeforeUnmount(() => {
1441
1445
  <template v-if="amountColumnProps.has(column.prop)" #default="{ row }">
1442
1446
  {{ formatThousands(row[column.prop]) }}
1443
1447
  </template>
1444
- <template v-else-if="column.prop === 'verifyStatus'" #default="{ row }">
1445
- {{ forecastVerifyStatusMap[String(row.verifyStatus)] ?? row.verifyStatus ?? '-' }}
1446
- </template>
1447
1448
  <template v-else-if="column.prop === 'relsFlag'" #default="{ row }">
1448
1449
  {{ releaseStatusMap[String(row.relsFlag)] ?? row.relsFlag ?? '-' }}
1449
1450
  </template>
@@ -1896,7 +1897,7 @@ onBeforeUnmount(() => {
1896
1897
  :data="flowRows"
1897
1898
  :total="flowTotal"
1898
1899
  v-loading="flowLoading"
1899
- table-key="rmb-position-settlement-flow-info"
1900
+ table-key="rmb-position-settlement-flow-info-v2"
1900
1901
  :selection-reset-key="flowSelectionResetKey"
1901
1902
  :append-to="overlayContainer || undefined"
1902
1903
  :pagination-append-to="overlayContainerSelector"
@@ -1929,6 +1930,11 @@ onBeforeUnmount(() => {
1929
1930
  fixed="left"
1930
1931
  disabled
1931
1932
  />
1933
+ <el-table-column prop="verifyStatus" label="核销状态" min-width="90" align="center" fixed="left">
1934
+ <template #default="{ row }">
1935
+ {{ flowVerifyStatusMap[String(row.verifyStatus)] ?? row.verifyStatus ?? '-' }}
1936
+ </template>
1937
+ </el-table-column>
1932
1938
  <!-- 序号按当前页和每页条数连续计算。 -->
1933
1939
  <el-table-column
1934
1940
  type="index"
@@ -1951,9 +1957,6 @@ onBeforeUnmount(() => {
1951
1957
  <template v-if="column.prop === 'amt'" #default="{ row }">
1952
1958
  {{ formatThousands(row.amt) }}
1953
1959
  </template>
1954
- <template v-else-if="column.prop === 'verifyStatus'" #default="{ row }">
1955
- {{ flowVerifyStatusMap[String(row.verifyStatus)] ?? row.verifyStatus ?? '-' }}
1956
- </template>
1957
1960
  <template v-else-if="column.prop === 'payChannel'" #default="{ row }">
1958
1961
  {{ formatFlowPayChannel(row.payChannel) }}
1959
1962
  </template>
@@ -87,11 +87,12 @@ const currencyOptions = [
87
87
  const clientTypeMap: Record<string, string> = {
88
88
  CT01: '对公客户',
89
89
  CT02: '个人客户',
90
+ CT03: '同业客户',
90
91
  }
91
92
  const paymentRouteMap: Record<string, string> = {
92
- '01': '直汇',
93
- '02': '转汇',
94
- '03': '内部划转',
93
+ '01': '人行境内外币支付',
94
+ '02': '境外汇款',
95
+ '03': '境内汇款走境外汇路',
95
96
  }
96
97
 
97
98
  // 两张表的字段、默认显隐和格式化方式统一由列配置维护。
@@ -233,15 +234,15 @@ const flowColumns = orderColumns(baseFlowColumns, [
233
234
  defaultVisible: flowDefaultVisibleProps.has(column.prop),
234
235
  }))
235
236
 
236
- // 对应交易页沿用列表字段定义,展示流水号、金额和核销状态等关键信息。
237
- const transactionForecastColumns = baseForecastColumns.filter(({ prop }) => [
237
+ // 对应交易页展示 140202003 响应的全部记录字段,常用字段排在前面。
238
+ const transactionForecastColumns = orderColumns(baseForecastColumns, [
238
239
  'predRefNo', 'tranDate', 'payDirec', 'ccy', 'predAmt', 'verifyAmt', 'unverifyAmt',
239
240
  'verifyStatus', 'clientName', 'competName',
240
- ].includes(prop))
241
- const transactionFlowColumns = baseFlowColumns.filter(({ prop }) => [
241
+ ])
242
+ const transactionFlowColumns = orderColumns(baseFlowColumns, [
242
243
  'tranRefNo', 'valueDate', 'direction', 'ccy', 'tranAmt', 'notVerifyAmt',
243
244
  'verifyStatus', 'acctName', 'othAcctName',
244
- ].includes(prop))
245
+ ])
245
246
  const transactionStatusTables = {
246
247
  forecast: {
247
248
  title: '预报信息',
@@ -323,6 +324,11 @@ function normalizeVerifyStatus(value: unknown) {
323
324
  return status
324
325
  }
325
326
 
327
+ function canViewTransactionStatus(value: unknown) {
328
+ const status = normalizeVerifyStatus(value)
329
+ return status === 'VS02' || status === 'VS03'
330
+ }
331
+
326
332
  // 将页面状态转换为 TAM 接口使用的 1/2/3 状态值。
327
333
  function toForeignSettlementProtocolVerifyStatus(value: unknown) {
328
334
  const match = /^VS0([1-3])$/.exec(normalizeVerifyStatus(value))
@@ -518,12 +524,16 @@ const forecastSelectedRows = shallowRef<any[]>([])
518
524
  const flowSelectedRows = shallowRef<any[]>([])
519
525
  const forecastSelectedKeys = computed(() => new Set(forecastSelectedRows.value.map((row) => row.predRefNo)))
520
526
  const flowSelectedKeys = computed(() => new Set(flowSelectedRows.value.map((row) => row.tranRefNo)))
521
- const selectedForecastRefNo = computed(() => forecastSelectedRows.value.length === 1
522
- ? String(forecastSelectedRows.value[0]?.predRefNo ?? '').trim()
523
- : '')
524
- const selectedFlowRefNo = computed(() => flowSelectedRows.value.length === 1
525
- ? String(flowSelectedRows.value[0]?.tranRefNo ?? '').trim()
526
- : '')
527
+ const forecastTransactionRefNo = computed(() => {
528
+ const [row] = forecastSelectedRows.value
529
+ if (forecastSelectedRows.value.length !== 1 || !canViewTransactionStatus(row?.verifyStatus)) return ''
530
+ return String(row.predRefNo ?? '').trim()
531
+ })
532
+ const flowTransactionRefNo = computed(() => {
533
+ const [row] = flowSelectedRows.value
534
+ if (flowSelectedRows.value.length !== 1 || !canViewTransactionStatus(row?.verifyStatus)) return ''
535
+ return String(row.tranRefNo ?? '').trim()
536
+ })
527
537
  // 预报表格选择状态的重置标识。
528
538
  const forecastSelectionResetKey = ref(0)
529
539
  // 流水表格选择状态的重置标识。
@@ -550,7 +560,10 @@ const transactionStatusDisplayRows = computed(() => ({
550
560
  flow: prepareForeignSettlementRows(transactionStatusRows.value.flow, transactionStatusTables.flow.columns),
551
561
  }))
552
562
 
553
- async function openTransactionStatus(lookup: SettlementTransactionLookup) {
563
+ async function openTransactionStatus(kind: TransactionStatusKind) {
564
+ const lookup = kind === 'forecast'
565
+ ? { predRefNo: forecastTransactionRefNo.value, tranRefNo: '' }
566
+ : { predRefNo: '', tranRefNo: flowTransactionRefNo.value }
554
567
  if (!lookup.predRefNo && !lookup.tranRefNo) return
555
568
 
556
569
  const requestId = ++transactionStatusRequestId
@@ -2110,10 +2123,10 @@ onBeforeUnmount(() => {
2110
2123
  >
2111
2124
  <template #toolbar>
2112
2125
  <el-tooltip
2113
- content="请选择一条预报记录"
2126
+ content="请选择一条已核销或部分核销的预报记录"
2114
2127
  placement="top"
2115
2128
  popper-class="foreign-currency-settlement-transaction-tooltip"
2116
- :disabled="Boolean(selectedForecastRefNo)"
2129
+ :disabled="Boolean(forecastTransactionRefNo)"
2117
2130
  :append-to="overlayContainer || undefined"
2118
2131
  >
2119
2132
  <span>
@@ -2121,8 +2134,8 @@ onBeforeUnmount(() => {
2121
2134
  type="primary"
2122
2135
  plain
2123
2136
  size="small"
2124
- :disabled="!selectedForecastRefNo"
2125
- @click="openTransactionStatus({ predRefNo: selectedForecastRefNo, tranRefNo: '' })"
2137
+ :disabled="!forecastTransactionRefNo"
2138
+ @click="openTransactionStatus('forecast')"
2126
2139
  >
2127
2140
  对应交易
2128
2141
  </el-button>
@@ -2687,10 +2700,10 @@ onBeforeUnmount(() => {
2687
2700
  >
2688
2701
  <template #toolbar>
2689
2702
  <el-tooltip
2690
- content="请选择一条流水记录"
2703
+ content="请选择一条已核销或部分核销的流水记录"
2691
2704
  placement="top"
2692
2705
  popper-class="foreign-currency-settlement-transaction-tooltip"
2693
- :disabled="Boolean(selectedFlowRefNo)"
2706
+ :disabled="Boolean(flowTransactionRefNo)"
2694
2707
  :append-to="overlayContainer || undefined"
2695
2708
  >
2696
2709
  <span>
@@ -2698,8 +2711,8 @@ onBeforeUnmount(() => {
2698
2711
  type="primary"
2699
2712
  plain
2700
2713
  size="small"
2701
- :disabled="!selectedFlowRefNo"
2702
- @click="openTransactionStatus({ predRefNo: '', tranRefNo: selectedFlowRefNo })"
2714
+ :disabled="!flowTransactionRefNo"
2715
+ @click="openTransactionStatus('flow')"
2703
2716
  >
2704
2717
  对应交易
2705
2718
  </el-button>
@@ -1,120 +0,0 @@
1
-
2
- # verce-vue-test 前端开发规范指南
3
- 为保证代码质量、可维护性、安全性与可扩展性,请在开发过程中严格遵循以下规范。
4
-
5
- ## 一、基础信息
6
- - **工作目录**:`/Users/bombingpig/WebstormProjects/verce-vue-test`
7
- - **代码作者**:bombingpig
8
- - **项目类型**:Vue 3 前端项目
9
- - 注:项目环境信息中提及的`JDK 1.8.0_131`、`Maven`为误填,本项目为Vue前端项目,无需Java相关构建工具与运行环境
10
-
11
- ## 二、目录结构
12
- ```mermaid
13
- verce-vue-test
14
- ├── docs # 项目文档目录,存放开发规范、接口文档、设计稿、需求说明等内容
15
- │ └── superpowers
16
- │ └── specs
17
- ├── public # 静态公共资源目录,存放无需经过构建处理的全局静态资源
18
- └── src # 项目核心源码目录
19
- ├── assets # 项目静态资源目录,存放需构建处理的图片、样式、字体等资源
20
- │ └── home
21
- │ └── optimized # 已优化压缩的静态资源目录,非必要请勿修改该目录下文件
22
- ├── components # 全局公共组件目录
23
- │ ├── CPS # 业务公共组件子目录
24
- │ └── icons # 图标组件子目录
25
- ├── config # 全局配置目录,存放环境配置、接口地址、全局常量等
26
- ├── router # 路由配置目录,存放路由规则、权限控制、路由守卫逻辑
27
- ├── stores # 状态管理层,存放Pinia状态管理文件
28
- ├── utils # 工具函数目录,存放通用无业务耦合的工具方法
29
- └── views # 业务页面视图目录,按业务模块拆分页面
30
- └── ForecastInfo # 预测信息模块页面目录
31
- └── components # 该模块私有业务组件目录
32
- ```
33
-
34
- ## 三、技术栈要求
35
- - **主框架**:Vue 3.x
36
- - **路由管理**:Vue Router 4.x
37
- - **状态管理**:Pinia 2.x
38
- - **接口请求**:Axios(需统一封装请求/响应拦截器、错误处理逻辑)
39
- - **构建工具**:Vite(若项目实际使用Webpack需遵循对应Webpack规范)
40
- - **核心依赖规范**:
41
- - 依赖版本需在`package.json`中锁定,禁止随意升级大版本导致兼容性问题
42
- - 禁止引入无维护、存在已知安全漏洞的第三方依赖
43
- - 公共依赖统一在项目根目录安装,禁止局部重复安装相同功能的依赖
44
-
45
- ## 四、分层架构规范
46
- | 层级/目录 | 职责说明 | 开发约束与注意事项 |
47
- |-----------|----------|--------------------|
48
- | public | 全局静态资源存放 | 仅存放不需要构建处理的站点级资源(如favicon.ico、robots.txt),修改后需重新构建生效 |
49
- | src/assets | 业务静态资源存放 | 存放会被构建处理的业务资源,`home/optimized`为已优化资源,非必要不得修改 |
50
- | src/components | 全局公共组件存放 | 跨模块复用组件按业务分类存放子目录(如CPS、icons),组件名采用PascalCase命名,禁止硬编码业务数据 |
51
- | src/config | 全局配置存放 | 存放环境区分配置、接口地址、全局常量,禁止硬编码敏感信息(如密钥、内部地址) |
52
- | src/router | 路由配置存放 | 按业务模块拆分路由文件,路由统一采用懒加载,权限控制、路由守卫逻辑统一在该层实现 |
53
- | src/stores | 状态管理存放 | 按业务模块拆分状态文件(如用户模块、预测模块),禁止存储非响应式大对象、DOM节点 |
54
- | src/utils | 通用工具函数存放 | 按功能分类存放工具函数(如请求封装、校验函数、格式化函数),需无业务耦合、可跨模块复用 |
55
- | src/views | 业务页面存放 | 按业务模块拆分页面目录,页面组件仅负责布局、调用子组件与接口,禁止编写复杂业务逻辑 |
56
- | views下各模块的components目录 | 模块私有组件存放 | 仅当前模块可复用的组件存放于对应模块目录,禁止将私有组件放到全局components目录 |
57
-
58
- ### 组件开发规范
59
- 1. 优先使用组合式API(`<script setup>`)开发组件,老代码维护可兼容选项式API
60
- 2. 组件props需定义类型与默认值,emits需显式声明触发事件,禁止使用`any`类型(除非无明确类型场景)
61
- 3. 组件样式默认采用Scoped样式,避免样式污染,全局样式需单独声明
62
- 4. 复杂组件需提供完整的事件、插槽、props说明,方便其他开发者使用
63
-
64
- ## 五、安全与性能规范
65
- ### 安全规范
66
- 1. 禁止在代码中硬编码敏感信息(如接口密钥、用户隐私数据),敏感配置统一通过环境变量引入
67
- 2. 防范XSS攻击:禁止直接使用`v-html`渲染不可信的用户输入内容,用户输入内容需做转义处理
68
- 3. 接口请求需统一携带身份凭证,敏感接口需做权限校验,避免越权访问
69
- 4. 依赖包需定期更新,避免使用存在已知安全漏洞的版本
70
- 5. 禁止将敏感信息(如token、用户信息)明文存储在全局状态中
71
-
72
- ### 性能规范
73
- 1. 路由、非首屏组件统一采用懒加载,减少首屏打包体积
74
- 2. 静态资源优先使用`assets/home/optimized`下的优化后资源,图片等资源需压缩后再引入,大体积资源采用CDN加速
75
- 3. 长列表场景使用虚拟滚动,避免DOM节点过多导致页面卡顿
76
- 4. 避免在模板中编写复杂计算逻辑,复杂逻辑封装为computed或工具函数
77
- 5. 状态管理中按需引入状态,避免全局状态冗余,减少不必要的响应式监听
78
- 6. 避免频繁触发全局状态更新,减少组件不必要的重渲染
79
-
80
- ## 六、代码风格规范
81
- ### 命名规范
82
- | 类型 | 命名方式 | 示例 |
83
- |------|----------|------|
84
- | 组件名/业务目录名 | PascalCase | `UserList.vue`、`ForecastInfo` |
85
- | 方法/变量/普通文件 | camelCase | `getUserInfo()`、`request.js` |
86
- | 常量 | UPPER_SNAKE_CASE | `API_BASE_URL`、`MAX_UPLOAD_SIZE` |
87
- | 通用目录名 | kebab-case | `forecast-info` |
88
-
89
- ### 注释规范
90
- 1. 所有公共组件、工具函数、复杂业务逻辑需添加JSDoc注释,说明功能、参数、返回值
91
- 2. 组件需标注用途、props说明、events说明、slots说明
92
- 3. 复杂逻辑需添加行内注释说明实现原因,禁止添加无意义的注释(如`// 定义变量`)
93
- 4. 所有注释使用中文编写,符合中文表达习惯
94
-
95
- ### 代码格式规范
96
- 1. 统一使用Prettier格式化代码,配置统一为:缩进2空格、单引号、分号结尾(若项目有自定义配置需遵循项目配置)
97
- 2. Vue单文件组件顺序统一为:`<template>` → `<script setup>` → `<style>`,各部分之间保留1个空行
98
- 3. 禁止出现未使用的变量、组件、依赖,代码提交前需清理冗余代码
99
- 4. 接口地址、配置项统一使用常量定义,禁止硬编码字符串
100
-
101
- ## 七、扩展性与日志规范
102
- ### 扩展性规范
103
- 1. 可复用逻辑统一封装为自定义Hook,按需引入,避免重复编写相同逻辑
104
- 2. 接口请求统一封装为Axios实例,统一处理请求头、响应拦截、错误处理,禁止在页面中直接裸写请求逻辑
105
- 3. 配置统一存放在`src/config`目录,按环境(dev/test/prod)拆分,避免硬编码环境区分逻辑
106
- 4. 组件优先采用“配置+渲染”的模式开发,提高组件复用性
107
-
108
- ### 日志规范
109
- 1. 开发环境调试日志需添加明确的前缀标识(如`[UserModule] 获取用户信息成功`),方便定位问题
110
- 2. 生产环境需关闭debug日志,错误日志统一上报至监控平台,禁止直接抛出未捕获的异常
111
- 3. 禁止使用`alert`直接提示错误信息,统一使用项目内的全局提示组件
112
-
113
- ## 八、编码原则总结
114
- | 原则 | 说明 |
115
- |------|------|
116
- | **SOLID** | 单一职责、开闭原则、里氏替换、接口隔离、依赖倒置,保证组件与逻辑的高内聚低耦合 |
117
- | **DRY** | 避免重复代码,可复用逻辑统一封装为Hook、工具函数或公共组件 |
118
- | **KISS** | 保持代码简洁易懂,避免过度设计,优先实现当前需求 |
119
- | **YAGNI** | 不实现当前不需要的功能,避免提前优化增加维护成本 |
120
- | **OWASP** | 防范前端常见安全漏洞,如XSS、CSRF、敏感信息泄露等 |
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar"]
3
- }
@@ -1,165 +0,0 @@
1
- {
2
- ".DS_Store": "macOS 目录显示缓存文件",
3
- ".claude": "项目辅助配置与本地规则目录",
4
- ".feisuan": "项目辅助工具规则目录",
5
- ".git": "Git 版本控制元数据目录",
6
- ".github": "GitHub Actions 与仓库协作配置目录",
7
- ".gitignore": "Git 忽略文件配置",
8
- ".idea": "JetBrains IDE 项目配置目录",
9
- ".npmignore": "npm 发布时的忽略文件配置",
10
- ".playwright-cli": "Playwright CLI 日志与页面快照目录",
11
- ".vscode": "VS Code 工作区设置与文件备注配置目录",
12
- "backend": "Express 与 MongoDB 后端服务目录",
13
- "backend/src/controllers/tamForeignCurrencyStartingAmount.controller.js": "外币起点金额维护 TAM 请求解析与响应控制器",
14
- "backend/src/data/foreignCurrencyStartingAmountFixtures.js": "外币起点金额维护初始化测试数据与机构名称映射",
15
- "backend/src/models/ForeignCurrencyStartingAmount.js": "外币起点金额维护 MongoDB 数据模型与索引",
16
- "backend/src/routes/index.js": "后端路由入口与可用接口清单",
17
- "backend/src/routes/tam.routes.js": "TAM 交易码与业务控制器路由注册",
18
- "backend/src/services/foreignCurrencyStartingAmount.service.js": "外币起点金额查询、新增、修改、审批和删除业务逻辑",
19
- "backend/src/services/seed.service.js": "MongoDB 业务基础数据初始化服务",
20
- "dist": "前端构建产物目录",
21
- "docs": "项目文档与业务说明目录",
22
- "env.d.ts": "前端环境变量与 Vite 类型声明",
23
- "file-note-assistant-0.1.8.vsix": "File Note Assistant 0.1.8 VS Code 扩展安装包",
24
- "index.html": "Vite 前端应用 HTML 入口",
25
- "node_modules": "前端项目依赖安装目录",
26
- "output": "Playwright 等工具输出结果目录",
27
- "package-lock.json": "前端 npm 依赖锁定文件",
28
- "package.json": "前端项目配置与 NPM 脚本",
29
- "public": "无需打包处理的静态资源目录",
30
- "src": "前端应用源代码目录",
31
- "src/App.vue": "应用主布局、侧边菜单与菜单搜索入口",
32
- "src/router": "前端页面路由配置目录",
33
- "src/router/index.ts": "前端静态路由与业务页面映射配置",
34
- "src/views": "前端业务页面与路由视图目录",
35
- "src/views/AboutView.vue": "关于项目页面",
36
- "src/views/ComponentCatalogView.vue": "组件目录演示页面",
37
- "src/views/DashboardView.vue": "仪表盘页面",
38
- "src/views/DateRangeView.vue": "日期范围组件演示页面",
39
- "src/views/EmployeeView.vue": "员工信息页面",
40
- "src/views/FormView.vue": "表单组件演示页面",
41
- "src/views/HomeView.vue": "首页页面",
42
- "src/views/LoginView.vue": "登录页面",
43
- "src/views/NoticeAnnouncementView.vue": "公告列表页面",
44
- "src/views/NoticeDetailView.vue": "公告详情页面",
45
- "src/views/NumberRangeView.vue": "数字范围组件演示页面",
46
- "src/views/PlaceholderView.vue": "通用占位页面",
47
- "src/views/PositionForecastExecutionView.vue": "头寸预报执行页面",
48
- "src/views/PositionForecastView.vue": "头寸预报页面",
49
- "src/views/TableProForView.vue": "高级表格组件演示页面",
50
- "src/views/TableProView.vue": "表格组件演示页面",
51
- "src/views/ThousandthView.vue": "千分位格式化演示页面",
52
- "src/views/UserView.vue": "用户信息页面",
53
- "src/views/ExecutiveManagementView": "执行管理相关页面目录",
54
- "src/views/ExecutiveManagementView/components": "执行管理页面组件目录",
55
- "src/views/ForecastInfo": "预测信息与人民币头寸结算页面目录",
56
- "src/views/ForecastInfo/RmbPositionSettlement.vue": "人民币头寸结算页面",
57
- "src/views/ForecastInfo/api.ts": "预测信息模块接口定义",
58
- "src/views/ForecastInfo/forecast-info.css": "预测信息页面局部样式",
59
- "src/views/city-bank-clearing-settlement": "城银清算结算页面与接口目录",
60
- "src/views/city-bank-clearing-settlement/api.ts": "城银清算结算接口定义",
61
- "src/views/city-bank-clearing-settlement/index.vue": "城银清算结算页面",
62
- "src/views/city-bank-clearing-settlement/runtime.ts": "城银清算结算页面运行时参数与高度配置",
63
- "src/views/cross-border-rmb-estimation": "跨境人民币预估页面与接口目录",
64
- "src/views/cross-border-rmb-estimation/api.ts": "跨境人民币预估接口定义",
65
- "src/views/cross-border-rmb-estimation/index.vue": "跨境人民币预估页面",
66
- "src/views/foreign-currency-account-bank-maintenance": "外币参数管理账户行维护页面与接口目录",
67
- "src/views/foreign-currency-account-bank-maintenance/api.ts": "账户行维护查询、新增、修改和批量删除 TAM 接口定义",
68
- "src/views/foreign-currency-account-bank-maintenance/index.vue": "账户行维护查询、新增、修改和批量删除操作页面",
69
- "src/views/foreign-currency-authorization": "外币授权管理页面与业务配置目录",
70
- "src/views/foreign-currency-authorization/adapter.ts": "外币授权接口数据适配逻辑",
71
- "src/views/foreign-currency-authorization/api.ts": "外币授权管理接口定义",
72
- "src/views/foreign-currency-authorization/index.vue": "外币授权管理页面",
73
- "src/views/foreign-currency-authorization/options.ts": "外币授权选项与状态配置",
74
- "src/views/foreign-currency-authorization/types.ts": "外币授权数据类型定义",
75
- "src/views/foreign-currency-fund-allocation": "外币资金调拨页面与业务配置目录",
76
- "src/views/foreign-currency-fund-allocation/api.ts": "外币资金调拨接口定义",
77
- "src/views/foreign-currency-fund-allocation/index.vue": "外币资金调拨页面",
78
- "src/views/foreign-currency-fund-allocation/options.ts": "外币资金调拨选项与状态配置",
79
- "src/views/foreign-currency-fund-allocation/types.ts": "外币资金调拨数据类型定义",
80
- "src/views/foreign-currency-position-forecast": "外币头寸预报页面及业务模块目录",
81
- "src/views/foreign-currency-position-forecast/api.ts": "外币头寸预报接口定义",
82
- "src/views/foreign-currency-position-forecast/components": "外币头寸预报页面组件目录",
83
- "src/views/foreign-currency-position-forecast/components/ForeignPositionForecastEditor.vue": "外币头寸预报编辑器组件",
84
- "src/views/foreign-currency-position-forecast/currency.ts": "外币头寸预报币种配置与格式化工具",
85
- "src/views/foreign-currency-position-forecast/index.vue": "外币头寸预报列表页面",
86
- "src/views/foreign-currency-position-forecast/model.ts": "外币头寸预报数据模型与表格类型",
87
- "src/views/foreign-currency-position-forecast/options.ts": "外币头寸预报选项、状态与列配置",
88
- "src/views/foreign-currency-position-forecast/runtime.ts": "外币头寸预报运行时校验与权限辅助逻辑",
89
- "src/views/foreign-currency-position-forecast/store.ts": "外币头寸预报页面状态管理",
90
- "src/views/foreign-currency-settlement": "外币结算页面与接口目录",
91
- "src/views/foreign-currency-settlement/api.ts": "外币结算接口定义",
92
- "src/views/foreign-currency-settlement/foreign-currency-settlement-base.css": "外币结算页面基础样式",
93
- "src/views/foreign-currency-settlement/index.vue": "外币结算页面",
94
- "src/views/foreign-currency-starting-amount-maintenance": "外币参数管理起点金额维护页面与接口目录",
95
- "src/views/foreign-currency-starting-amount-maintenance/api.ts": "起点金额维护查询、新增、修改、审批和删除 TAM 接口定义",
96
- "src/views/foreign-currency-starting-amount-maintenance/index.vue": "起点金额维护查询、批量处理与审批操作页面",
97
- "src/views/foreign-currency-time-parameter-management": "外币参数管理时间参数维护页面与接口目录",
98
- "src/views/foreign-currency-time-parameter-management/api.ts": "时间参数查询、新增、修改、删除和机构查询接口定义",
99
- "src/views/foreign-currency-time-parameter-management/index.vue": "时间参数查询、新增、修改和批量删除操作页面",
100
- "src/views/free-trade-zone-organization-management": "自贸区机构管理页面目录",
101
- "src/views/free-trade-zone-organization-management/index.vue": "自贸区机构管理页面",
102
- "src/views/fund-cockpit": "资金驾驶舱页面与接口目录",
103
- "src/views/fund-cockpit/api.ts": "资金驾驶舱数据接口",
104
- "src/views/fund-cockpit/index.css": "资金驾驶舱页面样式",
105
- "src/views/fund-cockpit/index.vue": "资金驾驶舱页面",
106
- "src/views/notice-management": "公告管理页面、接口与类型目录",
107
- "src/views/notice-management/api.ts": "公告管理接口定义",
108
- "src/views/notice-management/components": "公告管理富文本组件目录",
109
- "src/views/notice-management/components/NoticeRichTextEditor.vue": "公告富文本编辑器组件",
110
- "src/views/notice-management/edit.vue": "公告新增与编辑页面",
111
- "src/views/notice-management/index.vue": "公告管理列表页面",
112
- "src/views/notice-management/types.ts": "公告管理数据类型定义",
113
- "src/views/rmb-estimation": "人民币头寸预估页面及子组件资源目录",
114
- "src/views/rmb-estimation/api.ts": "人民币头寸预估接口定义",
115
- "src/views/rmb-estimation/assets": "人民币头寸预估静态资源目录",
116
- "src/views/rmb-estimation/assets/images": "人民币头寸预估示意图片目录",
117
- "src/views/rmb-estimation/assets/images/rmb-position-forecast-occurrence.jpg": "头寸预估发生额示意图",
118
- "src/views/rmb-estimation/assets/images/rmb-position-interbank-lending-estimation.jpg": "头寸预估同业拆借示意图",
119
- "src/views/rmb-estimation/assets/images/rmb-position-opening-reserve-estimation.jpg": "头寸预估期初储备示意图",
120
- "src/views/rmb-estimation/assets/styles": "人民币头寸预估样式资源目录",
121
- "src/views/rmb-estimation/assets/styles/index.css": "人民币头寸预估子模块样式",
122
- "src/views/rmb-estimation/components": "人民币头寸预估业务组件目录",
123
- "src/views/rmb-estimation/components/AmountLedger.vue": "金额台账组件",
124
- "src/views/rmb-estimation/components/EndOfDayBorrowingEstimation.vue": "日终借款预估组件",
125
- "src/views/rmb-estimation/components/ForecastOccurrence.vue": "预估发生额组件",
126
- "src/views/rmb-estimation/components/OpeningReserveEstimation.vue": "期初储备预估组件",
127
- "src/views/rmb-estimation/index.vue": "人民币头寸预估主页面",
128
- "src/views/rmb-estimation/utils": "人民币头寸预估工具函数目录",
129
- "src/views/rmb-estimation/utils/amount-unit.ts": "金额单位换算工具",
130
- "src/views/rmb-position-estimation": "人民币头寸预估页面与详情配置目录",
131
- "src/views/rmb-position-estimation/DetailedList.vue": "人民币头寸预估明细列表组件",
132
- "src/views/rmb-position-estimation/README.md": "人民币头寸预估模块说明",
133
- "src/views/rmb-position-estimation/api.ts": "人民币头寸预估接口定义",
134
- "src/views/rmb-position-estimation/detail-routes.ts": "人民币头寸预估详情路由配置",
135
- "src/views/rmb-position-estimation/detail-titles.json": "人民币头寸预估详情字段标题配置",
136
- "src/views/rmb-position-estimation/index.vue": "人民币头寸预估列表页面",
137
- "src/views/rmb-position-estimation/types.ts": "人民币头寸预估数据类型定义",
138
- "src/views/rmb-position-forecast": "人民币头寸预报页面及表单详情模块目录",
139
- "src/views/rmb-position-forecast/api.ts": "人民币头寸预报接口定义",
140
- "src/views/rmb-position-forecast/backups": "人民币头寸预报历史布局备份目录",
141
- "src/views/rmb-position-forecast/backups/RmbPositionForecastEditor.before-reference-layout.vue.bak": "人民币头寸预报编辑器旧版布局备份",
142
- "src/views/rmb-position-forecast/backups/form.before-reference-layout.vue.bak": "人民币头寸预报表单旧版布局备份",
143
- "src/views/rmb-position-forecast/components": "人民币头寸预报编辑组件目录",
144
- "src/views/rmb-position-forecast/components/RmbPositionForecastEditor.vue": "人民币头寸预报编辑器组件",
145
- "src/views/rmb-position-forecast/detail.vue": "人民币头寸预报详情页",
146
- "src/views/rmb-position-forecast/form.vue": "人民币头寸预报表单页",
147
- "src/views/rmb-position-forecast/index.vue": "人民币头寸预报列表页面",
148
- "src/views/rmb-position-forecast/model.ts": "人民币头寸预报数据模型与表格字段",
149
- "src/views/rmb-position-forecast/runtime.ts": "人民币头寸预报运行时校验、权限与业务辅助逻辑",
150
- "tsconfig.app.json": "前端应用 TypeScript 配置",
151
- "tsconfig.json": "项目 TypeScript 总配置",
152
- "tsconfig.node.json": "Node 与 Vite 配置的 TypeScript 配置",
153
- "vite.config.ts": "Vite 开发与构建配置",
154
- "package.json/$npm-scripts/name=dev": "启动 Vite 前端开发服务器",
155
- "package.json/$npm-scripts/name=build": "执行类型检查并构建前端生产包",
156
- "package.json/$npm-scripts/name=preview": "预览已构建的前端生产包",
157
- "package.json/$npm-scripts/name=build-only": "仅执行 Vite 前端生产构建",
158
- "package.json/$npm-scripts/name=type-check": "执行 Vue TypeScript 类型检查",
159
- "package.json/$npm-scripts/name=%E5%8F%91%E5%B8%83": "执行 npm 包发布命令",
160
- "package.json/$npm-scripts/name=%E4%BF%AE%E8%AE%A2%20": "升级 npm 包修订版本",
161
- "package.json/$npm-scripts/name=%E6%AC%A1%E7%89%88%E6%9C%AC": "升级 npm 包次版本",
162
- "package.json/$npm-scripts/name=%E4%B8%BB%E7%89%88%E6%9C%AC": "升级 npm 包主版本",
163
- "package.json/$npm-scripts/name=%E7%99%BB%E5%BD%95": "登录 npm 账号",
164
- "package.json/$npm-scripts/name=%E4%B8%80%E9%94%AE%E5%8F%91%E5%B8%83": "升级修订版本并发布 npm 包"
165
- }
@@ -1,8 +0,0 @@
1
- {
2
- "explorer.fileNesting.enabled": true,
3
- "explorer.fileNesting.patterns": {
4
- "tsconfig.json": "tsconfig.*.json, env.d.ts, typed-router.d.ts",
5
- "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
6
- "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .oxfmt*, .prettier*, prettier*, .editorconfig"
7
- }
8
- }