verce-vue-test 0.0.83 → 0.0.85
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 +1 -1
- package/src/App.vue +8 -0
- package/src/router/index.ts +10 -0
- package/src/views/LoginView.vue +11 -1
- package/src/views/foreign-currency-authorization/api.ts +43 -0
- package/src/views/foreign-currency-authorization/index.vue +734 -0
- package/src/views/foreign-currency-authorization/mock.ts +116 -0
- package/src/views/foreign-currency-authorization/options.ts +78 -0
- package/src/views/foreign-currency-authorization/types.ts +85 -0
- package/src/views/foreign-currency-settlement/api.ts +77 -0
- package/src/views/foreign-currency-settlement/components/ForeignSettlementDetailView.vue +121 -0
- package/src/views/foreign-currency-settlement/components/ForeignSettlementFlowPanel.vue +601 -0
- package/src/views/foreign-currency-settlement/components/ForeignSettlementForecastPanel.vue +637 -0
- package/src/views/foreign-currency-settlement/foreign-currency-settlement.css +314 -0
- package/src/views/foreign-currency-settlement/index.vue +273 -0
- package/src/views/foreign-currency-settlement/options.ts +300 -0
- package/src/views/foreign-currency-settlement/types.ts +194 -0
- package/src/views/foreign-currency-settlement/utils.ts +109 -0
- package/src/views/rmb-position-estimation/README.md +7 -4
- package/src/views/rmb-position-estimation/index.vue +56 -22
- package/copy-path-0.1.2.vsix +0 -0
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -44,6 +44,8 @@ const searchableMenus: MenuSearchItem[] = [
|
|
|
44
44
|
{ value: '分行看板', path: '/position-forecast' },
|
|
45
45
|
{ value: '人民币头寸预报', path: '/rmb-position-forecast' },
|
|
46
46
|
{ value: '外币头寸预报', path: '/foreign-currency-position-forecast' },
|
|
47
|
+
{ value: '外币授权', path: '/foreign-currency-authorization' },
|
|
48
|
+
{ value: '外币手工核销', path: '/foreign-currency-settlement' },
|
|
47
49
|
{ value: '预报员页看板', path: '/position-forecast-execution' },
|
|
48
50
|
{ value: '人民币手工核销', path: '/forecast-info' },
|
|
49
51
|
{ value: '人民币头寸匡算', path: '/rmb-position-estimation' },
|
|
@@ -172,6 +174,12 @@ function toggleCollapse() {
|
|
|
172
174
|
<el-menu-item index="/foreign-currency-position-forecast">
|
|
173
175
|
<span>外币头寸预报</span>
|
|
174
176
|
</el-menu-item>
|
|
177
|
+
<el-menu-item index="/foreign-currency-authorization">
|
|
178
|
+
<span>外币授权</span>
|
|
179
|
+
</el-menu-item>
|
|
180
|
+
<el-menu-item index="/foreign-currency-settlement">
|
|
181
|
+
<span>外币手工核销</span>
|
|
182
|
+
</el-menu-item>
|
|
175
183
|
</el-sub-menu>
|
|
176
184
|
<el-menu-item index="/notice-announcement">
|
|
177
185
|
<el-icon><Bell /></el-icon>
|
package/src/router/index.ts
CHANGED
|
@@ -80,6 +80,16 @@ const router = createRouter({
|
|
|
80
80
|
name: 'foreignCurrencyPositionForecast',
|
|
81
81
|
component: () => import('../views/foreign-currency-position-forecast/index.vue'),
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
path: '/foreign-currency-authorization',
|
|
85
|
+
name: 'foreignCurrencyAuthorization',
|
|
86
|
+
component: () => import('../views/foreign-currency-authorization/index.vue'),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
path: '/foreign-currency-settlement',
|
|
90
|
+
name: 'foreignCurrencySettlement',
|
|
91
|
+
component: () => import('../views/foreign-currency-settlement/index.vue'),
|
|
92
|
+
},
|
|
83
93
|
{
|
|
84
94
|
path: '/position-forecast-execution',
|
|
85
95
|
name: 'positionForecastExecution',
|
package/src/views/LoginView.vue
CHANGED
|
@@ -36,6 +36,7 @@ const handleLogin = async () => {
|
|
|
36
36
|
<el-form ref="formRef" :model="loginStore" :rules="rules" size="large">
|
|
37
37
|
<el-form-item prop="username">
|
|
38
38
|
<el-input
|
|
39
|
+
id="login-username-input"
|
|
39
40
|
v-model="loginStore.username"
|
|
40
41
|
placeholder="请输入用户名"
|
|
41
42
|
:prefix-icon="User"
|
|
@@ -43,6 +44,7 @@ const handleLogin = async () => {
|
|
|
43
44
|
</el-form-item>
|
|
44
45
|
<el-form-item prop="password">
|
|
45
46
|
<el-input
|
|
47
|
+
id="login-password-input"
|
|
46
48
|
v-model="loginStore.password"
|
|
47
49
|
type="password"
|
|
48
50
|
placeholder="请输入密码"
|
|
@@ -54,7 +56,15 @@ const handleLogin = async () => {
|
|
|
54
56
|
<el-checkbox v-model="loginStore.remember">记住我</el-checkbox>
|
|
55
57
|
</el-form-item>
|
|
56
58
|
<el-form-item>
|
|
57
|
-
<el-button
|
|
59
|
+
<el-button
|
|
60
|
+
id="login-submit-button"
|
|
61
|
+
type="primary"
|
|
62
|
+
class="login-btn"
|
|
63
|
+
:loading="loginStore.loading"
|
|
64
|
+
@click="handleLogin"
|
|
65
|
+
>
|
|
66
|
+
登录
|
|
67
|
+
</el-button>
|
|
58
68
|
</el-form-item>
|
|
59
69
|
</el-form>
|
|
60
70
|
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { mockForeignCurrencyAuthorizationRows } from './mock'
|
|
2
|
+
import type {
|
|
3
|
+
ForeignCurrencyAuthorizationFilter,
|
|
4
|
+
ForeignCurrencyAuthorizationListResult,
|
|
5
|
+
} from './types'
|
|
6
|
+
|
|
7
|
+
function includesKeyword(value: string, keyword: string) {
|
|
8
|
+
return value.toLocaleLowerCase('zh-CN').includes(keyword.toLocaleLowerCase('zh-CN'))
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 截图未提供 TAM 交易码,当前以独立演示数据完成查询与分页。
|
|
13
|
+
* 接入真实接口时仅需替换本函数,页面状态和字段模型可以保持不变。
|
|
14
|
+
*/
|
|
15
|
+
export async function queryForeignCurrencyAuthorizations(
|
|
16
|
+
filter: ForeignCurrencyAuthorizationFilter,
|
|
17
|
+
page: number,
|
|
18
|
+
pageSize: number,
|
|
19
|
+
signal?: AbortSignal,
|
|
20
|
+
): Promise<ForeignCurrencyAuthorizationListResult> {
|
|
21
|
+
if (signal?.aborted) throw new DOMException('查询已取消', 'AbortError')
|
|
22
|
+
|
|
23
|
+
const customerCode = filter.custCode.trim()
|
|
24
|
+
const result = mockForeignCurrencyAuthorizationRows
|
|
25
|
+
.filter((row) => !filter.posDate || row.forecastDate === filter.posDate)
|
|
26
|
+
.filter((row) => !filter.planDate || row.planDate === filter.planDate)
|
|
27
|
+
.filter((row) => !filter.refType || row.refType === filter.refType)
|
|
28
|
+
.filter((row) => !filter.custType || row.custKind === filter.custType)
|
|
29
|
+
.filter((row) => !customerCode || includesKeyword(row.custCode, customerCode))
|
|
30
|
+
.filter((row) => !filter.orgId || row.orgId === filter.orgId)
|
|
31
|
+
.filter((row) => !filter.currency || row.currency === filter.currency)
|
|
32
|
+
.sort((left, right) => (
|
|
33
|
+
right.forecastDate.localeCompare(left.forecastDate) || right.id.localeCompare(left.id)
|
|
34
|
+
))
|
|
35
|
+
|
|
36
|
+
if (signal?.aborted) throw new DOMException('查询已取消', 'AbortError')
|
|
37
|
+
|
|
38
|
+
const start = (page - 1) * pageSize
|
|
39
|
+
return {
|
|
40
|
+
resultList: result.slice(start, start + pageSize),
|
|
41
|
+
totalCount: result.length,
|
|
42
|
+
}
|
|
43
|
+
}
|