@tplc/business 0.4.137 → 0.4.139

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,34 @@
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.139](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.138...v0.4.139) (2025-06-25)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 调整字段 ([363344f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/363344f740e50b5fe866024a304f56e7f7b12cc7))
11
+
12
+ ### [0.4.138](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.87...v0.4.138) (2025-06-25)
13
+
14
+
15
+ ### 🚀 Chore | 构建/工程依赖/工具
16
+
17
+ * **release:** 0.4.135 ([d72bbed](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d72bbed65d89ba3828aedc42485e091402af756f))
18
+ * **release:** 0.4.136 ([9abae50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9abae509f02f5ff07e6911d8ee7b50216c2d548e))
19
+ * **release:** 0.4.137 ([b5ea428](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b5ea428c8885ec8b15899257bacc7f4504f59fb1))
20
+
21
+
22
+ ### ✨ Features | 新功能
23
+
24
+ * link url ([4209b9a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4209b9aa86d739338259fc57013d22f527468d7a))
25
+ * 修改tabs ([d6943cb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d6943cbd0ed0c94875de9cc218070e24f917b5ac))
26
+ * 修改字段展示 ([e39ee81](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e39ee81a0c55b3edb0c983ceed5c4be7f10bf425))
27
+ * 新增cursor rule ([e6de982](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e6de982146ac5c5af64fe701e6a40deb4b7af22c))
28
+ * 新增room calendar ([08ed10c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/08ed10c9f34b0c6c32834f0dfad713800d095ae6))
29
+ * 新增新属性 ([cd8221b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cd8221b9038f8384eeababa3fd0190b77bea6fa0))
30
+ * 组件ui完成 ([1f050dc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f050dcd83b8e17fac9f7b131abc971c282aaacd))
31
+ * 跳转编辑 ([ba86490](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba864901130dcc104249cf7fd7bbae102e15ee16))
32
+
5
33
  ### [0.4.137](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.136...v0.4.137) (2025-06-25)
6
34
 
7
35
 
@@ -9,10 +9,13 @@
9
9
  >
10
10
  <view class="p-1 pt-3 box-border">
11
11
  <view class="flex justify-between items-center text-white pl-2 pr-1.5 box-border w-full">
12
- <view class="text-4 font-bold flex gap-1.5 items-center">
12
+ <lcb-action-view
13
+ v-bind="titleLink"
14
+ custom-class="!flex !items-center !justify-center gap-1.5"
15
+ >
13
16
  <wd-icon :name="calendarIcon" class-prefix="lcb" size="30rpx" v-if="calendarIcon" />
14
- {{ currentMonth }}
15
- </view>
17
+ {{ title }}
18
+ </lcb-action-view>
16
19
  <lcb-action-view v-bind="link" custom-class="!flex !items-center !justify-center gap-1.5">
17
20
  <view class="font-bold text-3.5">{{ linkTitle }}</view>
18
21
  <wd-icon name="a-xingzhuang97" class-prefix="lcb" size="22rpx" />
@@ -31,7 +34,7 @@
31
34
  }"
32
35
  >
33
36
  <view class="day-title flex items-center justify-center gap-1 mr-2">
34
- <text>{{ item.dateStr }}</text>
37
+ <text>{{ item.dateChinese }}</text>
35
38
  <view
36
39
  class="day-title-tip"
37
40
  :class="{
@@ -45,15 +48,15 @@
45
48
  <view class="day-info flex flex-col items-center justify-center p-1 box-border mr-0.75">
46
49
  <view class="day-info-top">余{{ item.total }}</view>
47
50
  <view class="day-info-bottom mt-1.5">
48
- <view>
51
+ <view v-if="item.pp">
49
52
  <text>销:¥{{ item.pp }}/</text>
50
53
  <text class="text-2.5">起</text>
51
54
  </view>
52
- <view>
55
+ <view v-if="item.dp">
53
56
  <text>分:¥{{ item.dp }}/</text>
54
57
  <text class="text-2.5">起</text>
55
58
  </view>
56
- <view>
59
+ <view v-if="item.sp">
57
60
  <text>结:¥{{ item.sp }}/</text>
58
61
  <text class="text-2.5">起</text>
59
62
  </view>
@@ -66,14 +69,13 @@
66
69
  </template>
67
70
 
68
71
  <script setup lang="ts">
69
- import { dayjs } from '@tplc/wot'
70
72
  import { LcbRoomCalendarProps } from './types'
71
73
  import { computed, onMounted, ref } from 'vue'
72
74
  interface CalendarInfo {
73
75
  dateTypeStateMap: Record<
74
76
  string,
75
77
  {
76
- dateStr: number
78
+ dateChinese: number
77
79
  /** 0班8休 */
78
80
  restNumber: number
79
81
  dateTip?: string
@@ -102,8 +104,8 @@ withDefaults(defineProps<LcbRoomCalendarProps>(), {
102
104
  backgroundColor: 'var(--wot-color-theme)',
103
105
  topRadius: 16,
104
106
  bottomRadius: 16,
107
+ title: '房态管理',
105
108
  })
106
- const currentMonth = dayjs().format('MM')
107
109
  const info = ref<CalendarInfo>()
108
110
  onMounted(async () => {
109
111
  const { data } = await uni.$lcb.http.post<CalendarInfo>('/storeHotelRoom/queryCalendarInfoIndex')
@@ -6,4 +6,6 @@ export interface LcbRoomCalendarProps extends LcbBlockProps {
6
6
  link?: LcbActionViewProps
7
7
  backgroundImg?: string
8
8
  calendarIcon?: string
9
+ title?: string
10
+ titleLink?: LcbActionViewProps
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.137",
3
+ "version": "0.4.139",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -7,6 +7,7 @@ declare const _default: import('vue').DefineComponent<
7
7
  backgroundColor: string
8
8
  topRadius: number
9
9
  bottomRadius: number
10
+ title: string
10
11
  }
11
12
  >,
12
13
  {},
@@ -27,11 +28,13 @@ declare const _default: import('vue').DefineComponent<
27
28
  backgroundColor: string
28
29
  topRadius: number
29
30
  bottomRadius: number
31
+ title: string
30
32
  }
31
33
  >
32
34
  >
33
35
  >,
34
36
  {
37
+ title: string
35
38
  backgroundColor: string
36
39
  topRadius: number
37
40
  bottomRadius: number
@@ -5,4 +5,6 @@ export interface LcbRoomCalendarProps extends LcbBlockProps {
5
5
  link?: LcbActionViewProps
6
6
  backgroundImg?: string
7
7
  calendarIcon?: string
8
+ title?: string
9
+ titleLink?: LcbActionViewProps
8
10
  }