yc-agent-ui 1.0.0 → 1.1.1

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.
Files changed (238) hide show
  1. package/README.md +22 -0
  2. package/es/components/dialog-form/index.d.ts +4 -4
  3. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  4. package/es/components/display-item/index.d.ts +15 -15
  5. package/es/components/display-item/src/index.vue.d.ts +13 -13
  6. package/es/components/drawer-form/index.d.ts +4 -4
  7. package/es/components/drawer-form/src/index.vue.d.ts +4 -4
  8. package/es/components/form/index.d.ts +8 -8
  9. package/es/components/form/src/form-content.vue.d.ts +8 -8
  10. package/es/components/form/src/index.vue.d.ts +8 -8
  11. package/es/components/form-item/index.d.ts +6 -6
  12. package/es/components/form-item/src/index.vue.d.ts +6 -6
  13. package/es/components/index.d.ts +4 -0
  14. package/es/components/page/index.d.ts +172 -172
  15. package/es/components/page/src/index.vue.d.ts +60 -60
  16. package/es/components/search/index.d.ts +52 -52
  17. package/es/components/search/src/index.vue.d.ts +20 -20
  18. package/es/components/table/src/table-column.vue.d.ts +34 -34
  19. package/es/components/yc-controls/capability.d.ts +4 -0
  20. package/es/components/yc-controls/index.d.ts +17 -0
  21. package/es/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
  22. package/es/components/yc-controls/src/segmented.vue.d.ts +16 -0
  23. package/es/components/yc-controls/src/switch-row.vue.d.ts +13 -0
  24. package/es/components/yc-controls/src/type.d.ts +39 -0
  25. package/es/components/yc-feedback/capability.d.ts +4 -0
  26. package/es/components/yc-feedback/index.d.ts +21 -0
  27. package/es/components/yc-feedback/src/banner.vue.d.ts +22 -0
  28. package/es/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
  29. package/es/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
  30. package/es/components/yc-feedback/src/timeline.vue.d.ts +7 -0
  31. package/es/components/yc-feedback/src/type.d.ts +46 -0
  32. package/es/components/yc-input/capability.d.ts +4 -0
  33. package/es/components/yc-input/index.d.ts +21 -0
  34. package/es/components/yc-input/src/input.vue.d.ts +50 -0
  35. package/es/components/yc-input/src/money-input.vue.d.ts +26 -0
  36. package/es/components/yc-input/src/stepper-input.vue.d.ts +18 -0
  37. package/es/components/yc-input/src/textarea.vue.d.ts +35 -0
  38. package/es/components/yc-input/src/type.d.ts +82 -0
  39. package/es/components/yc-plus-page/src/index.vue.d.ts +176 -176
  40. package/es/components/yc-property-table/capability.d.ts +4 -0
  41. package/es/components/yc-property-table/index.d.ts +30 -0
  42. package/es/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
  43. package/es/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
  44. package/es/components/yc-property-table/src/device-table.vue.d.ts +17 -0
  45. package/es/components/yc-property-table/src/order-table.vue.d.ts +18 -0
  46. package/es/components/yc-property-table/src/property-table.vue.d.ts +91 -0
  47. package/es/components/yc-property-table/src/type.d.ts +214 -0
  48. package/es/hooks/usePlusFormReset.d.ts +48 -48
  49. package/es/index.css +16 -16
  50. package/es/index.mjs +4 -0
  51. package/es/packages/components/chart/index.mjs +36 -36
  52. package/es/packages/components/index.mjs +4 -0
  53. package/es/packages/components/table/capability.mjs +10 -29
  54. package/es/packages/components/utils/index.mjs +1 -1
  55. package/es/packages/components/yc-card/capability.mjs +53 -13
  56. package/es/packages/components/yc-controls/capability.mjs +100 -0
  57. package/es/packages/components/yc-controls/index.mjs +13 -0
  58. package/es/packages/components/yc-controls/src/choice-cards.vue.mjs +5 -0
  59. package/es/packages/components/yc-controls/src/choice-cards2.vue.mjs +157 -0
  60. package/es/packages/components/yc-controls/src/segmented.vue.mjs +5 -0
  61. package/es/packages/components/yc-controls/src/segmented2.vue.mjs +78 -0
  62. package/es/packages/components/yc-controls/src/switch-row.vue.mjs +5 -0
  63. package/es/packages/components/yc-controls/src/switch-row2.vue.mjs +95 -0
  64. package/es/packages/components/yc-controls/src/type.mjs +1 -0
  65. package/es/packages/components/yc-feedback/capability.mjs +109 -0
  66. package/es/packages/components/yc-feedback/index.mjs +16 -0
  67. package/es/packages/components/yc-feedback/src/banner.vue.mjs +5 -0
  68. package/es/packages/components/yc-feedback/src/banner2.vue.mjs +230 -0
  69. package/es/packages/components/yc-feedback/src/empty-state.vue.mjs +5 -0
  70. package/es/packages/components/yc-feedback/src/empty-state2.vue.mjs +97 -0
  71. package/es/packages/components/yc-feedback/src/key-value-list.vue.mjs +5 -0
  72. package/es/packages/components/yc-feedback/src/key-value-list2.vue.mjs +194 -0
  73. package/es/packages/components/yc-feedback/src/timeline.vue.mjs +5 -0
  74. package/es/packages/components/yc-feedback/src/timeline2.vue.mjs +134 -0
  75. package/es/packages/components/yc-feedback/src/type.mjs +1 -0
  76. package/es/packages/components/yc-input/capability.mjs +112 -0
  77. package/es/packages/components/yc-input/index.mjs +16 -0
  78. package/es/packages/components/yc-input/src/input.vue.mjs +5 -0
  79. package/es/packages/components/yc-input/src/input2.vue.mjs +427 -0
  80. package/es/packages/components/yc-input/src/money-input.vue.mjs +5 -0
  81. package/es/packages/components/yc-input/src/money-input2.vue.mjs +242 -0
  82. package/es/packages/components/yc-input/src/stepper-input.vue.mjs +5 -0
  83. package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +211 -0
  84. package/es/packages/components/yc-input/src/textarea.vue.mjs +5 -0
  85. package/es/packages/components/yc-input/src/textarea2.vue.mjs +158 -0
  86. package/es/packages/components/yc-input/src/type.mjs +1 -0
  87. package/es/packages/components/yc-property-table/capability.mjs +350 -0
  88. package/es/packages/components/yc-property-table/index.mjs +24 -0
  89. package/es/packages/components/yc-property-table/src/asset-table.vue.mjs +5 -0
  90. package/es/packages/components/yc-property-table/src/asset-table2.vue.mjs +405 -0
  91. package/es/packages/components/yc-property-table/src/bill-table.vue.mjs +5 -0
  92. package/es/packages/components/yc-property-table/src/bill-table2.vue.mjs +654 -0
  93. package/es/packages/components/yc-property-table/src/device-table.vue.mjs +5 -0
  94. package/es/packages/components/yc-property-table/src/device-table2.vue.mjs +324 -0
  95. package/es/packages/components/yc-property-table/src/order-table.vue.mjs +5 -0
  96. package/es/packages/components/yc-property-table/src/order-table2.vue.mjs +363 -0
  97. package/es/packages/components/yc-property-table/src/property-table.vue.mjs +5 -0
  98. package/es/packages/components/yc-property-table/src/property-table2.vue.mjs +1228 -0
  99. package/es/packages/components/yc-property-table/src/type.mjs +1 -0
  100. package/es/packages/registry/load.mjs +21 -5
  101. package/es/version.d.ts +1 -1
  102. package/es/version.mjs +1 -1
  103. package/index.css +6 -6
  104. package/index.js +64731 -57876
  105. package/index.min.css +5 -5
  106. package/index.min.js +32 -32
  107. package/index.min.mjs +33 -33
  108. package/index.mjs +64681 -57863
  109. package/lib/components/dialog-form/index.d.ts +4 -4
  110. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  111. package/lib/components/display-item/index.d.ts +15 -15
  112. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  113. package/lib/components/drawer-form/index.d.ts +4 -4
  114. package/lib/components/drawer-form/src/index.vue.d.ts +4 -4
  115. package/lib/components/form/index.d.ts +8 -8
  116. package/lib/components/form/src/form-content.vue.d.ts +8 -8
  117. package/lib/components/form/src/index.vue.d.ts +8 -8
  118. package/lib/components/form-item/index.d.ts +6 -6
  119. package/lib/components/form-item/src/index.vue.d.ts +6 -6
  120. package/lib/components/index.d.ts +4 -0
  121. package/lib/components/page/index.d.ts +172 -172
  122. package/lib/components/page/src/index.vue.d.ts +60 -60
  123. package/lib/components/search/index.d.ts +52 -52
  124. package/lib/components/search/src/index.vue.d.ts +20 -20
  125. package/lib/components/table/src/table-column.vue.d.ts +34 -34
  126. package/lib/components/yc-controls/capability.d.ts +4 -0
  127. package/lib/components/yc-controls/index.d.ts +17 -0
  128. package/lib/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
  129. package/lib/components/yc-controls/src/segmented.vue.d.ts +16 -0
  130. package/lib/components/yc-controls/src/switch-row.vue.d.ts +13 -0
  131. package/lib/components/yc-controls/src/type.d.ts +39 -0
  132. package/lib/components/yc-feedback/capability.d.ts +4 -0
  133. package/lib/components/yc-feedback/index.d.ts +21 -0
  134. package/lib/components/yc-feedback/src/banner.vue.d.ts +22 -0
  135. package/lib/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
  136. package/lib/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
  137. package/lib/components/yc-feedback/src/timeline.vue.d.ts +7 -0
  138. package/lib/components/yc-feedback/src/type.d.ts +46 -0
  139. package/lib/components/yc-input/capability.d.ts +4 -0
  140. package/lib/components/yc-input/index.d.ts +21 -0
  141. package/lib/components/yc-input/src/input.vue.d.ts +50 -0
  142. package/lib/components/yc-input/src/money-input.vue.d.ts +26 -0
  143. package/lib/components/yc-input/src/stepper-input.vue.d.ts +18 -0
  144. package/lib/components/yc-input/src/textarea.vue.d.ts +35 -0
  145. package/lib/components/yc-input/src/type.d.ts +82 -0
  146. package/lib/components/yc-plus-page/src/index.vue.d.ts +176 -176
  147. package/lib/components/yc-property-table/capability.d.ts +4 -0
  148. package/lib/components/yc-property-table/index.d.ts +30 -0
  149. package/lib/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
  150. package/lib/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
  151. package/lib/components/yc-property-table/src/device-table.vue.d.ts +17 -0
  152. package/lib/components/yc-property-table/src/order-table.vue.d.ts +18 -0
  153. package/lib/components/yc-property-table/src/property-table.vue.d.ts +91 -0
  154. package/lib/components/yc-property-table/src/type.d.ts +214 -0
  155. package/lib/hooks/usePlusFormReset.d.ts +48 -48
  156. package/lib/index.css +13 -13
  157. package/lib/index.js +176 -135
  158. package/lib/packages/components/index.js +172 -131
  159. package/lib/packages/components/table/capability.js +10 -29
  160. package/lib/packages/components/yc-card/capability.js +53 -13
  161. package/lib/packages/components/yc-controls/capability.js +104 -0
  162. package/lib/packages/components/yc-controls/index.js +23 -0
  163. package/lib/packages/components/yc-controls/src/choice-cards.vue.js +9 -0
  164. package/lib/packages/components/yc-controls/src/choice-cards2.vue.js +161 -0
  165. package/lib/packages/components/yc-controls/src/segmented.vue.js +9 -0
  166. package/lib/packages/components/yc-controls/src/segmented2.vue.js +82 -0
  167. package/lib/packages/components/yc-controls/src/switch-row.vue.js +9 -0
  168. package/lib/packages/components/yc-controls/src/switch-row2.vue.js +99 -0
  169. package/lib/packages/components/yc-controls/src/type.js +2 -0
  170. package/lib/packages/components/yc-feedback/capability.js +113 -0
  171. package/lib/packages/components/yc-feedback/index.js +28 -0
  172. package/lib/packages/components/yc-feedback/src/banner.vue.js +9 -0
  173. package/lib/packages/components/yc-feedback/src/banner2.vue.js +234 -0
  174. package/lib/packages/components/yc-feedback/src/empty-state.vue.js +9 -0
  175. package/lib/packages/components/yc-feedback/src/empty-state2.vue.js +101 -0
  176. package/lib/packages/components/yc-feedback/src/key-value-list.vue.js +9 -0
  177. package/lib/packages/components/yc-feedback/src/key-value-list2.vue.js +198 -0
  178. package/lib/packages/components/yc-feedback/src/timeline.vue.js +9 -0
  179. package/lib/packages/components/yc-feedback/src/timeline2.vue.js +138 -0
  180. package/lib/packages/components/yc-feedback/src/type.js +2 -0
  181. package/lib/packages/components/yc-input/capability.js +116 -0
  182. package/lib/packages/components/yc-input/index.js +28 -0
  183. package/lib/packages/components/yc-input/src/input.vue.js +9 -0
  184. package/lib/packages/components/yc-input/src/input2.vue.js +431 -0
  185. package/lib/packages/components/yc-input/src/money-input.vue.js +9 -0
  186. package/lib/packages/components/yc-input/src/money-input2.vue.js +246 -0
  187. package/lib/packages/components/yc-input/src/stepper-input.vue.js +9 -0
  188. package/lib/packages/components/yc-input/src/stepper-input2.vue.js +215 -0
  189. package/lib/packages/components/yc-input/src/textarea.vue.js +9 -0
  190. package/lib/packages/components/yc-input/src/textarea2.vue.js +162 -0
  191. package/lib/packages/components/yc-input/src/type.js +2 -0
  192. package/lib/packages/components/yc-property-table/capability.js +354 -0
  193. package/lib/packages/components/yc-property-table/index.js +43 -0
  194. package/lib/packages/components/yc-property-table/src/asset-table.vue.js +9 -0
  195. package/lib/packages/components/yc-property-table/src/asset-table2.vue.js +409 -0
  196. package/lib/packages/components/yc-property-table/src/bill-table.vue.js +9 -0
  197. package/lib/packages/components/yc-property-table/src/bill-table2.vue.js +658 -0
  198. package/lib/packages/components/yc-property-table/src/device-table.vue.js +9 -0
  199. package/lib/packages/components/yc-property-table/src/device-table2.vue.js +328 -0
  200. package/lib/packages/components/yc-property-table/src/order-table.vue.js +9 -0
  201. package/lib/packages/components/yc-property-table/src/order-table2.vue.js +367 -0
  202. package/lib/packages/components/yc-property-table/src/property-table.vue.js +9 -0
  203. package/lib/packages/components/yc-property-table/src/property-table2.vue.js +1232 -0
  204. package/lib/packages/components/yc-property-table/src/type.js +2 -0
  205. package/lib/packages/registry/load.js +21 -5
  206. package/lib/version.d.ts +1 -1
  207. package/lib/version.js +1 -1
  208. package/locale/en.js +1 -1
  209. package/locale/en.min.js +1 -1
  210. package/locale/en.min.mjs +1 -1
  211. package/locale/en.mjs +1 -1
  212. package/locale/ja.js +1 -1
  213. package/locale/ja.min.js +1 -1
  214. package/locale/ja.min.mjs +1 -1
  215. package/locale/ja.mjs +1 -1
  216. package/locale/ko.js +1 -1
  217. package/locale/ko.min.js +1 -1
  218. package/locale/ko.min.mjs +1 -1
  219. package/locale/ko.mjs +1 -1
  220. package/locale/zh-cn.js +1 -1
  221. package/locale/zh-cn.min.js +1 -1
  222. package/locale/zh-cn.min.mjs +1 -1
  223. package/locale/zh-cn.mjs +1 -1
  224. package/locale/zh-tw.js +1 -1
  225. package/locale/zh-tw.min.js +1 -1
  226. package/locale/zh-tw.min.mjs +1 -1
  227. package/locale/zh-tw.mjs +1 -1
  228. package/package.json +1 -1
  229. package/theme-chalk/index.css +6 -6
  230. package/theme-chalk/plus-yc-controls.css +1 -0
  231. package/theme-chalk/plus-yc-feedback.css +1 -0
  232. package/theme-chalk/plus-yc-input.css +1 -0
  233. package/theme-chalk/plus-yc-property-table.css +1 -0
  234. package/theme-chalk/src/index.scss +4 -0
  235. package/theme-chalk/src/yc-controls.scss +316 -0
  236. package/theme-chalk/src/yc-feedback.scss +452 -0
  237. package/theme-chalk/src/yc-input.scss +473 -0
  238. package/theme-chalk/src/yc-property-table.scss +1700 -0
@@ -0,0 +1,658 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var propertyTable_vue_vue_type_script_setup_true_lang = require('./property-table2.vue.js');
7
+
8
+ const _hoisted_1 = { class: "yc-bill-table-container" };
9
+ const _hoisted_2 = {
10
+ key: 0,
11
+ class: "yc-bill-summary-bar"
12
+ };
13
+ const _hoisted_3 = { class: "yc-bill-summary-item" };
14
+ const _hoisted_4 = { class: "yc-bill-summary-val" };
15
+ const _hoisted_5 = { class: "yc-bill-summary-item is-danger" };
16
+ const _hoisted_6 = { class: "yc-bill-summary-val" };
17
+ const _hoisted_7 = { class: "yc-bill-summary-item" };
18
+ const _hoisted_8 = { class: "yc-bill-summary-val" };
19
+ const _hoisted_9 = ["onClick"];
20
+ const _hoisted_10 = { class: "yc-bill-card__header" };
21
+ const _hoisted_11 = { class: "yc-bill-card__room-badge" };
22
+ const _hoisted_12 = {
23
+ class: "yc-bill-card__room-icon",
24
+ "aria-hidden": "true"
25
+ };
26
+ const _hoisted_13 = {
27
+ key: 0,
28
+ viewBox: "0 0 24 24",
29
+ width: "14",
30
+ height: "14",
31
+ fill: "none",
32
+ stroke: "currentColor",
33
+ "stroke-width": "1.8",
34
+ "stroke-linecap": "round",
35
+ "stroke-linejoin": "round"
36
+ };
37
+ const _hoisted_14 = {
38
+ key: 1,
39
+ viewBox: "0 0 24 24",
40
+ width: "14",
41
+ height: "14",
42
+ fill: "none",
43
+ stroke: "currentColor",
44
+ "stroke-width": "1.8",
45
+ "stroke-linecap": "round",
46
+ "stroke-linejoin": "round"
47
+ };
48
+ const _hoisted_15 = {
49
+ key: 2,
50
+ viewBox: "0 0 24 24",
51
+ width: "14",
52
+ height: "14",
53
+ fill: "none",
54
+ stroke: "currentColor",
55
+ "stroke-width": "1.8",
56
+ "stroke-linecap": "round",
57
+ "stroke-linejoin": "round"
58
+ };
59
+ const _hoisted_16 = { class: "yc-bill-card__room-name" };
60
+ const _hoisted_17 = { class: "yc-bill-card__status" };
61
+ const _hoisted_18 = { class: "yc-bill-card__amount-section" };
62
+ const _hoisted_19 = { class: "yc-bill-card__amount-main" };
63
+ const _hoisted_20 = { class: "yc-bill-card__amount-label" };
64
+ const _hoisted_21 = { class: "yc-bill-card__amount-num" };
65
+ const _hoisted_22 = { class: "yc-bill-card__amount-sub" };
66
+ const _hoisted_23 = { key: 0 };
67
+ const _hoisted_24 = { class: "yc-bill-card__details" };
68
+ const _hoisted_25 = { class: "yc-bill-card__detail-row" };
69
+ const _hoisted_26 = { class: "yc-bill-card__detail-v is-strong" };
70
+ const _hoisted_27 = { class: "yc-bill-card__detail-row" };
71
+ const _hoisted_28 = { class: "yc-bill-card__detail-v" };
72
+ const _hoisted_29 = { class: "yc-bill-card__detail-row" };
73
+ const _hoisted_30 = { class: "yc-bill-card__detail-v" };
74
+ const _hoisted_31 = {
75
+ key: 0,
76
+ class: "yc-bill-card__alert"
77
+ };
78
+ const _hoisted_32 = { class: "yc-bill-card__alert-text" };
79
+ const _hoisted_33 = { class: "yc-bill-card__links" };
80
+ const _hoisted_34 = ["href"];
81
+ const _hoisted_35 = ["onClick"];
82
+ const _hoisted_36 = {
83
+ key: 0,
84
+ class: "yc-bill-card__btns"
85
+ };
86
+ const _hoisted_37 = ["onClick"];
87
+ const _hoisted_38 = ["onClick"];
88
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
89
+ ...{
90
+ name: "YcBillTable"
91
+ },
92
+ __name: "bill-table",
93
+ props: {
94
+ data: { default: () => [] },
95
+ layout: { default: "auto" },
96
+ breakpoint: { default: 768 },
97
+ title: {},
98
+ subtitle: {},
99
+ card: { type: Boolean, default: true },
100
+ searchable: { type: Boolean, default: true },
101
+ pagination: { type: [Boolean, Object] },
102
+ loading: { type: Boolean },
103
+ showSummary: { type: Boolean, default: true },
104
+ customClass: {}
105
+ },
106
+ emits: ["action", "rowClick"],
107
+ setup(__props, { emit: __emit }) {
108
+ const props = __props;
109
+ const emit = __emit;
110
+ const statusMap = {
111
+ unpaid: "\u5F85\u7F34\u7EB3",
112
+ partial: "\u90E8\u5206\u5DF2\u7F34",
113
+ paid: "\u5DF2\u7F34\u6E05",
114
+ overdue: "\u903E\u671F\u6B20\u8D39"
115
+ };
116
+ const reminderMap = {
117
+ none: "\u5C1A\u672A\u50AC\u7F34",
118
+ sms: "\u5DF2\u53D1\u9001\u77ED\u4FE1\u63D0\u9192",
119
+ visit: "\u7BA1\u5BB6\u5DF2\u4E0A\u95E8\u9762\u8C08",
120
+ legal: "\u6CD5\u52A1\u5F8B\u5E08\u51FD\u9001\u8FBE"
121
+ };
122
+ const totalArrears = vue.computed(() => {
123
+ return props.data.reduce((sum, item) => sum + (Number(item.amountUnpaid) || 0), 0);
124
+ });
125
+ const overdueCount = vue.computed(() => {
126
+ return props.data.filter((item) => item.status === "overdue" || item.status === "unpaid").length;
127
+ });
128
+ const collectionRate = vue.computed(() => {
129
+ const totalRec = props.data.reduce((sum, item) => sum + (Number(item.amountReceivable) || 0), 0);
130
+ const totalPaid = props.data.reduce((sum, item) => sum + (Number(item.amountPaid) || 0), 0);
131
+ if (!totalRec) return "100";
132
+ return Math.round(totalPaid / totalRec * 100).toString();
133
+ });
134
+ const formatMoney = (val) => {
135
+ const num = Number(val);
136
+ if (isNaN(num)) return "0.00";
137
+ return num.toLocaleString("zh-CN", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
138
+ };
139
+ const billColumns = [
140
+ {
141
+ prop: "room",
142
+ label: "\u697C\u680B\u623F\u53F7",
143
+ width: 120,
144
+ primary: true
145
+ },
146
+ {
147
+ prop: "subject",
148
+ label: "\u6536\u8D39\u79D1\u76EE",
149
+ width: 120,
150
+ subPrimary: true
151
+ },
152
+ {
153
+ prop: "owner",
154
+ label: "\u4E1A\u4E3B\u59D3\u540D",
155
+ width: 100
156
+ },
157
+ {
158
+ prop: "phone",
159
+ label: "\u8054\u7CFB\u65B9\u5F0F",
160
+ width: 130,
161
+ type: "phone"
162
+ },
163
+ {
164
+ prop: "period",
165
+ label: "\u8BA1\u8D39\u8D26\u671F",
166
+ minWidth: 140
167
+ },
168
+ {
169
+ prop: "amountReceivable",
170
+ label: "\u5E94\u6536\u91D1\u989D",
171
+ width: 110,
172
+ align: "right",
173
+ type: "money"
174
+ },
175
+ {
176
+ prop: "amountPaid",
177
+ label: "\u5DF2\u6536\u91D1\u989D",
178
+ width: 110,
179
+ align: "right",
180
+ type: "money"
181
+ },
182
+ {
183
+ prop: "amountUnpaid",
184
+ label: "\u672A\u7ED3\u6B20\u8D39",
185
+ width: 110,
186
+ align: "right",
187
+ type: "money"
188
+ },
189
+ {
190
+ prop: "status",
191
+ label: "\u7F34\u8D39\u72B6\u6001",
192
+ width: 100,
193
+ type: "tag",
194
+ tagMap: {
195
+ paid: { label: "\u5DF2\u7F34\u6E05", type: "success" },
196
+ partial: { label: "\u90E8\u5206\u7F34", type: "warning" },
197
+ unpaid: { label: "\u5F85\u7F34\u7EB3", type: "info" },
198
+ overdue: { label: "\u903E\u671F\u6B20\u8D39", type: "danger", dot: true, pulse: true }
199
+ }
200
+ },
201
+ {
202
+ prop: "overdueDays",
203
+ label: "\u903E\u671F\u5929\u6570",
204
+ width: 90,
205
+ align: "center",
206
+ formatter: (val) => val ? `${val}\u5929` : "-"
207
+ }
208
+ ];
209
+ const billActions = [
210
+ {
211
+ name: "remind",
212
+ label: "\u50AC\u7F34",
213
+ type: "warning",
214
+ visible: (row) => row.status !== "paid"
215
+ },
216
+ {
217
+ name: "pay",
218
+ label: "\u6536\u94F6",
219
+ type: "success",
220
+ visible: (row) => row.status !== "paid"
221
+ },
222
+ {
223
+ name: "history",
224
+ label: "\u5BF9\u8D26",
225
+ type: "info",
226
+ plain: true
227
+ }
228
+ ];
229
+ const handleAction = (action, row) => {
230
+ emit("action", action, row);
231
+ };
232
+ const handleRowClick = (row, index) => {
233
+ emit("rowClick", row, index);
234
+ };
235
+ return (_ctx, _cache) => {
236
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
237
+ vue.createCommentVNode(" \u5934\u90E8\u6536\u8D39\u603B\u89C8\u6C47\u603B\u6307\u6807\u5361 (\u8D22\u52A1\u4E0E\u7BA1\u5BB6\u50AC\u7F34\u65F6\u6781\u5177\u4EF7\u503C) "),
238
+ __props.showSummary && totalArrears.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
239
+ vue.createElementVNode("div", _hoisted_3, [
240
+ _cache[1] || (_cache[1] = vue.createElementVNode(
241
+ "span",
242
+ { class: "yc-bill-summary-label" },
243
+ "\u5F85\u50AC\u7F34\u603B\u6237\u6570",
244
+ -1
245
+ /* CACHED */
246
+ )),
247
+ vue.createElementVNode(
248
+ "span",
249
+ _hoisted_4,
250
+ vue.toDisplayString(overdueCount.value) + " \u6237",
251
+ 1
252
+ /* TEXT */
253
+ )
254
+ ]),
255
+ vue.createElementVNode("div", _hoisted_5, [
256
+ _cache[2] || (_cache[2] = vue.createElementVNode(
257
+ "span",
258
+ { class: "yc-bill-summary-label" },
259
+ "\u7D2F\u8BA1\u672A\u6536\u6B20\u8D39",
260
+ -1
261
+ /* CACHED */
262
+ )),
263
+ vue.createElementVNode(
264
+ "span",
265
+ _hoisted_6,
266
+ "\xA5 " + vue.toDisplayString(formatMoney(totalArrears.value)),
267
+ 1
268
+ /* TEXT */
269
+ )
270
+ ]),
271
+ vue.createElementVNode("div", _hoisted_7, [
272
+ _cache[3] || (_cache[3] = vue.createElementVNode(
273
+ "span",
274
+ { class: "yc-bill-summary-label" },
275
+ "\u672C\u671F\u6536\u7F34\u7387",
276
+ -1
277
+ /* CACHED */
278
+ )),
279
+ vue.createElementVNode(
280
+ "span",
281
+ _hoisted_8,
282
+ vue.toDisplayString(collectionRate.value) + "%",
283
+ 1
284
+ /* TEXT */
285
+ )
286
+ ])
287
+ ])) : vue.createCommentVNode("v-if", true),
288
+ vue.createVNode(propertyTable_vue_vue_type_script_setup_true_lang.default, {
289
+ data: __props.data,
290
+ columns: billColumns,
291
+ layout: __props.layout,
292
+ breakpoint: __props.breakpoint,
293
+ title: __props.title || "\u7269\u4E1A\u6536\u8D39\u4E0E\u6B20\u8D39\u50AC\u7F34\u53F0\u8D26",
294
+ subtitle: __props.subtitle || "\u697C\u680B\u623F\u53F7\u6536\u8D39\u79D1\u76EE\u660E\u7EC6\u3001\u903E\u671F\u5929\u6570\u76D1\u6D4B\u4E0E\u50AC\u7F34\u6838\u9500\u53F0\u8D26",
295
+ card: __props.card,
296
+ searchable: __props.searchable,
297
+ pagination: __props.pagination,
298
+ loading: __props.loading,
299
+ actions: billActions,
300
+ "custom-class": __props.customClass,
301
+ onAction: handleAction,
302
+ onRowClick: handleRowClick
303
+ }, {
304
+ card: vue.withCtx(({ row, index }) => [
305
+ vue.createElementVNode("div", {
306
+ class: vue.normalizeClass(["yc-bill-card", `is-status-${row.status}`]),
307
+ onClick: ($event) => handleRowClick(row, index)
308
+ }, [
309
+ vue.createElementVNode("div", _hoisted_10, [
310
+ vue.createElementVNode("div", _hoisted_11, [
311
+ vue.createElementVNode("span", _hoisted_12, [
312
+ row.status === "overdue" ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_13, [..._cache[4] || (_cache[4] = [
313
+ vue.createElementVNode(
314
+ "path",
315
+ { d: "M4 20V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v15" },
316
+ null,
317
+ -1
318
+ /* CACHED */
319
+ ),
320
+ vue.createElementVNode(
321
+ "path",
322
+ { d: "M2 20h14" },
323
+ null,
324
+ -1
325
+ /* CACHED */
326
+ ),
327
+ vue.createElementVNode(
328
+ "path",
329
+ { d: "M8 8h2" },
330
+ null,
331
+ -1
332
+ /* CACHED */
333
+ ),
334
+ vue.createElementVNode(
335
+ "path",
336
+ { d: "M8 12h2" },
337
+ null,
338
+ -1
339
+ /* CACHED */
340
+ ),
341
+ vue.createElementVNode(
342
+ "circle",
343
+ {
344
+ cx: "18",
345
+ cy: "15",
346
+ r: "4"
347
+ },
348
+ null,
349
+ -1
350
+ /* CACHED */
351
+ ),
352
+ vue.createElementVNode(
353
+ "path",
354
+ { d: "M18 13.4v1.8l1.1.8" },
355
+ null,
356
+ -1
357
+ /* CACHED */
358
+ )
359
+ ])])) : row.status === "partial" ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_14, [..._cache[5] || (_cache[5] = [
360
+ vue.createElementVNode(
361
+ "rect",
362
+ {
363
+ x: "4",
364
+ y: "3",
365
+ width: "16",
366
+ height: "18",
367
+ rx: "2"
368
+ },
369
+ null,
370
+ -1
371
+ /* CACHED */
372
+ ),
373
+ vue.createElementVNode(
374
+ "path",
375
+ { d: "M8 8h8" },
376
+ null,
377
+ -1
378
+ /* CACHED */
379
+ ),
380
+ vue.createElementVNode(
381
+ "path",
382
+ { d: "M8 12h5" },
383
+ null,
384
+ -1
385
+ /* CACHED */
386
+ ),
387
+ vue.createElementVNode(
388
+ "path",
389
+ { d: "M8 16h3" },
390
+ null,
391
+ -1
392
+ /* CACHED */
393
+ ),
394
+ vue.createElementVNode(
395
+ "path",
396
+ { d: "m14.5 16 1.5 1.5 3-3" },
397
+ null,
398
+ -1
399
+ /* CACHED */
400
+ )
401
+ ])])) : (vue.openBlock(), vue.createElementBlock("svg", _hoisted_15, [..._cache[6] || (_cache[6] = [
402
+ vue.createElementVNode(
403
+ "rect",
404
+ {
405
+ x: "4",
406
+ y: "3",
407
+ width: "16",
408
+ height: "18",
409
+ rx: "2"
410
+ },
411
+ null,
412
+ -1
413
+ /* CACHED */
414
+ ),
415
+ vue.createElementVNode(
416
+ "path",
417
+ { d: "M8 8h8" },
418
+ null,
419
+ -1
420
+ /* CACHED */
421
+ ),
422
+ vue.createElementVNode(
423
+ "path",
424
+ { d: "M8 12h8" },
425
+ null,
426
+ -1
427
+ /* CACHED */
428
+ ),
429
+ vue.createElementVNode(
430
+ "path",
431
+ { d: "M8 16h5" },
432
+ null,
433
+ -1
434
+ /* CACHED */
435
+ )
436
+ ])]))
437
+ ]),
438
+ vue.createElementVNode(
439
+ "span",
440
+ _hoisted_16,
441
+ vue.toDisplayString(row.room),
442
+ 1
443
+ /* TEXT */
444
+ )
445
+ ]),
446
+ vue.createElementVNode("div", _hoisted_17, [
447
+ vue.createElementVNode(
448
+ "span",
449
+ {
450
+ class: vue.normalizeClass(["yc-property-tag", `bill-status-${row.status}`])
451
+ },
452
+ [
453
+ _cache[7] || (_cache[7] = vue.createElementVNode(
454
+ "span",
455
+ { class: "yc-property-tag__dot" },
456
+ null,
457
+ -1
458
+ /* CACHED */
459
+ )),
460
+ vue.createTextVNode(
461
+ " " + vue.toDisplayString(statusMap[row.status] || row.status),
462
+ 1
463
+ /* TEXT */
464
+ )
465
+ ],
466
+ 2
467
+ /* CLASS */
468
+ )
469
+ ])
470
+ ]),
471
+ vue.createElementVNode("div", _hoisted_18, [
472
+ vue.createElementVNode("div", _hoisted_19, [
473
+ vue.createElementVNode(
474
+ "span",
475
+ _hoisted_20,
476
+ vue.toDisplayString(row.status === "paid" ? "\u5DF2\u7F34\u91D1\u989D" : "\u5F85\u7F34\u6B20\u8D39"),
477
+ 1
478
+ /* TEXT */
479
+ ),
480
+ vue.createElementVNode(
481
+ "div",
482
+ {
483
+ class: vue.normalizeClass(["yc-bill-card__amount-figure", { "is-overdue": row.status === "overdue" }])
484
+ },
485
+ [
486
+ _cache[8] || (_cache[8] = vue.createElementVNode(
487
+ "span",
488
+ { class: "yc-bill-card__amount-curr" },
489
+ "\xA5",
490
+ -1
491
+ /* CACHED */
492
+ )),
493
+ vue.createElementVNode(
494
+ "span",
495
+ _hoisted_21,
496
+ vue.toDisplayString(formatMoney(row.amountUnpaid > 0 ? row.amountUnpaid : row.amountPaid)),
497
+ 1
498
+ /* TEXT */
499
+ )
500
+ ],
501
+ 2
502
+ /* CLASS */
503
+ )
504
+ ]),
505
+ vue.createElementVNode("div", _hoisted_22, [
506
+ vue.createElementVNode(
507
+ "span",
508
+ null,
509
+ "\u5E94\u6536 \xA5" + vue.toDisplayString(formatMoney(row.amountReceivable)),
510
+ 1
511
+ /* TEXT */
512
+ ),
513
+ row.amountPaid > 0 && row.status !== "paid" ? (vue.openBlock(), vue.createElementBlock(
514
+ "span",
515
+ _hoisted_23,
516
+ " \xB7 \u5DF2\u6536 \xA5" + vue.toDisplayString(formatMoney(row.amountPaid)),
517
+ 1
518
+ /* TEXT */
519
+ )) : vue.createCommentVNode("v-if", true)
520
+ ])
521
+ ]),
522
+ vue.createElementVNode("div", _hoisted_24, [
523
+ vue.createElementVNode("div", _hoisted_25, [
524
+ _cache[9] || (_cache[9] = vue.createElementVNode(
525
+ "span",
526
+ { class: "yc-bill-card__detail-k" },
527
+ "\u6536\u8D39\u79D1\u76EE",
528
+ -1
529
+ /* CACHED */
530
+ )),
531
+ vue.createElementVNode(
532
+ "span",
533
+ _hoisted_26,
534
+ vue.toDisplayString(row.subject),
535
+ 1
536
+ /* TEXT */
537
+ )
538
+ ]),
539
+ vue.createElementVNode("div", _hoisted_27, [
540
+ _cache[10] || (_cache[10] = vue.createElementVNode(
541
+ "span",
542
+ { class: "yc-bill-card__detail-k" },
543
+ "\u8BA1\u8D39\u5468\u671F",
544
+ -1
545
+ /* CACHED */
546
+ )),
547
+ vue.createElementVNode(
548
+ "span",
549
+ _hoisted_28,
550
+ vue.toDisplayString(row.period),
551
+ 1
552
+ /* TEXT */
553
+ )
554
+ ]),
555
+ vue.createElementVNode("div", _hoisted_29, [
556
+ _cache[11] || (_cache[11] = vue.createElementVNode(
557
+ "span",
558
+ { class: "yc-bill-card__detail-k" },
559
+ "\u4E1A\u4E3B\u59D3\u540D",
560
+ -1
561
+ /* CACHED */
562
+ )),
563
+ vue.createElementVNode(
564
+ "span",
565
+ _hoisted_30,
566
+ vue.toDisplayString(row.owner),
567
+ 1
568
+ /* TEXT */
569
+ )
570
+ ])
571
+ ]),
572
+ row.overdueDays && row.overdueDays > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_31, [
573
+ _cache[13] || (_cache[13] = vue.createElementVNode(
574
+ "svg",
575
+ {
576
+ class: "yc-bill-card__alert-icon",
577
+ viewBox: "0 0 24 24",
578
+ width: "13",
579
+ height: "13",
580
+ fill: "none",
581
+ stroke: "currentColor",
582
+ "stroke-width": "1.8",
583
+ "stroke-linecap": "round",
584
+ "stroke-linejoin": "round",
585
+ "aria-hidden": "true"
586
+ },
587
+ [
588
+ vue.createElementVNode("circle", {
589
+ cx: "12",
590
+ cy: "12",
591
+ r: "9"
592
+ }),
593
+ vue.createElementVNode("path", { d: "M12 7v5l3 2" })
594
+ ],
595
+ -1
596
+ /* CACHED */
597
+ )),
598
+ vue.createElementVNode("span", _hoisted_32, [
599
+ _cache[12] || (_cache[12] = vue.createTextVNode(
600
+ "\u5DF2\u903E\u671F ",
601
+ -1
602
+ /* CACHED */
603
+ )),
604
+ vue.createElementVNode(
605
+ "strong",
606
+ null,
607
+ vue.toDisplayString(row.overdueDays),
608
+ 1
609
+ /* TEXT */
610
+ ),
611
+ vue.createTextVNode(
612
+ " \u5929 \xB7 " + vue.toDisplayString(reminderMap[row.reminderStatus || "none"]),
613
+ 1
614
+ /* TEXT */
615
+ )
616
+ ])
617
+ ])) : vue.createCommentVNode("v-if", true),
618
+ vue.createElementVNode("div", {
619
+ class: "yc-bill-card__actions",
620
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
621
+ }, ["stop"]))
622
+ }, [
623
+ vue.createElementVNode("div", _hoisted_33, [
624
+ row.phone ? (vue.openBlock(), vue.createElementBlock("a", {
625
+ key: 0,
626
+ href: `tel:${row.phone}`,
627
+ class: "yc-bill-card__link"
628
+ }, "\u8054\u7CFB\u4E1A\u4E3B", 8, _hoisted_34)) : vue.createCommentVNode("v-if", true),
629
+ vue.createElementVNode("button", {
630
+ type: "button",
631
+ class: "yc-bill-card__link",
632
+ onClick: ($event) => handleAction("history", row)
633
+ }, " \u6D41\u6C34 ", 8, _hoisted_35)
634
+ ]),
635
+ row.status !== "paid" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_36, [
636
+ vue.createElementVNode("button", {
637
+ type: "button",
638
+ class: "yc-bill-card__btn is-remind",
639
+ onClick: ($event) => handleAction("remind", row)
640
+ }, " \u50AC\u7F34 ", 8, _hoisted_37),
641
+ vue.createElementVNode("button", {
642
+ type: "button",
643
+ class: "yc-bill-card__btn is-pay",
644
+ onClick: ($event) => handleAction("pay", row)
645
+ }, " \u6536\u94F6\u6838\u9500 ", 8, _hoisted_38)
646
+ ])) : vue.createCommentVNode("v-if", true)
647
+ ])
648
+ ], 10, _hoisted_9)
649
+ ]),
650
+ _: 1
651
+ /* STABLE */
652
+ }, 8, ["data", "layout", "breakpoint", "title", "subtitle", "card", "searchable", "pagination", "loading", "custom-class"])
653
+ ]);
654
+ };
655
+ }
656
+ });
657
+
658
+ exports.default = _sfc_main;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var deviceTable_vue_vue_type_script_setup_true_lang = require('./device-table2.vue.js');
6
+
7
+
8
+
9
+ exports.default = deviceTable_vue_vue_type_script_setup_true_lang.default;