verce-vue-test 0.0.161 → 0.0.163
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/env.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/element-rewrite/ElInputThousandthChinese.vue +77 -0
- package/src/components/index.ts +8 -0
- package/src/utils/chinese-currency.ts +85 -0
- package/src/views/ForecastInfo/RmbPositionSettlement.vue +19 -37
- package/src/views/ForecastInfo/forecast-info.css +47 -7
- package/src/views/foreign-currency-position-forecast/currency.ts +1 -66
- package/src/views/foreign-currency-settlement/index.vue +131 -37
package/env.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare module 'vue' {
|
|
|
28
28
|
ElButtonPro: typeof import('./src/components/element-rewrite/ElButtonPro.vue')['default']
|
|
29
29
|
ElFormDialog: typeof import('./src/components/element-rewrite/ElFormDialog.vue')['default']
|
|
30
30
|
ElInputThousandth: typeof import('./src/components/element-rewrite/ElInputThousandth.vue')['default']
|
|
31
|
+
ElInputThousandthChinese: typeof import('./src/components/element-rewrite/ElInputThousandthChinese.vue')['default']
|
|
31
32
|
ElTablePro: typeof import('./src/components/element-rewrite/ElTablePro.vue')['default']
|
|
32
33
|
ElUploadButton: typeof import('./src/components/element-rewrite/ElUploadButton.vue')['default']
|
|
33
34
|
LoginSuccessNotification: typeof import('./src/components/LoginSuccessNotification.vue')['default']
|
package/package.json
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
4
|
+
import { formatChineseCurrency } from '@/utils/chinese-currency'
|
|
5
|
+
import ElInputThousandth from './ElInputThousandth.vue'
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'ElInputThousandthChinese',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const props = withDefaults(
|
|
13
|
+
defineProps<{
|
|
14
|
+
modelValue?: number | string
|
|
15
|
+
placeholder?: string
|
|
16
|
+
disabled?: boolean
|
|
17
|
+
decimalPlaces?: number
|
|
18
|
+
}>(),
|
|
19
|
+
{
|
|
20
|
+
modelValue: undefined,
|
|
21
|
+
placeholder: '',
|
|
22
|
+
disabled: false,
|
|
23
|
+
},
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
const emit = defineEmits<{
|
|
27
|
+
'update:modelValue': [value: number | undefined]
|
|
28
|
+
}>()
|
|
29
|
+
|
|
30
|
+
/** 绑定值始终沿用 ElInputThousandth 的普通数值输出,中文大写仅作为展示文本。 */
|
|
31
|
+
const chineseAmount = computed(() => formatChineseCurrency(props.modelValue).replace(/^人民币/, ''))
|
|
32
|
+
|
|
33
|
+
function handleModelValueUpdate(value: number | string | undefined) {
|
|
34
|
+
if (value === undefined || value === '') {
|
|
35
|
+
emit('update:modelValue', undefined)
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const numericValue = typeof value === 'number' ? value : Number(value)
|
|
40
|
+
emit('update:modelValue', Number.isFinite(numericValue) ? numericValue : undefined)
|
|
41
|
+
}
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<div class="el-input-thousandth-chinese">
|
|
46
|
+
<ElInputThousandth
|
|
47
|
+
v-bind="$attrs"
|
|
48
|
+
:model-value="modelValue"
|
|
49
|
+
:placeholder="placeholder"
|
|
50
|
+
:disabled="disabled"
|
|
51
|
+
:decimal-places="decimalPlaces"
|
|
52
|
+
@update:model-value="handleModelValueUpdate"
|
|
53
|
+
/>
|
|
54
|
+
<span
|
|
55
|
+
v-if="chineseAmount"
|
|
56
|
+
class="el-input-thousandth-chinese__hint"
|
|
57
|
+
aria-live="polite"
|
|
58
|
+
>
|
|
59
|
+
大写金额:{{ chineseAmount }}
|
|
60
|
+
</span>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
.el-input-thousandth-chinese {
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.el-input-thousandth-chinese__hint {
|
|
70
|
+
display: block;
|
|
71
|
+
margin-top: 4px;
|
|
72
|
+
color: var(--el-text-color-secondary);
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
line-height: 18px;
|
|
75
|
+
word-break: break-all;
|
|
76
|
+
}
|
|
77
|
+
</style>
|
package/src/components/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import DateRange from './element-rewrite/DateRange.vue'
|
|
|
7
7
|
import ElButtonPro from './element-rewrite/ElButtonPro.vue'
|
|
8
8
|
import ElFormDialog from './element-rewrite/ElFormDialog.vue'
|
|
9
9
|
import ElInputThousandth from './element-rewrite/ElInputThousandth.vue'
|
|
10
|
+
import ElInputThousandthChinese from './element-rewrite/ElInputThousandthChinese.vue'
|
|
10
11
|
import NumberRange from './element-rewrite/NumberRange.vue'
|
|
11
12
|
import ElTablePro from './element-rewrite/ElTablePro.vue'
|
|
12
13
|
import ElUploadButton from './element-rewrite/ElUploadButton.vue'
|
|
@@ -71,6 +72,13 @@ const globalComponentDefinitions: GlobalComponentDefinition[] = [
|
|
|
71
72
|
description: '支持千分位展示和数字输入格式化的金额输入框。',
|
|
72
73
|
filePath: 'src/components/element-rewrite/ElInputThousandth.vue',
|
|
73
74
|
},
|
|
75
|
+
{
|
|
76
|
+
name: 'ElInputThousandthChinese',
|
|
77
|
+
component: ElInputThousandthChinese,
|
|
78
|
+
category: '表单组件',
|
|
79
|
+
description: '在千分位金额输入框下方实时展示中文大写金额,绑定值保持为普通数值。',
|
|
80
|
+
filePath: 'src/components/element-rewrite/ElInputThousandthChinese.vue',
|
|
81
|
+
},
|
|
74
82
|
{
|
|
75
83
|
name: 'ElTablePro',
|
|
76
84
|
component: ElTablePro,
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const chineseDigits = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'] as const
|
|
2
|
+
const chineseGroupUnits = ['', '万', '亿', '兆'] as const
|
|
3
|
+
const chineseWithinGroupUnits = ['仟', '佰', '拾', ''] as const
|
|
4
|
+
|
|
5
|
+
export type ChineseCurrencyValue = number | string | null | undefined
|
|
6
|
+
|
|
7
|
+
/** 将四位数字分组转换为中文大写金额片段。 */
|
|
8
|
+
function formatChineseFourDigitGroup(value: number) {
|
|
9
|
+
const digits = String(value).padStart(4, '0')
|
|
10
|
+
let result = ''
|
|
11
|
+
let pendingZero = false
|
|
12
|
+
|
|
13
|
+
for (let index = 0; index < digits.length; index += 1) {
|
|
14
|
+
const digit = Number(digits[index])
|
|
15
|
+
if (digit === 0) {
|
|
16
|
+
if (result) pendingZero = true
|
|
17
|
+
continue
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (pendingZero) result += chineseDigits[0]
|
|
21
|
+
result += `${chineseDigits[digit] ?? ''}${chineseWithinGroupUnits[index] ?? ''}`
|
|
22
|
+
pendingZero = false
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return result
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 将整数按万、亿、兆分组转换为中文大写。 */
|
|
29
|
+
function formatChineseInteger(value: number) {
|
|
30
|
+
const groups: number[] = []
|
|
31
|
+
let remaining = Math.trunc(value)
|
|
32
|
+
while (remaining > 0) {
|
|
33
|
+
groups.push(remaining % 10_000)
|
|
34
|
+
remaining = Math.floor(remaining / 10_000)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let result = ''
|
|
38
|
+
let pendingZero = false
|
|
39
|
+
for (let index = groups.length - 1; index >= 0; index -= 1) {
|
|
40
|
+
const group = groups[index] ?? 0
|
|
41
|
+
if (group === 0) {
|
|
42
|
+
if (result) pendingZero = true
|
|
43
|
+
continue
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (result && (pendingZero || group < 1_000)) result += chineseDigits[0]
|
|
47
|
+
result += `${formatChineseFourDigitGroup(group)}${chineseGroupUnits[index] ?? ''}`
|
|
48
|
+
pendingZero = false
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return result
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function toAmountNumber(value: ChineseCurrencyValue) {
|
|
55
|
+
if (value === null || value === undefined) return null
|
|
56
|
+
|
|
57
|
+
const normalizedValue = typeof value === 'string'
|
|
58
|
+
? value.replace(/,/g, '').trim()
|
|
59
|
+
: value
|
|
60
|
+
|
|
61
|
+
if (normalizedValue === '') return null
|
|
62
|
+
|
|
63
|
+
const amount = typeof normalizedValue === 'number'
|
|
64
|
+
? normalizedValue
|
|
65
|
+
: Number(normalizedValue)
|
|
66
|
+
|
|
67
|
+
return Number.isFinite(amount) && amount >= 0 ? amount : null
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** 将金额转换为人民币大写文本,精确到角和分。 */
|
|
71
|
+
export function formatChineseCurrency(value: ChineseCurrencyValue) {
|
|
72
|
+
const amount = toAmountNumber(value)
|
|
73
|
+
if (amount === null) return ''
|
|
74
|
+
|
|
75
|
+
const roundedFen = Math.round(amount * 100)
|
|
76
|
+
const yuan = Math.floor(roundedFen / 100)
|
|
77
|
+
const jiao = Math.floor((roundedFen % 100) / 10)
|
|
78
|
+
const fen = roundedFen % 10
|
|
79
|
+
const integerPart = yuan === 0 ? '零' : formatChineseInteger(yuan)
|
|
80
|
+
const decimalPart = jiao === 0 && fen === 0
|
|
81
|
+
? '整'
|
|
82
|
+
: `${jiao > 0 ? `${chineseDigits[jiao]}角` : fen > 0 ? '零' : ''}${fen > 0 ? `${chineseDigits[fen]}分` : ''}`
|
|
83
|
+
|
|
84
|
+
return `人民币${integerPart}元${decimalPart}`
|
|
85
|
+
}
|
|
@@ -167,8 +167,8 @@ const amountColumnProps = new Set(['predAmt', 'verifyAmt'])
|
|
|
167
167
|
const forecastColumns: TableColumn[] = [
|
|
168
168
|
{ prop: 'predStatus', label: '预报状态', minWidth: 90 },
|
|
169
169
|
{ prop: 'payDirec', label: '收支方向', minWidth: 90 },
|
|
170
|
-
{ prop: 'predAmt', label: '
|
|
171
|
-
{ prop: 'verifyAmt', label: '
|
|
170
|
+
{ prop: 'predAmt', label: '预报金额(元)', minWidth: 126 },
|
|
171
|
+
{ prop: 'verifyAmt', label: '已核销金额(元)', minWidth: 134 },
|
|
172
172
|
{ prop: 'verifyStatus', label: '核销状态', minWidth: 90 },
|
|
173
173
|
{ prop: 'relsFlag', label: '释放状态', minWidth: 90 },
|
|
174
174
|
{ prop: 'payChannel', label: '支付渠道', minWidth: 96 },
|
|
@@ -189,7 +189,7 @@ const forecastColumns: TableColumn[] = [
|
|
|
189
189
|
]
|
|
190
190
|
|
|
191
191
|
const flowColumns: TableColumn[] = [
|
|
192
|
-
{ prop: 'amt', label: '
|
|
192
|
+
{ prop: 'amt', label: '金额(元)', minWidth: 108 },
|
|
193
193
|
{ prop: 'billDate', label: '出票日期', minWidth: 96 },
|
|
194
194
|
{ prop: 'billNo', label: '票号', minWidth: 82 },
|
|
195
195
|
{ prop: 'busiType', label: '支付系统业务类型', minWidth: 138 },
|
|
@@ -1205,7 +1205,7 @@ onBeforeUnmount(() => {
|
|
|
1205
1205
|
</div>
|
|
1206
1206
|
</header>
|
|
1207
1207
|
|
|
1208
|
-
<!--
|
|
1208
|
+
<!-- 左右布局显示三个常用筛选条件;上下布局隐藏支付渠道,追加核销状态、预报金额和客户名。 -->
|
|
1209
1209
|
<div class="forecast-info-filter" :class="{ 'forecast-info-filter--horizontal': cardLayout === 'horizontal' }">
|
|
1210
1210
|
<div class="forecast-info-filter__grid">
|
|
1211
1211
|
<label class="forecast-info-filter__item">
|
|
@@ -1277,7 +1277,7 @@ onBeforeUnmount(() => {
|
|
|
1277
1277
|
</label>
|
|
1278
1278
|
|
|
1279
1279
|
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item forecast-info-filter__item--range">
|
|
1280
|
-
<span
|
|
1280
|
+
<span>预报金额(万元)</span>
|
|
1281
1281
|
<NumberRange
|
|
1282
1282
|
v-model="forecastForm.amountRange"
|
|
1283
1283
|
class="forecast-info-filter__number-range"
|
|
@@ -1286,28 +1286,10 @@ onBeforeUnmount(() => {
|
|
|
1286
1286
|
max-placeholder="最大值"
|
|
1287
1287
|
:precision="2"
|
|
1288
1288
|
size="small"
|
|
1289
|
-
unit="
|
|
1289
|
+
unit="万"
|
|
1290
1290
|
/>
|
|
1291
1291
|
</label>
|
|
1292
1292
|
|
|
1293
|
-
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1294
|
-
<span>支付渠道</span>
|
|
1295
|
-
<el-select
|
|
1296
|
-
v-model="forecastForm.channel"
|
|
1297
|
-
:append-to="overlayContainer || undefined"
|
|
1298
|
-
size="small"
|
|
1299
|
-
placeholder="请选择"
|
|
1300
|
-
clearable
|
|
1301
|
-
>
|
|
1302
|
-
<el-option
|
|
1303
|
-
v-for="option in channelOptions"
|
|
1304
|
-
:key="option.value"
|
|
1305
|
-
:label="option.label"
|
|
1306
|
-
:value="option.value"
|
|
1307
|
-
/>
|
|
1308
|
-
</el-select>
|
|
1309
|
-
</label>
|
|
1310
|
-
|
|
1311
1293
|
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1312
1294
|
<span>客户名</span>
|
|
1313
1295
|
<el-input v-model="forecastForm.clientName" size="small" placeholder="请输入" clearable />
|
|
@@ -1325,27 +1307,27 @@ onBeforeUnmount(() => {
|
|
|
1325
1307
|
<section class="forecast-info-table-area" aria-label="预报信息列表">
|
|
1326
1308
|
<div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
|
|
1327
1309
|
<div class="forecast-info-forecast-summary__item">
|
|
1328
|
-
<span
|
|
1310
|
+
<span>预报收入总金额(元)</span>
|
|
1329
1311
|
<strong>{{ forecastSelectionSummary.predIncome }}</strong>
|
|
1330
1312
|
</div>
|
|
1331
1313
|
<div class="forecast-info-forecast-summary__item">
|
|
1332
|
-
<span
|
|
1314
|
+
<span>预报支出总金额(元)</span>
|
|
1333
1315
|
<strong>{{ forecastSelectionSummary.predExpense }}</strong>
|
|
1334
1316
|
</div>
|
|
1335
1317
|
<div class="forecast-info-forecast-summary__item">
|
|
1336
|
-
<span
|
|
1318
|
+
<span>预报轧差金额(元)</span>
|
|
1337
1319
|
<strong>{{ forecastSelectionSummary.predNet }}</strong>
|
|
1338
1320
|
</div>
|
|
1339
1321
|
<div class="forecast-info-forecast-summary__item">
|
|
1340
|
-
<span
|
|
1322
|
+
<span>核销收入总金额(元)</span>
|
|
1341
1323
|
<strong>{{ forecastSelectionSummary.verifiedIncome }}</strong>
|
|
1342
1324
|
</div>
|
|
1343
1325
|
<div class="forecast-info-forecast-summary__item">
|
|
1344
|
-
<span
|
|
1326
|
+
<span>核销支出总金额(元)</span>
|
|
1345
1327
|
<strong>{{ forecastSelectionSummary.verifiedExpense }}</strong>
|
|
1346
1328
|
</div>
|
|
1347
1329
|
<div class="forecast-info-forecast-summary__item">
|
|
1348
|
-
<span
|
|
1330
|
+
<span>核销轧差金额(元)</span>
|
|
1349
1331
|
<strong>{{ forecastSelectionSummary.verifiedNet }}</strong>
|
|
1350
1332
|
</div>
|
|
1351
1333
|
</div>
|
|
@@ -1678,7 +1660,7 @@ onBeforeUnmount(() => {
|
|
|
1678
1660
|
max-placeholder="最大值"
|
|
1679
1661
|
:precision="2"
|
|
1680
1662
|
size="small"
|
|
1681
|
-
unit="
|
|
1663
|
+
unit="万"
|
|
1682
1664
|
/>
|
|
1683
1665
|
</label>
|
|
1684
1666
|
|
|
@@ -1815,7 +1797,7 @@ onBeforeUnmount(() => {
|
|
|
1815
1797
|
</div>
|
|
1816
1798
|
</header>
|
|
1817
1799
|
|
|
1818
|
-
<!--
|
|
1800
|
+
<!-- 左右布局显示交易日期、收支方向和支付渠道;上下布局隐藏支付渠道,追加核销状态、金额范围和户名条件。 -->
|
|
1819
1801
|
<div class="forecast-info-filter" :class="{ 'forecast-info-filter--horizontal': cardLayout === 'horizontal' }">
|
|
1820
1802
|
<div class="forecast-info-filter__grid">
|
|
1821
1803
|
<label class="forecast-info-filter__item">
|
|
@@ -1850,7 +1832,7 @@ onBeforeUnmount(() => {
|
|
|
1850
1832
|
</el-select>
|
|
1851
1833
|
</label>
|
|
1852
1834
|
|
|
1853
|
-
<label class="forecast-info-filter__item">
|
|
1835
|
+
<label v-if="cardLayout === 'horizontal'" class="forecast-info-filter__item">
|
|
1854
1836
|
<span>支付渠道</span>
|
|
1855
1837
|
<el-input v-model="flowForm.payChannel" size="small" placeholder="请输入" clearable />
|
|
1856
1838
|
</label>
|
|
@@ -1874,7 +1856,7 @@ onBeforeUnmount(() => {
|
|
|
1874
1856
|
</label>
|
|
1875
1857
|
|
|
1876
1858
|
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item forecast-info-filter__item--range">
|
|
1877
|
-
<span
|
|
1859
|
+
<span>金额范围(万元)</span>
|
|
1878
1860
|
<NumberRange
|
|
1879
1861
|
v-model="flowForm.transAmtRange"
|
|
1880
1862
|
class="forecast-info-filter__number-range"
|
|
@@ -1883,7 +1865,7 @@ onBeforeUnmount(() => {
|
|
|
1883
1865
|
max-placeholder="最大值"
|
|
1884
1866
|
:precision="2"
|
|
1885
1867
|
size="small"
|
|
1886
|
-
unit="
|
|
1868
|
+
unit="万"
|
|
1887
1869
|
/>
|
|
1888
1870
|
</label>
|
|
1889
1871
|
|
|
@@ -1934,7 +1916,7 @@ onBeforeUnmount(() => {
|
|
|
1934
1916
|
<!-- 有选中流水时,在列配置同一行展示实时轧差金额。 -->
|
|
1935
1917
|
<template v-if="flowSelectedRows.length" #toolbar>
|
|
1936
1918
|
<div class="forecast-info-flow-net-amount" aria-live="polite">
|
|
1937
|
-
<span
|
|
1919
|
+
<span>轧差金额(元):</span>
|
|
1938
1920
|
<strong>{{ flowNetAmount }}</strong>
|
|
1939
1921
|
</div>
|
|
1940
1922
|
</template>
|
|
@@ -2044,7 +2026,7 @@ onBeforeUnmount(() => {
|
|
|
2044
2026
|
max-placeholder="最大值"
|
|
2045
2027
|
:precision="2"
|
|
2046
2028
|
size="small"
|
|
2047
|
-
unit="
|
|
2029
|
+
unit="万"
|
|
2048
2030
|
/>
|
|
2049
2031
|
</label>
|
|
2050
2032
|
|
|
@@ -193,10 +193,11 @@
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
|
|
196
|
-
|
|
196
|
+
display: flex;
|
|
197
|
+
flex: 0 1 auto;
|
|
197
198
|
max-width: none;
|
|
198
|
-
|
|
199
|
-
column-gap:
|
|
199
|
+
align-items: center;
|
|
200
|
+
column-gap: 14px;
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__item {
|
|
@@ -208,8 +209,9 @@
|
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__item {
|
|
212
|
+
flex: 0 0 auto;
|
|
211
213
|
grid-template-columns: 48px minmax(0, 1fr);
|
|
212
|
-
gap:
|
|
214
|
+
gap: 8px;
|
|
213
215
|
}
|
|
214
216
|
|
|
215
217
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__item > span {
|
|
@@ -277,6 +279,21 @@
|
|
|
277
279
|
min-width: 0;
|
|
278
280
|
}
|
|
279
281
|
|
|
282
|
+
/* 上下布局保留金额范围的紧凑宽度,让金额与客户/户名条件保持相邻。 */
|
|
283
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__item--range {
|
|
284
|
+
grid-column: auto;
|
|
285
|
+
width: 250px;
|
|
286
|
+
min-width: 250px;
|
|
287
|
+
max-width: 250px;
|
|
288
|
+
flex: 0 0 250px;
|
|
289
|
+
justify-self: start;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__item--range .forecast-info-filter__number-range {
|
|
293
|
+
width: 100%;
|
|
294
|
+
min-width: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
280
297
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__number-range .number-range__separator {
|
|
281
298
|
width: 38px;
|
|
282
299
|
color: #25354b;
|
|
@@ -294,6 +311,16 @@
|
|
|
294
311
|
margin-left: auto;
|
|
295
312
|
}
|
|
296
313
|
|
|
314
|
+
/* 上下布局将筛选条件与操作按钮分成左右两组,保持金额与客户/户名条件相邻。 */
|
|
315
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) {
|
|
316
|
+
justify-content: space-between;
|
|
317
|
+
gap: 24px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__actions {
|
|
321
|
+
margin-left: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
297
324
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__actions .el-button + .el-button {
|
|
298
325
|
margin-left: 0;
|
|
299
326
|
}
|
|
@@ -825,8 +852,7 @@
|
|
|
825
852
|
}
|
|
826
853
|
|
|
827
854
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
|
|
828
|
-
|
|
829
|
-
column-gap: 8px;
|
|
855
|
+
column-gap: 12px;
|
|
830
856
|
max-width: none;
|
|
831
857
|
}
|
|
832
858
|
|
|
@@ -859,7 +885,21 @@
|
|
|
859
885
|
}
|
|
860
886
|
|
|
861
887
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__grid {
|
|
862
|
-
|
|
888
|
+
flex-basis: 100%;
|
|
889
|
+
flex-wrap: wrap;
|
|
890
|
+
column-gap: 8px;
|
|
891
|
+
row-gap: 12px;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__item {
|
|
895
|
+
flex: 1 1 calc(33.333% - 8px);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter:not(.forecast-info-filter--horizontal) .forecast-info-filter__item--range {
|
|
899
|
+
width: auto;
|
|
900
|
+
min-width: 0;
|
|
901
|
+
max-width: none;
|
|
902
|
+
flex: 1 1 calc(33.333% - 8px);
|
|
863
903
|
}
|
|
864
904
|
|
|
865
905
|
.forecast-info-page[data-page-scope="rmb-position-settlement-forecast-info"] .forecast-info-filter__item {
|
|
@@ -1,66 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const chineseGroupUnits = ['', '万', '亿', '兆'] as const
|
|
3
|
-
const chineseWithinGroupUnits = ['仟', '佰', '拾', ''] as const
|
|
4
|
-
|
|
5
|
-
/** 将四位数字分组转换为中文大写金额片段。 */
|
|
6
|
-
function formatChineseFourDigitGroup(value: number) {
|
|
7
|
-
const digits = String(value).padStart(4, '0')
|
|
8
|
-
let result = ''
|
|
9
|
-
let pendingZero = false
|
|
10
|
-
|
|
11
|
-
for (let index = 0; index < digits.length; index += 1) {
|
|
12
|
-
const digit = Number(digits[index])
|
|
13
|
-
if (digit === 0) {
|
|
14
|
-
if (result) pendingZero = true
|
|
15
|
-
continue
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (pendingZero) result += chineseDigits[0]
|
|
19
|
-
result += `${chineseDigits[digit] ?? ''}${chineseWithinGroupUnits[index] ?? ''}`
|
|
20
|
-
pendingZero = false
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return result
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** 将整数按万、亿、兆分组转换为中文大写。 */
|
|
27
|
-
function formatChineseInteger(value: number) {
|
|
28
|
-
const groups: number[] = []
|
|
29
|
-
let remaining = Math.trunc(value)
|
|
30
|
-
while (remaining > 0) {
|
|
31
|
-
groups.push(remaining % 10_000)
|
|
32
|
-
remaining = Math.floor(remaining / 10_000)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
let result = ''
|
|
36
|
-
let pendingZero = false
|
|
37
|
-
for (let index = groups.length - 1; index >= 0; index -= 1) {
|
|
38
|
-
const group = groups[index] ?? 0
|
|
39
|
-
if (group === 0) {
|
|
40
|
-
if (result) pendingZero = true
|
|
41
|
-
continue
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if (result && (pendingZero || group < 1_000)) result += chineseDigits[0]
|
|
45
|
-
result += `${formatChineseFourDigitGroup(group)}${chineseGroupUnits[index] ?? ''}`
|
|
46
|
-
pendingZero = false
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return result
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** 将金额转换为人民币大写文本。 */
|
|
53
|
-
export function formatChineseCurrency(value: any) {
|
|
54
|
-
if (!Number.isFinite(value) || Number(value) < 0) return ''
|
|
55
|
-
|
|
56
|
-
const roundedFen = Math.round(Number(value) * 100)
|
|
57
|
-
const yuan = Math.floor(roundedFen / 100)
|
|
58
|
-
const jiao = Math.floor((roundedFen % 100) / 10)
|
|
59
|
-
const fen = roundedFen % 10
|
|
60
|
-
const integerPart = yuan === 0 ? '零' : formatChineseInteger(yuan)
|
|
61
|
-
const decimalPart = jiao === 0 && fen === 0
|
|
62
|
-
? '整'
|
|
63
|
-
: `${jiao > 0 ? `${chineseDigits[jiao]}角` : fen > 0 ? '零' : ''}${fen > 0 ? `${chineseDigits[fen]}分` : ''}`
|
|
64
|
-
|
|
65
|
-
return `人民币${integerPart}元${decimalPart}`
|
|
66
|
-
}
|
|
1
|
+
export { formatChineseCurrency } from '@/utils/chinese-currency'
|
|
@@ -309,10 +309,10 @@ function toForeignSettlementOperationDate(value: unknown) {
|
|
|
309
309
|
return String(value ?? '').trim().replace('T', ' ')
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// 格式化日期或日期时间字段,空值显示为空字符串。
|
|
313
313
|
function formatDateValue(value: unknown, includeTime = false) {
|
|
314
314
|
const text = String(value ?? '').trim().replace('T', ' ')
|
|
315
|
-
if (!text) return '
|
|
315
|
+
if (!text) return ''
|
|
316
316
|
if (/^\d{8}$/.test(text)) return `${text.slice(0, 4)}-${text.slice(4, 6)}-${text.slice(6, 8)}`
|
|
317
317
|
if (!includeTime) return text.slice(0, 10)
|
|
318
318
|
return text.replace(/\.\d+(Z)?$/, '').replace(/Z$/, '')
|
|
@@ -321,8 +321,8 @@ function formatDateValue(value: unknown, includeTime = false) {
|
|
|
321
321
|
// 按列配置格式化表格单元格内容。
|
|
322
322
|
function formatForeignSettlementCell(value: unknown, format: any = 'text') {
|
|
323
323
|
const text = String(value ?? '').trim()
|
|
324
|
-
if (!text) return '
|
|
325
|
-
if (format === 'amount') return formatThousands(text, '
|
|
324
|
+
if (!text) return ''
|
|
325
|
+
if (format === 'amount') return formatThousands(text, '')
|
|
326
326
|
if (format === 'date') return formatDateValue(text)
|
|
327
327
|
if (format === 'dateTime') return formatDateValue(text, true)
|
|
328
328
|
if (format === 'direction') return optionMaps.direction[text] ?? text
|
|
@@ -506,10 +506,12 @@ function parseSelectionSummaryAmount(value: unknown) {
|
|
|
506
506
|
return Number.isFinite(amount) ? amount : 0
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
//
|
|
509
|
+
// 换算为万元后保留两位小数,补齐 0 并使用千分位格式化勾选汇总金额。
|
|
510
510
|
function formatSelectionSummaryAmount(value: number) {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const amountInTenThousands = value / 10000
|
|
512
|
+
const roundedValue = Math.round((amountInTenThousands + Number.EPSILON) * 100) / 100
|
|
513
|
+
const normalizedValue = Object.is(roundedValue, -0) ? 0 : roundedValue
|
|
514
|
+
return formatThousands(normalizedValue.toFixed(2), '0.00')
|
|
513
515
|
}
|
|
514
516
|
|
|
515
517
|
/**
|
|
@@ -606,7 +608,7 @@ function hasCompleteForecastSnapshot(row: any) {
|
|
|
606
608
|
function hasCompleteFlowSnapshot(row: any) {
|
|
607
609
|
return [
|
|
608
610
|
row.tranRefNo,
|
|
609
|
-
row.
|
|
611
|
+
row.tranAmt,
|
|
610
612
|
toForeignSettlementProtocolVerifyStatus(row.verifyStatus),
|
|
611
613
|
row.valueDate,
|
|
612
614
|
].every(hasText)
|
|
@@ -757,8 +759,8 @@ function buildVerifyRequest(): any {
|
|
|
757
759
|
? {
|
|
758
760
|
// 流水序号列表。
|
|
759
761
|
tranSeqIds: flows.map((row) => String(row.tranRefNo).trim()).join(','),
|
|
760
|
-
//
|
|
761
|
-
tranAmts: flows.map((row) => toForeignSettlementOperationAmount(row.
|
|
762
|
+
// 流水金额列表。
|
|
763
|
+
tranAmts: flows.map((row) => toForeignSettlementOperationAmount(row.tranAmt)).join(','),
|
|
762
764
|
// 流水核销状态列表。
|
|
763
765
|
seqVerifyStatus: flows
|
|
764
766
|
.map((row) => toForeignSettlementProtocolVerifyStatus(row.verifyStatus))
|
|
@@ -1822,6 +1824,7 @@ onBeforeUnmount(() => {
|
|
|
1822
1824
|
<span>币种</span>
|
|
1823
1825
|
<el-select
|
|
1824
1826
|
v-model="forecastFilterForm.currency"
|
|
1827
|
+
class="foreign-currency-settlement-currency-filter"
|
|
1825
1828
|
:teleported="!isFullscreen"
|
|
1826
1829
|
size="small"
|
|
1827
1830
|
placeholder="请选择"
|
|
@@ -1898,6 +1901,11 @@ onBeforeUnmount(() => {
|
|
|
1898
1901
|
</el-select>
|
|
1899
1902
|
</label>
|
|
1900
1903
|
|
|
1904
|
+
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
1905
|
+
<span>客户名称</span>
|
|
1906
|
+
<el-input v-model="forecastFilterForm.customerName" size="small" placeholder="请输入" clearable />
|
|
1907
|
+
</label>
|
|
1908
|
+
|
|
1901
1909
|
</div>
|
|
1902
1910
|
|
|
1903
1911
|
<div class="forecast-info-filter__actions">
|
|
@@ -1933,27 +1941,27 @@ onBeforeUnmount(() => {
|
|
|
1933
1941
|
<section class="forecast-info-table-area" aria-label="外币预报信息列表">
|
|
1934
1942
|
<div v-if="forecastSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
|
|
1935
1943
|
<div class="forecast-info-forecast-summary__item">
|
|
1936
|
-
<span>预报收入总金额(
|
|
1944
|
+
<span>预报收入总金额(万元):</span>
|
|
1937
1945
|
<strong>{{ forecastSelectionSummary.totalIncome }}</strong>
|
|
1938
1946
|
</div>
|
|
1939
1947
|
<div class="forecast-info-forecast-summary__item">
|
|
1940
|
-
<span>预报支出总金额(
|
|
1948
|
+
<span>预报支出总金额(万元):</span>
|
|
1941
1949
|
<strong>{{ forecastSelectionSummary.totalExpense }}</strong>
|
|
1942
1950
|
</div>
|
|
1943
1951
|
<div class="forecast-info-forecast-summary__item">
|
|
1944
|
-
<span>预报轧差金额(
|
|
1952
|
+
<span>预报轧差金额(万元):</span>
|
|
1945
1953
|
<strong>{{ forecastSelectionSummary.totalNet }}</strong>
|
|
1946
1954
|
</div>
|
|
1947
1955
|
<div class="forecast-info-forecast-summary__item">
|
|
1948
|
-
<span>未核销收入总金额(
|
|
1956
|
+
<span>未核销收入总金额(万元):</span>
|
|
1949
1957
|
<strong>{{ forecastSelectionSummary.unverifiedIncome }}</strong>
|
|
1950
1958
|
</div>
|
|
1951
1959
|
<div class="forecast-info-forecast-summary__item">
|
|
1952
|
-
<span>未核销支出总金额(
|
|
1960
|
+
<span>未核销支出总金额(万元):</span>
|
|
1953
1961
|
<strong>{{ forecastSelectionSummary.unverifiedExpense }}</strong>
|
|
1954
1962
|
</div>
|
|
1955
1963
|
<div class="forecast-info-forecast-summary__item">
|
|
1956
|
-
<span>未核销轧差金额(
|
|
1964
|
+
<span>未核销轧差金额(万元):</span>
|
|
1957
1965
|
<strong>{{ forecastSelectionSummary.unverifiedNet }}</strong>
|
|
1958
1966
|
</div>
|
|
1959
1967
|
</div>
|
|
@@ -2140,6 +2148,7 @@ onBeforeUnmount(() => {
|
|
|
2140
2148
|
<span>币种</span>
|
|
2141
2149
|
<el-select
|
|
2142
2150
|
v-model="forecastFilterForm.currency"
|
|
2151
|
+
class="foreign-currency-settlement-currency-filter"
|
|
2143
2152
|
:teleported="!isFullscreen"
|
|
2144
2153
|
size="small"
|
|
2145
2154
|
placeholder="请选择"
|
|
@@ -2385,6 +2394,7 @@ onBeforeUnmount(() => {
|
|
|
2385
2394
|
<span>币种</span>
|
|
2386
2395
|
<el-select
|
|
2387
2396
|
v-model="flowFilterForm.currency"
|
|
2397
|
+
class="foreign-currency-settlement-currency-filter"
|
|
2388
2398
|
:teleported="!isFullscreen"
|
|
2389
2399
|
size="small"
|
|
2390
2400
|
placeholder="请选择"
|
|
@@ -2461,6 +2471,11 @@ onBeforeUnmount(() => {
|
|
|
2461
2471
|
</el-select>
|
|
2462
2472
|
</label>
|
|
2463
2473
|
|
|
2474
|
+
<label v-if="cardLayout === 'vertical'" class="forecast-info-filter__item">
|
|
2475
|
+
<span>机构代码</span>
|
|
2476
|
+
<el-input v-model="flowFilterForm.branchCode" size="small" placeholder="请输入" clearable />
|
|
2477
|
+
</label>
|
|
2478
|
+
|
|
2464
2479
|
</div>
|
|
2465
2480
|
|
|
2466
2481
|
<div class="forecast-info-filter__actions">
|
|
@@ -2480,27 +2495,27 @@ onBeforeUnmount(() => {
|
|
|
2480
2495
|
<section class="forecast-info-table-area" aria-label="外币流水信息列表">
|
|
2481
2496
|
<div v-if="flowSelectedRows.length" class="forecast-info-forecast-summary" aria-live="polite">
|
|
2482
2497
|
<div class="forecast-info-forecast-summary__item">
|
|
2483
|
-
<span>流水收入总金额(
|
|
2498
|
+
<span>流水收入总金额(万元):</span>
|
|
2484
2499
|
<strong>{{ flowSelectionSummary.totalIncome }}</strong>
|
|
2485
2500
|
</div>
|
|
2486
2501
|
<div class="forecast-info-forecast-summary__item">
|
|
2487
|
-
<span>流水支出总金额(
|
|
2502
|
+
<span>流水支出总金额(万元):</span>
|
|
2488
2503
|
<strong>{{ flowSelectionSummary.totalExpense }}</strong>
|
|
2489
2504
|
</div>
|
|
2490
2505
|
<div class="forecast-info-forecast-summary__item">
|
|
2491
|
-
<span>流水轧差金额(
|
|
2506
|
+
<span>流水轧差金额(万元):</span>
|
|
2492
2507
|
<strong>{{ flowSelectionSummary.totalNet }}</strong>
|
|
2493
2508
|
</div>
|
|
2494
2509
|
<div class="forecast-info-forecast-summary__item">
|
|
2495
|
-
<span>未核销收入总金额(
|
|
2510
|
+
<span>未核销收入总金额(万元):</span>
|
|
2496
2511
|
<strong>{{ flowSelectionSummary.unverifiedIncome }}</strong>
|
|
2497
2512
|
</div>
|
|
2498
2513
|
<div class="forecast-info-forecast-summary__item">
|
|
2499
|
-
<span>未核销支出总金额(
|
|
2514
|
+
<span>未核销支出总金额(万元):</span>
|
|
2500
2515
|
<strong>{{ flowSelectionSummary.unverifiedExpense }}</strong>
|
|
2501
2516
|
</div>
|
|
2502
2517
|
<div class="forecast-info-forecast-summary__item">
|
|
2503
|
-
<span>未核销轧差金额(
|
|
2518
|
+
<span>未核销轧差金额(万元):</span>
|
|
2504
2519
|
<strong>{{ flowSelectionSummary.unverifiedNet }}</strong>
|
|
2505
2520
|
</div>
|
|
2506
2521
|
</div>
|
|
@@ -2668,6 +2683,7 @@ onBeforeUnmount(() => {
|
|
|
2668
2683
|
<span>币种</span>
|
|
2669
2684
|
<el-select
|
|
2670
2685
|
v-model="flowFilterForm.currency"
|
|
2686
|
+
class="foreign-currency-settlement-currency-filter"
|
|
2671
2687
|
:teleported="!isFullscreen"
|
|
2672
2688
|
size="small"
|
|
2673
2689
|
placeholder="请选择"
|
|
@@ -2786,14 +2802,17 @@ onBeforeUnmount(() => {
|
|
|
2786
2802
|
|
|
2787
2803
|
<style>
|
|
2788
2804
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] {
|
|
2805
|
+
/* 页面整体高度预留顶部和底部空间,具体数值后续可直接调整。 */
|
|
2806
|
+
--app-header-height: 0px;
|
|
2807
|
+
--app-footer-height: 0px;
|
|
2789
2808
|
--fund-blue: #1668ff;
|
|
2790
2809
|
--fund-text: #1f2937;
|
|
2791
2810
|
--fund-bg: #f3f7fc;
|
|
2792
2811
|
display: flex;
|
|
2793
|
-
height:
|
|
2812
|
+
height: calc(100vh - var(--app-header-height) - var(--app-footer-height));
|
|
2794
2813
|
min-height: 0;
|
|
2795
2814
|
flex-direction: column;
|
|
2796
|
-
gap:
|
|
2815
|
+
gap: 5px;
|
|
2797
2816
|
box-sizing: border-box;
|
|
2798
2817
|
margin: -20px;
|
|
2799
2818
|
padding: 10px 14px 14px;
|
|
@@ -2814,7 +2833,7 @@ onBeforeUnmount(() => {
|
|
|
2814
2833
|
overflow: visible;
|
|
2815
2834
|
}
|
|
2816
2835
|
|
|
2817
|
-
/*
|
|
2836
|
+
/* 默认上下排列;切换左右排列时由 Flex 等分可用空间。 */
|
|
2818
2837
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal {
|
|
2819
2838
|
flex-direction: row;
|
|
2820
2839
|
align-items: stretch;
|
|
@@ -2844,9 +2863,9 @@ onBeforeUnmount(() => {
|
|
|
2844
2863
|
}
|
|
2845
2864
|
|
|
2846
2865
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal .forecast-info-card {
|
|
2847
|
-
width:
|
|
2866
|
+
width: auto;
|
|
2848
2867
|
height: 100%;
|
|
2849
|
-
flex:
|
|
2868
|
+
flex: 1 1 0;
|
|
2850
2869
|
min-width: 0;
|
|
2851
2870
|
}
|
|
2852
2871
|
|
|
@@ -3012,6 +3031,16 @@ onBeforeUnmount(() => {
|
|
|
3012
3031
|
max-width: 120px;
|
|
3013
3032
|
}
|
|
3014
3033
|
|
|
3034
|
+
/* 更多筛选抽屉不沿用顶部快捷筛选的固定宽度,控件占满抽屉剩余空间。 */
|
|
3035
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item .el-select,
|
|
3036
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item .el-input,
|
|
3037
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item .el-date-editor {
|
|
3038
|
+
width: auto;
|
|
3039
|
+
min-width: 0;
|
|
3040
|
+
max-width: none;
|
|
3041
|
+
flex: 1 1 auto;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3015
3044
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-input__wrapper,
|
|
3016
3045
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-select__wrapper,
|
|
3017
3046
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-date-editor.el-input__wrapper {
|
|
@@ -3019,6 +3048,41 @@ onBeforeUnmount(() => {
|
|
|
3019
3048
|
box-shadow: 0 0 0 1px #d8e1ee inset;
|
|
3020
3049
|
}
|
|
3021
3050
|
|
|
3051
|
+
/* 币种多选保持单行固定高度,选中多个币种时不再撑高输入框。 */
|
|
3052
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter,
|
|
3053
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-input__wrapper,
|
|
3054
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__wrapper {
|
|
3055
|
+
height: 24px;
|
|
3056
|
+
min-height: 24px;
|
|
3057
|
+
max-height: 24px;
|
|
3058
|
+
overflow: hidden;
|
|
3059
|
+
}
|
|
3060
|
+
|
|
3061
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__tags {
|
|
3062
|
+
display: flex;
|
|
3063
|
+
align-items: center;
|
|
3064
|
+
min-width: 0;
|
|
3065
|
+
max-width: 100%;
|
|
3066
|
+
flex-wrap: nowrap;
|
|
3067
|
+
white-space: nowrap;
|
|
3068
|
+
overflow: hidden;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__tags .el-select-tags-wrapper {
|
|
3072
|
+
display: flex;
|
|
3073
|
+
align-items: center;
|
|
3074
|
+
min-width: 0;
|
|
3075
|
+
max-width: 100%;
|
|
3076
|
+
flex-wrap: nowrap;
|
|
3077
|
+
overflow: hidden;
|
|
3078
|
+
white-space: nowrap;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .foreign-currency-settlement-currency-filter .el-select__tags .el-tag {
|
|
3082
|
+
flex: 0 0 auto;
|
|
3083
|
+
max-width: 100%;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3022
3086
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-input__inner,
|
|
3023
3087
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-range-input,
|
|
3024
3088
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__item .el-select__placeholder {
|
|
@@ -3050,6 +3114,20 @@ onBeforeUnmount(() => {
|
|
|
3050
3114
|
flex: 0 0 120px;
|
|
3051
3115
|
}
|
|
3052
3116
|
|
|
3117
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__number-range {
|
|
3118
|
+
width: auto;
|
|
3119
|
+
min-width: 0;
|
|
3120
|
+
max-width: none;
|
|
3121
|
+
flex: 1 1 auto;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__number-range .number-range__input {
|
|
3125
|
+
width: auto;
|
|
3126
|
+
min-width: 0;
|
|
3127
|
+
max-width: none;
|
|
3128
|
+
flex: 1 1 0;
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3053
3131
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__number-range .number-range__separator {
|
|
3054
3132
|
width: 38px;
|
|
3055
3133
|
color: #25354b;
|
|
@@ -3095,21 +3173,26 @@ onBeforeUnmount(() => {
|
|
|
3095
3173
|
line-height: 22px;
|
|
3096
3174
|
}
|
|
3097
3175
|
|
|
3098
|
-
/*
|
|
3176
|
+
/* 左右布局时条件和操作按钮保持同一行,避免固定宽度控件换行。 */
|
|
3099
3177
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal {
|
|
3100
3178
|
display: flex;
|
|
3101
|
-
flex-direction:
|
|
3102
|
-
align-items:
|
|
3179
|
+
flex-direction: row;
|
|
3180
|
+
align-items: center;
|
|
3181
|
+
flex-wrap: nowrap;
|
|
3182
|
+
justify-content: space-between;
|
|
3103
3183
|
gap: 8px;
|
|
3104
3184
|
padding: 0 4px;
|
|
3185
|
+
white-space: nowrap;
|
|
3105
3186
|
}
|
|
3106
3187
|
|
|
3107
3188
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__grid {
|
|
3108
3189
|
display: flex;
|
|
3109
3190
|
flex: 0 0 auto;
|
|
3110
3191
|
min-width: 0;
|
|
3111
|
-
justify-content: start;
|
|
3192
|
+
justify-content: flex-start;
|
|
3193
|
+
flex-wrap: nowrap;
|
|
3112
3194
|
gap: 8px;
|
|
3195
|
+
white-space: nowrap;
|
|
3113
3196
|
}
|
|
3114
3197
|
|
|
3115
3198
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter--horizontal .forecast-info-filter__item {
|
|
@@ -3149,6 +3232,14 @@ onBeforeUnmount(() => {
|
|
|
3149
3232
|
display: flex;
|
|
3150
3233
|
}
|
|
3151
3234
|
|
|
3235
|
+
/* 更多筛选抽屉固定标签列宽,保证每项输入控件左侧对齐。 */
|
|
3236
|
+
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item > span {
|
|
3237
|
+
width: 118px;
|
|
3238
|
+
min-width: 118px;
|
|
3239
|
+
flex: 0 0 118px;
|
|
3240
|
+
white-space: nowrap;
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3152
3243
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-filter__drawer-grid .forecast-info-filter__item--range {
|
|
3153
3244
|
display: flex;
|
|
3154
3245
|
}
|
|
@@ -3204,7 +3295,7 @@ onBeforeUnmount(() => {
|
|
|
3204
3295
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary {
|
|
3205
3296
|
display: flex;
|
|
3206
3297
|
flex-wrap: nowrap;
|
|
3207
|
-
width:
|
|
3298
|
+
width: 100%;
|
|
3208
3299
|
flex: 0 0 auto;
|
|
3209
3300
|
margin-bottom: 6px;
|
|
3210
3301
|
overflow: hidden;
|
|
@@ -3215,7 +3306,7 @@ onBeforeUnmount(() => {
|
|
|
3215
3306
|
|
|
3216
3307
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"].forecast-info-page--horizontal .forecast-info-forecast-summary {
|
|
3217
3308
|
flex-wrap: wrap;
|
|
3218
|
-
width:
|
|
3309
|
+
width: 100%;
|
|
3219
3310
|
}
|
|
3220
3311
|
|
|
3221
3312
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item {
|
|
@@ -3224,12 +3315,14 @@ onBeforeUnmount(() => {
|
|
|
3224
3315
|
flex: 0 0 180px;
|
|
3225
3316
|
width: 180px;
|
|
3226
3317
|
min-width: 0;
|
|
3227
|
-
flex-direction:
|
|
3228
|
-
|
|
3318
|
+
flex-direction: row;
|
|
3319
|
+
align-items: center;
|
|
3320
|
+
gap: 2px;
|
|
3229
3321
|
padding: 4px 8px;
|
|
3230
3322
|
border-left: 1px solid #e1e7f0;
|
|
3231
3323
|
color: #4a5668;
|
|
3232
3324
|
font-size: 11px;
|
|
3325
|
+
white-space: nowrap;
|
|
3233
3326
|
}
|
|
3234
3327
|
|
|
3235
3328
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item:first-child {
|
|
@@ -3245,16 +3338,17 @@ onBeforeUnmount(() => {
|
|
|
3245
3338
|
}
|
|
3246
3339
|
|
|
3247
3340
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item > span {
|
|
3248
|
-
|
|
3249
|
-
text-overflow: ellipsis;
|
|
3341
|
+
flex: 0 0 auto;
|
|
3250
3342
|
white-space: nowrap;
|
|
3251
3343
|
}
|
|
3252
3344
|
|
|
3253
3345
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-forecast-summary__item strong {
|
|
3346
|
+
flex: 0 0 auto;
|
|
3254
3347
|
color: #24344b;
|
|
3255
3348
|
font-size: 12px;
|
|
3256
3349
|
font-weight: 600;
|
|
3257
3350
|
font-variant-numeric: tabular-nums;
|
|
3351
|
+
white-space: nowrap;
|
|
3258
3352
|
}
|
|
3259
3353
|
|
|
3260
3354
|
.forecast-info-page[data-page-scope="foreign-currency-settlement"] .forecast-info-table-area > .el-table-plus > .forecast-info-table {
|