verce-vue-test 0.0.58 → 0.0.60
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/mini2.0-main/.playwright-cli/page-2026-07-07T07-17-06-007Z.yml +61 -0
- package/mini2.0-main/.playwright-cli/page-2026-07-07T07-18-36-454Z.yml +0 -0
- package/mini2.0-main/.playwright-cli/page-2026-07-07T07-18-47-595Z.yml +66 -0
- package/mini2.0-main/.playwright-cli/page-2026-07-07T07-18-59-176Z.yml +0 -0
- package/mini2.0-main/src/App.vue +30 -1
- package/mini2.0-main/src/api/pbc-position.ts +12 -4
- package/mini2.0-main/src/api/rmb-position.ts +2 -1
- package/mini2.0-main/src/api/tam.ts +5 -2
- package/mini2.0-main/src/api/user.ts +21 -0
- package/mini2.0-main/src/auto-imports.d.ts +0 -6
- package/mini2.0-main/src/components/AppTitleBar.vue +376 -0
- package/mini2.0-main/src/components.d.ts +1 -1
- package/mini2.0-main/src/core/mxApi/index.ts +5 -0
- package/mini2.0-main/src/main.ts +1 -0
- package/mini2.0-main/src/router/index.ts +17 -17
- package/mini2.0-main/src/stores/app.ts +56 -2
- package/mini2.0-main/src/styles/vant-overrides.css +42 -0
- package/mini2.0-main/src/utils/request.ts +4 -4
- package/mini2.0-main/src/utils/toast.ts +61 -0
- package/mini2.0-main/src/views/article-detail/index.vue +4 -15
- package/mini2.0-main/src/views/article-edit/index.vue +7 -14
- package/mini2.0-main/src/views/articles/index.vue +0 -8
- package/mini2.0-main/src/views/clearing-detail/index.vue +0 -23
- package/mini2.0-main/src/views/foreign-position/index.vue +0 -23
- package/mini2.0-main/src/views/login/index.vue +20 -6
- package/mini2.0-main/src/views/mine/index.vue +3 -4
- package/mini2.0-main/src/views/net-debit/index.vue +0 -23
- package/mini2.0-main/src/views/pbc-position/index.vue +5 -75
- package/mini2.0-main/src/views/position-estimate/index.vue +0 -23
- package/mini2.0-main/src/views/rmb-position/index.vue +12 -65
- package/mini2.0-main/src/views/rmb-position-create/index.vue +9 -46
- package/mini2.0-main/src/views/rmb-position-detail/index.vue +3 -40
- package/mini2.0-main/src/views/settings/index.vue +1 -54
- package/mini2.0-main/src/views/warning/index.vue +0 -23
- package/mini2.0-main/vite.config.ts +4 -2
- package/package.json +1 -1
- package/mini2.0-main/src/components/AnnouncementTitleBar.vue +0 -222
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
- generic [active] [ref=e1]:
|
|
2
|
+
- generic [ref=e3]:
|
|
3
|
+
- banner [ref=e4]:
|
|
4
|
+
- generic [ref=e5]:
|
|
5
|
+
- heading "头寸管理平台" [level=1]
|
|
6
|
+
- group "页面操作" [ref=e9]:
|
|
7
|
+
- button "更多" [ref=e10] [cursor=pointer]
|
|
8
|
+
- button "关闭" [ref=e16] [cursor=pointer]
|
|
9
|
+
- main [ref=e82]:
|
|
10
|
+
- region "欢迎登录头寸管理系统" [ref=e83]:
|
|
11
|
+
- img "欢迎登录头寸管理系统" [ref=e84]
|
|
12
|
+
- generic [ref=e85]:
|
|
13
|
+
- heading "常用功能" [level=2] [ref=e88]
|
|
14
|
+
- generic [ref=e89]:
|
|
15
|
+
- button "人民币头寸 预报及查询 人民币头寸预报及查询" [ref=e90]:
|
|
16
|
+
- generic [ref=e91]:
|
|
17
|
+
- generic [ref=e92]: 人民币头寸
|
|
18
|
+
- generic [ref=e93]: 预报及查询
|
|
19
|
+
- generic [ref=e95]:
|
|
20
|
+
- img "人民币头寸预报及查询"
|
|
21
|
+
- button "外币头寸 预报及查询 外币头寸预报及查询" [ref=e96]:
|
|
22
|
+
- generic [ref=e97]:
|
|
23
|
+
- generic [ref=e98]: 外币头寸
|
|
24
|
+
- generic [ref=e99]: 预报及查询
|
|
25
|
+
- generic [ref=e101]:
|
|
26
|
+
- img "外币头寸预报及查询"
|
|
27
|
+
- button "人行头寸 余额查询 人行头寸余额查询" [ref=e102]:
|
|
28
|
+
- generic [ref=e103]:
|
|
29
|
+
- generic [ref=e104]: 人行头寸
|
|
30
|
+
- generic [ref=e105]: 余额查询
|
|
31
|
+
- generic [ref=e107]:
|
|
32
|
+
- img "人行头寸余额查询"
|
|
33
|
+
- button "头寸匡算 头寸匡算" [ref=e108]:
|
|
34
|
+
- generic [ref=e110]: 头寸匡算
|
|
35
|
+
- generic [ref=e112]:
|
|
36
|
+
- img "头寸匡算"
|
|
37
|
+
- button "人民币净借记 可用额度管理 人民币净借记可用额度管理" [ref=e113]:
|
|
38
|
+
- generic [ref=e114]:
|
|
39
|
+
- generic [ref=e115]: 人民币净借记
|
|
40
|
+
- generic [ref=e116]: 可用额度管理
|
|
41
|
+
- generic [ref=e118]:
|
|
42
|
+
- img "人民币净借记可用额度管理"
|
|
43
|
+
- button "人民币小额网银 清算场次明细 人民币小额网银清算场次明细" [ref=e119]:
|
|
44
|
+
- generic [ref=e120]:
|
|
45
|
+
- generic [ref=e121]: 人民币小额网银
|
|
46
|
+
- generic [ref=e122]: 清算场次明细
|
|
47
|
+
- generic [ref=e124]:
|
|
48
|
+
- img "人民币小额网银清算场次明细"
|
|
49
|
+
- button "预警信息 预警信息" [ref=e125]:
|
|
50
|
+
- generic [ref=e127]: 预警信息
|
|
51
|
+
- generic [ref=e129]:
|
|
52
|
+
- img "预警信息"
|
|
53
|
+
- tablist [ref=e131]:
|
|
54
|
+
- tab " 首页" [selected] [ref=e132] [cursor=pointer]:
|
|
55
|
+
- generic [ref=e134]:
|
|
56
|
+
- generic [ref=e135]: 首页
|
|
57
|
+
- tab " 我的" [ref=e136] [cursor=pointer]:
|
|
58
|
+
- generic [ref=e138]:
|
|
59
|
+
- generic [ref=e139]: 我的
|
|
60
|
+
- dialog [ref=e76]:
|
|
61
|
+
- generic [ref=e77]: 连接错误 502
|
|
File without changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
- generic [ref=e3]:
|
|
2
|
+
- banner [ref=e4]:
|
|
3
|
+
- generic [ref=e5]:
|
|
4
|
+
- heading "头寸管理平台" [level=1]
|
|
5
|
+
- generic [ref=e6]:
|
|
6
|
+
- group "页面操作" [ref=e7]:
|
|
7
|
+
- button "更多" [expanded] [active] [ref=e8] [cursor=pointer]
|
|
8
|
+
- button "关闭" [ref=e14] [cursor=pointer]
|
|
9
|
+
- menu "更多菜单" [ref=e76]:
|
|
10
|
+
- menuitem " 回到首页" [ref=e77] [cursor=pointer]:
|
|
11
|
+
- generic [ref=e78]:
|
|
12
|
+
- generic [ref=e79]: 回到首页
|
|
13
|
+
- menuitem " 设置" [ref=e80] [cursor=pointer]:
|
|
14
|
+
- generic [ref=e81]:
|
|
15
|
+
- generic [ref=e82]: 设置
|
|
16
|
+
- main [ref=e16]:
|
|
17
|
+
- region "欢迎登录头寸管理系统" [ref=e17]:
|
|
18
|
+
- img "欢迎登录头寸管理系统" [ref=e18]
|
|
19
|
+
- generic [ref=e19]:
|
|
20
|
+
- heading "常用功能" [level=2] [ref=e22]
|
|
21
|
+
- generic [ref=e23]:
|
|
22
|
+
- button "人民币头寸 预报及查询 人民币头寸预报及查询" [ref=e24]:
|
|
23
|
+
- generic [ref=e25]:
|
|
24
|
+
- generic [ref=e26]: 人民币头寸
|
|
25
|
+
- generic [ref=e27]: 预报及查询
|
|
26
|
+
- generic [ref=e29]:
|
|
27
|
+
- img "人民币头寸预报及查询"
|
|
28
|
+
- button "外币头寸 预报及查询 外币头寸预报及查询" [ref=e30]:
|
|
29
|
+
- generic [ref=e31]:
|
|
30
|
+
- generic [ref=e32]: 外币头寸
|
|
31
|
+
- generic [ref=e33]: 预报及查询
|
|
32
|
+
- generic [ref=e35]:
|
|
33
|
+
- img "外币头寸预报及查询"
|
|
34
|
+
- button "人行头寸 余额查询 人行头寸余额查询" [ref=e36]:
|
|
35
|
+
- generic [ref=e37]:
|
|
36
|
+
- generic [ref=e38]: 人行头寸
|
|
37
|
+
- generic [ref=e39]: 余额查询
|
|
38
|
+
- generic [ref=e41]:
|
|
39
|
+
- img "人行头寸余额查询"
|
|
40
|
+
- button "头寸匡算 头寸匡算" [ref=e42]:
|
|
41
|
+
- generic [ref=e44]: 头寸匡算
|
|
42
|
+
- generic [ref=e46]:
|
|
43
|
+
- img "头寸匡算"
|
|
44
|
+
- button "人民币净借记 可用额度管理 人民币净借记可用额度管理" [ref=e47]:
|
|
45
|
+
- generic [ref=e48]:
|
|
46
|
+
- generic [ref=e49]: 人民币净借记
|
|
47
|
+
- generic [ref=e50]: 可用额度管理
|
|
48
|
+
- generic [ref=e52]:
|
|
49
|
+
- img "人民币净借记可用额度管理"
|
|
50
|
+
- button "人民币小额网银 清算场次明细 人民币小额网银清算场次明细" [ref=e53]:
|
|
51
|
+
- generic [ref=e54]:
|
|
52
|
+
- generic [ref=e55]: 人民币小额网银
|
|
53
|
+
- generic [ref=e56]: 清算场次明细
|
|
54
|
+
- generic [ref=e58]:
|
|
55
|
+
- img "人民币小额网银清算场次明细"
|
|
56
|
+
- button "预警信息 预警信息" [ref=e59]:
|
|
57
|
+
- generic [ref=e61]: 预警信息
|
|
58
|
+
- generic [ref=e63]:
|
|
59
|
+
- img "预警信息"
|
|
60
|
+
- tablist [ref=e65]:
|
|
61
|
+
- tab " 首页" [selected] [ref=e66] [cursor=pointer]:
|
|
62
|
+
- generic [ref=e68]:
|
|
63
|
+
- generic [ref=e69]: 首页
|
|
64
|
+
- tab " 我的" [ref=e70] [cursor=pointer]:
|
|
65
|
+
- generic [ref=e72]:
|
|
66
|
+
- generic [ref=e73]: 我的
|
|
File without changes
|
package/mini2.0-main/src/App.vue
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import AppTitleBar from '@/components/AppTitleBar.vue'
|
|
2
3
|
import { useAppStore } from '@/stores/app'
|
|
3
4
|
|
|
4
5
|
const route = useRoute()
|
|
@@ -16,6 +17,9 @@ const tabItems = computed(() =>
|
|
|
16
17
|
)
|
|
17
18
|
|
|
18
19
|
const showTabbar = computed(() => route.meta.hideTabbar !== true)
|
|
20
|
+
const noBackRouteNames = new Set(['Home', 'Login', 'Articles', 'Mine'])
|
|
21
|
+
const headerTitle = computed(() => String(route.meta.title || ''))
|
|
22
|
+
const showHeaderBack = computed(() => !noBackRouteNames.has(String(route.name || '')))
|
|
19
23
|
|
|
20
24
|
const activeTab = computed({
|
|
21
25
|
get: () => route.path,
|
|
@@ -25,10 +29,30 @@ const activeTab = computed({
|
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
})
|
|
32
|
+
|
|
33
|
+
function goHomeFromCapsuleMenu() {
|
|
34
|
+
if (route.name !== 'Home') {
|
|
35
|
+
router.replace({ name: 'Home' })
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function goSettingsFromCapsuleMenu() {
|
|
40
|
+
if (route.name !== 'Settings') {
|
|
41
|
+
router.push({ name: 'Settings' })
|
|
42
|
+
}
|
|
43
|
+
}
|
|
28
44
|
</script>
|
|
29
45
|
|
|
30
46
|
<template>
|
|
31
47
|
<div class="app-shell">
|
|
48
|
+
<AppTitleBar
|
|
49
|
+
:title="headerTitle"
|
|
50
|
+
:show-back="showHeaderBack"
|
|
51
|
+
@back="router.back()"
|
|
52
|
+
@menu-home="goHomeFromCapsuleMenu"
|
|
53
|
+
@menu-settings="goSettingsFromCapsuleMenu"
|
|
54
|
+
/>
|
|
55
|
+
|
|
32
56
|
<router-view v-slot="{ Component }">
|
|
33
57
|
<keep-alive include="HomePage">
|
|
34
58
|
<component :is="Component" />
|
|
@@ -36,7 +60,12 @@ const activeTab = computed({
|
|
|
36
60
|
</router-view>
|
|
37
61
|
|
|
38
62
|
<van-tabbar v-if="showTabbar" v-model="activeTab" fixed placeholder safe-area-inset-bottom>
|
|
39
|
-
<van-tabbar-item
|
|
63
|
+
<van-tabbar-item
|
|
64
|
+
v-for="item in tabItems"
|
|
65
|
+
:key="item.path"
|
|
66
|
+
:name="item.path"
|
|
67
|
+
:icon="item.icon"
|
|
68
|
+
>
|
|
40
69
|
{{ item.title }}
|
|
41
70
|
</van-tabbar-item>
|
|
42
71
|
</van-tabbar>
|
|
@@ -80,9 +80,11 @@ type PbcPositionSendBody = {
|
|
|
80
80
|
refNo?: string
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
type PbcPositionQueryBody =
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
type PbcPositionQueryBody =
|
|
84
|
+
| PbcPositionRecord[]
|
|
85
|
+
| {
|
|
86
|
+
resultList?: PbcPositionRecord[]
|
|
87
|
+
}
|
|
86
88
|
|
|
87
89
|
type PbcPositionDetailRequestBody = {
|
|
88
90
|
refNo: string
|
|
@@ -142,7 +144,7 @@ export async function queryPbcPositionBalance(requestRefNo: string): Promise<Pbc
|
|
|
142
144
|
console.log('[人行头寸余额查询1入参]', queryPayload)
|
|
143
145
|
|
|
144
146
|
const queryResponse = await queryPbcPositionList(queryPayload)
|
|
145
|
-
const records = queryResponse.body
|
|
147
|
+
const records = getPbcPositionRecords(queryResponse.body)
|
|
146
148
|
|
|
147
149
|
if (records.length === 0) {
|
|
148
150
|
throw new Error('人行头寸余额查询结果为空')
|
|
@@ -168,3 +170,9 @@ export async function queryPbcPositionBalance(requestRefNo: string): Promise<Pbc
|
|
|
168
170
|
|
|
169
171
|
throw new Error(`未查询到编号 ${requestRefNo} 对应的余额结果`)
|
|
170
172
|
}
|
|
173
|
+
|
|
174
|
+
function getPbcPositionRecords(body: PbcPositionQueryBody) {
|
|
175
|
+
if (Array.isArray(body)) return body
|
|
176
|
+
|
|
177
|
+
return body.resultList || []
|
|
178
|
+
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
type TamRequestPayload,
|
|
5
5
|
type TamResponse,
|
|
6
6
|
} from '@/api/tam'
|
|
7
|
+
import { useAppStore } from '@/stores/app'
|
|
7
8
|
|
|
8
9
|
export type RmbForecastRecord = {
|
|
9
10
|
/** 业务类型,用于映射列表中的业务名称。 */
|
|
@@ -171,7 +172,7 @@ export function buildRmbForecastQueryPayload({
|
|
|
171
172
|
pageIndex,
|
|
172
173
|
pageSize,
|
|
173
174
|
}: QueryOptions): RmbForecastQueryPayload {
|
|
174
|
-
const tranDate = normalizeDate(form.tranDate)
|
|
175
|
+
const tranDate = normalizeDate(form.tranDate || useAppStore().systemWorkDate)
|
|
175
176
|
|
|
176
177
|
// 当前视图只提供交易日期、落地机构、起始金额、截止金额,其余查询字段按接口约定传空。
|
|
177
178
|
return buildTamRequestPayload({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import dayjs from 'dayjs'
|
|
2
2
|
import { request } from '@/core/request'
|
|
3
|
+
import { useAppStore } from '@/stores/app'
|
|
3
4
|
import { useUserStore } from '@/stores/user'
|
|
4
5
|
|
|
5
6
|
export type TamAppHead = {
|
|
@@ -72,7 +73,9 @@ export function buildTamRequestPayload<TBody>({
|
|
|
72
73
|
head,
|
|
73
74
|
}: BuildTamPayloadOptions<TBody>): TamRequestPayload<TBody> {
|
|
74
75
|
const now = dayjs()
|
|
76
|
+
const appStore = useAppStore()
|
|
75
77
|
const loginContext = getTamLoginContext()
|
|
78
|
+
const tranDate = appStore.systemWorkDateCompact
|
|
76
79
|
|
|
77
80
|
return {
|
|
78
81
|
appHead: {
|
|
@@ -88,7 +91,7 @@ export function buildTamRequestPayload<TBody>({
|
|
|
88
91
|
branchId: loginContext.branchId,
|
|
89
92
|
consumerId: 'TAM001',
|
|
90
93
|
// 规则:当前登录用户 ID + 日期 + 8 位运行期递增序列。
|
|
91
|
-
consumerSeqNo: `${loginContext.userId}${
|
|
94
|
+
consumerSeqNo: `${loginContext.userId}${tranDate}${createConsumerSeq()}`,
|
|
92
95
|
digitalSign: '',
|
|
93
96
|
fileFlag: 'N',
|
|
94
97
|
filePath: '',
|
|
@@ -98,7 +101,7 @@ export function buildTamRequestPayload<TBody>({
|
|
|
98
101
|
spanId: '',
|
|
99
102
|
traceId: '',
|
|
100
103
|
tranCode,
|
|
101
|
-
tranDate
|
|
104
|
+
tranDate,
|
|
102
105
|
tranTimestamp: now.format('HHmmss'),
|
|
103
106
|
userId: loginContext.userId,
|
|
104
107
|
verifyUserId: '',
|
|
@@ -14,6 +14,20 @@ export type UserOrg = {
|
|
|
14
14
|
orgId: string
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export type LastLoginTimeInfo = {
|
|
18
|
+
loginTm?: string
|
|
19
|
+
userRealName?: string
|
|
20
|
+
reqMsg?: string
|
|
21
|
+
optType?: string
|
|
22
|
+
loginLogId?: string
|
|
23
|
+
optDesc?: string
|
|
24
|
+
loginUserName?: string
|
|
25
|
+
respMsg?: string
|
|
26
|
+
appDt?: string
|
|
27
|
+
respCd?: string
|
|
28
|
+
reqIpAddr?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
17
31
|
export function getUserInfoApi(id: number) {
|
|
18
32
|
return request<UserInfo>({ url: `/user/${id}` })
|
|
19
33
|
}
|
|
@@ -28,6 +42,13 @@ export function getOrgByUserNameApi(username: string) {
|
|
|
28
42
|
})
|
|
29
43
|
}
|
|
30
44
|
|
|
45
|
+
export function getLastLoginTimeApi() {
|
|
46
|
+
return request<LastLoginTimeInfo>({
|
|
47
|
+
url: '/uaa/log/lastLoginTime',
|
|
48
|
+
method: 'GET',
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
|
|
31
52
|
export function loginApi(data: { username: string; password: string }) {
|
|
32
53
|
return request<AuthTokenResponse>({
|
|
33
54
|
url: '/uaa/oauth/token',
|
|
@@ -10,7 +10,6 @@ declare global {
|
|
|
10
10
|
const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate
|
|
11
11
|
const asyncComputed: typeof import('@vueuse/core').asyncComputed
|
|
12
12
|
const autoResetRef: typeof import('@vueuse/core').autoResetRef
|
|
13
|
-
const closeToast: typeof import('vant').closeToast
|
|
14
13
|
const computed: typeof import('vue').computed
|
|
15
14
|
const computedAsync: typeof import('@vueuse/core').computedAsync
|
|
16
15
|
const computedEager: typeof import('@vueuse/core').computedEager
|
|
@@ -107,8 +106,6 @@ declare global {
|
|
|
107
106
|
const shallowRef: typeof import('vue').shallowRef
|
|
108
107
|
const showConfirmDialog: typeof import('vant').showConfirmDialog
|
|
109
108
|
const showDialog: typeof import('vant').showDialog
|
|
110
|
-
const showLoadingToast: typeof import('vant').showLoadingToast
|
|
111
|
-
const showToast: typeof import('vant').showToast
|
|
112
109
|
const storeToRefs: typeof import('pinia').storeToRefs
|
|
113
110
|
const syncRef: typeof import('@vueuse/core').syncRef
|
|
114
111
|
const syncRefs: typeof import('@vueuse/core').syncRefs
|
|
@@ -331,7 +328,6 @@ declare module 'vue' {
|
|
|
331
328
|
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
|
|
332
329
|
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
|
|
333
330
|
readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
|
|
334
|
-
readonly closeToast: UnwrapRef<typeof import('vant')['closeToast']>
|
|
335
331
|
readonly computed: UnwrapRef<typeof import('vue')['computed']>
|
|
336
332
|
readonly computedAsync: UnwrapRef<typeof import('@vueuse/core')['computedAsync']>
|
|
337
333
|
readonly computedEager: UnwrapRef<typeof import('@vueuse/core')['computedEager']>
|
|
@@ -428,8 +424,6 @@ declare module 'vue' {
|
|
|
428
424
|
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
|
|
429
425
|
readonly showConfirmDialog: UnwrapRef<typeof import('vant')['showConfirmDialog']>
|
|
430
426
|
readonly showDialog: UnwrapRef<typeof import('vant')['showDialog']>
|
|
431
|
-
readonly showLoadingToast: UnwrapRef<typeof import('vant')['showLoadingToast']>
|
|
432
|
-
readonly showToast: UnwrapRef<typeof import('vant')['showToast']>
|
|
433
427
|
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
|
|
434
428
|
readonly syncRef: UnwrapRef<typeof import('@vueuse/core')['syncRef']>
|
|
435
429
|
readonly syncRefs: UnwrapRef<typeof import('@vueuse/core')['syncRefs']>
|