xc-computent 0.2.0 → 0.3.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.
@@ -16,6 +16,12 @@ interface ToDoCardProps {
16
16
  flowPathTypeList?: any[];
17
17
  }
18
18
  declare function __VLS_template(): {
19
+ "read-icon"?(_: {
20
+ item: any;
21
+ }): any;
22
+ "delete-icon"?(_: {
23
+ item: any;
24
+ }): any;
19
25
  "form-content"?(_: {
20
26
  item: any;
21
27
  }): any;
@@ -31,12 +37,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
31
37
  }>, {
32
38
  details: (item: any, type?: number) => void;
33
39
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
- details: (...args: any[]) => void;
35
40
  getList: (...args: any[]) => void;
36
41
  doScreen: (...args: any[]) => void;
37
42
  copy: (...args: any[]) => void;
38
43
  delete: (...args: any[]) => void;
39
44
  expedite: (...args: any[]) => void;
45
+ details: (...args: any[]) => void;
40
46
  }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ToDoCardProps>, {
41
47
  countList: () => never[];
42
48
  typeFlowPath: string;
@@ -46,12 +52,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
46
52
  contractTypeLabelMap: () => {};
47
53
  flowPathTypeList: () => never[];
48
54
  }>>> & {
49
- onCopy?: ((...args: any[]) => any) | undefined;
50
- onDetails?: ((...args: any[]) => any) | undefined;
51
55
  onGetList?: ((...args: any[]) => any) | undefined;
52
56
  onDoScreen?: ((...args: any[]) => any) | undefined;
57
+ onCopy?: ((...args: any[]) => any) | undefined;
53
58
  onDelete?: ((...args: any[]) => any) | undefined;
54
59
  onExpedite?: ((...args: any[]) => any) | undefined;
60
+ onDetails?: ((...args: any[]) => any) | undefined;
55
61
  }, {
56
62
  countList: any[];
57
63
  typeFlowPath: string;
package/dist/computent.js CHANGED
@@ -1,158 +1,56 @@
1
- import { defineComponent as Z, openBlock as n, createElementBlock as a, normalizeClass as Os, createCommentVNode as _, renderSlot as K, createElementVNode as o, resolveComponent as Y, createVNode as Ks, mergeProps as Qs, createSlots as Us, renderList as ls, withCtx as f, normalizeProps as Ws, guardReactiveProps as Xs, ref as ns, Fragment as X, createBlock as u, toDisplayString as t, createTextVNode as x, withModifiers as J, resolveDynamicComponent as ts, pushScopeId as Ys, popScopeId as Zs } from "vue";
2
- const ms = ["disabled"], so = {
3
- key: 0,
4
- class: "comp-btn__spinner"
5
- }, oo = {
6
- key: 1,
7
- class: "comp-btn__icon"
8
- }, no = { class: "comp-btn__content" }, to = /* @__PURE__ */ Z({
9
- __name: "Button",
10
- props: {
11
- variant: { default: "primary" },
12
- size: { default: "md" },
13
- loading: { type: Boolean, default: !1 },
14
- disabled: { type: Boolean, default: !1 }
15
- },
16
- emits: ["click"],
17
- setup(d, { emit: p }) {
18
- const g = d, l = p, w = (c) => {
19
- !g.disabled && !g.loading && l("click", c);
20
- };
21
- return (c, T) => (n(), a("button", {
22
- class: Os([
23
- "comp-btn",
24
- `comp-btn--${c.variant}`,
25
- `comp-btn--${c.size}`,
26
- {
27
- "comp-btn--loading": c.loading,
28
- "comp-btn--disabled": c.disabled || c.loading
29
- }
30
- ]),
31
- disabled: c.disabled || c.loading,
32
- onClick: w
33
- }, [
34
- c.loading ? (n(), a("span", so)) : _("", !0),
35
- c.$slots.icon && !c.loading ? (n(), a("span", oo, [
36
- K(c.$slots, "icon", {}, void 0, !0)
37
- ])) : _("", !0),
38
- o("span", no, [
39
- K(c.$slots, "default", {}, void 0, !0)
40
- ])
41
- ], 10, ms));
42
- }
43
- }), m = (d, p) => {
44
- const g = d.__vccOpts || d;
45
- for (const [l, w] of p)
46
- g[l] = w;
47
- return g;
48
- }, lo = /* @__PURE__ */ m(to, [["__scopeId", "data-v-7c40bef2"]]), eo = {
49
- key: 0,
50
- class: "comp-badge__dot"
51
- }, ao = { class: "comp-badge__content" }, _o = /* @__PURE__ */ Z({
52
- __name: "Badge",
53
- props: {
54
- type: { default: "default" },
55
- variant: { default: "subtle" },
56
- dot: { type: Boolean, default: !1 }
57
- },
58
- setup(d) {
59
- return (p, g) => (n(), a("span", {
60
- class: Os([
61
- "comp-badge",
62
- `comp-badge--${p.type}`,
63
- `comp-badge--${p.variant}`,
64
- { "comp-badge--has-dot": p.dot }
65
- ])
66
- }, [
67
- p.dot ? (n(), a("span", eo)) : _("", !0),
68
- o("span", ao, [
69
- K(p.$slots, "default", {}, void 0, !0)
70
- ])
71
- ], 2));
72
- }
73
- }), co = /* @__PURE__ */ m(_o, [["__scopeId", "data-v-158f78af"]]), po = { class: "comp-input-wrapper" }, ro = /* @__PURE__ */ Z({
74
- __name: "Input",
75
- props: {
76
- size: { default: "default" },
77
- placeholder: { default: "Please enter..." }
78
- },
79
- setup(d) {
80
- return (p, g) => {
81
- const l = Y("el-input");
82
- return n(), a("div", po, [
83
- Ks(l, Qs(p.$attrs, {
84
- size: p.size,
85
- placeholder: p.placeholder,
86
- class: "comp-el-input"
87
- }), Us({ _: 2 }, [
88
- ls(p.$slots, (w, c) => ({
89
- name: c,
90
- fn: f((T) => [
91
- K(p.$slots, c, Ws(Xs(T || {})), void 0, !0)
92
- ])
93
- }))
94
- ]), 1040, ["size", "placeholder"])
95
- ]);
96
- };
97
- }
98
- }), uo = /* @__PURE__ */ m(ro, [["__scopeId", "data-v-e8d4db36"]]), r = (d) => (Ys("data-v-1e46cda6"), d = d(), Zs(), d), fo = { class: "flex-between-center-display" }, yo = { class: "mr-2 text-16px font-500" }, ho = {
99
- key: 1,
100
- class: "read-dot"
101
- }, wo = { class: "flex items-center" }, bo = {
1
+ import { defineComponent as Hs, ref as m, resolveComponent as ss, openBlock as n, createElementBlock as _, Fragment as U, renderList as js, createBlock as p, withCtx as d, createElementVNode as o, toDisplayString as l, createCommentVNode as a, createTextVNode as x, renderSlot as q, withModifiers as A, resolveDynamicComponent as os, pushScopeId as Js, popScopeId as Ks } from "vue";
2
+ const c = (w) => (Js("data-v-c1bf003a"), w = w(), Ks(), w), Qs = { class: "flex justify-between items-center" }, Us = { class: "mr-2 text-16px font-500" }, Ws = { class: "flex items-center" }, Xs = {
102
3
  key: 1,
103
4
  class: "text-14px text-[#acb0b7] mr-2"
104
- }, vo = {
5
+ }, Ys = {
105
6
  key: 2,
106
7
  class: "text-14px text-[#acb0b7] mr-2"
107
- }, ko = ["onClick"], xo = { class: "flex items-center" }, go = { class: "w-120px mr-4" }, Fo = { class: "text-14px font-400" }, Co = { class: "mr-2 container_old flex-1 min-w-0" }, To = { class: "text-12px" }, Po = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("流程ID:"), -1)), $o = { style: { "font-size": "13px" } }, io = { class: "text-12px" }, Do = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("流程名称:"), -1)), So = { style: { "line-height": "16px" } }, Io = { class: "text-12px" }, Lo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("流程类型:"), -1)), zo = { key: 0 }, Bo = { key: 1 }, Mo = {
8
+ }, Zs = ["onClick"], is = { class: "flex items-center" }, ms = { class: "w-120px mr-4" }, so = { class: "text-14px font-400" }, oo = { class: "mr-2 container_old flex-1 min-w-0" }, lo = { class: "text-12px" }, no = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("流程ID:"), -1)), to = { style: { "font-size": "13px" } }, eo = { class: "text-12px" }, ao = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("流程名称:"), -1)), _o = { style: { "line-height": "16px" } }, co = { class: "text-12px" }, po = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("流程类型:"), -1)), ro = { key: 0 }, uo = { key: 1 }, yo = {
108
9
  key: 0,
109
10
  class: "text-12px"
110
- }, No = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("合同编号:"), -1)), Ro = {
11
+ }, fo = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("合同编号:"), -1)), wo = {
111
12
  key: 1,
112
13
  class: "text-12px"
113
- }, Vo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("企业名称:"), -1)), Eo = { style: { "line-height": "14px" } }, Go = {
14
+ }, ho = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("企业名称:"), -1)), xo = { style: { "line-height": "14px" } }, vo = {
114
15
  key: 0,
115
16
  class: "text-12px"
116
- }, Oo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), jo = { style: { "font-size": "13px" } }, qo = {
17
+ }, ko = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("签约类型:"), -1)), bo = { style: { "font-size": "13px" } }, Fo = {
117
18
  key: 1,
118
19
  class: "text-12px"
119
- }, Ao = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), Ho = { style: { "font-size": "13px" } }, Jo = {
20
+ }, Co = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("签约类型:"), -1)), go = { style: { "font-size": "13px" } }, To = {
120
21
  key: 2,
121
22
  class: "text-12px"
122
- }, Ko = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), Qo = { style: { "font-size": "13px" } }, Uo = {
23
+ }, Po = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("签约类型:"), -1)), Do = { style: { "font-size": "13px" } }, So = {
123
24
  key: 3,
124
25
  class: "text-12px"
125
- }, Wo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), Xo = { style: { "font-size": "13px" } }, Yo = {
26
+ }, Lo = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("签约类型:"), -1)), $o = { style: { "font-size": "13px" } }, Io = {
126
27
  key: 4,
127
28
  class: "text-12px"
128
- }, Zo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("合同类型:"), -1)), mo = { style: { "font-size": "13px" } }, sn = {
29
+ }, Mo = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("合同类型:"), -1)), zo = { style: { "font-size": "13px" } }, No = {
129
30
  key: 3,
130
31
  class: "text-12px"
131
- }, on = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("标准:"), -1)), nn = { style: { "line-height": "18px" } }, tn = {
32
+ }, Ro = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("标准:"), -1)), Bo = { style: { "line-height": "18px" } }, Vo = {
132
33
  key: 4,
133
34
  class: "text-12px"
134
- }, ln = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("当前流转时间:"), -1)), en = {
35
+ }, jo = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("当前流转时间:"), -1)), Eo = {
135
36
  key: 5,
136
37
  class: "text-12px"
137
- }, an = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("当前审批人:"), -1)), _n = {
38
+ }, Go = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("当前审批人:"), -1)), Oo = {
138
39
  key: 6,
139
40
  class: "text-12px"
140
- }, cn = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("合同类型:"), -1)), dn = {
41
+ }, qo = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("合同类型:"), -1)), Ao = {
141
42
  key: 7,
142
43
  class: "text-12px"
143
- }, pn = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约方式:"), -1)), rn = {
44
+ }, Ho = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("签约方式:"), -1)), Jo = {
144
45
  key: 8,
145
46
  class: "text-12px"
146
- }, un = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("那方先签约:"), -1)), fn = { class: "flex-between-center-display" }, yn = { class: "mr-2 text-16px font-500" }, hn = {
147
- key: 0,
148
- class: "read-dot"
149
- }, wn = { class: "flex items-center" }, bn = {
47
+ }, Ko = /* @__PURE__ */ c(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ l("那方先签约:"), -1)), Qo = { class: "flex justify-between items-center" }, Uo = { class: "mr-2 text-16px font-500" }, Wo = { class: "flex items-center" }, Xo = {
150
48
  key: 0,
151
49
  class: "text-14px text-[#acb0b7] mr-2"
152
- }, vn = {
50
+ }, Yo = {
153
51
  key: 1,
154
52
  class: "text-14px text-[#acb0b7] mr-2"
155
- }, kn = ["onClick"], xn = { class: "flex items-center" }, gn = { class: "w-120px mr-4 flex items-center" }, Fn = { class: "text-14px font-400" }, Cn = { class: "mr-2 container_old flex-1 min-w-0" }, Tn = /* @__PURE__ */ Z({
53
+ }, Zo = ["onClick"], io = { class: "flex items-center" }, mo = { class: "w-120px mr-4 flex items-center" }, sl = { class: "text-14px font-400" }, ol = { class: "mr-2 container_old flex-1 min-w-0" }, ll = /* @__PURE__ */ Hs({
156
54
  __name: "ToDoCard",
157
55
  props: {
158
56
  countList: { default: () => [] },
@@ -171,281 +69,318 @@ const ms = ["disabled"], so = {
171
69
  contractTypeLabelMap: { default: () => ({}) },
172
70
  flowPathTypeList: { default: () => [] }
173
71
  },
174
- emits: ["getList", "doScreen", "copy", "delete", "expedite", "details"],
175
- setup(d, { expose: p, emit: g }) {
176
- const l = d, w = g, c = ns(null), T = ns(null), Q = ns(), es = (e, F) => l.isDeleteFn ? l.isDeleteFn(e, F) : !1, as = (e, F, b) => l.showFormTitleFn ? l.showFormTitleFn(e, F, b) : !1, P = (e) => l.formatTimeFn ? l.formatTimeFn(e) : String(e || ""), U = (e) => l.statusTypeMap[e] || { type: "", status: "" }, W = (e) => l.statusTypeNormalMap[e] || { type: "", status: "" }, js = (e) => l.contractTypeLabelMap[e] || "-", qs = (e) => l.contractTypeMap[e] || "-", As = (e) => {
177
- const F = l.flowPathTypeList.find((b) => b.value === e);
178
- return F ? F.label : "-";
179
- }, ss = (e, F) => {
180
- Q.value = e, w("details", { item: e, type: F }), e.is_old_flow ? c.value && (c.value.showFlag = !0) : T.value && (T.value.showFlag = !0);
181
- }, _s = () => {
182
- w("getList");
183
- }, cs = () => {
184
- w("doScreen", 3, Q.value.flow_id);
185
- }, Hs = (e) => {
186
- w("copy", e);
187
- }, ds = (e) => {
188
- w("delete", e);
189
- }, ps = (e) => {
190
- w("expedite", e);
72
+ emits: [
73
+ "getList",
74
+ "doScreen",
75
+ "copy",
76
+ "delete",
77
+ "expedite",
78
+ "details"
79
+ ],
80
+ setup(w, { expose: W, emit: H }) {
81
+ const e = w, k = H, X = m(null), Y = m(null), J = m(), ls = (t, v) => e.isDeleteFn ? e.isDeleteFn(t, v) : !1, ns = (t, v, y) => e.showFormTitleFn ? e.showFormTitleFn(t, v, y) : !1, F = (t) => e.formatTimeFn ? e.formatTimeFn(t) : String(t || ""), K = (t) => e.statusTypeMap[t] || { type: "", status: "" }, Q = (t) => e.statusTypeNormalMap[t] || { type: "", status: "" }, Es = (t) => e.contractTypeLabelMap[t] || "-", Gs = (t) => e.contractTypeMap[t] || "-", Os = (t) => {
82
+ const v = e.flowPathTypeList.find((y) => y.value === t);
83
+ return v ? v.label : "-";
84
+ }, Z = (t, v) => {
85
+ J.value = t, k("details", { item: t, type: v }), t.is_old_flow ? X.value && (X.value.showFlag = !0) : Y.value && (Y.value.showFlag = !0);
86
+ }, ts = () => {
87
+ k("getList");
88
+ }, es = () => {
89
+ k("doScreen", 3, J.value.flow_id);
90
+ }, qs = (t) => {
91
+ k("copy", t);
92
+ }, as = (t) => {
93
+ k("delete", t);
94
+ }, _s = (t) => {
95
+ k("expedite", t);
191
96
  };
192
- return p({
193
- details: ss
194
- }), (e, F) => {
195
- const b = Y("el-tag"), os = Y("el-button"), rs = Y("el-card");
196
- return n(), a("div", null, [
197
- (n(!0), a(X, null, ls(l.countList, (s, Js) => (n(), a(X, { key: Js }, [
198
- s != null && s.is_old_flow ? (n(), u(rs, {
97
+ return W({
98
+ details: Z
99
+ }), (t, v) => {
100
+ const y = ss("el-tag"), i = ss("el-button"), cs = ss("el-card");
101
+ return n(), _("div", null, [
102
+ (n(!0), _(U, null, js(e.countList, (s, As) => (n(), _(U, { key: As }, [
103
+ s != null && s.is_old_flow ? (n(), p(cs, {
199
104
  key: 0,
200
105
  shadow: "hover",
201
106
  class: "mb-1",
202
- onClick: (h) => ss(s, l.type)
107
+ onClick: (u) => Z(s, e.type)
203
108
  }, {
204
- header: f(() => {
205
- var h, k, y, $, i, D, S, I, L, z, B, M, N, R, V, E, G, O, j, q;
109
+ header: d(() => {
110
+ var u, h, r, C, g, T, P, D, S, L, $, I, M, z, N, R, B, V, j, E;
206
111
  return [
207
- o("div", fo, [
112
+ o("div", Qs, [
208
113
  o("div", null, [
209
- o("span", yo, t((h = s.old_flow) == null ? void 0 : h.flow_node_name), 1),
210
- (k = s.old_flow) != null && k.is_sign ? (n(), u(b, {
114
+ o("span", Us, l((u = s.old_flow) == null ? void 0 : u.flow_node_name), 1),
115
+ (h = s.old_flow) != null && h.is_sign ? (n(), p(y, {
211
116
  key: 0,
212
117
  type: "success",
213
118
  effect: "plain"
214
119
  }, {
215
- default: f(() => [
120
+ default: d(() => [
216
121
  x(" 已发起签约 ")
217
122
  ]),
218
123
  _: 1
219
- })) : _("", !0),
220
- l.typeFlowPath === "抄送我的" && (s == null ? void 0 : s.copy_status) === 1 ? (n(), a("span", ho)) : _("", !0),
221
- l.typeFlowPath === "我发起的" && ((y = s == null ? void 0 : s.old_flow) == null ? void 0 : y.status) === 2 ? (n(), u(os, {
124
+ })) : a("", !0),
125
+ e.typeFlowPath === "抄送我的" && (s == null ? void 0 : s.copy_status) === 1 ? q(t.$slots, "read-icon", {
126
+ key: 1,
127
+ item: s
128
+ }, void 0, !0) : a("", !0),
129
+ e.typeFlowPath === "我发起的" && ((r = s == null ? void 0 : s.old_flow) == null ? void 0 : r.status) === 2 ? (n(), p(i, {
222
130
  key: 2,
223
131
  link: "",
224
132
  type: "primary",
225
- onClick: J((v) => ps(s), ["stop"])
133
+ onClick: A((f) => _s(s), ["stop"])
226
134
  }, {
227
- default: f(() => [
135
+ default: d(() => [
228
136
  x(" 催办 ")
229
137
  ]),
230
138
  _: 2
231
- }, 1032, ["onClick"])) : _("", !0),
232
- l.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (n(), u(b, {
139
+ }, 1032, ["onClick"])) : a("", !0),
140
+ e.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (n(), p(y, {
233
141
  key: 3,
234
142
  effect: "plain",
235
143
  type: "danger"
236
144
  }, {
237
- default: f(() => [
145
+ default: d(() => [
238
146
  x(" 发起人已催办 ")
239
147
  ]),
240
148
  _: 1
241
- })) : _("", !0)
149
+ })) : a("", !0)
242
150
  ]),
243
- o("div", wo, [
244
- ((($ = s == null ? void 0 : s.old_flow) == null ? void 0 : $.business_type) === 1 && ((i = s == null ? void 0 : s.old_flow) == null ? void 0 : i.sign_type) !== 1 || [3, 8].includes((D = s == null ? void 0 : s.old_flow) == null ? void 0 : D.business_type) || ((S = s == null ? void 0 : s.old_flow) == null ? void 0 : S.business_type) === 2 && ((I = s == null ? void 0 : s.old_flow) == null ? void 0 : I.status) === 5 || [16, 10].includes((L = s == null ? void 0 : s.old_flow) == null ? void 0 : L.business_type) && [4, 5].includes((z = s == null ? void 0 : s.old_flow) == null ? void 0 : z.status)) && l.typeFlowPath === "我发起的" ? (n(), u(os, {
151
+ o("div", Ws, [
152
+ (((C = s == null ? void 0 : s.old_flow) == null ? void 0 : C.business_type) === 1 && ((g = s == null ? void 0 : s.old_flow) == null ? void 0 : g.sign_type) !== 1 || [3, 8].includes((T = s == null ? void 0 : s.old_flow) == null ? void 0 : T.business_type) || ((P = s == null ? void 0 : s.old_flow) == null ? void 0 : P.business_type) === 2 && ((D = s == null ? void 0 : s.old_flow) == null ? void 0 : D.status) === 5 || [16, 10].includes((S = s == null ? void 0 : s.old_flow) == null ? void 0 : S.business_type) && [4, 5].includes((L = s == null ? void 0 : s.old_flow) == null ? void 0 : L.status)) && e.typeFlowPath === "我发起的" ? (n(), p(i, {
245
153
  key: 0,
246
154
  link: "",
247
155
  type: "primary",
248
156
  class: "mr-2",
249
- onClick: J((v) => Hs(s == null ? void 0 : s.old_flow), ["stop"])
157
+ onClick: A((f) => qs(s == null ? void 0 : s.old_flow), ["stop"])
250
158
  }, {
251
- default: f(() => [
159
+ default: d(() => [
252
160
  x(" 一键复制 ")
253
161
  ]),
254
162
  _: 2
255
- }, 1032, ["onClick"])) : _("", !0),
256
- l.typeFlowPath === "抄送我的" ? (n(), a("div", bo, t(P((N = (M = (B = s == null ? void 0 : s.old_flow) == null ? void 0 : B.copy_list) == null ? void 0 : M[0]) == null ? void 0 : N.copy_time)), 1)) : (n(), a("div", vo, t(P((R = s == null ? void 0 : s.old_flow) == null ? void 0 : R.submit_time)), 1)),
257
- l.typeFlowPath === "待我审批" ? (n(), u(b, {
163
+ }, 1032, ["onClick"])) : a("", !0),
164
+ e.typeFlowPath === "抄送我的" ? (n(), _("div", Xs, l(F((M = (I = ($ = s == null ? void 0 : s.old_flow) == null ? void 0 : $.copy_list) == null ? void 0 : I[0]) == null ? void 0 : M.copy_time)), 1)) : (n(), _("div", Ys, l(F((z = s == null ? void 0 : s.old_flow) == null ? void 0 : z.submit_time)), 1)),
165
+ e.typeFlowPath === "待我审批" ? (n(), p(y, {
258
166
  key: 3,
259
- type: (O = U((G = (E = (V = s == null ? void 0 : s.old_flow) == null ? void 0 : V.node_list) == null ? void 0 : E[0]) == null ? void 0 : G.approval_status)) == null ? void 0 : O.type
167
+ type: (V = K(
168
+ (B = (R = (N = s == null ? void 0 : s.old_flow) == null ? void 0 : N.node_list) == null ? void 0 : R[0]) == null ? void 0 : B.approval_status
169
+ )) == null ? void 0 : V.type
260
170
  }, {
261
- default: f(() => {
262
- var v, C, A, H;
171
+ default: d(() => {
172
+ var f, b, G, O;
263
173
  return [
264
- x(t((H = U((A = (C = (v = s == null ? void 0 : s.old_flow) == null ? void 0 : v.node_list) == null ? void 0 : C[0]) == null ? void 0 : A.approval_status)) == null ? void 0 : H.status), 1)
174
+ x(l((O = K(
175
+ (G = (b = (f = s == null ? void 0 : s.old_flow) == null ? void 0 : f.node_list) == null ? void 0 : b[0]) == null ? void 0 : G.approval_status
176
+ )) == null ? void 0 : O.status), 1)
265
177
  ];
266
178
  }),
267
179
  _: 2
268
- }, 1032, ["type"])) : (n(), u(b, {
180
+ }, 1032, ["type"])) : (n(), p(y, {
269
181
  key: 4,
270
- type: (q = W((j = s == null ? void 0 : s.old_flow) == null ? void 0 : j.status)) == null ? void 0 : q.type
182
+ type: (E = Q((j = s == null ? void 0 : s.old_flow) == null ? void 0 : j.status)) == null ? void 0 : E.type
271
183
  }, {
272
- default: f(() => {
273
- var v, C;
184
+ default: d(() => {
185
+ var f, b;
274
186
  return [
275
- x(t((C = W((v = s == null ? void 0 : s.old_flow) == null ? void 0 : v.status)) == null ? void 0 : C.status), 1)
187
+ x(l((b = Q((f = s == null ? void 0 : s.old_flow) == null ? void 0 : f.status)) == null ? void 0 : b.status), 1)
276
188
  ];
277
189
  }),
278
190
  _: 2
279
191
  }, 1032, ["type"])),
280
- es(s, l.typeFlowPath) ? (n(), a("span", {
192
+ ls(s, e.typeFlowPath) ? q(t.$slots, "delete-icon", {
281
193
  key: 5,
282
- class: "delete-btn ml-2 cursor-pointer",
283
- onClick: J((v) => ds(s == null ? void 0 : s.old_flow), ["stop"])
284
- }, "🗑️", 8, ko)) : _("", !0)
194
+ item: s
195
+ }, () => [
196
+ o("span", {
197
+ class: "delete-btn ml-2 cursor-pointer",
198
+ onClick: A((f) => as(s == null ? void 0 : s.old_flow), ["stop"])
199
+ }, "🗑️", 8, Zs)
200
+ ], !0) : a("", !0)
285
201
  ])
286
202
  ])
287
203
  ];
288
204
  }),
289
- default: f(() => {
290
- var h, k, y, $, i, D, S, I, L, z, B, M, N, R, V, E, G, O, j, q, v, C, A, H, us, fs, ys, hs, ws, bs, vs, ks, xs, gs, Fs, Cs, Ts, Ps, $s, is, Ds, Ss, Is, Ls, zs, Bs, Ms, Ns, Rs, Vs, Es, Gs;
205
+ default: d(() => {
206
+ var u, h, r, C, g, T, P, D, S, L, $, I, M, z, N, R, B, V, j, E, f, b, G, O, ps, ds, rs, us, ys, fs, ws, hs, xs, vs, ks, bs, Fs, Cs, gs, Ts, Ps, Ds, Ss, Ls, $s, Is, Ms, zs, Ns, Rs, Bs, Vs;
291
207
  return [
292
- o("div", xo, [
293
- o("div", go, [
294
- o("div", Fo, t("发起人:") + t((h = s == null ? void 0 : s.old_flow) == null ? void 0 : h.create_user_name), 1)
208
+ o("div", is, [
209
+ o("div", ms, [
210
+ o("div", so, l("发起人:") + l((u = s == null ? void 0 : s.old_flow) == null ? void 0 : u.create_user_name), 1)
295
211
  ]),
296
- o("div", Co, [
297
- o("div", To, [
298
- Po,
299
- o("span", $o, t((s == null ? void 0 : s.flow_id) || ""), 1)
212
+ o("div", oo, [
213
+ o("div", lo, [
214
+ no,
215
+ o("span", to, l((s == null ? void 0 : s.flow_id) || ""), 1)
300
216
  ]),
301
- o("div", io, [
302
- Do,
303
- o("span", So, t((k = s == null ? void 0 : s.old_flow) == null ? void 0 : k.flow_name), 1)
217
+ o("div", eo, [
218
+ ao,
219
+ o("span", _o, l((h = s == null ? void 0 : s.old_flow) == null ? void 0 : h.flow_name), 1)
304
220
  ]),
305
- o("div", Io, [
306
- Lo,
307
- ((y = s == null ? void 0 : s.old_flow) == null ? void 0 : y.business_type) === 9 ? (n(), a("span", zo, t((s == null ? void 0 : s.old_flow.sign_type) === 1 ? "新流程" : "补充店铺"), 1)) : (n(), a("span", Bo, t(s.template_type), 1))
221
+ o("div", co, [
222
+ po,
223
+ ((r = s == null ? void 0 : s.old_flow) == null ? void 0 : r.business_type) === 9 ? (n(), _("span", ro, l((s == null ? void 0 : s.old_flow.sign_type) === 1 ? "新流程" : "补充店铺"), 1)) : (n(), _("span", uo, l(s.template_type), 1))
308
224
  ]),
309
- (($ = s == null ? void 0 : s.old_flow) == null ? void 0 : $.business_type) === 1 || ((i = s == null ? void 0 : s.old_flow) == null ? void 0 : i.business_type) === 8 ? (n(), a("div", Mo, [
310
- No,
311
- o("span", null, t(s == null ? void 0 : s.old_flow.business_ctx.esign_contract_no), 1)
312
- ])) : _("", !0),
313
- [1, 16, 19].includes((D = s == null ? void 0 : s.old_flow) == null ? void 0 : D.business_type) ? (n(), a("div", Ro, [
314
- Vo,
315
- o("span", Eo, t((s == null ? void 0 : s.old_flow.business_ctx.company_name) || ((I = (S = s == null ? void 0 : s.old_flow.business_ctx.no_business_contract_info) == null ? void 0 : S.company_info) == null ? void 0 : I.fp_company_name) || ((z = (L = s == null ? void 0 : s.old_flow.business_ctx.no_business_contract_info) == null ? void 0 : L.personal_info) == null ? void 0 : z.name) || "-"), 1)
316
- ])) : _("", !0),
317
- ((B = s == null ? void 0 : s.old_flow) == null ? void 0 : B.business_type) !== 9 ? (n(), a(X, { key: 2 }, [
318
- ((M = s == null ? void 0 : s.old_flow) == null ? void 0 : M.business_type) === 1 ? (n(), a("div", Go, [
319
- Oo,
320
- o("span", jo, t(((N = s == null ? void 0 : s.old_flow) == null ? void 0 : N.sign_type) === 1 ? "首次签约" : "补充店铺"), 1)
321
- ])) : _("", !0),
322
- ((R = s == null ? void 0 : s.old_flow) == null ? void 0 : R.business_type) === 2 ? (n(), a("div", qo, [
323
- Ao,
324
- o("span", Ho, t(js(s == null ? void 0 : s.old_flow.business_ctx.contract_template_id)), 1)
325
- ])) : _("", !0),
326
- [3, 4, 5, 6, 7, 8].includes((V = s == null ? void 0 : s.old_flow) == null ? void 0 : V.business_type) ? (n(), a("div", Jo, [
327
- Ko,
328
- o("span", Qo, t(As((E = s == null ? void 0 : s.old_flow) == null ? void 0 : E.business_type)), 1)
329
- ])) : _("", !0),
330
- [16].includes((G = s == null ? void 0 : s.old_flow) == null ? void 0 : G.business_type) ? (n(), a("div", Uo, [
331
- Wo,
332
- o("span", Xo, t(["", "主合同", "补充协议", "解除协议"][(O = s == null ? void 0 : s.old_flow) == null ? void 0 : O.sign_type] || "-"), 1)
333
- ])) : _("", !0),
334
- ((j = s == null ? void 0 : s.old_flow) == null ? void 0 : j.business_type) === 16 && ((q = s == null ? void 0 : s.old_flow) == null ? void 0 : q.sign_type) === 1 ? (n(), a("div", Yo, [
335
- Zo,
336
- o("span", mo, t(qs((A = (C = (v = s == null ? void 0 : s.old_flow) == null ? void 0 : v.business_ctx) == null ? void 0 : C.no_business_contract_info) == null ? void 0 : A.contract_type)), 1)
337
- ])) : _("", !0)
338
- ], 64)) : _("", !0),
339
- ((H = s == null ? void 0 : s.old_flow) == null ? void 0 : H.business_type) === 9 ? (n(), a("div", sn, [
340
- on,
341
- o("span", nn, t(((us = s == null ? void 0 : s.old_flow.business_ctx.reduce_store_srv_fee_form) == null ? void 0 : us.reduce_store_srv_fee_standard_type) === 1 ? "当日在线3店及以上,且合计活动名额100单及以上份额" : "名下同品牌店铺10家及以上,月累计(近30天)销单1000单"), 1)
342
- ])) : _("", !0),
343
- as(l.typeFlowPath, (hs = (ys = (fs = s == null ? void 0 : s.old_flow) == null ? void 0 : fs.node_list) == null ? void 0 : ys[0]) == null ? void 0 : hs.approval_status, (ws = s == null ? void 0 : s.old_flow) == null ? void 0 : ws.status) ? (n(), a("div", tn, [
344
- ln,
345
- o("span", null, t(P((ks = (vs = (bs = s == null ? void 0 : s.old_flow) == null ? void 0 : bs.node_list) == null ? void 0 : vs[0]) == null ? void 0 : ks.flow_time)), 1)
346
- ])) : _("", !0),
347
- as(l.typeFlowPath, (Fs = (gs = (xs = s == null ? void 0 : s.old_flow) == null ? void 0 : xs.node_list) == null ? void 0 : gs[0]) == null ? void 0 : Fs.approval_status, (Cs = s == null ? void 0 : s.old_flow) == null ? void 0 : Cs.status) ? (n(), a("div", en, [
348
- an,
349
- o("span", null, t(($s = (Ps = (Ts = s == null ? void 0 : s.old_flow) == null ? void 0 : Ts.node_list) == null ? void 0 : Ps[0]) == null ? void 0 : $s.approval_user_name), 1)
350
- ])) : _("", !0),
351
- ((is = s == null ? void 0 : s.old_flow) == null ? void 0 : is.business_type) === 19 ? (n(), a("div", _n, [
352
- cn,
353
- o("span", null, t(((Ds = s == null ? void 0 : s.old_flow) == null ? void 0 : Ds.sign_type) === 1 ? "达人合作主合同" : "达人合作补充协议"), 1)
354
- ])) : _("", !0),
355
- ((Ss = s == null ? void 0 : s.old_flow) == null ? void 0 : Ss.business_type) === 16 ? (n(), a("div", dn, [
356
- pn,
357
- o("span", null, t(((zs = (Ls = (Is = s == null ? void 0 : s.old_flow) == null ? void 0 : Is.business_ctx) == null ? void 0 : Ls.no_business_contract_info) == null ? void 0 : zs.e_sign_type) === 1 ? "线下纸质签" : "线上电子签"), 1)
358
- ])) : _("", !0),
359
- ((Bs = s == null ? void 0 : s.old_flow) == null ? void 0 : Bs.business_type) === 16 && ((Rs = (Ns = (Ms = s == null ? void 0 : s.old_flow) == null ? void 0 : Ms.business_ctx) == null ? void 0 : Ns.no_business_contract_info) == null ? void 0 : Rs.e_sign_type) === 1 ? (n(), a("div", rn, [
360
- un,
361
- o("span", null, t(((Gs = (Es = (Vs = s == null ? void 0 : s.old_flow) == null ? void 0 : Vs.business_ctx) == null ? void 0 : Es.no_business_contract_info) == null ? void 0 : Gs.first_signer) === 1 ? "我方" : "对方"), 1)
362
- ])) : _("", !0)
225
+ ((C = s == null ? void 0 : s.old_flow) == null ? void 0 : C.business_type) === 1 || ((g = s == null ? void 0 : s.old_flow) == null ? void 0 : g.business_type) === 8 ? (n(), _("div", yo, [
226
+ fo,
227
+ o("span", null, l(s == null ? void 0 : s.old_flow.business_ctx.esign_contract_no), 1)
228
+ ])) : a("", !0),
229
+ [1, 16, 19].includes((T = s == null ? void 0 : s.old_flow) == null ? void 0 : T.business_type) ? (n(), _("div", wo, [
230
+ ho,
231
+ o("span", xo, l((s == null ? void 0 : s.old_flow.business_ctx.company_name) || ((D = (P = s == null ? void 0 : s.old_flow.business_ctx.no_business_contract_info) == null ? void 0 : P.company_info) == null ? void 0 : D.fp_company_name) || ((L = (S = s == null ? void 0 : s.old_flow.business_ctx.no_business_contract_info) == null ? void 0 : S.personal_info) == null ? void 0 : L.name) || "-"), 1)
232
+ ])) : a("", !0),
233
+ (($ = s == null ? void 0 : s.old_flow) == null ? void 0 : $.business_type) !== 9 ? (n(), _(U, { key: 2 }, [
234
+ ((I = s == null ? void 0 : s.old_flow) == null ? void 0 : I.business_type) === 1 ? (n(), _("div", vo, [
235
+ ko,
236
+ o("span", bo, l(((M = s == null ? void 0 : s.old_flow) == null ? void 0 : M.sign_type) === 1 ? "首次签约" : "补充店铺"), 1)
237
+ ])) : a("", !0),
238
+ ((z = s == null ? void 0 : s.old_flow) == null ? void 0 : z.business_type) === 2 ? (n(), _("div", Fo, [
239
+ Co,
240
+ o("span", go, l(Es(
241
+ s == null ? void 0 : s.old_flow.business_ctx.contract_template_id
242
+ )), 1)
243
+ ])) : a("", !0),
244
+ [3, 4, 5, 6, 7, 8].includes((N = s == null ? void 0 : s.old_flow) == null ? void 0 : N.business_type) ? (n(), _("div", To, [
245
+ Po,
246
+ o("span", Do, l(Os((R = s == null ? void 0 : s.old_flow) == null ? void 0 : R.business_type)), 1)
247
+ ])) : a("", !0),
248
+ [16].includes((B = s == null ? void 0 : s.old_flow) == null ? void 0 : B.business_type) ? (n(), _("div", So, [
249
+ Lo,
250
+ o("span", $o, l(["", "主合同", "补充协议", "解除协议"][(V = s == null ? void 0 : s.old_flow) == null ? void 0 : V.sign_type] || "-"), 1)
251
+ ])) : a("", !0),
252
+ ((j = s == null ? void 0 : s.old_flow) == null ? void 0 : j.business_type) === 16 && ((E = s == null ? void 0 : s.old_flow) == null ? void 0 : E.sign_type) === 1 ? (n(), _("div", Io, [
253
+ Mo,
254
+ o("span", zo, l(Gs(
255
+ (G = (b = (f = s == null ? void 0 : s.old_flow) == null ? void 0 : f.business_ctx) == null ? void 0 : b.no_business_contract_info) == null ? void 0 : G.contract_type
256
+ )), 1)
257
+ ])) : a("", !0)
258
+ ], 64)) : a("", !0),
259
+ ((O = s == null ? void 0 : s.old_flow) == null ? void 0 : O.business_type) === 9 ? (n(), _("div", No, [
260
+ Ro,
261
+ o("span", Bo, l(((ps = s == null ? void 0 : s.old_flow.business_ctx.reduce_store_srv_fee_form) == null ? void 0 : ps.reduce_store_srv_fee_standard_type) === 1 ? "当日在线3店及以上,且合计活动名额100单及以上份额" : "名下同品牌店铺10家及以上,月累计(近30天)销单1000单"), 1)
262
+ ])) : a("", !0),
263
+ ns(
264
+ e.typeFlowPath,
265
+ (us = (rs = (ds = s == null ? void 0 : s.old_flow) == null ? void 0 : ds.node_list) == null ? void 0 : rs[0]) == null ? void 0 : us.approval_status,
266
+ (ys = s == null ? void 0 : s.old_flow) == null ? void 0 : ys.status
267
+ ) ? (n(), _("div", Vo, [
268
+ jo,
269
+ o("span", null, l(F((hs = (ws = (fs = s == null ? void 0 : s.old_flow) == null ? void 0 : fs.node_list) == null ? void 0 : ws[0]) == null ? void 0 : hs.flow_time)), 1)
270
+ ])) : a("", !0),
271
+ ns(
272
+ e.typeFlowPath,
273
+ (ks = (vs = (xs = s == null ? void 0 : s.old_flow) == null ? void 0 : xs.node_list) == null ? void 0 : vs[0]) == null ? void 0 : ks.approval_status,
274
+ (bs = s == null ? void 0 : s.old_flow) == null ? void 0 : bs.status
275
+ ) ? (n(), _("div", Eo, [
276
+ Go,
277
+ o("span", null, l((gs = (Cs = (Fs = s == null ? void 0 : s.old_flow) == null ? void 0 : Fs.node_list) == null ? void 0 : Cs[0]) == null ? void 0 : gs.approval_user_name), 1)
278
+ ])) : a("", !0),
279
+ ((Ts = s == null ? void 0 : s.old_flow) == null ? void 0 : Ts.business_type) === 19 ? (n(), _("div", Oo, [
280
+ qo,
281
+ o("span", null, l(((Ps = s == null ? void 0 : s.old_flow) == null ? void 0 : Ps.sign_type) === 1 ? "达人合作主合同" : "达人合作补充协议"), 1)
282
+ ])) : a("", !0),
283
+ ((Ds = s == null ? void 0 : s.old_flow) == null ? void 0 : Ds.business_type) === 16 ? (n(), _("div", Ao, [
284
+ Ho,
285
+ o("span", null, l((($s = (Ls = (Ss = s == null ? void 0 : s.old_flow) == null ? void 0 : Ss.business_ctx) == null ? void 0 : Ls.no_business_contract_info) == null ? void 0 : $s.e_sign_type) === 1 ? "线下纸质签" : "线上电子签"), 1)
286
+ ])) : a("", !0),
287
+ ((Is = s == null ? void 0 : s.old_flow) == null ? void 0 : Is.business_type) === 16 && ((Ns = (zs = (Ms = s == null ? void 0 : s.old_flow) == null ? void 0 : Ms.business_ctx) == null ? void 0 : zs.no_business_contract_info) == null ? void 0 : Ns.e_sign_type) === 1 ? (n(), _("div", Jo, [
288
+ Ko,
289
+ o("span", null, l(((Vs = (Bs = (Rs = s == null ? void 0 : s.old_flow) == null ? void 0 : Rs.business_ctx) == null ? void 0 : Bs.no_business_contract_info) == null ? void 0 : Vs.first_signer) === 1 ? "我方" : "对方"), 1)
290
+ ])) : a("", !0)
363
291
  ])
364
292
  ])
365
293
  ];
366
294
  }),
367
295
  _: 2
368
- }, 1032, ["onClick"])) : (n(), u(rs, {
296
+ }, 1032, ["onClick"])) : (n(), p(cs, {
369
297
  key: 1,
370
298
  shadow: "hover",
371
299
  class: "mb-1",
372
- onClick: (h) => ss(s, l.type)
300
+ onClick: (u) => Z(s, e.type)
373
301
  }, {
374
- header: f(() => {
375
- var h, k;
302
+ header: d(() => {
303
+ var u, h;
376
304
  return [
377
- o("div", fn, [
305
+ o("div", Qo, [
378
306
  o("div", null, [
379
- o("span", yn, t(s.node_title), 1),
380
- l.typeFlowPath === "抄送我的" && s.copy_status === 1 ? (n(), a("span", hn)) : _("", !0),
381
- l.typeFlowPath === "我发起的" && (s == null ? void 0 : s.flow_status) === 2 ? (n(), u(os, {
307
+ o("span", Uo, l(s.node_title), 1),
308
+ e.typeFlowPath === "抄送我的" && s.copy_status === 1 ? q(t.$slots, "read-icon", {
309
+ key: 0,
310
+ item: s
311
+ }, void 0, !0) : a("", !0),
312
+ e.typeFlowPath === "我发起的" && (s == null ? void 0 : s.flow_status) === 2 ? (n(), p(i, {
382
313
  key: 1,
383
314
  link: "",
384
315
  type: "primary",
385
- onClick: J((y) => ps(s), ["stop"])
316
+ onClick: A((r) => _s(s), ["stop"])
386
317
  }, {
387
- default: f(() => [
318
+ default: d(() => [
388
319
  x(" 催办 ")
389
320
  ]),
390
321
  _: 2
391
- }, 1032, ["onClick"])) : _("", !0),
392
- l.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (n(), u(b, {
322
+ }, 1032, ["onClick"])) : a("", !0),
323
+ e.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (n(), p(y, {
393
324
  key: 2,
394
325
  effect: "plain",
395
326
  type: "danger"
396
327
  }, {
397
- default: f(() => [
328
+ default: d(() => [
398
329
  x(" 发起人已催办 ")
399
330
  ]),
400
331
  _: 1
401
- })) : _("", !0)
332
+ })) : a("", !0)
402
333
  ]),
403
- o("div", wn, [
404
- l.typeFlowPath === "抄送我的" ? (n(), a("div", bn, t(P(s.final_pass_time)), 1)) : (n(), a("div", vn, t(P(s.flow_time)), 1)),
405
- l.typeFlowPath === "待我审批" ? (n(), u(b, {
334
+ o("div", Wo, [
335
+ e.typeFlowPath === "抄送我的" ? (n(), _("div", Xo, l(F(s.final_pass_time)), 1)) : (n(), _("div", Yo, l(F(s.flow_time)), 1)),
336
+ e.typeFlowPath === "待我审批" ? (n(), p(y, {
406
337
  key: 2,
407
- type: (h = U(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : h.type
338
+ type: (u = K(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : u.type
408
339
  }, {
409
- default: f(() => {
410
- var y;
340
+ default: d(() => {
341
+ var r;
411
342
  return [
412
- x(t((y = U(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : y.status), 1)
343
+ x(l((r = K(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : r.status), 1)
413
344
  ];
414
345
  }),
415
346
  _: 2
416
- }, 1032, ["type"])) : (n(), u(b, {
347
+ }, 1032, ["type"])) : (n(), p(y, {
417
348
  key: 3,
418
- type: (k = W(s == null ? void 0 : s.flow_status)) == null ? void 0 : k.type
349
+ type: (h = Q(s == null ? void 0 : s.flow_status)) == null ? void 0 : h.type
419
350
  }, {
420
- default: f(() => {
421
- var y;
351
+ default: d(() => {
352
+ var r;
422
353
  return [
423
- x(t((y = W(s == null ? void 0 : s.flow_status)) == null ? void 0 : y.status), 1)
354
+ x(l((r = Q(s == null ? void 0 : s.flow_status)) == null ? void 0 : r.status), 1)
424
355
  ];
425
356
  }),
426
357
  _: 2
427
358
  }, 1032, ["type"])),
428
- es(s, l.typeFlowPath) ? (n(), a("span", {
359
+ ls(s, e.typeFlowPath) ? q(t.$slots, "delete-icon", {
429
360
  key: 4,
430
- class: "delete-btn ml-2 cursor-pointer",
431
- onClick: J((y) => ds(s), ["stop"])
432
- }, "🗑️", 8, kn)) : _("", !0)
361
+ item: s
362
+ }, () => [
363
+ o("span", {
364
+ class: "delete-btn ml-2 cursor-pointer",
365
+ onClick: A((r) => as(s), ["stop"])
366
+ }, "🗑️", 8, Zo)
367
+ ], !0) : a("", !0)
433
368
  ])
434
369
  ])
435
370
  ];
436
371
  }),
437
- default: f(() => [
438
- o("div", xn, [
439
- o("div", gn, [
440
- o("div", Fn, t("发起人:") + t(s == null ? void 0 : s.create_user_name), 1)
372
+ default: d(() => [
373
+ o("div", io, [
374
+ o("div", mo, [
375
+ o("div", sl, l("发起人:") + l(s == null ? void 0 : s.create_user_name), 1)
441
376
  ]),
442
- o("div", Cn, [
443
- K(e.$slots, "form-content", { item: s }, () => [
444
- e.formTemplateComponent ? (n(!0), a(X, { key: 0 }, ls(s.form_value, (h, k) => (n(), u(ts(e.formTemplateComponent), {
445
- key: k,
446
- item_: h,
377
+ o("div", ol, [
378
+ q(t.$slots, "form-content", { item: s }, () => [
379
+ t.formTemplateComponent ? (n(!0), _(U, { key: 0 }, js(s.form_value, (u, h) => (n(), p(os(t.formTemplateComponent), {
380
+ key: h,
381
+ item_: u,
447
382
  item: s
448
- }, null, 8, ["item_", "item"]))), 128)) : _("", !0)
383
+ }, null, 8, ["item_", "item"]))), 128)) : a("", !0)
449
384
  ], !0)
450
385
  ])
451
386
  ])
@@ -453,38 +388,40 @@ const ms = ["disabled"], so = {
453
388
  _: 2
454
389
  }, 1032, ["onClick"]))
455
390
  ], 64))), 128)),
456
- e.treatDerailsComponent ? (n(), u(ts(e.treatDerailsComponent), {
391
+ t.treatDerailsComponent ? (n(), p(os(t.treatDerailsComponent), {
457
392
  key: 0,
458
393
  ref_key: "treatDerailsRef",
459
- ref: c,
460
- rowItem: Q.value,
461
- typeFlowPath: l.typeFlowPath,
462
- copyStatus: l.copyStatus,
463
- onGetList: _s,
464
- onReada: cs
465
- }, null, 40, ["rowItem", "typeFlowPath", "copyStatus"])) : _("", !0),
466
- e.newTreatDerailsComponent ? (n(), u(ts(e.newTreatDerailsComponent), {
394
+ ref: X,
395
+ rowItem: J.value,
396
+ typeFlowPath: e.typeFlowPath,
397
+ copyStatus: e.copyStatus,
398
+ onGetList: ts,
399
+ onReada: es
400
+ }, null, 40, ["rowItem", "typeFlowPath", "copyStatus"])) : a("", !0),
401
+ t.newTreatDerailsComponent ? (n(), p(os(t.newTreatDerailsComponent), {
467
402
  key: 1,
468
403
  ref_key: "newTreatDerailsRef",
469
- ref: T,
470
- rowItem: Q.value,
471
- typeFlowPath: l.typeFlowPath,
472
- copyStatus: l.copyStatus,
473
- onGetList: _s,
474
- onReada: cs
475
- }, null, 40, ["rowItem", "typeFlowPath", "copyStatus"])) : _("", !0)
404
+ ref: Y,
405
+ rowItem: J.value,
406
+ typeFlowPath: e.typeFlowPath,
407
+ copyStatus: e.copyStatus,
408
+ onGetList: ts,
409
+ onReada: es
410
+ }, null, 40, ["rowItem", "typeFlowPath", "copyStatus"])) : a("", !0)
476
411
  ]);
477
412
  };
478
413
  }
479
- }), Pn = /* @__PURE__ */ m(Tn, [["__scopeId", "data-v-1e46cda6"]]), $n = (d) => {
480
- d.component("CButton", lo), d.component("CBadge", co), d.component("CInput", uo), d.component("CToDoCard", Pn);
481
- }, Sn = {
482
- install: $n
414
+ }), nl = (w, W) => {
415
+ const H = w.__vccOpts || w;
416
+ for (const [e, k] of W)
417
+ H[e] = k;
418
+ return H;
419
+ }, tl = /* @__PURE__ */ nl(ll, [["__scopeId", "data-v-c1bf003a"]]), el = (w) => {
420
+ w.component("CToDoCard", tl);
421
+ }, _l = {
422
+ install: el
483
423
  };
484
424
  export {
485
- co as Badge,
486
- lo as Button,
487
- uo as Input,
488
- Pn as ToDoCard,
489
- Sn as default
425
+ tl as ToDoCard,
426
+ _l as default
490
427
  };
@@ -1 +1 @@
1
- (function(p,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(p=typeof globalThis<"u"?globalThis:p||self,o(p.Computent={},p.Vue))})(this,function(p,o){"use strict";const $o=["disabled"],Io={key:0,class:"comp-btn__spinner"},Lo={key:1,class:"comp-btn__icon"},Mo={class:"comp-btn__content"},zo=o.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click"],setup(l,{emit:a}){const k=l,e=a,_=n=>{!k.disabled&&!k.loading&&e("click",n)};return(n,B)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["comp-btn",`comp-btn--${n.variant}`,`comp-btn--${n.size}`,{"comp-btn--loading":n.loading,"comp-btn--disabled":n.disabled||n.loading}]),disabled:n.disabled||n.loading,onClick:_},[n.loading?(o.openBlock(),o.createElementBlock("span",Io)):o.createCommentVNode("",!0),n.$slots.icon&&!n.loading?(o.openBlock(),o.createElementBlock("span",Lo,[o.renderSlot(n.$slots,"icon",{},void 0,!0)])):o.createCommentVNode("",!0),o.createElementVNode("span",Mo,[o.renderSlot(n.$slots,"default",{},void 0,!0)])],10,$o))}}),O=(l,a)=>{const k=l.__vccOpts||l;for(const[e,_]of a)k[e]=_;return k},Q=O(zo,[["__scopeId","data-v-7c40bef2"]]),Ro={key:0,class:"comp-badge__dot"},jo={class:"comp-badge__content"},U=O(o.defineComponent({__name:"Badge",props:{type:{default:"default"},variant:{default:"subtle"},dot:{type:Boolean,default:!1}},setup(l){return(a,k)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["comp-badge",`comp-badge--${a.type}`,`comp-badge--${a.variant}`,{"comp-badge--has-dot":a.dot}])},[a.dot?(o.openBlock(),o.createElementBlock("span",Ro)):o.createCommentVNode("",!0),o.createElementVNode("span",jo,[o.renderSlot(a.$slots,"default",{},void 0,!0)])],2))}}),[["__scopeId","data-v-158f78af"]]),Go={class:"comp-input-wrapper"},W=O(o.defineComponent({__name:"Input",props:{size:{default:"default"},placeholder:{default:"Please enter..."}},setup(l){return(a,k)=>{const e=o.resolveComponent("el-input");return o.openBlock(),o.createElementBlock("div",Go,[o.createVNode(e,o.mergeProps(a.$attrs,{size:a.size,placeholder:a.placeholder,class:"comp-el-input"}),o.createSlots({_:2},[o.renderList(a.$slots,(_,n)=>({name:n,fn:o.withCtx(B=>[o.renderSlot(a.$slots,n,o.normalizeProps(o.guardReactiveProps(B||{})),void 0,!0)])}))]),1040,["size","placeholder"])])}}}),[["__scopeId","data-v-e8d4db36"]]),c=l=>(o.pushScopeId("data-v-1e46cda6"),l=l(),o.popScopeId(),l),Oo={class:"flex-between-center-display"},qo={class:"mr-2 text-16px font-500"},Ao={key:1,class:"read-dot"},Ho={class:"flex items-center"},Jo={key:1,class:"text-14px text-[#acb0b7] mr-2"},Ko={key:2,class:"text-14px text-[#acb0b7] mr-2"},Qo=["onClick"],Uo={class:"flex items-center"},Wo={class:"w-120px mr-4"},Xo={class:"text-14px font-400"},Yo={class:"mr-2 container_old flex-1 min-w-0"},Zo={class:"text-12px"},mo=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程ID:"),-1)),uo={style:{"font-size":"13px"}},vo={class:"text-12px"},ot=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程名称:"),-1)),tt={style:{"line-height":"16px"}},et={class:"text-12px"},st=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程类型:"),-1)),nt={key:0},lt={key:1},at={key:0,class:"text-12px"},ct=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同编号:"),-1)),rt={key:1,class:"text-12px"},dt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("企业名称:"),-1)),pt={style:{"line-height":"14px"}},_t={key:0,class:"text-12px"},yt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),ft={style:{"font-size":"13px"}},it={key:1,class:"text-12px"},kt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),ht={style:{"font-size":"13px"}},wt={key:2,class:"text-12px"},Bt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),gt={style:{"font-size":"13px"}},Nt={key:3,class:"text-12px"},Ct=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),Vt={style:{"font-size":"13px"}},xt={key:4,class:"text-12px"},Et=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),bt={style:{"font-size":"13px"}},St={key:3,class:"text-12px"},Dt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("标准:"),-1)),Tt={style:{"line-height":"18px"}},Ft={key:4,class:"text-12px"},Pt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前流转时间:"),-1)),$t={key:5,class:"text-12px"},It=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前审批人:"),-1)),Lt={key:6,class:"text-12px"},Mt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),zt={key:7,class:"text-12px"},Rt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约方式:"),-1)),jt={key:8,class:"text-12px"},Gt=c(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("那方先签约:"),-1)),Ot={class:"flex-between-center-display"},qt={class:"mr-2 text-16px font-500"},At={key:0,class:"read-dot"},Ht={class:"flex items-center"},Jt={key:0,class:"text-14px text-[#acb0b7] mr-2"},Kt={key:1,class:"text-14px text-[#acb0b7] mr-2"},Qt=["onClick"],Ut={class:"flex items-center"},Wt={class:"w-120px mr-4 flex items-center"},Xt={class:"text-14px font-400"},Yt={class:"mr-2 container_old flex-1 min-w-0"},X=O(o.defineComponent({__name:"ToDoCard",props:{countList:{default:()=>[]},type:{},typeFlowPath:{default:""},copyStatus:{},treatDerailsComponent:{},newTreatDerailsComponent:{},formTemplateComponent:{},isDeleteFn:{},showFormTitleFn:{},formatTimeFn:{},statusTypeMap:{default:()=>({})},statusTypeNormalMap:{default:()=>({})},contractTypeMap:{default:()=>({})},contractTypeLabelMap:{default:()=>({})},flowPathTypeList:{default:()=>[]}},emits:["getList","doScreen","copy","delete","expedite","details"],setup(l,{expose:a,emit:k}){const e=l,_=k,n=o.ref(null),B=o.ref(null),q=o.ref(),Y=(s,h)=>e.isDeleteFn?e.isDeleteFn(s,h):!1,Z=(s,h,y)=>e.showFormTitleFn?e.showFormTitleFn(s,h,y):!1,g=s=>e.formatTimeFn?e.formatTimeFn(s):String(s||""),A=s=>e.statusTypeMap[s]||{type:"",status:""},H=s=>e.statusTypeNormalMap[s]||{type:"",status:""},mt=s=>e.contractTypeLabelMap[s]||"-",ut=s=>e.contractTypeMap[s]||"-",vt=s=>{const h=e.flowPathTypeList.find(y=>y.value===s);return h?h.label:"-"},J=(s,h)=>{q.value=s,_("details",{item:s,type:h}),s.is_old_flow?n.value&&(n.value.showFlag=!0):B.value&&(B.value.showFlag=!0)},m=()=>{_("getList")},u=()=>{_("doScreen",3,q.value.flow_id)},oe=s=>{_("copy",s)},v=s=>{_("delete",s)},oo=s=>{_("expedite",s)};return a({details:J}),(s,h)=>{const y=o.resolveComponent("el-tag"),K=o.resolveComponent("el-button"),to=o.resolveComponent("el-card");return o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.countList,(t,te)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:te},[t!=null&&t.is_old_flow?(o.openBlock(),o.createBlock(to,{key:0,shadow:"hover",class:"mb-1",onClick:d=>J(t,e.type)},{header:o.withCtx(()=>{var d,i,r,N,C,V,x,E,b,S,D,T,F,P,$,I,L,M,z,R;return[o.createElementVNode("div",Oo,[o.createElementVNode("div",null,[o.createElementVNode("span",qo,o.toDisplayString((d=t.old_flow)==null?void 0:d.flow_node_name),1),(i=t.old_flow)!=null&&i.is_sign?(o.openBlock(),o.createBlock(y,{key:0,type:"success",effect:"plain"},{default:o.withCtx(()=>[o.createTextVNode(" 已发起签约 ")]),_:1})):o.createCommentVNode("",!0),e.typeFlowPath==="抄送我的"&&(t==null?void 0:t.copy_status)===1?(o.openBlock(),o.createElementBlock("span",Ao)):o.createCommentVNode("",!0),e.typeFlowPath==="我发起的"&&((r=t==null?void 0:t.old_flow)==null?void 0:r.status)===2?(o.openBlock(),o.createBlock(K,{key:2,link:"",type:"primary",onClick:o.withModifiers(f=>oo(t),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),e.typeFlowPath==="待我审批"&&(t!=null&&t.have_remind)?(o.openBlock(),o.createBlock(y,{key:3,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ho,[(((N=t==null?void 0:t.old_flow)==null?void 0:N.business_type)===1&&((C=t==null?void 0:t.old_flow)==null?void 0:C.sign_type)!==1||[3,8].includes((V=t==null?void 0:t.old_flow)==null?void 0:V.business_type)||((x=t==null?void 0:t.old_flow)==null?void 0:x.business_type)===2&&((E=t==null?void 0:t.old_flow)==null?void 0:E.status)===5||[16,10].includes((b=t==null?void 0:t.old_flow)==null?void 0:b.business_type)&&[4,5].includes((S=t==null?void 0:t.old_flow)==null?void 0:S.status))&&e.typeFlowPath==="我发起的"?(o.openBlock(),o.createBlock(K,{key:0,link:"",type:"primary",class:"mr-2",onClick:o.withModifiers(f=>oe(t==null?void 0:t.old_flow),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 一键复制 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),e.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",Jo,o.toDisplayString(g((F=(T=(D=t==null?void 0:t.old_flow)==null?void 0:D.copy_list)==null?void 0:T[0])==null?void 0:F.copy_time)),1)):(o.openBlock(),o.createElementBlock("div",Ko,o.toDisplayString(g((P=t==null?void 0:t.old_flow)==null?void 0:P.submit_time)),1)),e.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(y,{key:3,type:(M=A((L=(I=($=t==null?void 0:t.old_flow)==null?void 0:$.node_list)==null?void 0:I[0])==null?void 0:L.approval_status))==null?void 0:M.type},{default:o.withCtx(()=>{var f,w,j,G;return[o.createTextVNode(o.toDisplayString((G=A((j=(w=(f=t==null?void 0:t.old_flow)==null?void 0:f.node_list)==null?void 0:w[0])==null?void 0:j.approval_status))==null?void 0:G.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(y,{key:4,type:(R=H((z=t==null?void 0:t.old_flow)==null?void 0:z.status))==null?void 0:R.type},{default:o.withCtx(()=>{var f,w;return[o.createTextVNode(o.toDisplayString((w=H((f=t==null?void 0:t.old_flow)==null?void 0:f.status))==null?void 0:w.status),1)]}),_:2},1032,["type"])),Y(t,e.typeFlowPath)?(o.openBlock(),o.createElementBlock("span",{key:5,class:"delete-btn ml-2 cursor-pointer",onClick:o.withModifiers(f=>v(t==null?void 0:t.old_flow),["stop"])},"🗑️",8,Qo)):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>{var d,i,r,N,C,V,x,E,b,S,D,T,F,P,$,I,L,M,z,R,f,w,j,G,eo,so,no,lo,ao,co,ro,po,_o,yo,fo,io,ko,ho,wo,Bo,go,No,Co,Vo,xo,Eo,bo,So,Do,To,Fo,Po;return[o.createElementVNode("div",Uo,[o.createElementVNode("div",Wo,[o.createElementVNode("div",Xo,o.toDisplayString("发起人:")+o.toDisplayString((d=t==null?void 0:t.old_flow)==null?void 0:d.create_user_name),1)]),o.createElementVNode("div",Yo,[o.createElementVNode("div",Zo,[mo,o.createElementVNode("span",uo,o.toDisplayString((t==null?void 0:t.flow_id)||""),1)]),o.createElementVNode("div",vo,[ot,o.createElementVNode("span",tt,o.toDisplayString((i=t==null?void 0:t.old_flow)==null?void 0:i.flow_name),1)]),o.createElementVNode("div",et,[st,((r=t==null?void 0:t.old_flow)==null?void 0:r.business_type)===9?(o.openBlock(),o.createElementBlock("span",nt,o.toDisplayString((t==null?void 0:t.old_flow.sign_type)===1?"新流程":"补充店铺"),1)):(o.openBlock(),o.createElementBlock("span",lt,o.toDisplayString(t.template_type),1))]),((N=t==null?void 0:t.old_flow)==null?void 0:N.business_type)===1||((C=t==null?void 0:t.old_flow)==null?void 0:C.business_type)===8?(o.openBlock(),o.createElementBlock("div",at,[ct,o.createElementVNode("span",null,o.toDisplayString(t==null?void 0:t.old_flow.business_ctx.esign_contract_no),1)])):o.createCommentVNode("",!0),[1,16,19].includes((V=t==null?void 0:t.old_flow)==null?void 0:V.business_type)?(o.openBlock(),o.createElementBlock("div",rt,[dt,o.createElementVNode("span",pt,o.toDisplayString((t==null?void 0:t.old_flow.business_ctx.company_name)||((E=(x=t==null?void 0:t.old_flow.business_ctx.no_business_contract_info)==null?void 0:x.company_info)==null?void 0:E.fp_company_name)||((S=(b=t==null?void 0:t.old_flow.business_ctx.no_business_contract_info)==null?void 0:b.personal_info)==null?void 0:S.name)||"-"),1)])):o.createCommentVNode("",!0),((D=t==null?void 0:t.old_flow)==null?void 0:D.business_type)!==9?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[((T=t==null?void 0:t.old_flow)==null?void 0:T.business_type)===1?(o.openBlock(),o.createElementBlock("div",_t,[yt,o.createElementVNode("span",ft,o.toDisplayString(((F=t==null?void 0:t.old_flow)==null?void 0:F.sign_type)===1?"首次签约":"补充店铺"),1)])):o.createCommentVNode("",!0),((P=t==null?void 0:t.old_flow)==null?void 0:P.business_type)===2?(o.openBlock(),o.createElementBlock("div",it,[kt,o.createElementVNode("span",ht,o.toDisplayString(mt(t==null?void 0:t.old_flow.business_ctx.contract_template_id)),1)])):o.createCommentVNode("",!0),[3,4,5,6,7,8].includes(($=t==null?void 0:t.old_flow)==null?void 0:$.business_type)?(o.openBlock(),o.createElementBlock("div",wt,[Bt,o.createElementVNode("span",gt,o.toDisplayString(vt((I=t==null?void 0:t.old_flow)==null?void 0:I.business_type)),1)])):o.createCommentVNode("",!0),[16].includes((L=t==null?void 0:t.old_flow)==null?void 0:L.business_type)?(o.openBlock(),o.createElementBlock("div",Nt,[Ct,o.createElementVNode("span",Vt,o.toDisplayString(["","主合同","补充协议","解除协议"][(M=t==null?void 0:t.old_flow)==null?void 0:M.sign_type]||"-"),1)])):o.createCommentVNode("",!0),((z=t==null?void 0:t.old_flow)==null?void 0:z.business_type)===16&&((R=t==null?void 0:t.old_flow)==null?void 0:R.sign_type)===1?(o.openBlock(),o.createElementBlock("div",xt,[Et,o.createElementVNode("span",bt,o.toDisplayString(ut((j=(w=(f=t==null?void 0:t.old_flow)==null?void 0:f.business_ctx)==null?void 0:w.no_business_contract_info)==null?void 0:j.contract_type)),1)])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),((G=t==null?void 0:t.old_flow)==null?void 0:G.business_type)===9?(o.openBlock(),o.createElementBlock("div",St,[Dt,o.createElementVNode("span",Tt,o.toDisplayString(((eo=t==null?void 0:t.old_flow.business_ctx.reduce_store_srv_fee_form)==null?void 0:eo.reduce_store_srv_fee_standard_type)===1?"当日在线3店及以上,且合计活动名额100单及以上份额":"名下同品牌店铺10家及以上,月累计(近30天)销单1000单"),1)])):o.createCommentVNode("",!0),Z(e.typeFlowPath,(lo=(no=(so=t==null?void 0:t.old_flow)==null?void 0:so.node_list)==null?void 0:no[0])==null?void 0:lo.approval_status,(ao=t==null?void 0:t.old_flow)==null?void 0:ao.status)?(o.openBlock(),o.createElementBlock("div",Ft,[Pt,o.createElementVNode("span",null,o.toDisplayString(g((po=(ro=(co=t==null?void 0:t.old_flow)==null?void 0:co.node_list)==null?void 0:ro[0])==null?void 0:po.flow_time)),1)])):o.createCommentVNode("",!0),Z(e.typeFlowPath,(fo=(yo=(_o=t==null?void 0:t.old_flow)==null?void 0:_o.node_list)==null?void 0:yo[0])==null?void 0:fo.approval_status,(io=t==null?void 0:t.old_flow)==null?void 0:io.status)?(o.openBlock(),o.createElementBlock("div",$t,[It,o.createElementVNode("span",null,o.toDisplayString((wo=(ho=(ko=t==null?void 0:t.old_flow)==null?void 0:ko.node_list)==null?void 0:ho[0])==null?void 0:wo.approval_user_name),1)])):o.createCommentVNode("",!0),((Bo=t==null?void 0:t.old_flow)==null?void 0:Bo.business_type)===19?(o.openBlock(),o.createElementBlock("div",Lt,[Mt,o.createElementVNode("span",null,o.toDisplayString(((go=t==null?void 0:t.old_flow)==null?void 0:go.sign_type)===1?"达人合作主合同":"达人合作补充协议"),1)])):o.createCommentVNode("",!0),((No=t==null?void 0:t.old_flow)==null?void 0:No.business_type)===16?(o.openBlock(),o.createElementBlock("div",zt,[Rt,o.createElementVNode("span",null,o.toDisplayString(((xo=(Vo=(Co=t==null?void 0:t.old_flow)==null?void 0:Co.business_ctx)==null?void 0:Vo.no_business_contract_info)==null?void 0:xo.e_sign_type)===1?"线下纸质签":"线上电子签"),1)])):o.createCommentVNode("",!0),((Eo=t==null?void 0:t.old_flow)==null?void 0:Eo.business_type)===16&&((Do=(So=(bo=t==null?void 0:t.old_flow)==null?void 0:bo.business_ctx)==null?void 0:So.no_business_contract_info)==null?void 0:Do.e_sign_type)===1?(o.openBlock(),o.createElementBlock("div",jt,[Gt,o.createElementVNode("span",null,o.toDisplayString(((Po=(Fo=(To=t==null?void 0:t.old_flow)==null?void 0:To.business_ctx)==null?void 0:Fo.no_business_contract_info)==null?void 0:Po.first_signer)===1?"我方":"对方"),1)])):o.createCommentVNode("",!0)])])]}),_:2},1032,["onClick"])):(o.openBlock(),o.createBlock(to,{key:1,shadow:"hover",class:"mb-1",onClick:d=>J(t,e.type)},{header:o.withCtx(()=>{var d,i;return[o.createElementVNode("div",Ot,[o.createElementVNode("div",null,[o.createElementVNode("span",qt,o.toDisplayString(t.node_title),1),e.typeFlowPath==="抄送我的"&&t.copy_status===1?(o.openBlock(),o.createElementBlock("span",At)):o.createCommentVNode("",!0),e.typeFlowPath==="我发起的"&&(t==null?void 0:t.flow_status)===2?(o.openBlock(),o.createBlock(K,{key:1,link:"",type:"primary",onClick:o.withModifiers(r=>oo(t),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),e.typeFlowPath==="待我审批"&&(t!=null&&t.have_remind)?(o.openBlock(),o.createBlock(y,{key:2,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ht,[e.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",Jt,o.toDisplayString(g(t.final_pass_time)),1)):(o.openBlock(),o.createElementBlock("div",Kt,o.toDisplayString(g(t.flow_time)),1)),e.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(y,{key:2,type:(d=A(t==null?void 0:t.node_approval_status))==null?void 0:d.type},{default:o.withCtx(()=>{var r;return[o.createTextVNode(o.toDisplayString((r=A(t==null?void 0:t.node_approval_status))==null?void 0:r.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(y,{key:3,type:(i=H(t==null?void 0:t.flow_status))==null?void 0:i.type},{default:o.withCtx(()=>{var r;return[o.createTextVNode(o.toDisplayString((r=H(t==null?void 0:t.flow_status))==null?void 0:r.status),1)]}),_:2},1032,["type"])),Y(t,e.typeFlowPath)?(o.openBlock(),o.createElementBlock("span",{key:4,class:"delete-btn ml-2 cursor-pointer",onClick:o.withModifiers(r=>v(t),["stop"])},"🗑️",8,Qt)):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>[o.createElementVNode("div",Ut,[o.createElementVNode("div",Wt,[o.createElementVNode("div",Xt,o.toDisplayString("发起人:")+o.toDisplayString(t==null?void 0:t.create_user_name),1)]),o.createElementVNode("div",Yt,[o.renderSlot(s.$slots,"form-content",{item:t},()=>[s.formTemplateComponent?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.form_value,(d,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.formTemplateComponent),{key:i,item_:d,item:t},null,8,["item_","item"]))),128)):o.createCommentVNode("",!0)],!0)])])]),_:2},1032,["onClick"]))],64))),128)),s.treatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.treatDerailsComponent),{key:0,ref_key:"treatDerailsRef",ref:n,rowItem:q.value,typeFlowPath:e.typeFlowPath,copyStatus:e.copyStatus,onGetList:m,onReada:u},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0),s.newTreatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.newTreatDerailsComponent),{key:1,ref_key:"newTreatDerailsRef",ref:B,rowItem:q.value,typeFlowPath:e.typeFlowPath,copyStatus:e.copyStatus,onGetList:m,onReada:u},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-1e46cda6"]]),Zt={install:l=>{l.component("CButton",Q),l.component("CBadge",U),l.component("CInput",W),l.component("CToDoCard",X)}};p.Badge=U,p.Button=Q,p.Input=W,p.ToDoCard=X,p.default=Zt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(y,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(y=typeof globalThis<"u"?globalThis:y||self,o(y.Computent={},y.Vue))})(this,function(y,o){"use strict";const l=d=>(o.pushScopeId("data-v-c1bf003a"),d=d(),o.popScopeId(),d),bo={class:"flex justify-between items-center"},To={class:"mr-2 text-16px font-500"},Fo={class:"flex items-center"},Po={key:1,class:"text-14px text-[#acb0b7] mr-2"},Lo={key:2,class:"text-14px text-[#acb0b7] mr-2"},Mo=["onClick"],$o={class:"flex items-center"},Io={class:"w-120px mr-4"},zo={class:"text-14px font-400"},Ro={class:"mr-2 container_old flex-1 min-w-0"},jo={class:"text-12px"},Go=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程ID:"),-1)),Oo={style:{"font-size":"13px"}},qo={class:"text-12px"},Ao=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程名称:"),-1)),Ho={style:{"line-height":"16px"}},Jo={class:"text-12px"},Ko=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程类型:"),-1)),Qo={key:0},Uo={key:1},Wo={key:0,class:"text-12px"},Xo=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同编号:"),-1)),Yo={key:1,class:"text-12px"},Zo=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("企业名称:"),-1)),uo={style:{"line-height":"14px"}},mo={key:0,class:"text-12px"},vo=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),ot={style:{"font-size":"13px"}},tt={key:1,class:"text-12px"},et=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),st={style:{"font-size":"13px"}},lt={key:2,class:"text-12px"},nt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),at={style:{"font-size":"13px"}},ct={key:3,class:"text-12px"},rt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),dt={style:{"font-size":"13px"}},pt={key:4,class:"text-12px"},_t=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),yt={style:{"font-size":"13px"}},ft={key:3,class:"text-12px"},kt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("标准:"),-1)),wt={style:{"line-height":"18px"}},ht={key:4,class:"text-12px"},it=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前流转时间:"),-1)),xt={key:5,class:"text-12px"},Nt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前审批人:"),-1)),Vt={key:6,class:"text-12px"},gt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),Ct={key:7,class:"text-12px"},Bt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约方式:"),-1)),Et={key:8,class:"text-12px"},St=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("那方先签约:"),-1)),Dt={class:"flex justify-between items-center"},bt={class:"mr-2 text-16px font-500"},Tt={class:"flex items-center"},Ft={key:0,class:"text-14px text-[#acb0b7] mr-2"},Pt={key:1,class:"text-14px text-[#acb0b7] mr-2"},Lt=["onClick"],Mt={class:"flex items-center"},$t={class:"w-120px mr-4 flex items-center"},It={class:"text-14px font-400"},zt={class:"mr-2 container_old flex-1 min-w-0"},K=((d,O)=>{const z=d.__vccOpts||d;for(const[s,f]of O)z[s]=f;return z})(o.defineComponent({__name:"ToDoCard",props:{countList:{default:()=>[]},type:{},typeFlowPath:{default:""},copyStatus:{},treatDerailsComponent:{},newTreatDerailsComponent:{},formTemplateComponent:{},isDeleteFn:{},showFormTitleFn:{},formatTimeFn:{},statusTypeMap:{default:()=>({})},statusTypeNormalMap:{default:()=>({})},contractTypeMap:{default:()=>({})},contractTypeLabelMap:{default:()=>({})},flowPathTypeList:{default:()=>[]}},emits:["getList","doScreen","copy","delete","expedite","details"],setup(d,{expose:O,emit:z}){const s=d,f=z,q=o.ref(null),A=o.ref(null),R=o.ref(),Q=(e,_)=>s.isDeleteFn?s.isDeleteFn(e,_):!1,U=(e,_,c)=>s.showFormTitleFn?s.showFormTitleFn(e,_,c):!1,w=e=>s.formatTimeFn?s.formatTimeFn(e):String(e||""),j=e=>s.statusTypeMap[e]||{type:"",status:""},G=e=>s.statusTypeNormalMap[e]||{type:"",status:""},jt=e=>s.contractTypeLabelMap[e]||"-",Gt=e=>s.contractTypeMap[e]||"-",Ot=e=>{const _=s.flowPathTypeList.find(c=>c.value===e);return _?_.label:"-"},H=(e,_)=>{R.value=e,f("details",{item:e,type:_}),e.is_old_flow?q.value&&(q.value.showFlag=!0):A.value&&(A.value.showFlag=!0)},W=()=>{f("getList")},X=()=>{f("doScreen",3,R.value.flow_id)},qt=e=>{f("copy",e)},Y=e=>{f("delete",e)},Z=e=>{f("expedite",e)};return O({details:H}),(e,_)=>{const c=o.resolveComponent("el-tag"),J=o.resolveComponent("el-button"),u=o.resolveComponent("el-card");return o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.countList,(t,At)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:At},[t!=null&&t.is_old_flow?(o.openBlock(),o.createBlock(u,{key:0,shadow:"hover",class:"mb-1",onClick:a=>H(t,s.type)},{header:o.withCtx(()=>{var a,p,n,h,i,x,N,V,g,C,B,E,S,D,b,T,F,P,L,M;return[o.createElementVNode("div",bo,[o.createElementVNode("div",null,[o.createElementVNode("span",To,o.toDisplayString((a=t.old_flow)==null?void 0:a.flow_node_name),1),(p=t.old_flow)!=null&&p.is_sign?(o.openBlock(),o.createBlock(c,{key:0,type:"success",effect:"plain"},{default:o.withCtx(()=>[o.createTextVNode(" 已发起签约 ")]),_:1})):o.createCommentVNode("",!0),s.typeFlowPath==="抄送我的"&&(t==null?void 0:t.copy_status)===1?o.renderSlot(e.$slots,"read-icon",{key:1,item:t},void 0,!0):o.createCommentVNode("",!0),s.typeFlowPath==="我发起的"&&((n=t==null?void 0:t.old_flow)==null?void 0:n.status)===2?(o.openBlock(),o.createBlock(J,{key:2,link:"",type:"primary",onClick:o.withModifiers(r=>Z(t),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),s.typeFlowPath==="待我审批"&&(t!=null&&t.have_remind)?(o.openBlock(),o.createBlock(c,{key:3,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Fo,[(((h=t==null?void 0:t.old_flow)==null?void 0:h.business_type)===1&&((i=t==null?void 0:t.old_flow)==null?void 0:i.sign_type)!==1||[3,8].includes((x=t==null?void 0:t.old_flow)==null?void 0:x.business_type)||((N=t==null?void 0:t.old_flow)==null?void 0:N.business_type)===2&&((V=t==null?void 0:t.old_flow)==null?void 0:V.status)===5||[16,10].includes((g=t==null?void 0:t.old_flow)==null?void 0:g.business_type)&&[4,5].includes((C=t==null?void 0:t.old_flow)==null?void 0:C.status))&&s.typeFlowPath==="我发起的"?(o.openBlock(),o.createBlock(J,{key:0,link:"",type:"primary",class:"mr-2",onClick:o.withModifiers(r=>qt(t==null?void 0:t.old_flow),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 一键复制 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),s.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",Po,o.toDisplayString(w((S=(E=(B=t==null?void 0:t.old_flow)==null?void 0:B.copy_list)==null?void 0:E[0])==null?void 0:S.copy_time)),1)):(o.openBlock(),o.createElementBlock("div",Lo,o.toDisplayString(w((D=t==null?void 0:t.old_flow)==null?void 0:D.submit_time)),1)),s.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(c,{key:3,type:(P=j((F=(T=(b=t==null?void 0:t.old_flow)==null?void 0:b.node_list)==null?void 0:T[0])==null?void 0:F.approval_status))==null?void 0:P.type},{default:o.withCtx(()=>{var r,k,$,I;return[o.createTextVNode(o.toDisplayString((I=j(($=(k=(r=t==null?void 0:t.old_flow)==null?void 0:r.node_list)==null?void 0:k[0])==null?void 0:$.approval_status))==null?void 0:I.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(c,{key:4,type:(M=G((L=t==null?void 0:t.old_flow)==null?void 0:L.status))==null?void 0:M.type},{default:o.withCtx(()=>{var r,k;return[o.createTextVNode(o.toDisplayString((k=G((r=t==null?void 0:t.old_flow)==null?void 0:r.status))==null?void 0:k.status),1)]}),_:2},1032,["type"])),Q(t,s.typeFlowPath)?o.renderSlot(e.$slots,"delete-icon",{key:5,item:t},()=>[o.createElementVNode("span",{class:"delete-btn ml-2 cursor-pointer",onClick:o.withModifiers(r=>Y(t==null?void 0:t.old_flow),["stop"])},"🗑️",8,Mo)],!0):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>{var a,p,n,h,i,x,N,V,g,C,B,E,S,D,b,T,F,P,L,M,r,k,$,I,m,v,oo,to,eo,so,lo,no,ao,co,ro,po,_o,yo,fo,ko,wo,ho,io,xo,No,Vo,go,Co,Bo,Eo,So,Do;return[o.createElementVNode("div",$o,[o.createElementVNode("div",Io,[o.createElementVNode("div",zo,o.toDisplayString("发起人:")+o.toDisplayString((a=t==null?void 0:t.old_flow)==null?void 0:a.create_user_name),1)]),o.createElementVNode("div",Ro,[o.createElementVNode("div",jo,[Go,o.createElementVNode("span",Oo,o.toDisplayString((t==null?void 0:t.flow_id)||""),1)]),o.createElementVNode("div",qo,[Ao,o.createElementVNode("span",Ho,o.toDisplayString((p=t==null?void 0:t.old_flow)==null?void 0:p.flow_name),1)]),o.createElementVNode("div",Jo,[Ko,((n=t==null?void 0:t.old_flow)==null?void 0:n.business_type)===9?(o.openBlock(),o.createElementBlock("span",Qo,o.toDisplayString((t==null?void 0:t.old_flow.sign_type)===1?"新流程":"补充店铺"),1)):(o.openBlock(),o.createElementBlock("span",Uo,o.toDisplayString(t.template_type),1))]),((h=t==null?void 0:t.old_flow)==null?void 0:h.business_type)===1||((i=t==null?void 0:t.old_flow)==null?void 0:i.business_type)===8?(o.openBlock(),o.createElementBlock("div",Wo,[Xo,o.createElementVNode("span",null,o.toDisplayString(t==null?void 0:t.old_flow.business_ctx.esign_contract_no),1)])):o.createCommentVNode("",!0),[1,16,19].includes((x=t==null?void 0:t.old_flow)==null?void 0:x.business_type)?(o.openBlock(),o.createElementBlock("div",Yo,[Zo,o.createElementVNode("span",uo,o.toDisplayString((t==null?void 0:t.old_flow.business_ctx.company_name)||((V=(N=t==null?void 0:t.old_flow.business_ctx.no_business_contract_info)==null?void 0:N.company_info)==null?void 0:V.fp_company_name)||((C=(g=t==null?void 0:t.old_flow.business_ctx.no_business_contract_info)==null?void 0:g.personal_info)==null?void 0:C.name)||"-"),1)])):o.createCommentVNode("",!0),((B=t==null?void 0:t.old_flow)==null?void 0:B.business_type)!==9?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[((E=t==null?void 0:t.old_flow)==null?void 0:E.business_type)===1?(o.openBlock(),o.createElementBlock("div",mo,[vo,o.createElementVNode("span",ot,o.toDisplayString(((S=t==null?void 0:t.old_flow)==null?void 0:S.sign_type)===1?"首次签约":"补充店铺"),1)])):o.createCommentVNode("",!0),((D=t==null?void 0:t.old_flow)==null?void 0:D.business_type)===2?(o.openBlock(),o.createElementBlock("div",tt,[et,o.createElementVNode("span",st,o.toDisplayString(jt(t==null?void 0:t.old_flow.business_ctx.contract_template_id)),1)])):o.createCommentVNode("",!0),[3,4,5,6,7,8].includes((b=t==null?void 0:t.old_flow)==null?void 0:b.business_type)?(o.openBlock(),o.createElementBlock("div",lt,[nt,o.createElementVNode("span",at,o.toDisplayString(Ot((T=t==null?void 0:t.old_flow)==null?void 0:T.business_type)),1)])):o.createCommentVNode("",!0),[16].includes((F=t==null?void 0:t.old_flow)==null?void 0:F.business_type)?(o.openBlock(),o.createElementBlock("div",ct,[rt,o.createElementVNode("span",dt,o.toDisplayString(["","主合同","补充协议","解除协议"][(P=t==null?void 0:t.old_flow)==null?void 0:P.sign_type]||"-"),1)])):o.createCommentVNode("",!0),((L=t==null?void 0:t.old_flow)==null?void 0:L.business_type)===16&&((M=t==null?void 0:t.old_flow)==null?void 0:M.sign_type)===1?(o.openBlock(),o.createElementBlock("div",pt,[_t,o.createElementVNode("span",yt,o.toDisplayString(Gt(($=(k=(r=t==null?void 0:t.old_flow)==null?void 0:r.business_ctx)==null?void 0:k.no_business_contract_info)==null?void 0:$.contract_type)),1)])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),((I=t==null?void 0:t.old_flow)==null?void 0:I.business_type)===9?(o.openBlock(),o.createElementBlock("div",ft,[kt,o.createElementVNode("span",wt,o.toDisplayString(((m=t==null?void 0:t.old_flow.business_ctx.reduce_store_srv_fee_form)==null?void 0:m.reduce_store_srv_fee_standard_type)===1?"当日在线3店及以上,且合计活动名额100单及以上份额":"名下同品牌店铺10家及以上,月累计(近30天)销单1000单"),1)])):o.createCommentVNode("",!0),U(s.typeFlowPath,(to=(oo=(v=t==null?void 0:t.old_flow)==null?void 0:v.node_list)==null?void 0:oo[0])==null?void 0:to.approval_status,(eo=t==null?void 0:t.old_flow)==null?void 0:eo.status)?(o.openBlock(),o.createElementBlock("div",ht,[it,o.createElementVNode("span",null,o.toDisplayString(w((no=(lo=(so=t==null?void 0:t.old_flow)==null?void 0:so.node_list)==null?void 0:lo[0])==null?void 0:no.flow_time)),1)])):o.createCommentVNode("",!0),U(s.typeFlowPath,(ro=(co=(ao=t==null?void 0:t.old_flow)==null?void 0:ao.node_list)==null?void 0:co[0])==null?void 0:ro.approval_status,(po=t==null?void 0:t.old_flow)==null?void 0:po.status)?(o.openBlock(),o.createElementBlock("div",xt,[Nt,o.createElementVNode("span",null,o.toDisplayString((fo=(yo=(_o=t==null?void 0:t.old_flow)==null?void 0:_o.node_list)==null?void 0:yo[0])==null?void 0:fo.approval_user_name),1)])):o.createCommentVNode("",!0),((ko=t==null?void 0:t.old_flow)==null?void 0:ko.business_type)===19?(o.openBlock(),o.createElementBlock("div",Vt,[gt,o.createElementVNode("span",null,o.toDisplayString(((wo=t==null?void 0:t.old_flow)==null?void 0:wo.sign_type)===1?"达人合作主合同":"达人合作补充协议"),1)])):o.createCommentVNode("",!0),((ho=t==null?void 0:t.old_flow)==null?void 0:ho.business_type)===16?(o.openBlock(),o.createElementBlock("div",Ct,[Bt,o.createElementVNode("span",null,o.toDisplayString(((No=(xo=(io=t==null?void 0:t.old_flow)==null?void 0:io.business_ctx)==null?void 0:xo.no_business_contract_info)==null?void 0:No.e_sign_type)===1?"线下纸质签":"线上电子签"),1)])):o.createCommentVNode("",!0),((Vo=t==null?void 0:t.old_flow)==null?void 0:Vo.business_type)===16&&((Bo=(Co=(go=t==null?void 0:t.old_flow)==null?void 0:go.business_ctx)==null?void 0:Co.no_business_contract_info)==null?void 0:Bo.e_sign_type)===1?(o.openBlock(),o.createElementBlock("div",Et,[St,o.createElementVNode("span",null,o.toDisplayString(((Do=(So=(Eo=t==null?void 0:t.old_flow)==null?void 0:Eo.business_ctx)==null?void 0:So.no_business_contract_info)==null?void 0:Do.first_signer)===1?"我方":"对方"),1)])):o.createCommentVNode("",!0)])])]}),_:2},1032,["onClick"])):(o.openBlock(),o.createBlock(u,{key:1,shadow:"hover",class:"mb-1",onClick:a=>H(t,s.type)},{header:o.withCtx(()=>{var a,p;return[o.createElementVNode("div",Dt,[o.createElementVNode("div",null,[o.createElementVNode("span",bt,o.toDisplayString(t.node_title),1),s.typeFlowPath==="抄送我的"&&t.copy_status===1?o.renderSlot(e.$slots,"read-icon",{key:0,item:t},void 0,!0):o.createCommentVNode("",!0),s.typeFlowPath==="我发起的"&&(t==null?void 0:t.flow_status)===2?(o.openBlock(),o.createBlock(J,{key:1,link:"",type:"primary",onClick:o.withModifiers(n=>Z(t),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),s.typeFlowPath==="待我审批"&&(t!=null&&t.have_remind)?(o.openBlock(),o.createBlock(c,{key:2,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Tt,[s.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",Ft,o.toDisplayString(w(t.final_pass_time)),1)):(o.openBlock(),o.createElementBlock("div",Pt,o.toDisplayString(w(t.flow_time)),1)),s.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(c,{key:2,type:(a=j(t==null?void 0:t.node_approval_status))==null?void 0:a.type},{default:o.withCtx(()=>{var n;return[o.createTextVNode(o.toDisplayString((n=j(t==null?void 0:t.node_approval_status))==null?void 0:n.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(c,{key:3,type:(p=G(t==null?void 0:t.flow_status))==null?void 0:p.type},{default:o.withCtx(()=>{var n;return[o.createTextVNode(o.toDisplayString((n=G(t==null?void 0:t.flow_status))==null?void 0:n.status),1)]}),_:2},1032,["type"])),Q(t,s.typeFlowPath)?o.renderSlot(e.$slots,"delete-icon",{key:4,item:t},()=>[o.createElementVNode("span",{class:"delete-btn ml-2 cursor-pointer",onClick:o.withModifiers(n=>Y(t),["stop"])},"🗑️",8,Lt)],!0):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>[o.createElementVNode("div",Mt,[o.createElementVNode("div",$t,[o.createElementVNode("div",It,o.toDisplayString("发起人:")+o.toDisplayString(t==null?void 0:t.create_user_name),1)]),o.createElementVNode("div",zt,[o.renderSlot(e.$slots,"form-content",{item:t},()=>[e.formTemplateComponent?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.form_value,(a,p)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.formTemplateComponent),{key:p,item_:a,item:t},null,8,["item_","item"]))),128)):o.createCommentVNode("",!0)],!0)])])]),_:2},1032,["onClick"]))],64))),128)),e.treatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.treatDerailsComponent),{key:0,ref_key:"treatDerailsRef",ref:q,rowItem:R.value,typeFlowPath:s.typeFlowPath,copyStatus:s.copyStatus,onGetList:W,onReada:X},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0),e.newTreatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.newTreatDerailsComponent),{key:1,ref_key:"newTreatDerailsRef",ref:A,rowItem:R.value,typeFlowPath:s.typeFlowPath,copyStatus:s.copyStatus,onGetList:W,onReada:X},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c1bf003a"]]),Rt={install:d=>{d.component("CToDoCard",K)}};y.ToDoCard=K,y.default=Rt,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  import { App } from 'vue';
2
- import { default as Button } from './components/Button/index';
3
- import { default as Badge } from './components/Badge/index';
4
- import { default as Input } from './components/Input/index';
5
2
  import { default as ToDoCard } from './components/ToDoCard/index';
6
3
 
7
- export { Button, Badge, Input, ToDoCard };
4
+ export { ToDoCard };
8
5
  declare const _default: {
9
6
  install: (app: App) => void;
10
7
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .comp-btn[data-v-7c40bef2]{display:inline-flex;align-items:center;justify-content:center;font-family:var(--comp-font-sans, system-ui, sans-serif);font-weight:600;border-radius:var(--comp-radius-md, 8px);border:1px solid transparent;cursor:pointer;outline:none;position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;transition:all var(--comp-transition-fast, .2s)}.comp-btn--sm[data-v-7c40bef2]{padding:6px 12px;font-size:13px;border-radius:var(--comp-radius-sm, 6px)}.comp-btn--md[data-v-7c40bef2]{padding:10px 18px;font-size:14px;border-radius:var(--comp-radius-md, 10px)}.comp-btn--lg[data-v-7c40bef2]{padding:14px 24px;font-size:16px;border-radius:var(--comp-radius-lg, 14px)}.comp-btn--primary[data-v-7c40bef2]{background-color:var(--comp-primary);color:#fff;box-shadow:var(--comp-shadow-sm)}.comp-btn--primary[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:var(--comp-primary-hover);box-shadow:var(--comp-shadow-glow);transform:translateY(-1px)}.comp-btn--primary[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:var(--comp-primary-active);transform:translateY(0)}.comp-btn--secondary[data-v-7c40bef2]{background-color:var(--comp-bg-card);border-color:var(--comp-border);color:var(--comp-text-primary)}.comp-btn--secondary[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:var(--comp-bg-hover);border-color:var(--comp-border-hover);transform:translateY(-1px)}.comp-btn--secondary[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:var(--comp-bg-card);transform:translateY(0)}.comp-btn--outline[data-v-7c40bef2]{background-color:transparent;border-color:var(--comp-primary);color:var(--comp-primary)}.comp-btn--outline[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:#6366f114;transform:translateY(-1px)}.comp-btn--outline[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:#6366f129;transform:translateY(0)}.comp-btn--text[data-v-7c40bef2]{background-color:transparent;border-color:transparent;color:var(--comp-text-secondary)}.comp-btn--text[data-v-7c40bef2]:hover:not(.comp-btn--disabled){color:var(--comp-text-primary);background-color:#ffffff0d}.comp-btn--text[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:#ffffff1a}.comp-btn--danger[data-v-7c40bef2]{background-color:var(--comp-danger);color:#fff}.comp-btn--danger[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:var(--comp-danger-hover);transform:translateY(-1px)}.comp-btn--danger[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:var(--comp-danger-active);transform:translateY(0)}.comp-btn--disabled[data-v-7c40bef2]{opacity:.6;cursor:not-allowed;transform:none!important;box-shadow:none!important}.comp-btn__icon[data-v-7c40bef2]{display:inline-flex;align-items:center;justify-content:center;margin-right:6px;font-size:1.1em}.comp-btn__content[data-v-7c40bef2]{display:inline-flex;align-items:center}.comp-btn__spinner[data-v-7c40bef2]{width:14px;height:14px;border:2px solid currentColor;border-bottom-color:transparent;border-radius:50%;display:inline-block;margin-right:8px;animation:comp-spin-7c40bef2 .75s linear infinite}@keyframes comp-spin-7c40bef2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.comp-badge[data-v-158f78af]{display:inline-flex;align-items:center;justify-content:center;font-family:var(--comp-font-sans, system-ui, sans-serif);font-weight:600;font-size:11px;letter-spacing:.03em;text-transform:uppercase;padding:3px 8px;border-radius:var(--comp-radius-full, 9999px);line-height:1;border:1px solid transparent;-webkit-user-select:none;user-select:none;transition:all var(--comp-transition-fast, .2s)}.comp-badge--default.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-text-secondary);color:var(--comp-bg-main)}.comp-badge--default.comp-badge--subtle[data-v-158f78af]{background-color:var(--comp-bg-hover);color:var(--comp-text-primary);border-color:var(--comp-border)}.comp-badge--default.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-text-muted);color:var(--comp-text-secondary)}.comp-badge--success.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-success);color:#fff}.comp-badge--success.comp-badge--subtle[data-v-158f78af]{background-color:#10b9811f;color:#34d399;border-color:#10b98133}.comp-badge--success.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-success);color:var(--comp-success)}.comp-badge--warning.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-warning);color:#fff}.comp-badge--warning.comp-badge--subtle[data-v-158f78af]{background-color:#f59e0b1f;color:#fbbf24;border-color:#f59e0b33}.comp-badge--warning.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-warning);color:var(--comp-warning)}.comp-badge--danger.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-danger);color:#fff}.comp-badge--danger.comp-badge--subtle[data-v-158f78af]{background-color:#ef44441f;color:#fca5a5;border-color:#ef444433}.comp-badge--danger.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-danger);color:var(--comp-danger)}.comp-badge--info.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-info);color:#fff}.comp-badge--info.comp-badge--subtle[data-v-158f78af]{background-color:#06b6d41f;color:#22d3ee;border-color:#06b6d433}.comp-badge--info.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-info);color:var(--comp-info)}.comp-badge__dot[data-v-158f78af]{width:6px;height:6px;border-radius:50%;margin-right:5px;background-color:currentColor;display:inline-block;box-shadow:0 0 4px currentColor}.comp-badge[data-v-158f78af]:hover{transform:translateY(-.5px);filter:brightness(1.08)}.comp-input-wrapper[data-v-e8d4db36]{font-family:var(--comp-font-sans, system-ui, sans-serif);width:100%}.comp-el-input[data-v-e8d4db36] .el-input__wrapper{background-color:var(--comp-bg-card);box-shadow:0 0 0 1px var(--comp-border) inset;border-radius:var(--comp-radius-md);color:var(--comp-text-primary);transition:all var(--comp-transition-fast)}.comp-el-input[data-v-e8d4db36] .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--comp-border-hover) inset}.comp-el-input[data-v-e8d4db36] .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--comp-primary) inset;background-color:var(--comp-bg-hover)}.comp-el-input[data-v-e8d4db36] .el-input__inner{color:var(--comp-text-primary)}.comp-el-input[data-v-e8d4db36] .el-input__inner::placeholder{color:var(--comp-text-muted)}.mb-1[data-v-1e46cda6]{margin-bottom:8px}.mr-2[data-v-1e46cda6]{margin-right:8px}.mr-4[data-v-1e46cda6]{margin-right:16px}.ml-2[data-v-1e46cda6]{margin-left:8px}.text-16px[data-v-1e46cda6]{font-size:16px}.text-14px[data-v-1e46cda6]{font-size:14px}.text-12px[data-v-1e46cda6]{font-size:12px}.font-500[data-v-1e46cda6]{font-weight:500}.font-400[data-v-1e46cda6]{font-weight:400}.flex[data-v-1e46cda6]{display:flex}.items-center[data-v-1e46cda6]{align-items:center}.flex-between-center-display[data-v-1e46cda6]{display:flex;align-items:center;justify-content:space-between}.flex-1[data-v-1e46cda6]{flex:1}.min-w-0[data-v-1e46cda6]{min-width:0}.w-120px[data-v-1e46cda6]{width:120px}.cursor-pointer[data-v-1e46cda6]{cursor:pointer}.read-dot[data-v-1e46cda6]{width:6px;height:6px;border-radius:50%;background-color:red;display:inline-block;vertical-align:middle;margin-left:4px;transform:translateY(-8px)}.delete-btn[data-v-1e46cda6]{font-size:18px;color:#ef4444;transition:opacity .2s}.delete-btn[data-v-1e46cda6]:hover{opacity:.8}.container_old[data-v-1e46cda6]{display:grid;grid-auto-flow:column;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,auto);row-gap:8px;align-content:start}.title[data-v-1e46cda6]{font-size:12px;font-weight:500;color:var(--comp-text-secondary, #9ca3af);margin-right:4px}[data-v-1e46cda6] .el-card__header{padding:8px 15px;background-color:var(--comp-bg-hover, rgba(255, 255, 255, .02))}[data-v-1e46cda6] .el-card__body{padding:10px 20px}:root{--comp-primary: #6366f1;--comp-primary-hover: #4f46e5;--comp-primary-active: #4338ca;--comp-primary-light: #e0e7ff;--comp-success: #10b981;--comp-success-hover: #059669;--comp-success-light: #d1fae5;--comp-warning: #f59e0b;--comp-warning-hover: #d97706;--comp-warning-light: #fef3c7;--comp-danger: #ef4444;--comp-danger-hover: #dc2626;--comp-danger-active: #b91c1c;--comp-danger-light: #fee2e2;--comp-info: #06b6d4;--comp-info-hover: #0891b2;--comp-info-light: #ecfeff;--comp-bg-main: #0b0f19;--comp-bg-card: #151d30;--comp-bg-hover: #1f293d;--comp-text-primary: #f3f4f6;--comp-text-secondary: #9ca3af;--comp-text-muted: #6b7280;--comp-border: #2d3748;--comp-border-hover: #4a5568;--comp-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;--comp-radius-sm: 6px;--comp-radius-md: 10px;--comp-radius-lg: 16px;--comp-radius-full: 9999px;--comp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--comp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);--comp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3);--comp-shadow-glow: 0 0 15px rgba(99, 102, 241, .3);--comp-transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--comp-transition-normal: .25s cubic-bezier(.4, 0, .2, 1)}.comp-lib-root,.comp-lib-root *,.comp-lib-root *:before,.comp-lib-root *:after{box-sizing:border-box;font-family:var(--comp-font-sans)}
1
+ .read-dot[data-v-c1bf003a]{width:6px;height:6px;border-radius:50%;background-color:red;display:inline-block;vertical-align:middle;margin-left:4px;transform:translateY(-8px)}.delete-btn[data-v-c1bf003a]{font-size:18px;color:#ef4444;transition:opacity .2s}.delete-btn[data-v-c1bf003a]:hover{opacity:.8}.container_old[data-v-c1bf003a]{display:grid;grid-auto-flow:column;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,auto);row-gap:8px;align-content:start}.title[data-v-c1bf003a]{font-size:12px;font-weight:500;color:var(--comp-text-secondary, #9ca3af);margin-right:4px}[data-v-c1bf003a] .el-card__header{padding:8px 15px;background-color:var(--comp-bg-hover, rgba(255, 255, 255, .02))}[data-v-c1bf003a] .el-card__body{padding:10px 20px}:root{--comp-primary: #6366f1;--comp-primary-hover: #4f46e5;--comp-primary-active: #4338ca;--comp-primary-light: #e0e7ff;--comp-success: #10b981;--comp-success-hover: #059669;--comp-success-light: #d1fae5;--comp-warning: #f59e0b;--comp-warning-hover: #d97706;--comp-warning-light: #fef3c7;--comp-danger: #ef4444;--comp-danger-hover: #dc2626;--comp-danger-active: #b91c1c;--comp-danger-light: #fee2e2;--comp-info: #06b6d4;--comp-info-hover: #0891b2;--comp-info-light: #ecfeff;--comp-bg-main: #0b0f19;--comp-bg-card: #151d30;--comp-bg-hover: #1f293d;--comp-text-primary: #f3f4f6;--comp-text-secondary: #9ca3af;--comp-text-muted: #6b7280;--comp-border: #2d3748;--comp-border-hover: #4a5568;--comp-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;--comp-radius-sm: 6px;--comp-radius-md: 10px;--comp-radius-lg: 16px;--comp-radius-full: 9999px;--comp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--comp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);--comp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3);--comp-shadow-glow: 0 0 15px rgba(99, 102, 241, .3);--comp-transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--comp-transition-normal: .25s cubic-bezier(.4, 0, .2, 1)}.comp-lib-root,.comp-lib-root *,.comp-lib-root *:before,.comp-lib-root *:after{box-sizing:border-box;font-family:var(--comp-font-sans)}*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p,h2{margin:0}h1,h2{font-size:inherit;font-weight:inherit}.cursor-pointer{cursor:pointer}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.font-500{font-weight:500}.font-400{font-weight:400}.text-16px{font-size:16px;line-height:1}.text-14px{font-size:14px;line-height:1}.text-12px{font-size:12px;line-height:1}.mb-1{margin-bottom:.25rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.min-w-0{min-width:0px}.text-\[\#acb0b7\]{--tw-text-opacity: 1;color:rgba(172,176,183,var(--tw-text-opacity))}.w-120px{width:120px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xc-computent",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "A premium Vue 3 component library built with Vite and TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/computent.umd.cjs",
@@ -34,15 +34,22 @@
34
34
  "license": "MIT",
35
35
  "peerDependencies": {
36
36
  "vue": "^3.3.6",
37
- "element-plus": "^2.4.3"
37
+ "element-plus": "^2.4.3",
38
+ "@iconify/vue": "^4.0.0",
39
+ "vue-types": "^5.0.0"
38
40
  },
39
41
  "devDependencies": {
42
+ "@iconify/vue": "^4.1.1",
40
43
  "@vitejs/plugin-vue": "^5.0.5",
41
44
  "element-plus": "2.4.3",
45
+ "less": "^4.2.0",
42
46
  "typescript": "^5.4.5",
43
47
  "vite": "^5.2.11",
44
48
  "vite-plugin-dts": "^3.9.1",
49
+ "vite-plugin-windicss": "^1.8.8",
50
+ "windicss": "^3.5.6",
45
51
  "vue": "3.3.6",
46
- "vue-tsc": "^2.0.19"
52
+ "vue-tsc": "^2.0.19",
53
+ "vue-types": "^5.1.1"
47
54
  }
48
55
  }
@@ -1,45 +0,0 @@
1
- interface BadgeProps {
2
- type?: 'default' | 'success' | 'warning' | 'danger' | 'info';
3
- variant?: 'filled' | 'subtle' | 'outline';
4
- dot?: boolean;
5
- }
6
- declare function __VLS_template(): {
7
- default?(_: {}): any;
8
- };
9
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BadgeProps>, {
10
- type: string;
11
- variant: string;
12
- dot: boolean;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BadgeProps>, {
14
- type: string;
15
- variant: string;
16
- dot: boolean;
17
- }>>>, {
18
- type: "default" | "success" | "warning" | "danger" | "info";
19
- variant: "filled" | "subtle" | "outline";
20
- dot: boolean;
21
- }, {}>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
23
- export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
- type __VLS_WithDefaults<P, D> = {
34
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
- default: D[K];
36
- }> : P[K];
37
- };
38
- type __VLS_Prettify<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
41
- type __VLS_WithTemplateSlots<T, S> = T & {
42
- new (): {
43
- $slots: S;
44
- };
45
- };
@@ -1,4 +0,0 @@
1
- import { default as Badge } from './Badge.vue';
2
-
3
- export { Badge };
4
- export default Badge;
@@ -1,54 +0,0 @@
1
- interface ButtonProps {
2
- variant?: 'primary' | 'secondary' | 'outline' | 'text' | 'danger';
3
- size?: 'sm' | 'md' | 'lg';
4
- loading?: boolean;
5
- disabled?: boolean;
6
- }
7
- declare function __VLS_template(): {
8
- icon?(_: {}): any;
9
- default?(_: {}): any;
10
- };
11
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
12
- variant: string;
13
- size: string;
14
- loading: boolean;
15
- disabled: boolean;
16
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- click: (event: MouseEvent) => void;
18
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
19
- variant: string;
20
- size: string;
21
- loading: boolean;
22
- disabled: boolean;
23
- }>>> & {
24
- onClick?: ((event: MouseEvent) => any) | undefined;
25
- }, {
26
- variant: "primary" | "secondary" | "outline" | "text" | "danger";
27
- size: "sm" | "md" | "lg";
28
- loading: boolean;
29
- disabled: boolean;
30
- }, {}>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
32
- export default _default;
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToRuntimeProps<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
50
- type __VLS_WithTemplateSlots<T, S> = T & {
51
- new (): {
52
- $slots: S;
53
- };
54
- };
@@ -1,4 +0,0 @@
1
- import { default as Button } from './Button.vue';
2
-
3
- export { Button };
4
- export default Button;
@@ -1,39 +0,0 @@
1
- interface InputProps {
2
- size?: 'large' | 'default' | 'small';
3
- placeholder?: string;
4
- }
5
- declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputProps>, {
7
- size: string;
8
- placeholder: string;
9
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputProps>, {
10
- size: string;
11
- placeholder: string;
12
- }>>>, {
13
- size: "large" | "default" | "small";
14
- placeholder: string;
15
- }, {}>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
- export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
- type __VLS_WithDefaults<P, D> = {
28
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
- default: D[K];
30
- }> : P[K];
31
- };
32
- type __VLS_Prettify<T> = {
33
- [K in keyof T]: T[K];
34
- } & {};
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1,4 +0,0 @@
1
- import { default as Input } from './Input.vue';
2
-
3
- export { Input };
4
- export default Input;