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