@tplc/business 0.4.16 → 0.4.17

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,40 @@
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.17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.4...v0.4.17) (2025-03-25)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * prodcut 单列也支持itemWidth ([216470d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/216470de894322367ad74054244cd7a4a0a72b74))
11
+ * 修改地址 ([dba8297](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dba82970fccf44096fed203b46316c7da2f9f9b9))
12
+ * 修改字段 ([659d081](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/659d081b746f63f4502abd03b7137d1247419453))
13
+ * 搜索条件处理 ([56fb8cd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56fb8cd2a4909b885d493809e92eff59ed784c08))
14
+ * 新增historuy ([7a2fd5d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7a2fd5d467365d068080ff8affc01d8d0124ccbd))
15
+ * 新增search list ([d3aef1e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d3aef1ef5a024280946071d17e54b2c70057e56a))
16
+ * 新增数据 ([79f5a41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79f5a4134e246fa22f6f01b99b6e1de78dc1581e))
17
+ * 新增过滤属性 ([1550bf8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1550bf828d51340111c293d3e6e856397d02480f))
18
+ * 调整全局 ([c7ef8db](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c7ef8db507c2b199cebfed02c6051bc81fd6d6ff))
19
+ * 调整日历 ([89734b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/89734b6488f7f06e0ce0acc6bb3926c2ff443284))
20
+ * 选中 ([9647c0b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9647c0b3f06a1479baa8c8877ca69e5adcc51c96))
21
+
22
+
23
+ ### 🚀 Chore | 构建/工程依赖/工具
24
+
25
+ * **release:** 0.1.73 ([25060fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/25060fec56e40d93bc72c16252c2de61c246667c))
26
+ * **release:** 0.4.10 ([79f133e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79f133e84b573b4ec17c427b58dbb8d7edc0f417))
27
+ * **release:** 0.4.11 ([70b2d74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/70b2d74be4249bc5c44faf23e767dc79014c570e))
28
+ * **release:** 0.4.12 ([4c8eae0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4c8eae0439c09e6bfd040305468fcbbc04ad7983))
29
+ * **release:** 0.4.13 ([38231bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38231bf185451075448d113d72cb05e75cb11b02))
30
+ * **release:** 0.4.14 ([5de7dae](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5de7daeb9c37b8064336f38948686a978e38c35e))
31
+ * **release:** 0.4.15 ([ebc5e83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ebc5e8364f1e6cf1af96b54e83386322a969cf9a))
32
+ * **release:** 0.4.16 ([c915ea8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c915ea8dbf3c40172a865cb6e87f4dd0cde4112c))
33
+ * **release:** 0.4.5 ([fffd7c5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fffd7c56475cdd29eaf63c210b0e2a873eefeca1))
34
+ * **release:** 0.4.6 ([f437a16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f437a16a28f45f8e38d49de925e226c779ef728a))
35
+ * **release:** 0.4.7 ([38fd7ee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38fd7ee8de57e93ddb7dc7c1395a53ebb67aed7c))
36
+ * **release:** 0.4.8 ([57a030f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/57a030f7e18a150a2846ed5da2533819e637d445))
37
+ * **release:** 0.4.9 ([c592177](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c5921773be664a74b551f5eae79d91ebe7efce4a))
38
+
5
39
  ### [0.4.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.73...v0.4.16) (2025-03-25)
6
40
 
7
41
 
@@ -16,6 +16,7 @@ interface AreaList {
16
16
  areaId: string
17
17
  areaName: string
18
18
  cityId: string
19
+ provinceId: string
19
20
  }
20
21
  export interface AreaOptions {
21
22
  label: string
@@ -79,7 +79,9 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
79
79
 
80
80
  const form = inject(FORM_KEY) as Ref<Record<string, any>>
81
81
  const addressCity = ref<LcbAddress | undefined>(
82
- (form.value.cityId || form.value.areaId ? form.value : getHistoryCity()) as LcbAddress,
82
+ (form.value.cityId || form.value.areaId || form.value.provinceId
83
+ ? form.value
84
+ : getHistoryCity()) as LcbAddress,
83
85
  )
84
86
  const dayRange = ref([
85
87
  form.value.startDate ? dayjs(form.value.startDate).valueOf() : dayjs().valueOf(),
@@ -95,6 +97,7 @@ watch(
95
97
  const params: Record<string, any> = {
96
98
  cityId: val?.cityId,
97
99
  areaId: val?.areaId,
100
+ provinceId: val?.provinceId,
98
101
  addressName: val?.addressName,
99
102
  }
100
103
  if (val.keywords) {
@@ -21,6 +21,7 @@ export interface ChildHotAddress {
21
21
  className?: string
22
22
  cityId: string
23
23
  areaId: string
24
+ provinceId: string
24
25
  longitude?: string
25
26
  weightSort?: string
26
27
  addressInfo?: string
@@ -35,6 +36,7 @@ export interface LcbAddress {
35
36
  keywords?: string
36
37
  cityId: string
37
38
  areaId: string
39
+ provinceId: string
38
40
  hotAddressId: string
39
41
  provinceCityName: string
40
42
  area: string
@@ -94,12 +94,14 @@ const locationAddress = computed<HotAddress[]>(() => {
94
94
  addressName: props.location.haveNotCityName || props.location.cityName,
95
95
  cityId: props.location.haveNotCityId || props.location.cityId,
96
96
  areaId: props.location.areaId,
97
+ provinceId: props.location.provinceId,
97
98
  icon: 'location',
98
99
  },
99
100
  {
100
101
  addressName: props.location.haveNotAddressInfo || props.location.addressInfo,
101
102
  cityId: props.location.haveNotCityId || props.location.cityId,
102
103
  areaId: props.location.areaId,
104
+ provinceId: props.location.provinceId,
103
105
  className: 'w-25',
104
106
  },
105
107
  ],
@@ -1,6 +1,10 @@
1
1
  <template>
2
2
  <view class="p-3 box-border h-full overflow-y-auto pt-0">
3
- <view v-for="item in list" :key="item.areaId || item.cityId" @click="onItemClick(item)">
3
+ <view
4
+ v-for="item in list"
5
+ :key="item.areaId || item.cityId || item.provinceId"
6
+ @click="onItemClick(item)"
7
+ >
4
8
  <view class="flex mt-3">
5
9
  <view class="tag">{{ item.categoryName }}</view>
6
10
  <view class="content">
@@ -116,6 +116,7 @@ watch(
116
116
  addressName: val.showName || val.cityName,
117
117
  cityId: val.cityId,
118
118
  areaId: val.areaId,
119
+ provinceId: val.provinceId,
119
120
  } as ChildHotAddress
120
121
  }
121
122
  },
@@ -53,6 +53,7 @@
53
53
  color: form.keywords ? 'var(--content-color)' : '#969696',
54
54
  }"
55
55
  v-bind="inputLink"
56
+ :urlParams="stringify(form)"
56
57
  >
57
58
  {{ form.keywords || placeholder }}
58
59
  </lcb-action-view>
@@ -150,6 +151,7 @@ const form = reactive({
150
151
  endDate: '',
151
152
  cityId: '',
152
153
  areaId: '',
154
+ provinceId: '',
153
155
  addressName: '',
154
156
  cityName: '',
155
157
  })
@@ -181,6 +183,7 @@ watchEffect(() => {
181
183
  if (addressCity.value) {
182
184
  form.cityId = addressCity.value.cityId
183
185
  form.areaId = addressCity.value.areaId
186
+ form.provinceId = addressCity.value.provinceId
184
187
  form.addressName = addressCity.value.addressName
185
188
  if (addressCity.value.keywords) {
186
189
  form.keywords = addressCity.value.keywords
@@ -149,6 +149,7 @@ const onSelect = (keyword: ProductInfo) => {
149
149
  cityName: options.cityName,
150
150
  addressName: options.addressName,
151
151
  areaId: options.areaId,
152
+ provinceId: options.provinceId,
152
153
  cityId: options.cityId,
153
154
  ...queryParams,
154
155
  }
@@ -158,11 +159,11 @@ const onSelect = (keyword: ProductInfo) => {
158
159
  delete queryParams[key]
159
160
  }
160
161
  })
161
- if (options.jumpType !== 'jump') {
162
+ if (!options.jumpPageType) {
162
163
  uni.$emit(`${getPreviousPageId()}_filter_change`, queryParams)
163
164
  uni.navigateBack()
164
165
  } else {
165
- uni.navigateTo({
166
+ uni.redirectTo({
166
167
  url: path + '?' + stringify(queryParams),
167
168
  })
168
169
  }
@@ -2,6 +2,7 @@ export interface UserLocation {
2
2
  addressInfo: string
3
3
  cityId: string
4
4
  areaId: string
5
+ provinceId: string
5
6
  cityName: string
6
7
  haveNotCityId: string
7
8
  haveNotCityName: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -13,6 +13,7 @@ interface AreaList {
13
13
  areaId: string
14
14
  areaName: string
15
15
  cityId: string
16
+ provinceId: string
16
17
  }
17
18
  export interface AreaOptions {
18
19
  label: string
@@ -19,6 +19,7 @@ export interface ChildHotAddress {
19
19
  className?: string
20
20
  cityId: string
21
21
  areaId: string
22
+ provinceId: string
22
23
  longitude?: string
23
24
  weightSort?: string
24
25
  addressInfo?: string
@@ -32,6 +33,7 @@ export interface LcbAddress {
32
33
  keywords?: string
33
34
  cityId: string
34
35
  areaId: string
36
+ provinceId: string
35
37
  hotAddressId: string
36
38
  provinceCityName: string
37
39
  area: string
@@ -2,6 +2,7 @@ export interface UserLocation {
2
2
  addressInfo: string
3
3
  cityId: string
4
4
  areaId: string
5
+ provinceId: string
5
6
  cityName: string
6
7
  haveNotCityId: string
7
8
  haveNotCityName: string