verce-vue-test 0.0.114 → 0.0.115
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
CHANGED
|
@@ -16,6 +16,7 @@ declare global {
|
|
|
16
16
|
|
|
17
17
|
declare module 'vue' {
|
|
18
18
|
export interface GlobalComponents {
|
|
19
|
+
BusinessType: typeof import('./src/components/business/Public/BusinessType.vue')['default']
|
|
19
20
|
DateRange: typeof import('./src/components/element-rewrite/DateRange.vue')['default']
|
|
20
21
|
ElButtonPro: typeof import('./src/components/element-rewrite/ElButtonPro.vue')['default']
|
|
21
22
|
ElFormDialog: typeof import('./src/components/element-rewrite/ElFormDialog.vue')['default']
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span>{{ displayValue }}</span>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts" name="BusinessType">
|
|
6
|
+
import { computed } from 'vue'
|
|
7
|
+
|
|
8
|
+
const businessTypeMap: Record<string, string> = {
|
|
9
|
+
'1': '对公/个人客户收付',
|
|
10
|
+
'2': '本票签发/兑付',
|
|
11
|
+
'3': '三省一市汇票签发/兑付',
|
|
12
|
+
'4': '分行资金调拨',
|
|
13
|
+
'5': '同业业务',
|
|
14
|
+
'6': '资金业务',
|
|
15
|
+
'7': '理财业务',
|
|
16
|
+
'8': '债券承销业务',
|
|
17
|
+
'9': '司库业务',
|
|
18
|
+
'10': '现金出入库',
|
|
19
|
+
'11': '财政准备金退缴',
|
|
20
|
+
'12': '同业清算款项收付',
|
|
21
|
+
'13': '财政零余额业务',
|
|
22
|
+
'14': '银行承兑汇票',
|
|
23
|
+
'15': '托管业务',
|
|
24
|
+
'16': '票据业务',
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const props = defineProps<{
|
|
28
|
+
value?: string | number | null
|
|
29
|
+
}>()
|
|
30
|
+
|
|
31
|
+
const displayValue = computed(() => {
|
|
32
|
+
const value = String(props.value ?? '').trim()
|
|
33
|
+
|
|
34
|
+
if (!value) return '-'
|
|
35
|
+
|
|
36
|
+
return businessTypeMap[value] ?? value
|
|
37
|
+
})
|
|
38
|
+
</script>
|
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { App, Component } from 'vue'
|
|
2
2
|
|
|
3
|
+
import BusinessType from './business/Public/BusinessType.vue'
|
|
3
4
|
import TokenTag from './business/Public/TokenTag.vue'
|
|
4
5
|
import DateRange from './element-rewrite/DateRange.vue'
|
|
5
6
|
import ElButtonPro from './element-rewrite/ElButtonPro.vue'
|
|
@@ -20,6 +21,13 @@ type GlobalComponentDefinition = {
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
const globalComponentDefinitions: GlobalComponentDefinition[] = [
|
|
24
|
+
{
|
|
25
|
+
name: 'BusinessType',
|
|
26
|
+
component: BusinessType,
|
|
27
|
+
category: '展示组件',
|
|
28
|
+
description: '根据业务类型编码展示对应的业务名称。',
|
|
29
|
+
filePath: 'src/components/business/Public/BusinessType.vue',
|
|
30
|
+
},
|
|
23
31
|
{
|
|
24
32
|
name: 'TokenTag',
|
|
25
33
|
component: TokenTag,
|