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.
- package/README.md +22 -0
- 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 +15 -15
- package/es/components/display-item/src/index.vue.d.ts +13 -13
- package/es/components/drawer-form/index.d.ts +4 -4
- package/es/components/drawer-form/src/index.vue.d.ts +4 -4
- package/es/components/form/index.d.ts +8 -8
- package/es/components/form/src/form-content.vue.d.ts +8 -8
- package/es/components/form/src/index.vue.d.ts +8 -8
- package/es/components/form-item/index.d.ts +6 -6
- package/es/components/form-item/src/index.vue.d.ts +6 -6
- package/es/components/index.d.ts +4 -0
- package/es/components/page/index.d.ts +172 -172
- package/es/components/page/src/index.vue.d.ts +60 -60
- package/es/components/search/index.d.ts +52 -52
- package/es/components/search/src/index.vue.d.ts +20 -20
- package/es/components/table/src/table-column.vue.d.ts +34 -34
- 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-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/index.vue.d.ts +176 -176
- 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/hooks/usePlusFormReset.d.ts +48 -48
- package/es/index.css +16 -16
- package/es/index.mjs +4 -0
- package/es/packages/components/chart/index.mjs +36 -36
- package/es/packages/components/index.mjs +4 -0
- package/es/packages/components/table/capability.mjs +10 -29
- package/es/packages/components/utils/index.mjs +1 -1
- 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/packages/registry/load.mjs +21 -5
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +6 -6
- package/index.js +64731 -57876
- package/index.min.css +5 -5
- package/index.min.js +32 -32
- package/index.min.mjs +33 -33
- package/index.mjs +64681 -57863
- 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 +15 -15
- package/lib/components/display-item/src/index.vue.d.ts +13 -13
- package/lib/components/drawer-form/index.d.ts +4 -4
- package/lib/components/drawer-form/src/index.vue.d.ts +4 -4
- package/lib/components/form/index.d.ts +8 -8
- package/lib/components/form/src/form-content.vue.d.ts +8 -8
- package/lib/components/form/src/index.vue.d.ts +8 -8
- package/lib/components/form-item/index.d.ts +6 -6
- package/lib/components/form-item/src/index.vue.d.ts +6 -6
- package/lib/components/index.d.ts +4 -0
- package/lib/components/page/index.d.ts +172 -172
- package/lib/components/page/src/index.vue.d.ts +60 -60
- package/lib/components/search/index.d.ts +52 -52
- package/lib/components/search/src/index.vue.d.ts +20 -20
- package/lib/components/table/src/table-column.vue.d.ts +34 -34
- 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-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/index.vue.d.ts +176 -176
- 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/hooks/usePlusFormReset.d.ts +48 -48
- package/lib/index.css +13 -13
- 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/packages/registry/load.js +21 -5
- 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 +6 -6
- 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,367 @@
|
|
|
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-order-table-container" };
|
|
9
|
+
const _hoisted_2 = ["onClick"];
|
|
10
|
+
const _hoisted_3 = { class: "yc-order-card__header" };
|
|
11
|
+
const _hoisted_4 = { class: "yc-order-card__code" };
|
|
12
|
+
const _hoisted_5 = { class: "yc-order-card__badges" };
|
|
13
|
+
const _hoisted_6 = { class: "yc-order-card__content" };
|
|
14
|
+
const _hoisted_7 = { class: "yc-order-card__title" };
|
|
15
|
+
const _hoisted_8 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "yc-order-card__desc"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_9 = { class: "yc-order-card__meta" };
|
|
20
|
+
const _hoisted_10 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "yc-order-card__sep"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_11 = { key: 1 };
|
|
25
|
+
const _hoisted_12 = { class: "yc-order-card__footer-info" };
|
|
26
|
+
const _hoisted_13 = { class: "yc-order-card__person" };
|
|
27
|
+
const _hoisted_14 = { class: "yc-order-card__person-name" };
|
|
28
|
+
const _hoisted_15 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "yc-order-card__person-role"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_16 = { key: 0 };
|
|
33
|
+
const _hoisted_17 = { key: 1 };
|
|
34
|
+
const _hoisted_18 = {
|
|
35
|
+
key: 1,
|
|
36
|
+
class: "yc-order-card__time"
|
|
37
|
+
};
|
|
38
|
+
const _hoisted_19 = { class: "yc-order-card__links" };
|
|
39
|
+
const _hoisted_20 = ["href"];
|
|
40
|
+
const _hoisted_21 = ["onClick"];
|
|
41
|
+
const _hoisted_22 = ["onClick"];
|
|
42
|
+
const _hoisted_23 = ["onClick"];
|
|
43
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
44
|
+
...{
|
|
45
|
+
name: "YcOrderTable"
|
|
46
|
+
},
|
|
47
|
+
__name: "order-table",
|
|
48
|
+
props: {
|
|
49
|
+
data: { default: () => [] },
|
|
50
|
+
layout: { default: "auto" },
|
|
51
|
+
breakpoint: { default: 768 },
|
|
52
|
+
title: {},
|
|
53
|
+
subtitle: {},
|
|
54
|
+
card: { type: Boolean, default: true },
|
|
55
|
+
searchable: { type: Boolean, default: true },
|
|
56
|
+
pagination: { type: [Boolean, Object] },
|
|
57
|
+
loading: { type: Boolean },
|
|
58
|
+
showTabs: { type: Boolean, default: true },
|
|
59
|
+
activeTab: {},
|
|
60
|
+
customClass: {}
|
|
61
|
+
},
|
|
62
|
+
emits: ["action", "rowClick"],
|
|
63
|
+
setup(__props, { emit: __emit }) {
|
|
64
|
+
const emit = __emit;
|
|
65
|
+
const urgencyMap = {
|
|
66
|
+
emergency: "\u7D27\u6025",
|
|
67
|
+
important: "\u91CD\u8981",
|
|
68
|
+
normal: "\u666E\u901A"
|
|
69
|
+
};
|
|
70
|
+
const statusMap = {
|
|
71
|
+
pending_dispatch: "\u5F85\u6D3E\u5DE5",
|
|
72
|
+
in_progress: "\u5904\u7406\u4E2D",
|
|
73
|
+
pending_check: "\u5F85\u9A8C\u6536",
|
|
74
|
+
completed: "\u5DF2\u529E\u7ED3",
|
|
75
|
+
cancelled: "\u5DF2\u64A4\u9500"
|
|
76
|
+
};
|
|
77
|
+
const orderTabs = [
|
|
78
|
+
{ key: "all", label: "\u5168\u90E8\u5DE5\u5355", value: void 0 },
|
|
79
|
+
{ key: "pending", label: "\u5F85\u6D3E\u5DE5", value: "pending_dispatch" },
|
|
80
|
+
{ key: "processing", label: "\u5904\u7406\u4E2D", value: "in_progress" },
|
|
81
|
+
{ key: "completed", label: "\u5DF2\u529E\u7ED3", value: "completed" }
|
|
82
|
+
];
|
|
83
|
+
const orderColumns = [
|
|
84
|
+
{
|
|
85
|
+
prop: "orderNo",
|
|
86
|
+
label: "\u5DE5\u5355\u5355\u53F7",
|
|
87
|
+
width: 140,
|
|
88
|
+
primary: true
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
prop: "urgency",
|
|
92
|
+
label: "\u7D27\u6025\u7A0B\u5EA6",
|
|
93
|
+
width: 100,
|
|
94
|
+
type: "tag",
|
|
95
|
+
tagMap: {
|
|
96
|
+
emergency: { label: "\u7D27\u6025", type: "danger", dot: true, pulse: true },
|
|
97
|
+
important: { label: "\u91CD\u8981", type: "warning", dot: true },
|
|
98
|
+
normal: { label: "\u666E\u901A", type: "info", dot: false }
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
prop: "title",
|
|
103
|
+
label: "\u6545\u969C\u7B80\u8FF0",
|
|
104
|
+
minWidth: 160,
|
|
105
|
+
subPrimary: true
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
prop: "category",
|
|
109
|
+
label: "\u5DE5\u5355\u7C7B\u578B",
|
|
110
|
+
width: 100
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
prop: "location",
|
|
114
|
+
label: "\u62A5\u4FEE\u4F4D\u7F6E",
|
|
115
|
+
minWidth: 140
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
prop: "status",
|
|
119
|
+
label: "\u72B6\u6001",
|
|
120
|
+
width: 100,
|
|
121
|
+
type: "tag",
|
|
122
|
+
tagMap: {
|
|
123
|
+
pending_dispatch: { label: "\u5F85\u6D3E\u5DE5", type: "danger" },
|
|
124
|
+
in_progress: { label: "\u5904\u7406\u4E2D", type: "warning" },
|
|
125
|
+
pending_check: { label: "\u5F85\u9A8C\u6536", type: "primary" },
|
|
126
|
+
completed: { label: "\u5DF2\u529E\u7ED3", type: "success" },
|
|
127
|
+
cancelled: { label: "\u5DF2\u64A4\u9500", type: "info" }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
prop: "reporter",
|
|
132
|
+
label: "\u63D0\u5355\u4EBA",
|
|
133
|
+
width: 90
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
prop: "phone",
|
|
137
|
+
label: "\u8054\u7CFB\u65B9\u5F0F",
|
|
138
|
+
width: 130,
|
|
139
|
+
type: "phone"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
prop: "handler",
|
|
143
|
+
label: "\u8D23\u4EFB\u6280\u5E08",
|
|
144
|
+
width: 100
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
prop: "createTime",
|
|
148
|
+
label: "\u63D0\u5355\u65F6\u95F4",
|
|
149
|
+
width: 130
|
|
150
|
+
}
|
|
151
|
+
];
|
|
152
|
+
const defaultActions = [
|
|
153
|
+
{
|
|
154
|
+
name: "dispatch",
|
|
155
|
+
label: "\u6D3E\u5DE5",
|
|
156
|
+
type: "primary",
|
|
157
|
+
visible: (row) => row.status === "pending_dispatch"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "check",
|
|
161
|
+
label: "\u9A8C\u6536",
|
|
162
|
+
type: "warning",
|
|
163
|
+
visible: (row) => row.status === "in_progress"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "detail",
|
|
167
|
+
label: "\u8BE6\u60C5",
|
|
168
|
+
type: "info",
|
|
169
|
+
plain: true
|
|
170
|
+
}
|
|
171
|
+
];
|
|
172
|
+
const handleAction = (action, row) => {
|
|
173
|
+
emit("action", action, row);
|
|
174
|
+
};
|
|
175
|
+
const handleRowClick = (row, index) => {
|
|
176
|
+
emit("rowClick", row, index);
|
|
177
|
+
};
|
|
178
|
+
return (_ctx, _cache) => {
|
|
179
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
180
|
+
vue.createVNode(propertyTable_vue_vue_type_script_setup_true_lang.default, {
|
|
181
|
+
data: __props.data,
|
|
182
|
+
columns: orderColumns,
|
|
183
|
+
layout: __props.layout,
|
|
184
|
+
breakpoint: __props.breakpoint,
|
|
185
|
+
title: __props.title || "\u7269\u4E1A\u62A5\u4FEE\u4E0E\u7EF4\u4FDD\u5DE5\u5355\u53F0\u8D26",
|
|
186
|
+
subtitle: __props.subtitle || "\u5168\u533A\u62A5\u4FEE\u6D3E\u5DE5\u3001\u5DE5\u5355\u54CD\u5E94 SLA \u8DDF\u8E2A\u4E0E\u5904\u7406\u8FDB\u5EA6\u53F0\u8D26",
|
|
187
|
+
card: __props.card,
|
|
188
|
+
searchable: __props.searchable,
|
|
189
|
+
pagination: __props.pagination,
|
|
190
|
+
loading: __props.loading,
|
|
191
|
+
tabs: __props.showTabs ? orderTabs : void 0,
|
|
192
|
+
"active-tab": __props.activeTab,
|
|
193
|
+
"tab-key": "status",
|
|
194
|
+
actions: defaultActions,
|
|
195
|
+
"custom-class": __props.customClass,
|
|
196
|
+
onAction: handleAction,
|
|
197
|
+
onRowClick: handleRowClick
|
|
198
|
+
}, {
|
|
199
|
+
card: vue.withCtx(({ row, index }) => [
|
|
200
|
+
vue.createElementVNode("div", {
|
|
201
|
+
class: vue.normalizeClass(["yc-order-card", `is-urgency-${row.urgency}`]),
|
|
202
|
+
onClick: ($event) => handleRowClick(row, index)
|
|
203
|
+
}, [
|
|
204
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
205
|
+
vue.createElementVNode(
|
|
206
|
+
"span",
|
|
207
|
+
_hoisted_4,
|
|
208
|
+
vue.toDisplayString(row.orderNo),
|
|
209
|
+
1
|
|
210
|
+
/* TEXT */
|
|
211
|
+
),
|
|
212
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
213
|
+
row.urgency !== "normal" ? (vue.openBlock(), vue.createElementBlock(
|
|
214
|
+
"span",
|
|
215
|
+
{
|
|
216
|
+
key: 0,
|
|
217
|
+
class: vue.normalizeClass(["yc-property-tag", `urgency-${row.urgency}`])
|
|
218
|
+
},
|
|
219
|
+
[
|
|
220
|
+
_cache[1] || (_cache[1] = vue.createElementVNode(
|
|
221
|
+
"span",
|
|
222
|
+
{ class: "yc-property-tag__dot" },
|
|
223
|
+
null,
|
|
224
|
+
-1
|
|
225
|
+
/* CACHED */
|
|
226
|
+
)),
|
|
227
|
+
vue.createTextVNode(
|
|
228
|
+
" " + vue.toDisplayString(urgencyMap[row.urgency] || "\u666E\u901A"),
|
|
229
|
+
1
|
|
230
|
+
/* TEXT */
|
|
231
|
+
)
|
|
232
|
+
],
|
|
233
|
+
2
|
|
234
|
+
/* CLASS */
|
|
235
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
236
|
+
vue.createElementVNode(
|
|
237
|
+
"span",
|
|
238
|
+
{
|
|
239
|
+
class: vue.normalizeClass(["yc-property-tag", `status-${row.status}`])
|
|
240
|
+
},
|
|
241
|
+
vue.toDisplayString(statusMap[row.status] || row.status),
|
|
242
|
+
3
|
|
243
|
+
/* TEXT, CLASS */
|
|
244
|
+
)
|
|
245
|
+
])
|
|
246
|
+
]),
|
|
247
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
248
|
+
vue.createElementVNode(
|
|
249
|
+
"div",
|
|
250
|
+
_hoisted_7,
|
|
251
|
+
vue.toDisplayString(row.title),
|
|
252
|
+
1
|
|
253
|
+
/* TEXT */
|
|
254
|
+
),
|
|
255
|
+
row.description ? (vue.openBlock(), vue.createElementBlock(
|
|
256
|
+
"div",
|
|
257
|
+
_hoisted_8,
|
|
258
|
+
vue.toDisplayString(row.description),
|
|
259
|
+
1
|
|
260
|
+
/* TEXT */
|
|
261
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
262
|
+
]),
|
|
263
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
264
|
+
vue.createElementVNode(
|
|
265
|
+
"span",
|
|
266
|
+
null,
|
|
267
|
+
vue.toDisplayString(row.location),
|
|
268
|
+
1
|
|
269
|
+
/* TEXT */
|
|
270
|
+
),
|
|
271
|
+
row.location && row.category ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, "\xB7")) : vue.createCommentVNode("v-if", true),
|
|
272
|
+
row.category ? (vue.openBlock(), vue.createElementBlock(
|
|
273
|
+
"span",
|
|
274
|
+
_hoisted_11,
|
|
275
|
+
vue.toDisplayString(row.category),
|
|
276
|
+
1
|
|
277
|
+
/* TEXT */
|
|
278
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
279
|
+
]),
|
|
280
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
281
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
282
|
+
vue.createElementVNode(
|
|
283
|
+
"span",
|
|
284
|
+
_hoisted_14,
|
|
285
|
+
vue.toDisplayString(row.handler || "\u5F85\u6D3E\u5DE5"),
|
|
286
|
+
1
|
|
287
|
+
/* TEXT */
|
|
288
|
+
),
|
|
289
|
+
row.reporter ? (vue.openBlock(), vue.createElementBlock(
|
|
290
|
+
"span",
|
|
291
|
+
_hoisted_15,
|
|
292
|
+
"\u63D0\u5355 " + vue.toDisplayString(row.reporter),
|
|
293
|
+
1
|
|
294
|
+
/* TEXT */
|
|
295
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
296
|
+
]),
|
|
297
|
+
row.status !== "completed" && row.status !== "cancelled" && row.slaRemainMinutes !== void 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
298
|
+
"div",
|
|
299
|
+
{
|
|
300
|
+
key: 0,
|
|
301
|
+
class: vue.normalizeClass(["yc-order-card__sla", { "is-overdue": row.slaOverdue, "is-tight": !row.slaOverdue && row.slaRemainMinutes <= 30 }])
|
|
302
|
+
},
|
|
303
|
+
[
|
|
304
|
+
row.slaOverdue ? (vue.openBlock(), vue.createElementBlock(
|
|
305
|
+
"span",
|
|
306
|
+
_hoisted_16,
|
|
307
|
+
"\u5DF2\u8D85\u65F6 " + vue.toDisplayString(Math.abs(row.slaRemainMinutes)) + "\u5206\u949F",
|
|
308
|
+
1
|
|
309
|
+
/* TEXT */
|
|
310
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
311
|
+
"span",
|
|
312
|
+
_hoisted_17,
|
|
313
|
+
"\u5269\u4F59 " + vue.toDisplayString(row.slaRemainMinutes) + "\u5206\u949F",
|
|
314
|
+
1
|
|
315
|
+
/* TEXT */
|
|
316
|
+
))
|
|
317
|
+
],
|
|
318
|
+
2
|
|
319
|
+
/* CLASS */
|
|
320
|
+
)) : row.createTime ? (vue.openBlock(), vue.createElementBlock(
|
|
321
|
+
"div",
|
|
322
|
+
_hoisted_18,
|
|
323
|
+
vue.toDisplayString(row.createTime),
|
|
324
|
+
1
|
|
325
|
+
/* TEXT */
|
|
326
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
327
|
+
]),
|
|
328
|
+
vue.createElementVNode("div", {
|
|
329
|
+
class: "yc-order-card__actions",
|
|
330
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
331
|
+
}, ["stop"]))
|
|
332
|
+
}, [
|
|
333
|
+
vue.createElementVNode("div", _hoisted_19, [
|
|
334
|
+
row.phone ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
335
|
+
key: 0,
|
|
336
|
+
href: `tel:${row.phone}`,
|
|
337
|
+
class: "yc-order-card__link"
|
|
338
|
+
}, "\u8054\u7CFB\u4E1A\u4E3B", 8, _hoisted_20)) : vue.createCommentVNode("v-if", true),
|
|
339
|
+
vue.createElementVNode("button", {
|
|
340
|
+
type: "button",
|
|
341
|
+
class: "yc-order-card__link",
|
|
342
|
+
onClick: ($event) => handleAction("detail", row)
|
|
343
|
+
}, " \u8BE6\u60C5 ", 8, _hoisted_21)
|
|
344
|
+
]),
|
|
345
|
+
row.status === "pending_dispatch" ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
346
|
+
key: 0,
|
|
347
|
+
type: "button",
|
|
348
|
+
class: "yc-order-card__btn is-primary",
|
|
349
|
+
onClick: ($event) => handleAction("dispatch", row)
|
|
350
|
+
}, " \u6D3E\u5DE5 ", 8, _hoisted_22)) : row.status === "in_progress" ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
351
|
+
key: 1,
|
|
352
|
+
type: "button",
|
|
353
|
+
class: "yc-order-card__btn is-secondary",
|
|
354
|
+
onClick: ($event) => handleAction("check", row)
|
|
355
|
+
}, " \u63D0\u4EA4\u9A8C\u6536 ", 8, _hoisted_23)) : vue.createCommentVNode("v-if", true)
|
|
356
|
+
])
|
|
357
|
+
], 10, _hoisted_2)
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
/* STABLE */
|
|
361
|
+
}, 8, ["data", "layout", "breakpoint", "title", "subtitle", "card", "searchable", "pagination", "loading", "tabs", "active-tab", "custom-class"])
|
|
362
|
+
]);
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
exports.default = _sfc_main;
|