xyvcard-itsm-flow 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/common--K4gGsNT.mjs +85 -0
  3. package/dist/{edit-BZbho2xr.mjs → edit-B621RtNS.mjs} +1 -1
  4. package/dist/{edit-DA920KWc.mjs → edit-CoRzQ2SK.mjs} +1 -1
  5. package/dist/{edit-DxK8SrUd.mjs → edit-Czk64Yon.mjs} +1 -1
  6. package/dist/edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs +670 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +523 -0
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs +567 -0
  9. package/dist/{el-message-D28AReoi.mjs → el-message-FfNjxLv_.mjs} +26 -26
  10. package/dist/index-B5vmtcUk.mjs +528 -0
  11. package/dist/index-BCP5cBN6.mjs +486 -0
  12. package/dist/{index-Dimzx0Lh.mjs → index-BJl7xHYx.mjs} +119 -124
  13. package/dist/{index-BwhWFAEK.mjs → index-BlBkHqXR.mjs} +75 -89
  14. package/dist/index-CRHpl0qA.mjs +501 -0
  15. package/dist/index-CVbpEq7V.mjs +442 -0
  16. package/dist/{index-CXarOLFt.mjs → index-CdzhLCkX.mjs} +119 -124
  17. package/dist/index-DX1PURJy.mjs +624 -0
  18. package/dist/index-DY7ZV5kq.mjs +567 -0
  19. package/dist/index-Dld6YbIV.mjs +484 -0
  20. package/dist/index.mjs +764 -771
  21. package/dist/style.css +1 -1
  22. package/dts/api/dict.d.ts +9 -0
  23. package/dts/api/index.d.ts +4 -1
  24. package/dts/api/itsm-flow-acceptance/index.d.ts +4 -10
  25. package/dts/api/itsm-flow-acceptance/types.d.ts +17 -38
  26. package/dts/api/itsm-flow-entrust/index.d.ts +3 -0
  27. package/dts/api/itsm-flow-entrust/types.d.ts +2 -2
  28. package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
  29. package/dts/api/itsm-flow-reckoning/index.d.ts +4 -10
  30. package/dts/api/itsm-flow-reckoning/types.d.ts +19 -31
  31. package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
  32. package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
  33. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
  34. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
  35. package/dts/index.d.ts +4 -0
  36. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -17
  37. package/dts/utils/common.d.ts +2 -2
  38. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
  39. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +4 -4
  40. package/package.json +1 -1
  41. package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
  42. package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +0 -589
  43. package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +0 -688
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +0 -656
  45. package/dist/index-BZGkoyv9.mjs +0 -68
  46. package/dist/index-CMOEnYG7.mjs +0 -21
  47. package/dist/index-Clg5YSzX.mjs +0 -598
  48. package/dist/index-CwnMo6nD.mjs +0 -1651
  49. package/dist/index-DDwNGNtf.mjs +0 -558
  50. package/dist/index-qOQQkVw8.mjs +0 -345
@@ -1,21 +1,23 @@
1
- import { defineComponent as M, ref as C, reactive as D, resolveComponent as c, resolveDirective as W, openBlock as u, createElementBlock as V, createElementVNode as A, createVNode as a, withCtx as l, withKeys as F, unref as n, createTextVNode as d, toDisplayString as m, withDirectives as y, createBlock as N, isRef as S, createCommentVNode as P } from "vue";
1
+ import { defineComponent as M, ref as _, reactive as R, resolveComponent as s, resolveDirective as W, openBlock as p, createElementBlock as V, createElementVNode as N, createVNode as o, withCtx as l, withKeys as A, unref as n, createTextVNode as f, toDisplayString as u, withDirectives as F, createBlock as $, isRef as S, createCommentVNode as T } from "vue";
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
- import { i as Z, _ as x } from "./edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs";
5
- import { D as $ } from "./index-BZGkoyv9.mjs";
6
- const ee = { class: "app-container" }, te = { class: "search-container" }, le = ["onClick"], oe = ["onClick"], me = /* @__PURE__ */ M({
4
+ import { D as g, C as Z, i as x } from "./index-DY7ZV5kq.mjs";
5
+ import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs";
6
+ const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ae = ["onClick"], me = /* @__PURE__ */ M({
7
7
  __name: "index",
8
- setup(ae) {
9
- $.orgIdBizDict.useValues();
10
- const { t: f } = Y(), i = C({}), {
11
- tableHooks: r,
8
+ setup(ne) {
9
+ g.orgIdBizDict.useValues();
10
+ const { t: w } = Y(), r = _({
11
+ applyStatus: Z.applyStatus.draft
12
+ }), {
13
+ tableHooks: i,
12
14
  multipleTableRef: U,
13
- queryFormRef: z,
14
- listLoading: T,
15
- tableData: j,
15
+ queryFormRef: j,
16
+ listLoading: z,
17
+ tableData: P,
16
18
  total: v
17
- } = X(f, Z, i);
18
- let w = C([
19
+ } = X(w, x, r);
20
+ let d = _([
19
21
  {
20
22
  label: "itsmFlowAcceptance.contractName",
21
23
  prop: "contractName",
@@ -31,7 +33,10 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
31
33
  {
32
34
  label: "itsmFlowAcceptance.entrustName",
33
35
  prop: "entrustName",
34
- isColumn: !0
36
+ width: "150",
37
+ isColumn: !0,
38
+ slotName: "entrustName",
39
+ columnType: "slot"
35
40
  },
36
41
  {
37
42
  label: "itsmFlowAcceptance.serviceOrg",
@@ -82,64 +87,63 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
82
87
  {
83
88
  label: "itsmFlowAcceptance.evaluate",
84
89
  prop: "evaluate",
85
- width: "150",
86
90
  isColumn: !0
87
91
  },
88
92
  {
89
93
  label: "common.operate",
90
- width: "200",
94
+ width: "150",
91
95
  slotName: "operation",
92
96
  columnType: "slot",
93
97
  fixed: "right",
94
98
  isColumn: !0
95
99
  }
96
100
  ]);
97
- const s = C({
98
- title: f("common.edit"),
101
+ const c = _({
102
+ title: w("common.edit"),
99
103
  visible: !1
100
104
  });
101
- C(!1);
102
- let k = D({});
105
+ _(!1);
106
+ let C = R({});
103
107
  function q() {
104
- k = D({}), s.value.title = f("common.add"), s.value.visible = !0;
108
+ C = R({}), c.value.title = w("common.add"), c.value.visible = !0;
105
109
  }
106
- function I(o) {
107
- k.acceptanceId = o.acceptanceId, s.value.title = f("common.edit"), s.value.visible = !0;
110
+ function I(a) {
111
+ C.acceptanceId = a.acceptanceId, c.value.title = w("common.edit"), c.value.visible = !0;
108
112
  }
109
- function B(o) {
110
- r.selectionRows.value = o;
113
+ function B(a) {
114
+ i.selectionRows.value = a;
111
115
  }
112
- function K(o) {
113
- r.handleSort(o.prop, o.order);
116
+ function K(a) {
117
+ i.handleSort(a.prop, a.order);
114
118
  }
115
- function L(o) {
116
- o && r.getList();
119
+ function L(a) {
120
+ a && i.getList();
117
121
  }
118
- return r.getList(), (o, e) => {
119
- const h = c("el-input"), b = c("el-form-item"), p = c("el-col"), _ = c("el-button"), R = c("el-row"), O = c("el-form"), Q = c("jmash-column-select"), E = c("jmash-table"), H = c("jmash-pagination"), G = c("el-card"), g = W("hasPerm");
120
- return u(), V("div", ee, [
121
- A("div", te, [
122
- a(O, {
122
+ return i.getList(), (a, t) => {
123
+ const y = s("el-input"), b = s("el-form-item"), m = s("el-col"), h = s("el-button"), D = s("el-row"), O = s("el-form"), Q = s("jmash-column-select"), E = s("jmash-table"), H = s("jmash-pagination"), G = s("el-card"), k = W("hasPerm");
124
+ return p(), V("div", te, [
125
+ N("div", le, [
126
+ o(O, {
123
127
  ref_key: "queryFormRef",
124
- ref: z,
125
- model: i.value,
128
+ ref: j,
129
+ model: r.value,
126
130
  inline: !0
127
131
  }, {
128
132
  default: l(() => [
129
- a(R, null, {
133
+ o(D, null, {
130
134
  default: l(() => [
131
- a(p, { span: 6 }, {
135
+ o(m, { span: 6 }, {
132
136
  default: l(() => [
133
- a(b, {
134
- label: o.$t("itsmFlowAcceptance.contractName"),
137
+ o(b, {
138
+ label: a.$t("itsmFlowAcceptance.contractName"),
135
139
  prop: "likeContractName"
136
140
  }, {
137
141
  default: l(() => [
138
- a(h, {
139
- modelValue: i.value.likeContractName,
140
- "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value.likeContractName = t),
141
- placeholder: o.$t("itsmFlowAcceptance.contractNameRequired"),
142
- onKeyup: e[1] || (e[1] = F((t) => n(r).handleQuery(), ["enter"])),
142
+ o(y, {
143
+ modelValue: r.value.likeContractName,
144
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeContractName = e),
145
+ placeholder: a.$t("itsmFlowAcceptance.contractNameRequired"),
146
+ onKeyup: t[1] || (t[1] = A((e) => n(i).handleQuery(), ["enter"])),
143
147
  class: "!w-[203px]"
144
148
  }, null, 8, ["modelValue", "placeholder"])
145
149
  ]),
@@ -148,18 +152,18 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
148
152
  ]),
149
153
  _: 1
150
154
  }),
151
- a(p, { span: 6 }, {
155
+ o(m, { span: 6 }, {
152
156
  default: l(() => [
153
- a(b, {
154
- label: o.$t("itsmFlowAcceptance.contractNo"),
157
+ o(b, {
158
+ label: a.$t("itsmFlowAcceptance.contractNo"),
155
159
  prop: "likeContractNo"
156
160
  }, {
157
161
  default: l(() => [
158
- a(h, {
159
- modelValue: i.value.likeContractNo,
160
- "onUpdate:modelValue": e[2] || (e[2] = (t) => i.value.likeContractNo = t),
161
- placeholder: o.$t("itsmFlowAcceptance.contractNoRequired"),
162
- onKeyup: e[3] || (e[3] = F((t) => n(r).handleQuery(), ["enter"])),
162
+ o(y, {
163
+ modelValue: r.value.likeContractNo,
164
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeContractNo = e),
165
+ placeholder: a.$t("itsmFlowAcceptance.contractNoRequired"),
166
+ onKeyup: t[3] || (t[3] = A((e) => n(i).handleQuery(), ["enter"])),
163
167
  class: "!w-[203px]"
164
168
  }, null, 8, ["modelValue", "placeholder"])
165
169
  ]),
@@ -168,18 +172,18 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
168
172
  ]),
169
173
  _: 1
170
174
  }),
171
- a(p, { span: 6 }, {
175
+ o(m, { span: 6 }, {
172
176
  default: l(() => [
173
- a(b, {
174
- label: o.$t("itsmFlowAcceptance.acceptanceNo"),
177
+ o(b, {
178
+ label: a.$t("itsmFlowAcceptance.acceptanceNo"),
175
179
  prop: "acceptanceNo"
176
180
  }, {
177
181
  default: l(() => [
178
- a(h, {
179
- modelValue: i.value.acceptanceNo,
180
- "onUpdate:modelValue": e[4] || (e[4] = (t) => i.value.acceptanceNo = t),
181
- placeholder: o.$t("itsmFlowAcceptance.acceptanceNoRequired"),
182
- onKeyup: e[5] || (e[5] = F((t) => n(r).handleQuery(), ["enter"])),
182
+ o(y, {
183
+ modelValue: r.value.acceptanceNo,
184
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.acceptanceNo = e),
185
+ placeholder: a.$t("itsmFlowAcceptance.acceptanceNoRequired"),
186
+ onKeyup: t[5] || (t[5] = A((e) => n(i).handleQuery(), ["enter"])),
183
187
  class: "!w-[203px]"
184
188
  }, null, 8, ["modelValue", "placeholder"])
185
189
  ]),
@@ -188,24 +192,24 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
188
192
  ]),
189
193
  _: 1
190
194
  }),
191
- a(p, { span: 6 }, {
195
+ o(m, { span: 6 }, {
192
196
  default: l(() => [
193
- a(b, { class: "search-btn" }, {
197
+ o(b, { class: "search-btn" }, {
194
198
  default: l(() => [
195
- a(_, {
199
+ o(h, {
196
200
  type: "primary",
197
- onClick: e[6] || (e[6] = (t) => n(r).handleQuery())
201
+ onClick: t[6] || (t[6] = (e) => n(i).handleQuery())
198
202
  }, {
199
203
  default: l(() => [
200
- d(m(o.$t("common.search")), 1)
204
+ f(u(a.$t("common.search")), 1)
201
205
  ]),
202
206
  _: 1
203
207
  }),
204
- a(_, {
205
- onClick: e[7] || (e[7] = (t) => n(r).resetQuery())
208
+ o(h, {
209
+ onClick: t[7] || (t[7] = (e) => n(i).resetQuery())
206
210
  }, {
207
211
  default: l(() => [
208
- d(m(o.$t("common.reset")), 1)
212
+ f(u(a.$t("common.reset")), 1)
209
213
  ]),
210
214
  _: 1
211
215
  })
@@ -222,49 +226,37 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
222
226
  _: 1
223
227
  }, 8, ["model"])
224
228
  ]),
225
- a(G, {
229
+ o(G, {
226
230
  shadow: "never",
227
231
  class: "table-container"
228
232
  }, {
229
233
  header: l(() => [
230
- a(R, null, {
234
+ o(D, null, {
231
235
  default: l(() => [
232
- a(p, { span: 17 }, {
236
+ o(m, { span: 17 }, {
233
237
  default: l(() => [
234
- y((u(), N(_, {
238
+ F((p(), $(h, {
235
239
  type: "primary",
236
240
  onClick: q
237
241
  }, {
238
242
  default: l(() => [
239
- d(m(o.$t("common.add")), 1)
243
+ f(u(a.$t("common.add")), 1)
240
244
  ]),
241
245
  _: 1
242
246
  })), [
243
- [g, ["itsmflow:itsm_flow_acceptance:add"]]
247
+ [k, ["itsmflow:itsm_flow_acceptance:add"]]
244
248
  ])
245
249
  ]),
246
250
  _: 1
247
251
  }),
248
- a(p, {
252
+ o(m, {
249
253
  span: 7,
250
254
  class: "container-float"
251
255
  }, {
252
256
  default: l(() => [
253
- y((u(), N(_, {
254
- plain: "",
255
- type: "primary",
256
- onClick: e[8] || (e[8] = (t) => n(r).handleExportPdf(n(f)("itsmFlowAcceptance.name")))
257
- }, {
258
- default: l(() => [
259
- d(m(o.$t("common.print")), 1)
260
- ]),
261
- _: 1
262
- })), [
263
- [g, ["itsmflow:itsm_flow_acceptance:print"]]
264
- ]),
265
- a(Q, {
266
- modelValue: n(w),
267
- "onUpdate:modelValue": e[9] || (e[9] = (t) => S(w) ? w.value = t : w = t),
257
+ o(Q, {
258
+ modelValue: n(d),
259
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => S(d) ? d.value = e : d = e),
268
260
  "label-name": "itsm-flow-acceptance"
269
261
  }, null, 8, ["modelValue"])
270
262
  ]),
@@ -275,50 +267,53 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
275
267
  })
276
268
  ]),
277
269
  footer: l(() => [
278
- n(v) > 0 ? (u(), N(H, {
270
+ n(v) > 0 ? (p(), $(H, {
279
271
  key: 0,
280
272
  total: n(v),
281
- "onUpdate:total": e[10] || (e[10] = (t) => S(v) ? v.value = t : null),
282
- "current-page": i.value.curPage,
283
- "onUpdate:currentPage": e[11] || (e[11] = (t) => i.value.curPage = t),
284
- "page-size": i.value.pageSize,
285
- "onUpdate:pageSize": e[12] || (e[12] = (t) => i.value.pageSize = t),
286
- onPagination: e[13] || (e[13] = (t) => n(r).getList())
287
- }, null, 8, ["total", "current-page", "page-size"])) : P("", !0)
273
+ "onUpdate:total": t[9] || (t[9] = (e) => S(v) ? v.value = e : null),
274
+ "current-page": r.value.curPage,
275
+ "onUpdate:currentPage": t[10] || (t[10] = (e) => r.value.curPage = e),
276
+ "page-size": r.value.pageSize,
277
+ "onUpdate:pageSize": t[11] || (t[11] = (e) => r.value.pageSize = e),
278
+ onPagination: t[12] || (t[12] = (e) => n(i).getList())
279
+ }, null, 8, ["total", "current-page", "page-size"])) : T("", !0)
288
280
  ]),
289
281
  default: l(() => [
290
- a(E, {
282
+ o(E, {
291
283
  ref_key: "multipleTableRef",
292
284
  ref: U,
293
285
  "row-key": "acceptanceId",
294
- "list-loading": n(T),
295
- data: n(j),
296
- "table-label": n(w),
286
+ "list-loading": n(z),
287
+ data: n(P),
288
+ "table-label": n(d),
297
289
  onSelectionChange: B,
298
290
  onSortChange: K
299
291
  }, {
300
- serviceOrg: l((t) => [
301
- A("span", null, m(n($).orgIdBizDict.getValue(t.data.row.serviceOrg)), 1)
292
+ entrustName: l((e) => [
293
+ N("span", null, u(n(g).projectNameDict.getDictValue(e.data.row.entrustName)), 1)
294
+ ]),
295
+ serviceOrg: l((e) => [
296
+ N("span", null, u(n(g).orgIdBizDict.getValue(e.data.row.serviceOrg)), 1)
302
297
  ]),
303
- result: l((t) => [
304
- A("span", null, m(n($).isValuesDict.getValue(t.data.row.result)), 1)
298
+ result: l((e) => [
299
+ N("span", null, u(n(g).isValuesDict.getValue(e.data.row.result)), 1)
305
300
  ]),
306
- operation: l((t) => [
307
- y((u(), V("span", {
301
+ operation: l((e) => [
302
+ F((p(), V("span", {
308
303
  class: "el-button-color",
309
- onClick: (J) => I(t.data.row)
304
+ onClick: (J) => I(e.data.row)
310
305
  }, [
311
- d(m(o.$t("common.edit")), 1)
312
- ], 8, le)), [
313
- [g, ["itsmflow:itsm_flow_acceptance:update"]]
306
+ f(u(a.$t("common.edit")), 1)
307
+ ], 8, oe)), [
308
+ [k, ["itsmflow:itsm_flow_acceptance:update"]]
314
309
  ]),
315
- y((u(), V("span", {
310
+ F((p(), V("span", {
316
311
  class: "el-button-color dropdown-left",
317
- onClick: (J) => n(r).deleteRecord(t.data.row)
312
+ onClick: (J) => n(i).deleteRecord(e.data.row)
318
313
  }, [
319
- d(m(o.$t("common.delete")), 1)
320
- ], 8, oe)), [
321
- [g, ["itsmflow:itsm_flow_acceptance:delete"]]
314
+ f(u(a.$t("common.delete")), 1)
315
+ ], 8, ae)), [
316
+ [k, ["itsmflow:itsm_flow_acceptance:delete"]]
322
317
  ])
323
318
  ]),
324
319
  _: 1
@@ -326,15 +321,15 @@ const ee = { class: "app-container" }, te = { class: "search-container" }, le =
326
321
  ]),
327
322
  _: 1
328
323
  }),
329
- s.value.visible ? (u(), N(x, {
324
+ c.value.visible ? (p(), $(ee, {
330
325
  key: 0,
331
- modelValue: s.value.visible,
332
- "onUpdate:modelValue": e[14] || (e[14] = (t) => s.value.visible = t),
333
- title: s.value.title,
334
- "entity-key": n(k),
326
+ modelValue: c.value.visible,
327
+ "onUpdate:modelValue": t[13] || (t[13] = (e) => c.value.visible = e),
328
+ title: c.value.title,
329
+ "entity-key": n(C),
335
330
  onRefresh: L,
336
331
  width: "900px"
337
- }, null, 8, ["modelValue", "title", "entity-key"])) : P("", !0)
332
+ }, null, 8, ["modelValue", "title", "entity-key"])) : T("", !0)
338
333
  ]);
339
334
  };
340
335
  }