verce-vue-test 0.0.162 → 0.0.164
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/App.vue +5 -0
- package/src/components/element-rewrite/ElInputThousandthChinese.vue +285 -0
- package/src/components/index.ts +8 -0
- package/src/router/index.ts +5 -0
- package/src/views/ForecastInfo/RmbPositionSettlement.vue +19 -37
- package/src/views/ForecastInfo/forecast-info.css +47 -7
- package/src/views/ThousandthChineseView.vue +919 -0
- package/src/views/foreign-currency-position-forecast/components/ForeignPositionForecastEditor.vue +5 -31
- package/src/views/foreign-currency-settlement/index.vue +18 -5
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
package/src/App.vue
CHANGED
|
@@ -45,6 +45,7 @@ const searchableMenus: MenuSearchItem[] = [
|
|
|
45
45
|
{ value: '循环表格', path: '/table-pro-for' },
|
|
46
46
|
{ value: '员工管理', path: '/employee' },
|
|
47
47
|
{ value: '千分位输入', path: '/thousandth' },
|
|
48
|
+
{ value: '金额大写输入', path: '/thousandth-chinese' },
|
|
48
49
|
{ value: '数字区间', path: '/number-range' },
|
|
49
50
|
{ value: '日期区间', path: '/date-range' },
|
|
50
51
|
{ value: '分行看板', path: '/position-forecast' },
|
|
@@ -153,6 +154,10 @@ function toggleCollapse() {
|
|
|
153
154
|
<el-icon><EditPen /></el-icon>
|
|
154
155
|
<span>千分位输入</span>
|
|
155
156
|
</el-menu-item>
|
|
157
|
+
<el-menu-item index="/thousandth-chinese">
|
|
158
|
+
<el-icon><EditPen /></el-icon>
|
|
159
|
+
<span>金额大写输入</span>
|
|
160
|
+
</el-menu-item>
|
|
156
161
|
<el-menu-item index="/number-range">
|
|
157
162
|
<el-icon><DataLine /></el-icon>
|
|
158
163
|
<span>数字区间</span>
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref, watch } from 'vue'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 自包含的金额输入框组件:
|
|
6
|
+
* 1. 编辑时显示不带千分位的普通数字,便于继续输入;
|
|
7
|
+
* 2. 失焦时按 decimalPlaces 格式化并增加千分位;
|
|
8
|
+
* 3. 对外只输出普通数值,同时在输入框下方实时展示人民币大写金额。
|
|
9
|
+
*
|
|
10
|
+
* 使用文档:
|
|
11
|
+
* ```vue
|
|
12
|
+
* <ElInputThousandthChinese
|
|
13
|
+
* v-model="form.amount"
|
|
14
|
+
* :decimal-places="2"
|
|
15
|
+
* placeholder="请输入金额"
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* 参数说明:
|
|
20
|
+
* - modelValue:绑定金额,输入有效内容后向外输出 number,清空时输出 undefined;
|
|
21
|
+
* - decimalPlaces:输入及失焦展示的小数位数,未传入时输入最多保留 2 位小数;
|
|
22
|
+
* - placeholder:输入框占位提示;
|
|
23
|
+
* - disabled:是否禁用输入框。
|
|
24
|
+
*
|
|
25
|
+
* 使用效果:以 `1234567.89` 为例,聚焦时显示 `1234567.89`,失焦后显示
|
|
26
|
+
* `1,234,567.89`,下方直接显示 `壹佰贰拾叁万肆仟伍佰陆拾柒元捌角玖分`。
|
|
27
|
+
*/
|
|
28
|
+
defineOptions({
|
|
29
|
+
name: 'ElInputThousandthChinese',
|
|
30
|
+
inheritAttrs: false,
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const props = withDefaults(
|
|
34
|
+
defineProps<{
|
|
35
|
+
/** v-model 绑定值,允许使用数字或带数字内容的字符串进行回填。 */
|
|
36
|
+
modelValue?: number | string
|
|
37
|
+
/** 输入框占位提示。 */
|
|
38
|
+
placeholder?: string
|
|
39
|
+
/** 是否禁用输入框。 */
|
|
40
|
+
disabled?: boolean
|
|
41
|
+
/** 允许输入并在失焦时展示的小数位数,整数范围会限制在 0~20。 */
|
|
42
|
+
decimalPlaces?: number
|
|
43
|
+
}>(),
|
|
44
|
+
{
|
|
45
|
+
modelValue: undefined,
|
|
46
|
+
placeholder: '',
|
|
47
|
+
disabled: false,
|
|
48
|
+
},
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
const emit = defineEmits<{
|
|
52
|
+
/** 输入有效金额时输出 number,清空或输入无效时输出 undefined。 */
|
|
53
|
+
'update:modelValue': [value: number | undefined]
|
|
54
|
+
}>()
|
|
55
|
+
|
|
56
|
+
/** 当前是否处于编辑状态;该状态决定输入框使用普通数字还是千分位文本。 */
|
|
57
|
+
const isFocused = ref(false)
|
|
58
|
+
/** 输入框实际显示的文本,与对外绑定的数值分离,避免千分位参与数据保存。 */
|
|
59
|
+
const displayValue = ref('')
|
|
60
|
+
|
|
61
|
+
/** 解析小数位配置;无效配置时使用调用方传入的后备值。 */
|
|
62
|
+
function resolveDecimalPlaces(fallback?: number) {
|
|
63
|
+
return typeof props.decimalPlaces === 'number' && Number.isInteger(props.decimalPlaces)
|
|
64
|
+
? Math.min(20, Math.max(0, props.decimalPlaces))
|
|
65
|
+
: fallback
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 将数值转换为输入框的失焦展示文本:
|
|
70
|
+
* - 按 decimalPlaces 补齐或舍入小数位;
|
|
71
|
+
* - 只给整数部分增加千分位,保留小数点和小数部分。
|
|
72
|
+
*/
|
|
73
|
+
function formatThousandth(value: string | number | undefined) {
|
|
74
|
+
if (value === undefined || value === null || value === '') return ''
|
|
75
|
+
|
|
76
|
+
const numberValue = Number(value)
|
|
77
|
+
if (Number.isNaN(numberValue)) return ''
|
|
78
|
+
|
|
79
|
+
const decimalPlaces = resolveDecimalPlaces()
|
|
80
|
+
const valueText = decimalPlaces === undefined
|
|
81
|
+
? String(value)
|
|
82
|
+
: numberValue.toFixed(decimalPlaces)
|
|
83
|
+
const [integerPart = '', decimalPart] = valueText.split('.')
|
|
84
|
+
const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',')
|
|
85
|
+
|
|
86
|
+
return decimalPart === undefined
|
|
87
|
+
? formattedInteger
|
|
88
|
+
: `${formattedInteger}.${decimalPart}`
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 清洗用户输入,只保留数字和第一个小数点,并截断超过配置的小数位。
|
|
93
|
+
* 保留诸如 `.`、`12.` 这样的编辑中间态,避免输入过程中光标体验异常。
|
|
94
|
+
*/
|
|
95
|
+
function stripNonNumeric(value: string) {
|
|
96
|
+
let result = value.replace(/[^\d.]/g, '')
|
|
97
|
+
const dotIndex = result.indexOf('.')
|
|
98
|
+
|
|
99
|
+
if (dotIndex !== -1) {
|
|
100
|
+
result = result.slice(0, dotIndex + 1) + result.slice(dotIndex + 1).replace(/\./g, '')
|
|
101
|
+
const [integerPart = '', decimalPart = ''] = result.split('.')
|
|
102
|
+
const maxDecimalPlaces = resolveDecimalPlaces(2) ?? 2
|
|
103
|
+
result = `${integerPart}.${decimalPart.slice(0, maxDecimalPlaces)}`
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return result
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** 接收输入文本,更新显示值,并将可用内容转换成普通数值向父组件派发。 */
|
|
110
|
+
function handleInput(value: string) {
|
|
111
|
+
const cleanedValue = stripNonNumeric(value)
|
|
112
|
+
displayValue.value = cleanedValue
|
|
113
|
+
|
|
114
|
+
if (cleanedValue === '' || cleanedValue === '.') {
|
|
115
|
+
emit('update:modelValue', undefined)
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const numericValue = Number(cleanedValue)
|
|
120
|
+
emit('update:modelValue', Number.isFinite(numericValue) ? numericValue : undefined)
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** 获取焦点时移除千分位,恢复原始普通数字文本供用户编辑。 */
|
|
124
|
+
function handleFocus() {
|
|
125
|
+
isFocused.value = true
|
|
126
|
+
displayValue.value = props.modelValue !== undefined
|
|
127
|
+
&& props.modelValue !== null
|
|
128
|
+
&& props.modelValue !== ''
|
|
129
|
+
? String(props.modelValue)
|
|
130
|
+
: ''
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** 失去焦点时根据当前绑定值重新格式化千分位展示文本。 */
|
|
134
|
+
function handleBlur() {
|
|
135
|
+
isFocused.value = false
|
|
136
|
+
displayValue.value = props.modelValue !== undefined
|
|
137
|
+
&& props.modelValue !== null
|
|
138
|
+
&& props.modelValue !== ''
|
|
139
|
+
? formatThousandth(props.modelValue)
|
|
140
|
+
: ''
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** 中文大写数字字符表。 */
|
|
144
|
+
const chineseDigits = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'] as const
|
|
145
|
+
/** 整数每四位一组对应的节位单位。 */
|
|
146
|
+
const chineseGroupUnits = ['', '万', '亿', '兆'] as const
|
|
147
|
+
/** 四位分组内部从千位到个位对应的单位。 */
|
|
148
|
+
const chineseWithinGroupUnits = ['仟', '佰', '拾', ''] as const
|
|
149
|
+
|
|
150
|
+
/** 将 0~9999 的四位数字分组转换为中文大写,并补齐组内必要的零。 */
|
|
151
|
+
function formatChineseFourDigitGroup(value: number) {
|
|
152
|
+
const digits = String(value).padStart(4, '0')
|
|
153
|
+
let result = ''
|
|
154
|
+
let pendingZero = false
|
|
155
|
+
|
|
156
|
+
for (let index = 0; index < digits.length; index += 1) {
|
|
157
|
+
const digit = Number(digits[index])
|
|
158
|
+
if (digit === 0) {
|
|
159
|
+
if (result) pendingZero = true
|
|
160
|
+
continue
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (pendingZero) result += chineseDigits[0]
|
|
164
|
+
result += `${chineseDigits[digit] ?? ''}${chineseWithinGroupUnits[index] ?? ''}`
|
|
165
|
+
pendingZero = false
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return result
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** 将整数从右到左按四位分组,再拼接万、亿、兆等节位单位。 */
|
|
172
|
+
function formatChineseInteger(value: number) {
|
|
173
|
+
const groups: number[] = []
|
|
174
|
+
let remaining = Math.trunc(value)
|
|
175
|
+
while (remaining > 0) {
|
|
176
|
+
groups.push(remaining % 10_000)
|
|
177
|
+
remaining = Math.floor(remaining / 10_000)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let result = ''
|
|
181
|
+
let pendingZero = false
|
|
182
|
+
for (let index = groups.length - 1; index >= 0; index -= 1) {
|
|
183
|
+
const group = groups[index] ?? 0
|
|
184
|
+
if (group === 0) {
|
|
185
|
+
if (result) pendingZero = true
|
|
186
|
+
continue
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (result && (pendingZero || group < 1_000)) result += chineseDigits[0]
|
|
190
|
+
result += `${formatChineseFourDigitGroup(group)}${chineseGroupUnits[index] ?? ''}`
|
|
191
|
+
pendingZero = false
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return result
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/** 将回填值转换为非负有限金额;支持数字、普通数字字符串和带逗号字符串。 */
|
|
198
|
+
function toAmountNumber(value: number | string | undefined) {
|
|
199
|
+
if (value === undefined || value === null) return null
|
|
200
|
+
|
|
201
|
+
const normalizedValue = typeof value === 'string'
|
|
202
|
+
? value.replace(/,/g, '').trim()
|
|
203
|
+
: value
|
|
204
|
+
|
|
205
|
+
if (normalizedValue === '') return null
|
|
206
|
+
|
|
207
|
+
const amount = typeof normalizedValue === 'number'
|
|
208
|
+
? normalizedValue
|
|
209
|
+
: Number(normalizedValue)
|
|
210
|
+
|
|
211
|
+
return Number.isFinite(amount) && amount >= 0 ? amount : null
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* 将金额转换为人民币大写文本,精确到角和分。
|
|
216
|
+
* 金额不足一元时保留“零元”,没有角分时使用“整”。
|
|
217
|
+
*/
|
|
218
|
+
function formatChineseCurrency(value: number | string | undefined) {
|
|
219
|
+
const amount = toAmountNumber(value)
|
|
220
|
+
if (amount === null) return ''
|
|
221
|
+
|
|
222
|
+
const roundedFen = Math.round(amount * 100)
|
|
223
|
+
const yuan = Math.floor(roundedFen / 100)
|
|
224
|
+
const jiao = Math.floor((roundedFen % 100) / 10)
|
|
225
|
+
const fen = roundedFen % 10
|
|
226
|
+
const integerPart = yuan === 0 ? '零' : formatChineseInteger(yuan)
|
|
227
|
+
const decimalPart = jiao === 0 && fen === 0
|
|
228
|
+
? '整'
|
|
229
|
+
: `${jiao > 0 ? `${chineseDigits[jiao]}角` : fen > 0 ? '零' : ''}${fen > 0 ? `${chineseDigits[fen]}分` : ''}`
|
|
230
|
+
|
|
231
|
+
return `人民币${integerPart}元${decimalPart}`
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** 金额变化时实时同步中文大写提示;展示层去掉固定的“人民币”前缀。 */
|
|
235
|
+
const chineseAmount = computed(() => formatChineseCurrency(props.modelValue).replace(/^人民币/, ''))
|
|
236
|
+
|
|
237
|
+
/** 外部值变化时同步输入框展示;用户聚焦编辑期间不覆盖正在输入的文本。 */
|
|
238
|
+
watch(
|
|
239
|
+
() => props.modelValue,
|
|
240
|
+
(value) => {
|
|
241
|
+
if (!isFocused.value) {
|
|
242
|
+
displayValue.value = formatThousandth(value)
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{ immediate: true },
|
|
246
|
+
)
|
|
247
|
+
</script>
|
|
248
|
+
|
|
249
|
+
<template>
|
|
250
|
+
<div class="el-input-thousandth-chinese">
|
|
251
|
+
<!-- 输入区域:显示文本与对外保存的数值分离。 -->
|
|
252
|
+
<el-input
|
|
253
|
+
v-bind="$attrs"
|
|
254
|
+
:model-value="displayValue"
|
|
255
|
+
:placeholder="placeholder"
|
|
256
|
+
:disabled="disabled"
|
|
257
|
+
@input="handleInput"
|
|
258
|
+
@focus="handleFocus"
|
|
259
|
+
@blur="handleBlur"
|
|
260
|
+
/>
|
|
261
|
+
<!-- 大写提示只在存在有效金额时显示,并通过 aria-live 通知辅助技术更新。 -->
|
|
262
|
+
<span
|
|
263
|
+
v-if="chineseAmount"
|
|
264
|
+
class="el-input-thousandth-chinese__hint"
|
|
265
|
+
aria-live="polite"
|
|
266
|
+
>
|
|
267
|
+
{{ chineseAmount }}
|
|
268
|
+
</span>
|
|
269
|
+
</div>
|
|
270
|
+
</template>
|
|
271
|
+
|
|
272
|
+
<style scoped>
|
|
273
|
+
.el-input-thousandth-chinese {
|
|
274
|
+
width: 100%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.el-input-thousandth-chinese__hint {
|
|
278
|
+
display: block;
|
|
279
|
+
margin-top: 4px;
|
|
280
|
+
color: var(--el-text-color-secondary);
|
|
281
|
+
font-size: 12px;
|
|
282
|
+
line-height: 18px;
|
|
283
|
+
word-break: break-all;
|
|
284
|
+
}
|
|
285
|
+
</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,
|
package/src/router/index.ts
CHANGED
|
@@ -61,6 +61,11 @@ const router = createRouter({
|
|
|
61
61
|
name: 'thousandth',
|
|
62
62
|
component: () => import('../views/ThousandthView.vue'),
|
|
63
63
|
},
|
|
64
|
+
{
|
|
65
|
+
path: '/thousandth-chinese',
|
|
66
|
+
name: 'thousandthChinese',
|
|
67
|
+
component: () => import('../views/ThousandthChineseView.vue'),
|
|
68
|
+
},
|
|
64
69
|
{
|
|
65
70
|
path: '/number-range',
|
|
66
71
|
name: 'numberRange',
|
|
@@ -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 {
|