@tplc/business 0.4.22 → 0.4.23
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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.23](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.22...v0.4.23) (2025-03-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增组件 ([af04c93](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/af04c93df2bdcf41fde656d5f0e5712539f243c1))
|
|
11
|
+
|
|
5
12
|
### [0.4.22](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.21...v0.4.22) (2025-03-26)
|
|
6
13
|
|
|
7
14
|
### [0.4.21](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.20...v0.4.21) (2025-03-26)
|
|
@@ -84,13 +84,7 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
|
|
|
84
84
|
icon: 'search',
|
|
85
85
|
mode: 'search',
|
|
86
86
|
})
|
|
87
|
-
|
|
88
|
-
return stringify({
|
|
89
|
-
startDate: form.value.startDate,
|
|
90
|
-
endDate: form.value.endDate,
|
|
91
|
-
keywords: form.value.keywords,
|
|
92
|
-
})
|
|
93
|
-
})
|
|
87
|
+
|
|
94
88
|
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
95
89
|
const addressCity = ref<LcbAddress | undefined>(
|
|
96
90
|
(form.value.cityId || form.value.areaId || form.value.provinceId
|
|
@@ -101,6 +95,16 @@ const dayRange = ref([
|
|
|
101
95
|
form.value.startDate ? dayjs(form.value.startDate).valueOf() : dayjs().valueOf(),
|
|
102
96
|
form.value.endDate ? dayjs(form.value.endDate).valueOf() : dayjs().add(1, 'day').valueOf(),
|
|
103
97
|
])
|
|
98
|
+
const urlParams = computed(() => {
|
|
99
|
+
return stringify({
|
|
100
|
+
startDate: form.value.startDate,
|
|
101
|
+
endDate: form.value.endDate,
|
|
102
|
+
keywords: form.value.keywords,
|
|
103
|
+
provinceId: form.value.provinceId,
|
|
104
|
+
cityId: form.value.cityId,
|
|
105
|
+
areaId: form.value.areaId,
|
|
106
|
+
})
|
|
107
|
+
})
|
|
104
108
|
const { translate } = useTranslate()
|
|
105
109
|
const { getLocation, userLocation } = useLocation()
|
|
106
110
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@query="queryList"
|
|
7
7
|
:height="height"
|
|
8
8
|
:fixed="false"
|
|
9
|
-
:auto="recordType"
|
|
9
|
+
:auto="Boolean(recordType)"
|
|
10
10
|
:use-page-scroll="false"
|
|
11
11
|
>
|
|
12
12
|
<lcb-block v-bind="$props" v-for="item in dataList" :key="item.distributorCommissionLogId">
|
|
@@ -65,10 +65,11 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script lang="ts" setup>
|
|
68
|
-
import { ref, watch } from 'vue'
|
|
68
|
+
import { ref, watch, inject, Ref } from 'vue'
|
|
69
69
|
import { getRecordPageList, UserCommissionLog } from './api'
|
|
70
70
|
import { LcbParticularsProps } from './types'
|
|
71
71
|
import useAutoHeight from '../../hooks/useAutoHeight'
|
|
72
|
+
import { FORM_KEY } from '../../constants'
|
|
72
73
|
defineOptions({
|
|
73
74
|
name: 'LcbParticulars',
|
|
74
75
|
options: {
|
|
@@ -78,6 +79,7 @@ defineOptions({
|
|
|
78
79
|
},
|
|
79
80
|
})
|
|
80
81
|
const { height } = useAutoHeight('particularsTop')
|
|
82
|
+
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
81
83
|
const props = withDefaults(defineProps<LcbParticularsProps>(), {
|
|
82
84
|
textAlign: 'left',
|
|
83
85
|
})
|
|
@@ -91,6 +93,7 @@ const queryList = async (page: number, limit: number) => {
|
|
|
91
93
|
limit,
|
|
92
94
|
page,
|
|
93
95
|
},
|
|
96
|
+
...form.value,
|
|
94
97
|
})
|
|
95
98
|
paging.value.complete(data)
|
|
96
99
|
} catch (error) {
|
|
@@ -98,9 +101,12 @@ const queryList = async (page: number, limit: number) => {
|
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
watch(
|
|
101
|
-
() => props.recordType,
|
|
102
|
-
(
|
|
103
|
-
paging.value?.reload()
|
|
104
|
+
[() => props.recordType, form],
|
|
105
|
+
() => {
|
|
106
|
+
paging.value?.reload?.()
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
deep: true,
|
|
104
110
|
},
|
|
105
111
|
)
|
|
106
112
|
</script>
|