@tplc/business 0.4.21 → 0.4.22
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/CHANGELOG.md +2 -0
- package/components/lcb-particulars/api.ts +2 -0
- package/components/lcb-particulars/lcb-particulars.vue +42 -29
- package/components/lcb-particulars/types.ts +1 -0
- package/package.json +1 -1
- package/types/components/lcb-particulars/api.d.ts +2 -0
- package/types/components/lcb-particulars/lcb-particulars.vue.d.ts +31 -3
- package/types/components/lcb-particulars/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.22](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.21...v0.4.22) (2025-03-26)
|
|
6
|
+
|
|
5
7
|
### [0.4.21](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.20...v0.4.21) (2025-03-26)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -21,8 +21,10 @@ export interface UserCommissionLog {
|
|
|
21
21
|
relevanceTypeName: string
|
|
22
22
|
status: number
|
|
23
23
|
statusInfo: StatusInfo
|
|
24
|
+
subTitle: string
|
|
24
25
|
statusName: string
|
|
25
26
|
userId: string
|
|
27
|
+
buttomContent: string
|
|
26
28
|
}
|
|
27
29
|
export interface StatusInfo {
|
|
28
30
|
statusColor: string
|
|
@@ -6,30 +6,38 @@
|
|
|
6
6
|
@query="queryList"
|
|
7
7
|
:height="height"
|
|
8
8
|
:fixed="false"
|
|
9
|
-
:auto="
|
|
9
|
+
:auto="recordType"
|
|
10
10
|
:use-page-scroll="false"
|
|
11
11
|
>
|
|
12
|
-
<lcb-block v-bind="$
|
|
13
|
-
<view class="
|
|
14
|
-
<view class="
|
|
15
|
-
|
|
12
|
+
<lcb-block v-bind="$props" v-for="item in dataList" :key="item.distributorCommissionLogId">
|
|
13
|
+
<view class="border-bottom">
|
|
14
|
+
<view class="flex items-center justify-between pr-3 font-500">
|
|
15
|
+
<view class="relative">
|
|
16
|
+
{{ item.title }}
|
|
17
|
+
<view
|
|
18
|
+
class="title-view"
|
|
19
|
+
:style="{
|
|
20
|
+
backgroundColor: item.statusInfo.statusColor,
|
|
21
|
+
}"
|
|
22
|
+
></view>
|
|
23
|
+
</view>
|
|
16
24
|
<view
|
|
17
|
-
class="title-view"
|
|
18
25
|
:style="{
|
|
19
|
-
|
|
26
|
+
color: item.statusInfo.statusColor,
|
|
20
27
|
}"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
:style="{
|
|
25
|
-
color: item.statusInfo.statusColor,
|
|
26
|
-
}"
|
|
27
|
-
>
|
|
28
|
-
{{ item.statusInfo.statusName }}
|
|
28
|
+
>
|
|
29
|
+
{{ item.statusInfo.statusName }}
|
|
30
|
+
</view>
|
|
29
31
|
</view>
|
|
32
|
+
<view class="text-#333 mt-1" v-if="item.subTitle">{{ item.subTitle }}</view>
|
|
30
33
|
</view>
|
|
31
34
|
|
|
32
|
-
<view
|
|
35
|
+
<view
|
|
36
|
+
class="text-24rpx grid grid-cols-3"
|
|
37
|
+
:class="{
|
|
38
|
+
'border-bottom pb-2': item.buttomContent,
|
|
39
|
+
}"
|
|
40
|
+
>
|
|
33
41
|
<view
|
|
34
42
|
v-for="detail in item.pageListFieldDetailList"
|
|
35
43
|
:key="detail.fieldName"
|
|
@@ -38,12 +46,19 @@
|
|
|
38
46
|
'border-b-dashed': detail.lineFlag,
|
|
39
47
|
}"
|
|
40
48
|
>
|
|
41
|
-
<view class="text-#969696">{{ detail.fieldName }}</view>
|
|
42
|
-
<view
|
|
49
|
+
<view class="text-#969696 flex-shrink-0">{{ detail.fieldName }}</view>
|
|
50
|
+
<view
|
|
51
|
+
class="flex-1 ml-2"
|
|
52
|
+
:style="{
|
|
53
|
+
textAlign: props.textAlign,
|
|
54
|
+
}"
|
|
55
|
+
>
|
|
56
|
+
{{ detail.fieldValue }}
|
|
57
|
+
</view>
|
|
43
58
|
</view>
|
|
44
59
|
</view>
|
|
45
|
-
<view>
|
|
46
|
-
{{ item.
|
|
60
|
+
<view v-if="item.buttomContent">
|
|
61
|
+
{{ item.buttomContent }}
|
|
47
62
|
</view>
|
|
48
63
|
</lcb-block>
|
|
49
64
|
</z-paging>
|
|
@@ -63,7 +78,9 @@ defineOptions({
|
|
|
63
78
|
},
|
|
64
79
|
})
|
|
65
80
|
const { height } = useAutoHeight('particularsTop')
|
|
66
|
-
const props = defineProps<LcbParticularsProps>()
|
|
81
|
+
const props = withDefaults(defineProps<LcbParticularsProps>(), {
|
|
82
|
+
textAlign: 'left',
|
|
83
|
+
})
|
|
67
84
|
const paging = ref()
|
|
68
85
|
const dataList = ref<UserCommissionLog[]>([])
|
|
69
86
|
const queryList = async (page: number, limit: number) => {
|
|
@@ -83,23 +100,19 @@ const queryList = async (page: number, limit: number) => {
|
|
|
83
100
|
watch(
|
|
84
101
|
() => props.recordType,
|
|
85
102
|
(value) => {
|
|
86
|
-
console.log(value, 'value')
|
|
87
103
|
paging.value?.reload()
|
|
88
104
|
},
|
|
89
|
-
{
|
|
90
|
-
immediate: true,
|
|
91
|
-
},
|
|
92
105
|
)
|
|
93
106
|
</script>
|
|
94
107
|
<style lang="scss" scoped>
|
|
95
108
|
.border-bottom {
|
|
96
|
-
padding-bottom:
|
|
97
|
-
margin-bottom:
|
|
109
|
+
padding-bottom: 8rpx;
|
|
110
|
+
margin-bottom: 8rpx;
|
|
98
111
|
border-bottom: 1rpx solid #eeeeee;
|
|
99
112
|
}
|
|
100
113
|
.border-b-dashed {
|
|
101
|
-
padding-bottom:
|
|
102
|
-
margin-bottom:
|
|
114
|
+
padding-bottom: 8rpx;
|
|
115
|
+
margin-bottom: 8rpx;
|
|
103
116
|
border-bottom: 1rpx dashed #eeeeee;
|
|
104
117
|
}
|
|
105
118
|
.title-view {
|
package/package.json
CHANGED
|
@@ -18,8 +18,10 @@ export interface UserCommissionLog {
|
|
|
18
18
|
relevanceTypeName: string
|
|
19
19
|
status: number
|
|
20
20
|
statusInfo: StatusInfo
|
|
21
|
+
subTitle: string
|
|
21
22
|
statusName: string
|
|
22
23
|
userId: string
|
|
24
|
+
buttomContent: string
|
|
23
25
|
}
|
|
24
26
|
export interface StatusInfo {
|
|
25
27
|
statusColor: string
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { LcbParticularsProps } from './types'
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
|
-
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbParticularsProps>,
|
|
5
|
+
{
|
|
6
|
+
textAlign: string
|
|
7
|
+
}
|
|
8
|
+
>,
|
|
4
9
|
{},
|
|
5
10
|
unknown,
|
|
6
11
|
{},
|
|
@@ -10,11 +15,34 @@ declare const _default: import('vue').DefineComponent<
|
|
|
10
15
|
{},
|
|
11
16
|
string,
|
|
12
17
|
import('vue').PublicProps,
|
|
13
|
-
Readonly<
|
|
14
|
-
|
|
18
|
+
Readonly<
|
|
19
|
+
import('vue').ExtractPropTypes<
|
|
20
|
+
__VLS_WithDefaults<
|
|
21
|
+
__VLS_TypePropsToOption<LcbParticularsProps>,
|
|
22
|
+
{
|
|
23
|
+
textAlign: string
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
>
|
|
27
|
+
>,
|
|
28
|
+
{
|
|
29
|
+
textAlign: 'left' | 'right'
|
|
30
|
+
},
|
|
15
31
|
{}
|
|
16
32
|
>
|
|
17
33
|
export default _default
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
36
|
+
? __VLS_Prettify<
|
|
37
|
+
P[K] & {
|
|
38
|
+
default: D[K]
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
: P[K]
|
|
42
|
+
}
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K]
|
|
45
|
+
} & {}
|
|
18
46
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
19
47
|
type __VLS_TypePropsToOption<T> = {
|
|
20
48
|
[K in keyof T]-?: {} extends Pick<T, K>
|