xc-computent 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/computent.js CHANGED
@@ -1,11 +1,14 @@
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 = {
1
+ import { defineComponent as P, openBlock as e, createElementBlock as c, normalizeClass as _s, createCommentVNode as r, renderSlot as Z, createElementVNode as o, resolveComponent as es, createVNode as Xs, mergeProps as Ys, createSlots as Zs, renderList as ds, withCtx as y, normalizeProps as ms, guardReactiveProps as so, computed as Y, unref as $, createBlock as p, normalizeStyle as oo, ref as cs, Fragment as os, toDisplayString as n, createTextVNode as k, withModifiers as U, resolveDynamicComponent as rs, pushScopeId as eo, popScopeId as no } from "vue";
2
+ import { ElIcon as to } from "element-plus";
3
+ import { createTypes as lo } from "vue-types";
4
+ import { Icon as ao } from "@iconify/vue";
5
+ const co = ["disabled"], ro = {
3
6
  key: 0,
4
7
  class: "comp-btn__spinner"
5
- }, oo = {
8
+ }, _o = {
6
9
  key: 1,
7
10
  class: "comp-btn__icon"
8
- }, no = { class: "comp-btn__content" }, to = /* @__PURE__ */ Z({
11
+ }, po = { class: "comp-btn__content" }, uo = /* @__PURE__ */ P({
9
12
  __name: "Button",
10
13
  props: {
11
14
  variant: { default: "primary" },
@@ -14,145 +17,297 @@ const ms = ["disabled"], so = {
14
17
  disabled: { type: Boolean, default: !1 }
15
18
  },
16
19
  emits: ["click"],
17
- setup(d, { emit: p }) {
18
- const g = d, l = p, w = (c) => {
19
- !g.disabled && !g.loading && l("click", c);
20
+ setup(a, { emit: d }) {
21
+ const u = a, t = d, f = (_) => {
22
+ !u.disabled && !u.loading && t("click", _);
20
23
  };
21
- return (c, T) => (n(), a("button", {
22
- class: Os([
24
+ return (_, C) => (e(), c("button", {
25
+ class: _s([
23
26
  "comp-btn",
24
- `comp-btn--${c.variant}`,
25
- `comp-btn--${c.size}`,
27
+ `comp-btn--${_.variant}`,
28
+ `comp-btn--${_.size}`,
26
29
  {
27
- "comp-btn--loading": c.loading,
28
- "comp-btn--disabled": c.disabled || c.loading
30
+ "comp-btn--loading": _.loading,
31
+ "comp-btn--disabled": _.disabled || _.loading
29
32
  }
30
33
  ]),
31
- disabled: c.disabled || c.loading,
32
- onClick: w
34
+ disabled: _.disabled || _.loading,
35
+ onClick: f
33
36
  }, [
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)
37
+ _.loading ? (e(), c("span", ro)) : r("", !0),
38
+ _.$slots.icon && !_.loading ? (e(), c("span", _o, [
39
+ Z(_.$slots, "icon", {}, void 0, !0)
40
+ ])) : r("", !0),
41
+ o("span", po, [
42
+ Z(_.$slots, "default", {}, void 0, !0)
40
43
  ])
41
- ], 10, ms));
44
+ ], 10, co));
42
45
  }
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 = {
46
+ }), ts = (a, d) => {
47
+ const u = a.__vccOpts || a;
48
+ for (const [t, f] of d)
49
+ u[t] = f;
50
+ return u;
51
+ }, fo = /* @__PURE__ */ ts(uo, [["__scopeId", "data-v-7c40bef2"]]), yo = {
49
52
  key: 0,
50
53
  class: "comp-badge__dot"
51
- }, ao = { class: "comp-badge__content" }, _o = /* @__PURE__ */ Z({
54
+ }, io = { class: "comp-badge__content" }, ho = /* @__PURE__ */ P({
52
55
  __name: "Badge",
53
56
  props: {
54
57
  type: { default: "default" },
55
58
  variant: { default: "subtle" },
56
59
  dot: { type: Boolean, default: !1 }
57
60
  },
58
- setup(d) {
59
- return (p, g) => (n(), a("span", {
60
- class: Os([
61
+ setup(a) {
62
+ return (d, u) => (e(), c("span", {
63
+ class: _s([
61
64
  "comp-badge",
62
- `comp-badge--${p.type}`,
63
- `comp-badge--${p.variant}`,
64
- { "comp-badge--has-dot": p.dot }
65
+ `comp-badge--${d.type}`,
66
+ `comp-badge--${d.variant}`,
67
+ { "comp-badge--has-dot": d.dot }
65
68
  ])
66
69
  }, [
67
- p.dot ? (n(), a("span", eo)) : _("", !0),
68
- o("span", ao, [
69
- K(p.$slots, "default", {}, void 0, !0)
70
+ d.dot ? (e(), c("span", yo)) : r("", !0),
71
+ o("span", io, [
72
+ Z(d.$slots, "default", {}, void 0, !0)
70
73
  ])
71
74
  ], 2));
72
75
  }
73
- }), co = /* @__PURE__ */ m(_o, [["__scopeId", "data-v-158f78af"]]), po = { class: "comp-input-wrapper" }, ro = /* @__PURE__ */ Z({
76
+ }), wo = /* @__PURE__ */ ts(ho, [["__scopeId", "data-v-158f78af"]]), bo = { class: "comp-input-wrapper" }, vo = /* @__PURE__ */ P({
74
77
  __name: "Input",
75
78
  props: {
76
79
  size: { default: "default" },
77
80
  placeholder: { default: "Please enter..." }
78
81
  },
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,
82
+ setup(a) {
83
+ return (d, u) => {
84
+ const t = es("el-input");
85
+ return e(), c("div", bo, [
86
+ Xs(t, Ys(d.$attrs, {
87
+ size: d.size,
88
+ placeholder: d.placeholder,
86
89
  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)
90
+ }), Zs({ _: 2 }, [
91
+ ds(d.$slots, (f, _) => ({
92
+ name: _,
93
+ fn: y((C) => [
94
+ Z(d.$slots, _, ms(so(C || {})), void 0, !0)
92
95
  ])
93
96
  }))
94
97
  ]), 1040, ["size", "placeholder"])
95
98
  ]);
96
99
  };
97
100
  }
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 = {
101
+ }), xo = /* @__PURE__ */ ts(vo, [["__scopeId", "data-v-e8d4db36"]]), ko = {
102
+ // 转移
103
+ "xc-revert": "grommet-icons:revert",
104
+ // 进度
105
+ "xc-progress": "nrk:progress",
106
+ // 上传
107
+ "xc-upload": "bytesize:upload",
108
+ // 下载
109
+ "xc-download": "bytesize:download",
110
+ // 授权
111
+ "xc-author": "hugeicons:authorized",
112
+ // 黑名单
113
+ "xc-lock": "hugeicons:folder-locked",
114
+ // 解除
115
+ "xc-unlock": "hugeicons:folder-unlocked",
116
+ // 设置
117
+ "xc-setting": "uil:setting",
118
+ // 链接
119
+ "xc-link": "material-symbols:link",
120
+ // 取消
121
+ "xc-cancel": "mdi:cancel-circle-outline",
122
+ // 上架
123
+ "xc-shelves": "material-symbols:shelves",
124
+ // 结算
125
+ "xc-settle": "f7:money-yen-circle",
126
+ // 开票
127
+ "xc-invoice": "hugeicons:money-add-02",
128
+ // 取消开票
129
+ "xc-cancel-invoice": "hugeicons:money-not-found-03",
130
+ // 启用
131
+ "xc-start-use": "formkit:start",
132
+ // 减量
133
+ "xc-reduce": "icon-park-outline:reduce",
134
+ // 通过
135
+ "xc-pass": "codicon:pass",
136
+ //失效
137
+ "xc-expire": "pajamas:expire",
138
+ //暂停
139
+ "xc-pause": "tabler:clock-pause",
140
+ //审核
141
+ "xc-review": "mdi:account-check-outline"
142
+ }, go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
143
+ __proto__: null,
144
+ iconMap: ko
145
+ }, Symbol.toStringTag, { value: "Module" })), Co = {
146
+ // 新增
147
+ "xc-add": "bi:plus-lg",
148
+ // 编辑
149
+ "xc-edit": "bi:pencil-square",
150
+ // 删除
151
+ "xc-delete": "bi:trash",
152
+ // 复制
153
+ "xc-copy": "bi:copy",
154
+ // 详情
155
+ "xc-file": "bi:file-earmark-text",
156
+ // 搜索
157
+ "xc-search": "bi:search",
158
+ // 重置
159
+ "xc-reset": "bi:arrow-repeat",
160
+ // 更多
161
+ "xc-more": "icon-park-outline:more-two",
162
+ // 查看
163
+ "xc-view": "hugeicons:property-view",
164
+ // 导出
165
+ "xc-export": "bx:export",
166
+ // 刷新
167
+ "xc-refresh": "bi:arrow-clockwise",
168
+ // 问号
169
+ "xc-question": "mage:question-mark-circle-fill"
170
+ };
171
+ function Fo() {
172
+ const a = /* @__PURE__ */ Object.assign({ "./modules/publicWelfare.ts": go }), d = {};
173
+ for (const u of Object.values(a))
174
+ Object.assign(d, u.iconMap || {});
175
+ return Object.assign(d, Co), d;
176
+ }
177
+ const ns = lo({
178
+ func: void 0,
179
+ bool: void 0,
180
+ string: void 0,
181
+ number: void 0,
182
+ object: void 0,
183
+ integer: void 0
184
+ });
185
+ ns.extend([
186
+ {
187
+ name: "style",
188
+ getter: !0,
189
+ type: [String, Object],
190
+ default: void 0
191
+ }
192
+ ]);
193
+ const $o = "v", To = "el", Po = {
194
+ namespace: $o,
195
+ elNamespace: To
196
+ }, zo = () => {
197
+ const a = Po;
198
+ return {
199
+ variables: a,
200
+ getPrefixCls: (u) => `${a.namespace}-${u}`
201
+ };
202
+ }, Io = {
203
+ key: 0,
204
+ "aria-hidden": "true"
205
+ }, So = ["xlink:href"], Do = /* @__PURE__ */ P({
206
+ __name: "Icon",
207
+ props: {
208
+ // icon name
209
+ icon: ns.string,
210
+ // icon color
211
+ color: ns.string,
212
+ // icon size
213
+ size: ns.number.def(16)
214
+ },
215
+ setup(a) {
216
+ const { getPrefixCls: d } = zo(), u = d("icon"), t = a, f = Y(() => t.icon.startsWith("svg-icon:")), _ = Y(() => $(f) ? `#icon-${t.icon.split("svg-icon:")[1]}` : t.icon), C = Y(() => {
217
+ const { color: T, size: z } = t;
218
+ return {
219
+ fontSize: `${z}px`,
220
+ color: T
221
+ };
222
+ });
223
+ return (T, z) => (e(), p($(to), {
224
+ class: _s($(u)),
225
+ size: a.size,
226
+ color: a.color
227
+ }, {
228
+ default: y(() => [
229
+ f.value ? (e(), c("svg", Io, [
230
+ o("use", { "xlink:href": _.value }, null, 8, So)
231
+ ])) : (e(), p($(ao), {
232
+ key: 1,
233
+ icon: _.value,
234
+ style: oo(C.value)
235
+ }, null, 8, ["icon", "style"]))
236
+ ]),
237
+ _: 1
238
+ }, 8, ["class", "size", "color"]));
239
+ }
240
+ }), X = P({
241
+ name: "IconMap",
242
+ inheritAttrs: !1,
243
+ props: {
244
+ icon: {
245
+ type: String,
246
+ default: ""
247
+ },
248
+ size: {
249
+ type: Number,
250
+ default: null
251
+ }
252
+ },
253
+ setup(a, { attrs: d }) {
254
+ const u = Fo(), t = Y(() => u[a.icon] || a.icon), f = Y(
255
+ () => a.size ? a.size : u[a.icon] ? 12 : 16
256
+ );
257
+ return () => /* @__PURE__ */ React.createElement(Do, { icon: t.value, size: f.value, ...d });
258
+ }
259
+ }), i = (a) => (eo("data-v-85a8dd58"), a = a(), no(), a), Mo = { class: "flex-between-center-display" }, Lo = { class: "mr-2 text-16px font-500" }, Bo = { class: "flex items-center" }, No = {
102
260
  key: 1,
103
261
  class: "text-14px text-[#acb0b7] mr-2"
104
- }, vo = {
262
+ }, jo = {
105
263
  key: 2,
106
264
  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 = {
265
+ }, Oo = { class: "flex items-center" }, Ro = { class: "w-120px mr-4" }, Vo = { class: "text-14px font-400" }, Eo = { class: "mr-2 container_old flex-1 min-w-0" }, qo = { class: "text-12px" }, Go = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("流程ID:"), -1)), Wo = { style: { "font-size": "13px" } }, Ao = { class: "text-12px" }, Ho = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("流程名称:"), -1)), Jo = { style: { "line-height": "16px" } }, Ko = { class: "text-12px" }, Qo = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("流程类型:"), -1)), Uo = { key: 0 }, Xo = { key: 1 }, Yo = {
108
266
  key: 0,
109
267
  class: "text-12px"
110
- }, No = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("合同编号:"), -1)), Ro = {
268
+ }, Zo = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("合同编号:"), -1)), mo = {
111
269
  key: 1,
112
270
  class: "text-12px"
113
- }, Vo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("企业名称:"), -1)), Eo = { style: { "line-height": "14px" } }, Go = {
271
+ }, se = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("企业名称:"), -1)), oe = { style: { "line-height": "14px" } }, ee = {
114
272
  key: 0,
115
273
  class: "text-12px"
116
- }, Oo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), jo = { style: { "font-size": "13px" } }, qo = {
274
+ }, ne = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("签约类型:"), -1)), te = { style: { "font-size": "13px" } }, le = {
117
275
  key: 1,
118
276
  class: "text-12px"
119
- }, Ao = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), Ho = { style: { "font-size": "13px" } }, Jo = {
277
+ }, ae = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("签约类型:"), -1)), ce = { style: { "font-size": "13px" } }, re = {
120
278
  key: 2,
121
279
  class: "text-12px"
122
- }, Ko = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), Qo = { style: { "font-size": "13px" } }, Uo = {
280
+ }, de = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("签约类型:"), -1)), _e = { style: { "font-size": "13px" } }, pe = {
123
281
  key: 3,
124
282
  class: "text-12px"
125
- }, Wo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约类型:"), -1)), Xo = { style: { "font-size": "13px" } }, Yo = {
283
+ }, ue = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("签约类型:"), -1)), fe = { style: { "font-size": "13px" } }, ye = {
126
284
  key: 4,
127
285
  class: "text-12px"
128
- }, Zo = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("合同类型:"), -1)), mo = { style: { "font-size": "13px" } }, sn = {
286
+ }, ie = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("合同类型:"), -1)), he = { style: { "font-size": "13px" } }, we = {
129
287
  key: 3,
130
288
  class: "text-12px"
131
- }, on = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("标准:"), -1)), nn = { style: { "line-height": "18px" } }, tn = {
289
+ }, be = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("标准:"), -1)), ve = { style: { "line-height": "18px" } }, xe = {
132
290
  key: 4,
133
291
  class: "text-12px"
134
- }, ln = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("当前流转时间:"), -1)), en = {
292
+ }, ke = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("当前流转时间:"), -1)), ge = {
135
293
  key: 5,
136
294
  class: "text-12px"
137
- }, an = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("当前审批人:"), -1)), _n = {
295
+ }, Ce = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("当前审批人:"), -1)), Fe = {
138
296
  key: 6,
139
297
  class: "text-12px"
140
- }, cn = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("合同类型:"), -1)), dn = {
298
+ }, $e = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("合同类型:"), -1)), Te = {
141
299
  key: 7,
142
300
  class: "text-12px"
143
- }, pn = /* @__PURE__ */ r(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ t("签约方式:"), -1)), rn = {
301
+ }, Pe = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("签约方式:"), -1)), ze = {
144
302
  key: 8,
145
303
  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 = {
304
+ }, Ie = /* @__PURE__ */ i(() => /* @__PURE__ */ o("span", { class: "title" }, /* @__PURE__ */ n("那方先签约:"), -1)), Se = { class: "flex-between-center-display" }, De = { class: "mr-2 text-16px font-500" }, Me = { class: "flex items-center" }, Le = {
150
305
  key: 0,
151
306
  class: "text-14px text-[#acb0b7] mr-2"
152
- }, vn = {
307
+ }, Be = {
153
308
  key: 1,
154
309
  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({
310
+ }, Ne = { class: "flex items-center" }, je = { class: "w-120px mr-4 flex items-center" }, Oe = { class: "text-14px font-400" }, Re = { class: "mr-2 container_old flex-1 min-w-0" }, Ve = /* @__PURE__ */ P({
156
311
  __name: "ToDoCard",
157
312
  props: {
158
313
  countList: { default: () => [] },
@@ -171,281 +326,322 @@ const ms = ["disabled"], so = {
171
326
  contractTypeLabelMap: { default: () => ({}) },
172
327
  flowPathTypeList: { default: () => [] }
173
328
  },
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);
329
+ emits: [
330
+ "getList",
331
+ "doScreen",
332
+ "copy",
333
+ "delete",
334
+ "expedite",
335
+ "details"
336
+ ],
337
+ setup(a, { expose: d, emit: u }) {
338
+ const t = a, f = u, _ = cs(null), C = cs(null), T = cs(), z = (l, g) => t.isDeleteFn ? t.isDeleteFn(l, g) : !1, ps = (l, g, b) => t.showFormTitleFn ? t.showFormTitleFn(l, g, b) : !1, I = (l) => t.formatTimeFn ? t.formatTimeFn(l) : String(l || ""), m = (l) => t.statusTypeMap[l] || { type: "", status: "" }, ss = (l) => t.statusTypeNormalMap[l] || { type: "", status: "" }, Hs = (l) => t.contractTypeLabelMap[l] || "-", Js = (l) => t.contractTypeMap[l] || "-", Ks = (l) => {
339
+ const g = t.flowPathTypeList.find((b) => b.value === l);
340
+ return g ? g.label : "-";
341
+ }, ls = (l, g) => {
342
+ T.value = l, f("details", { item: l, type: g }), l.is_old_flow ? _.value && (_.value.showFlag = !0) : C.value && (C.value.showFlag = !0);
343
+ }, us = () => {
344
+ f("getList");
345
+ }, fs = () => {
346
+ f("doScreen", 3, T.value.flow_id);
347
+ }, Qs = (l) => {
348
+ f("copy", l);
349
+ }, ys = (l) => {
350
+ f("delete", l);
351
+ }, is = (l) => {
352
+ f("expedite", l);
191
353
  };
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, {
354
+ return d({
355
+ details: ls
356
+ }), (l, g) => {
357
+ const b = es("el-tag"), as = es("el-button"), hs = es("el-card");
358
+ return e(), c("div", null, [
359
+ (e(!0), c(os, null, ds(t.countList, (s, Us) => (e(), c(os, { key: Us }, [
360
+ s != null && s.is_old_flow ? (e(), p(hs, {
199
361
  key: 0,
200
362
  shadow: "hover",
201
363
  class: "mb-1",
202
- onClick: (h) => ss(s, l.type)
364
+ onClick: (w) => ls(s, t.type)
203
365
  }, {
204
- header: f(() => {
205
- var h, k, y, $, i, D, S, I, L, z, B, M, N, R, V, E, G, O, j, q;
366
+ header: y(() => {
367
+ var w, x, h, S, D, M, L, B, N, j, O, R, V, E, q, G, W, A, H, J;
206
368
  return [
207
- o("div", fo, [
369
+ o("div", Mo, [
208
370
  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, {
371
+ o("span", Lo, n((w = s.old_flow) == null ? void 0 : w.flow_node_name), 1),
372
+ (x = s.old_flow) != null && x.is_sign ? (e(), p(b, {
211
373
  key: 0,
212
374
  type: "success",
213
375
  effect: "plain"
214
376
  }, {
215
- default: f(() => [
216
- x(" 已发起签约 ")
377
+ default: y(() => [
378
+ k(" 已发起签约 ")
217
379
  ]),
218
380
  _: 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, {
381
+ })) : r("", !0),
382
+ t.typeFlowPath === "抄送我的" && (s == null ? void 0 : s.copy_status) === 1 ? (e(), p($(X), {
383
+ key: 1,
384
+ class: "read",
385
+ icon: "icon-park-solid:round",
386
+ size: 5,
387
+ style: { color: "red" }
388
+ })) : r("", !0),
389
+ t.typeFlowPath === "我发起的" && ((h = s == null ? void 0 : s.old_flow) == null ? void 0 : h.status) === 2 ? (e(), p(as, {
222
390
  key: 2,
223
391
  link: "",
224
392
  type: "primary",
225
- onClick: J((v) => ps(s), ["stop"])
393
+ onClick: U((v) => is(s), ["stop"])
226
394
  }, {
227
- default: f(() => [
228
- x(" 催办 ")
395
+ default: y(() => [
396
+ k(" 催办 ")
229
397
  ]),
230
398
  _: 2
231
- }, 1032, ["onClick"])) : _("", !0),
232
- l.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (n(), u(b, {
399
+ }, 1032, ["onClick"])) : r("", !0),
400
+ t.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (e(), p(b, {
233
401
  key: 3,
234
402
  effect: "plain",
235
403
  type: "danger"
236
404
  }, {
237
- default: f(() => [
238
- x(" 发起人已催办 ")
405
+ default: y(() => [
406
+ k(" 发起人已催办 ")
239
407
  ]),
240
408
  _: 1
241
- })) : _("", !0)
409
+ })) : r("", !0)
242
410
  ]),
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, {
411
+ o("div", Bo, [
412
+ (((S = s == null ? void 0 : s.old_flow) == null ? void 0 : S.business_type) === 1 && ((D = s == null ? void 0 : s.old_flow) == null ? void 0 : D.sign_type) !== 1 || [3, 8].includes((M = s == null ? void 0 : s.old_flow) == null ? void 0 : M.business_type) || ((L = s == null ? void 0 : s.old_flow) == null ? void 0 : L.business_type) === 2 && ((B = s == null ? void 0 : s.old_flow) == null ? void 0 : B.status) === 5 || [16, 10].includes((N = s == null ? void 0 : s.old_flow) == null ? void 0 : N.business_type) && [4, 5].includes((j = s == null ? void 0 : s.old_flow) == null ? void 0 : j.status)) && t.typeFlowPath === "我发起的" ? (e(), p(as, {
245
413
  key: 0,
246
414
  link: "",
247
415
  type: "primary",
248
416
  class: "mr-2",
249
- onClick: J((v) => Hs(s == null ? void 0 : s.old_flow), ["stop"])
417
+ onClick: U((v) => Qs(s == null ? void 0 : s.old_flow), ["stop"])
250
418
  }, {
251
- default: f(() => [
252
- x(" 一键复制 ")
419
+ default: y(() => [
420
+ k(" 一键复制 ")
253
421
  ]),
254
422
  _: 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, {
423
+ }, 1032, ["onClick"])) : r("", !0),
424
+ t.typeFlowPath === "抄送我的" ? (e(), c("div", No, n(I((V = (R = (O = s == null ? void 0 : s.old_flow) == null ? void 0 : O.copy_list) == null ? void 0 : R[0]) == null ? void 0 : V.copy_time)), 1)) : (e(), c("div", jo, n(I((E = s == null ? void 0 : s.old_flow) == null ? void 0 : E.submit_time)), 1)),
425
+ t.typeFlowPath === "待我审批" ? (e(), p(b, {
258
426
  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
427
+ type: (A = m(
428
+ (W = (G = (q = s == null ? void 0 : s.old_flow) == null ? void 0 : q.node_list) == null ? void 0 : G[0]) == null ? void 0 : W.approval_status
429
+ )) == null ? void 0 : A.type
260
430
  }, {
261
- default: f(() => {
262
- var v, C, A, H;
431
+ default: y(() => {
432
+ var v, F, K, Q;
263
433
  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)
434
+ k(n((Q = m(
435
+ (K = (F = (v = s == null ? void 0 : s.old_flow) == null ? void 0 : v.node_list) == null ? void 0 : F[0]) == null ? void 0 : K.approval_status
436
+ )) == null ? void 0 : Q.status), 1)
265
437
  ];
266
438
  }),
267
439
  _: 2
268
- }, 1032, ["type"])) : (n(), u(b, {
440
+ }, 1032, ["type"])) : (e(), p(b, {
269
441
  key: 4,
270
- type: (q = W((j = s == null ? void 0 : s.old_flow) == null ? void 0 : j.status)) == null ? void 0 : q.type
442
+ type: (J = ss((H = s == null ? void 0 : s.old_flow) == null ? void 0 : H.status)) == null ? void 0 : J.type
271
443
  }, {
272
- default: f(() => {
273
- var v, C;
444
+ default: y(() => {
445
+ var v, F;
274
446
  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)
447
+ k(n((F = ss((v = s == null ? void 0 : s.old_flow) == null ? void 0 : v.status)) == null ? void 0 : F.status), 1)
276
448
  ];
277
449
  }),
278
450
  _: 2
279
451
  }, 1032, ["type"])),
280
- es(s, l.typeFlowPath) ? (n(), a("span", {
452
+ z(s, t.typeFlowPath) ? (e(), p($(X), {
281
453
  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)
454
+ class: "ml-2 cursor-pointer",
455
+ icon: "material-symbols:delete-outline",
456
+ size: 24,
457
+ style: { color: "red" },
458
+ onClick: U((v) => ys(s == null ? void 0 : s.old_flow), ["stop"])
459
+ }, null, 8, ["onClick"])) : r("", !0)
285
460
  ])
286
461
  ])
287
462
  ];
288
463
  }),
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;
464
+ default: y(() => {
465
+ var w, x, h, S, D, M, L, B, N, j, O, R, V, E, q, G, W, A, H, J, v, F, K, Q, ws, bs, vs, xs, ks, gs, Cs, Fs, $s, Ts, Ps, zs, Is, Ss, Ds, Ms, Ls, Bs, Ns, js, Os, Rs, Vs, Es, qs, Gs, Ws, As;
291
466
  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)
467
+ o("div", Oo, [
468
+ o("div", Ro, [
469
+ o("div", Vo, n("发起人:") + n((w = s == null ? void 0 : s.old_flow) == null ? void 0 : w.create_user_name), 1)
295
470
  ]),
296
- o("div", Co, [
297
- o("div", To, [
298
- Po,
299
- o("span", $o, t((s == null ? void 0 : s.flow_id) || ""), 1)
471
+ o("div", Eo, [
472
+ o("div", qo, [
473
+ Go,
474
+ o("span", Wo, n((s == null ? void 0 : s.flow_id) || ""), 1)
300
475
  ]),
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)
476
+ o("div", Ao, [
477
+ Ho,
478
+ o("span", Jo, n((x = s == null ? void 0 : s.old_flow) == null ? void 0 : x.flow_name), 1)
304
479
  ]),
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))
480
+ o("div", Ko, [
481
+ Qo,
482
+ ((h = s == null ? void 0 : s.old_flow) == null ? void 0 : h.business_type) === 9 ? (e(), c("span", Uo, n((s == null ? void 0 : s.old_flow.sign_type) === 1 ? "新流程" : "补充店铺"), 1)) : (e(), c("span", Xo, n(s.template_type), 1))
308
483
  ]),
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)
484
+ ((S = s == null ? void 0 : s.old_flow) == null ? void 0 : S.business_type) === 1 || ((D = s == null ? void 0 : s.old_flow) == null ? void 0 : D.business_type) === 8 ? (e(), c("div", Yo, [
485
+ Zo,
486
+ o("span", null, n(s == null ? void 0 : s.old_flow.business_ctx.esign_contract_no), 1)
487
+ ])) : r("", !0),
488
+ [1, 16, 19].includes((M = s == null ? void 0 : s.old_flow) == null ? void 0 : M.business_type) ? (e(), c("div", mo, [
489
+ se,
490
+ o("span", oe, n((s == null ? void 0 : s.old_flow.business_ctx.company_name) || ((B = (L = s == null ? void 0 : s.old_flow.business_ctx.no_business_contract_info) == null ? void 0 : L.company_info) == null ? void 0 : B.fp_company_name) || ((j = (N = s == null ? void 0 : s.old_flow.business_ctx.no_business_contract_info) == null ? void 0 : N.personal_info) == null ? void 0 : j.name) || "-"), 1)
491
+ ])) : r("", !0),
492
+ ((O = s == null ? void 0 : s.old_flow) == null ? void 0 : O.business_type) !== 9 ? (e(), c(os, { key: 2 }, [
493
+ ((R = s == null ? void 0 : s.old_flow) == null ? void 0 : R.business_type) === 1 ? (e(), c("div", ee, [
494
+ ne,
495
+ o("span", te, n(((V = s == null ? void 0 : s.old_flow) == null ? void 0 : V.sign_type) === 1 ? "首次签约" : "补充店铺"), 1)
496
+ ])) : r("", !0),
497
+ ((E = s == null ? void 0 : s.old_flow) == null ? void 0 : E.business_type) === 2 ? (e(), c("div", le, [
498
+ ae,
499
+ o("span", ce, n(Hs(
500
+ s == null ? void 0 : s.old_flow.business_ctx.contract_template_id
501
+ )), 1)
502
+ ])) : r("", !0),
503
+ [3, 4, 5, 6, 7, 8].includes((q = s == null ? void 0 : s.old_flow) == null ? void 0 : q.business_type) ? (e(), c("div", re, [
504
+ de,
505
+ o("span", _e, n(Ks((G = s == null ? void 0 : s.old_flow) == null ? void 0 : G.business_type)), 1)
506
+ ])) : r("", !0),
507
+ [16].includes((W = s == null ? void 0 : s.old_flow) == null ? void 0 : W.business_type) ? (e(), c("div", pe, [
508
+ ue,
509
+ o("span", fe, n(["", "主合同", "补充协议", "解除协议"][(A = s == null ? void 0 : s.old_flow) == null ? void 0 : A.sign_type] || "-"), 1)
510
+ ])) : r("", !0),
511
+ ((H = s == null ? void 0 : s.old_flow) == null ? void 0 : H.business_type) === 16 && ((J = s == null ? void 0 : s.old_flow) == null ? void 0 : J.sign_type) === 1 ? (e(), c("div", ye, [
512
+ ie,
513
+ o("span", he, n(Js(
514
+ (K = (F = (v = s == null ? void 0 : s.old_flow) == null ? void 0 : v.business_ctx) == null ? void 0 : F.no_business_contract_info) == null ? void 0 : K.contract_type
515
+ )), 1)
516
+ ])) : r("", !0)
517
+ ], 64)) : r("", !0),
518
+ ((Q = s == null ? void 0 : s.old_flow) == null ? void 0 : Q.business_type) === 9 ? (e(), c("div", we, [
519
+ be,
520
+ o("span", ve, n(((ws = s == null ? void 0 : s.old_flow.business_ctx.reduce_store_srv_fee_form) == null ? void 0 : ws.reduce_store_srv_fee_standard_type) === 1 ? "当日在线3店及以上,且合计活动名额100单及以上份额" : "名下同品牌店铺10家及以上,月累计(近30天)销单1000单"), 1)
521
+ ])) : r("", !0),
522
+ ps(
523
+ t.typeFlowPath,
524
+ (xs = (vs = (bs = s == null ? void 0 : s.old_flow) == null ? void 0 : bs.node_list) == null ? void 0 : vs[0]) == null ? void 0 : xs.approval_status,
525
+ (ks = s == null ? void 0 : s.old_flow) == null ? void 0 : ks.status
526
+ ) ? (e(), c("div", xe, [
527
+ ke,
528
+ o("span", null, n(I((Fs = (Cs = (gs = s == null ? void 0 : s.old_flow) == null ? void 0 : gs.node_list) == null ? void 0 : Cs[0]) == null ? void 0 : Fs.flow_time)), 1)
529
+ ])) : r("", !0),
530
+ ps(
531
+ t.typeFlowPath,
532
+ (Ps = (Ts = ($s = s == null ? void 0 : s.old_flow) == null ? void 0 : $s.node_list) == null ? void 0 : Ts[0]) == null ? void 0 : Ps.approval_status,
533
+ (zs = s == null ? void 0 : s.old_flow) == null ? void 0 : zs.status
534
+ ) ? (e(), c("div", ge, [
535
+ Ce,
536
+ o("span", null, n((Ds = (Ss = (Is = s == null ? void 0 : s.old_flow) == null ? void 0 : Is.node_list) == null ? void 0 : Ss[0]) == null ? void 0 : Ds.approval_user_name), 1)
537
+ ])) : r("", !0),
538
+ ((Ms = s == null ? void 0 : s.old_flow) == null ? void 0 : Ms.business_type) === 19 ? (e(), c("div", Fe, [
539
+ $e,
540
+ o("span", null, n(((Ls = s == null ? void 0 : s.old_flow) == null ? void 0 : Ls.sign_type) === 1 ? "达人合作主合同" : "达人合作补充协议"), 1)
541
+ ])) : r("", !0),
542
+ ((Bs = s == null ? void 0 : s.old_flow) == null ? void 0 : Bs.business_type) === 16 ? (e(), c("div", Te, [
543
+ Pe,
544
+ o("span", null, n(((Os = (js = (Ns = s == null ? void 0 : s.old_flow) == null ? void 0 : Ns.business_ctx) == null ? void 0 : js.no_business_contract_info) == null ? void 0 : Os.e_sign_type) === 1 ? "线下纸质签" : "线上电子签"), 1)
545
+ ])) : r("", !0),
546
+ ((Rs = s == null ? void 0 : s.old_flow) == null ? void 0 : Rs.business_type) === 16 && ((qs = (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 : qs.e_sign_type) === 1 ? (e(), c("div", ze, [
547
+ Ie,
548
+ o("span", null, n(((As = (Ws = (Gs = s == null ? void 0 : s.old_flow) == null ? void 0 : Gs.business_ctx) == null ? void 0 : Ws.no_business_contract_info) == null ? void 0 : As.first_signer) === 1 ? "我方" : "对方"), 1)
549
+ ])) : r("", !0)
363
550
  ])
364
551
  ])
365
552
  ];
366
553
  }),
367
554
  _: 2
368
- }, 1032, ["onClick"])) : (n(), u(rs, {
555
+ }, 1032, ["onClick"])) : (e(), p(hs, {
369
556
  key: 1,
370
557
  shadow: "hover",
371
558
  class: "mb-1",
372
- onClick: (h) => ss(s, l.type)
559
+ onClick: (w) => ls(s, t.type)
373
560
  }, {
374
- header: f(() => {
375
- var h, k;
561
+ header: y(() => {
562
+ var w, x;
376
563
  return [
377
- o("div", fn, [
564
+ o("div", Se, [
378
565
  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, {
566
+ o("span", De, n(s.node_title), 1),
567
+ t.typeFlowPath === "抄送我的" && s.copy_status === 1 ? (e(), p($(X), {
568
+ key: 0,
569
+ class: "read",
570
+ icon: "icon-park-solid:round",
571
+ size: 5,
572
+ style: { color: "red" }
573
+ })) : r("", !0),
574
+ t.typeFlowPath === "我发起的" && (s == null ? void 0 : s.flow_status) === 2 ? (e(), p(as, {
382
575
  key: 1,
383
576
  link: "",
384
577
  type: "primary",
385
- onClick: J((y) => ps(s), ["stop"])
578
+ onClick: U((h) => is(s), ["stop"])
386
579
  }, {
387
- default: f(() => [
388
- x(" 催办 ")
580
+ default: y(() => [
581
+ k(" 催办 ")
389
582
  ]),
390
583
  _: 2
391
- }, 1032, ["onClick"])) : _("", !0),
392
- l.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (n(), u(b, {
584
+ }, 1032, ["onClick"])) : r("", !0),
585
+ t.typeFlowPath === "待我审批" && (s != null && s.have_remind) ? (e(), p(b, {
393
586
  key: 2,
394
587
  effect: "plain",
395
588
  type: "danger"
396
589
  }, {
397
- default: f(() => [
398
- x(" 发起人已催办 ")
590
+ default: y(() => [
591
+ k(" 发起人已催办 ")
399
592
  ]),
400
593
  _: 1
401
- })) : _("", !0)
594
+ })) : r("", !0)
402
595
  ]),
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, {
596
+ o("div", Me, [
597
+ t.typeFlowPath === "抄送我的" ? (e(), c("div", Le, n(I(s.final_pass_time)), 1)) : (e(), c("div", Be, n(I(s.flow_time)), 1)),
598
+ t.typeFlowPath === "待我审批" ? (e(), p(b, {
406
599
  key: 2,
407
- type: (h = U(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : h.type
600
+ type: (w = m(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : w.type
408
601
  }, {
409
- default: f(() => {
410
- var y;
602
+ default: y(() => {
603
+ var h;
411
604
  return [
412
- x(t((y = U(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : y.status), 1)
605
+ k(n((h = m(s == null ? void 0 : s.node_approval_status)) == null ? void 0 : h.status), 1)
413
606
  ];
414
607
  }),
415
608
  _: 2
416
- }, 1032, ["type"])) : (n(), u(b, {
609
+ }, 1032, ["type"])) : (e(), p(b, {
417
610
  key: 3,
418
- type: (k = W(s == null ? void 0 : s.flow_status)) == null ? void 0 : k.type
611
+ type: (x = ss(s == null ? void 0 : s.flow_status)) == null ? void 0 : x.type
419
612
  }, {
420
- default: f(() => {
421
- var y;
613
+ default: y(() => {
614
+ var h;
422
615
  return [
423
- x(t((y = W(s == null ? void 0 : s.flow_status)) == null ? void 0 : y.status), 1)
616
+ k(n((h = ss(s == null ? void 0 : s.flow_status)) == null ? void 0 : h.status), 1)
424
617
  ];
425
618
  }),
426
619
  _: 2
427
620
  }, 1032, ["type"])),
428
- es(s, l.typeFlowPath) ? (n(), a("span", {
621
+ z(s, t.typeFlowPath) ? (e(), p($(X), {
429
622
  key: 4,
430
- class: "delete-btn ml-2 cursor-pointer",
431
- onClick: J((y) => ds(s), ["stop"])
432
- }, "🗑️", 8, kn)) : _("", !0)
623
+ class: "ml-2 cursor-pointer",
624
+ icon: "material-symbols:delete-outline",
625
+ size: 24,
626
+ style: { color: "red" },
627
+ onClick: U((h) => ys(s), ["stop"])
628
+ }, null, 8, ["onClick"])) : r("", !0)
433
629
  ])
434
630
  ])
435
631
  ];
436
632
  }),
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)
633
+ default: y(() => [
634
+ o("div", Ne, [
635
+ o("div", je, [
636
+ o("div", Oe, n("发起人:") + n(s == null ? void 0 : s.create_user_name), 1)
441
637
  ]),
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,
638
+ o("div", Re, [
639
+ Z(l.$slots, "form-content", { item: s }, () => [
640
+ l.formTemplateComponent ? (e(!0), c(os, { key: 0 }, ds(s.form_value, (w, x) => (e(), p(rs(l.formTemplateComponent), {
641
+ key: x,
642
+ item_: w,
447
643
  item: s
448
- }, null, 8, ["item_", "item"]))), 128)) : _("", !0)
644
+ }, null, 8, ["item_", "item"]))), 128)) : r("", !0)
449
645
  ], !0)
450
646
  ])
451
647
  ])
@@ -453,38 +649,39 @@ const ms = ["disabled"], so = {
453
649
  _: 2
454
650
  }, 1032, ["onClick"]))
455
651
  ], 64))), 128)),
456
- e.treatDerailsComponent ? (n(), u(ts(e.treatDerailsComponent), {
652
+ l.treatDerailsComponent ? (e(), p(rs(l.treatDerailsComponent), {
457
653
  key: 0,
458
654
  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), {
655
+ ref: _,
656
+ rowItem: T.value,
657
+ typeFlowPath: t.typeFlowPath,
658
+ copyStatus: t.copyStatus,
659
+ onGetList: us,
660
+ onReada: fs
661
+ }, null, 40, ["rowItem", "typeFlowPath", "copyStatus"])) : r("", !0),
662
+ l.newTreatDerailsComponent ? (e(), p(rs(l.newTreatDerailsComponent), {
467
663
  key: 1,
468
664
  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)
665
+ ref: C,
666
+ rowItem: T.value,
667
+ typeFlowPath: t.typeFlowPath,
668
+ copyStatus: t.copyStatus,
669
+ onGetList: us,
670
+ onReada: fs
671
+ }, null, 40, ["rowItem", "typeFlowPath", "copyStatus"])) : r("", !0)
476
672
  ]);
477
673
  };
478
674
  }
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
675
+ }), Ee = /* @__PURE__ */ ts(Ve, [["__scopeId", "data-v-85a8dd58"]]), qe = (a) => {
676
+ a.component("CButton", fo), a.component("CBadge", wo), a.component("CInput", xo), a.component("CToDoCard", Ee), a.component("CIcon", X);
677
+ }, Je = {
678
+ install: qe
483
679
  };
484
680
  export {
485
- co as Badge,
486
- lo as Button,
487
- uo as Input,
488
- Pn as ToDoCard,
489
- Sn as default
681
+ wo as Badge,
682
+ fo as Button,
683
+ X as Icon,
684
+ xo as Input,
685
+ Ee as ToDoCard,
686
+ Je as default
490
687
  };