xyvcard-itsm-flow 0.0.6 → 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 (48) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/common--K4gGsNT.mjs +85 -0
  3. package/dist/{edit-CWxy8_xc.mjs → edit-B621RtNS.mjs} +1 -1
  4. package/dist/edit-CoRzQ2SK.mjs +4 -0
  5. package/dist/edit-Czk64Yon.mjs +4 -0
  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-FfNjxLv_.mjs +1238 -0
  10. package/dist/index-B5vmtcUk.mjs +528 -0
  11. package/dist/index-BCP5cBN6.mjs +486 -0
  12. package/dist/index-BJl7xHYx.mjs +339 -0
  13. package/dist/{index-C_jhIPZS.mjs → index-BlBkHqXR.mjs} +77 -90
  14. package/dist/index-CRHpl0qA.mjs +501 -0
  15. package/dist/index-CVbpEq7V.mjs +442 -0
  16. package/dist/index-CdzhLCkX.mjs +356 -0
  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 +936 -917
  21. package/dist/style.css +1 -1
  22. package/dts/api/dict.d.ts +15 -0
  23. package/dts/api/index.d.ts +6 -1
  24. package/dts/api/itsm-flow-acceptance/index.d.ts +14 -0
  25. package/dts/api/itsm-flow-acceptance/types.d.ts +83 -0
  26. package/dts/api/itsm-flow-entrust/index.d.ts +6 -2
  27. package/dts/api/itsm-flow-entrust/types.d.ts +26 -5
  28. package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
  29. package/dts/api/itsm-flow-reckoning/index.d.ts +14 -0
  30. package/dts/api/itsm-flow-reckoning/types.d.ts +81 -0
  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/TaskItsmFlowEntrustEdit/index.vue.d.ts +28 -0
  34. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
  35. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
  36. package/dts/constant.d.ts +8 -0
  37. package/dts/index.d.ts +5 -0
  38. package/dts/lang/itsm-flow/zh-cn.d.ts +38 -30
  39. package/dts/utils/common.d.ts +2 -2
  40. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +28 -0
  41. package/dts/views/itsm-flow-acceptance/index.vue.d.ts +2 -0
  42. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
  43. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +28 -0
  44. package/dts/views/itsm-flow-reckoning/index.vue.d.ts +2 -0
  45. package/package.json +4 -4
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +0 -619
  47. package/dist/index-DKtAcP6b.mjs +0 -1582
  48. package/dist/index-DdDM4ocv.mjs +0 -327
@@ -1,24 +1,23 @@
1
- import { defineComponent as W, ref as F, reactive as R, resolveComponent as i, resolveDirective as X, openBlock as p, createElementBlock as I, createElementVNode as g, createVNode as o, withCtx as l, withKeys as N, unref as a, createTextVNode as f, toDisplayString as u, withDirectives as k, createBlock as V, isRef as S, createCommentVNode as j } from "vue";
1
+ import { defineComponent as W, ref as h, reactive as R, resolveComponent as i, resolveDirective as X, openBlock as c, createElementBlock as $, createElementVNode as w, createVNode as o, withCtx as l, withKeys as _, unref as a, createTextVNode as b, toDisplayString as u, withDirectives as F, createBlock as I, isRef as S, createCommentVNode as j } from "vue";
2
2
  import { useTableHooks as Y } from "jmash-core";
3
3
  import { useI18n as Z } from "vue-i18n";
4
- import { i as x, D as c } from "./index-DKtAcP6b.mjs";
5
- import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs";
6
- const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ne = ["onClick"], de = /* @__PURE__ */ W({
4
+ import { C as x, a as ee, D as p } from "./index-DY7ZV5kq.mjs";
5
+ import { _ as te } from "./edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs";
6
+ const le = { class: "app-container" }, oe = { class: "search-container" }, ne = ["onClick"], ae = ["onClick"], pe = /* @__PURE__ */ W({
7
7
  __name: "index",
8
- setup(ae) {
9
- const { t: v } = Z(), r = F({
10
- hasApplyStatus: !0,
11
- applyStatus: "DRAFT"
8
+ setup(re) {
9
+ const { t: g } = Z(), r = h({
10
+ applyStatus: x.applyStatus.draft
12
11
  }), {
13
12
  tableHooks: s,
14
13
  multipleTableRef: O,
15
- queryFormRef: T,
16
- listLoading: z,
14
+ queryFormRef: z,
15
+ listLoading: T,
17
16
  tableData: U,
18
17
  total: C
19
- } = Y(v, x, r);
20
- c.orgIdBizDict.useValues(), c.parentIdBizDict.useValues();
21
- let w = F([
18
+ } = Y(g, ee, r);
19
+ p.orgIdBizDict.useValues(), p.parentIdBizDict.useValues();
20
+ let f = h([
22
21
  {
23
22
  label: "itsmFlowEntrust.contractId",
24
23
  prop: "contractName",
@@ -34,10 +33,10 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
34
33
  {
35
34
  label: "itsmFlowEntrust.entrustName",
36
35
  prop: "entrustName",
37
- width: "150",
38
36
  isColumn: !0,
39
37
  slotName: "entrustName",
40
- columnType: "slot"
38
+ columnType: "slot",
39
+ width: "150"
41
40
  },
42
41
  {
43
42
  label: "itsmFlowEntrust.entrustItsmId",
@@ -78,30 +77,29 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
78
77
  {
79
78
  label: "itsmFlowEntrust.workContent",
80
79
  prop: "workContent",
81
- width: "150",
82
80
  isColumn: !0
83
81
  },
84
82
  {
85
83
  label: "common.operate",
86
- width: "200",
84
+ width: "150",
87
85
  slotName: "operation",
88
86
  columnType: "slot",
89
87
  fixed: "right",
90
88
  isColumn: !0
91
89
  }
92
90
  ]);
93
- const m = F({
94
- title: v("common.edit"),
91
+ const m = h({
92
+ title: g("common.edit"),
95
93
  visible: !1
96
94
  });
97
- let E = R({});
98
- function P() {
99
- E = R({}), m.value.title = v("common.add"), m.value.visible = !0;
100
- }
101
- function q(n) {
102
- E.entrustId = n.entrustId, m.value.title = v("common.edit"), m.value.visible = !0;
95
+ let y = R({});
96
+ function q() {
97
+ y = R({}), m.value.title = g("common.add"), m.value.visible = !0;
103
98
  }
104
99
  function B(n) {
100
+ y = { ...n }, m.value.title = g("common.edit"), m.value.visible = !0;
101
+ }
102
+ function P(n) {
105
103
  s.selectionRows.value = n;
106
104
  }
107
105
  function K(n) {
@@ -111,12 +109,12 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
111
109
  n && s.getList();
112
110
  }
113
111
  return s.getList(), (n, t) => {
114
- const h = i("el-input"), b = i("el-form-item"), d = i("el-col"), L = i("jmash-select"), y = i("el-button"), D = i("el-row"), A = i("el-form"), H = i("jmash-column-select"), G = i("jmash-table"), J = i("jmash-pagination"), M = i("el-card"), _ = X("hasPerm");
115
- return p(), I("div", te, [
116
- g("div", le, [
112
+ const N = i("el-input"), v = i("el-form-item"), d = i("el-col"), L = i("jmash-select"), V = i("el-button"), D = i("el-row"), A = i("el-form"), H = i("jmash-column-select"), G = i("jmash-table"), J = i("jmash-pagination"), M = i("el-card"), k = X("hasPerm");
113
+ return c(), $("div", le, [
114
+ w("div", oe, [
117
115
  o(A, {
118
116
  ref_key: "queryFormRef",
119
- ref: T,
117
+ ref: z,
120
118
  model: r.value,
121
119
  inline: !0
122
120
  }, {
@@ -125,16 +123,16 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
125
123
  default: l(() => [
126
124
  o(d, { span: 6 }, {
127
125
  default: l(() => [
128
- o(b, {
126
+ o(v, {
129
127
  label: n.$t("itsmFlowEntrust.contractId"),
130
128
  prop: "likeContractName"
131
129
  }, {
132
130
  default: l(() => [
133
- o(h, {
131
+ o(N, {
134
132
  modelValue: r.value.likeContractName,
135
133
  "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeContractName = e),
136
134
  placeholder: n.$t("itsmFlowEntrust.contractNameRequired"),
137
- onKeyup: t[1] || (t[1] = N((e) => a(s).handleQuery(), ["enter"])),
135
+ onKeyup: t[1] || (t[1] = _((e) => a(s).handleQuery(), ["enter"])),
138
136
  class: "!w-[203px]"
139
137
  }, null, 8, ["modelValue", "placeholder"])
140
138
  ]),
@@ -145,16 +143,16 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
145
143
  }),
146
144
  o(d, { span: 6 }, {
147
145
  default: l(() => [
148
- o(b, {
146
+ o(v, {
149
147
  label: n.$t("itsmFlowEntrust.contractNo"),
150
148
  prop: "likeContractNo"
151
149
  }, {
152
150
  default: l(() => [
153
- o(h, {
151
+ o(N, {
154
152
  modelValue: r.value.likeContractNo,
155
153
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeContractNo = e),
156
154
  placeholder: n.$t("itsmFlowEntrust.contractNoRequired"),
157
- onKeyup: t[3] || (t[3] = N((e) => a(s).handleQuery(), ["enter"])),
155
+ onKeyup: t[3] || (t[3] = _((e) => a(s).handleQuery(), ["enter"])),
158
156
  class: "!w-[203px]"
159
157
  }, null, 8, ["modelValue", "placeholder"])
160
158
  ]),
@@ -165,7 +163,7 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
165
163
  }),
166
164
  o(d, { span: 6 }, {
167
165
  default: l(() => [
168
- o(b, {
166
+ o(v, {
169
167
  label: n.$t("itsmFlowEntrust.serviceContent"),
170
168
  prop: "serviceContent"
171
169
  }, {
@@ -174,9 +172,10 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
174
172
  modelValue: r.value.serviceContent,
175
173
  "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.serviceContent = e),
176
174
  placeholder: n.$t("itsmFlowEntrust.serviceContentRequired"),
177
- data: a(c).serviceContentEnum.values,
175
+ data: a(p).serviceContentEnum.values,
178
176
  clearable: "",
179
- onKeyup: t[5] || (t[5] = N((e) => a(s).handleQuery(), ["enter"])),
177
+ filterable: "",
178
+ onKeyup: t[5] || (t[5] = _((e) => a(s).handleQuery(), ["enter"])),
180
179
  class: "!w-[203px]"
181
180
  }, null, 8, ["modelValue", "placeholder", "data"])
182
181
  ]),
@@ -187,16 +186,16 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
187
186
  }),
188
187
  o(d, { span: 6 }, {
189
188
  default: l(() => [
190
- o(b, {
189
+ o(v, {
191
190
  label: n.$t("itsmFlowEntrust.orderNo"),
192
191
  prop: "orderNo"
193
192
  }, {
194
193
  default: l(() => [
195
- o(h, {
194
+ o(N, {
196
195
  modelValue: r.value.orderNo,
197
196
  "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.orderNo = e),
198
197
  placeholder: n.$t("itsmFlowEntrust.orderNoRequireds"),
199
- onKeyup: t[7] || (t[7] = N((e) => a(s).handleQuery(), ["enter"])),
198
+ onKeyup: t[7] || (t[7] = _((e) => a(s).handleQuery(), ["enter"])),
200
199
  class: "!w-[203px]"
201
200
  }, null, 8, ["modelValue", "placeholder"])
202
201
  ]),
@@ -207,22 +206,22 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
207
206
  }),
208
207
  o(d, { span: 24 }, {
209
208
  default: l(() => [
210
- o(b, { class: "search-btn" }, {
209
+ o(v, { class: "search-btn" }, {
211
210
  default: l(() => [
212
- o(y, {
211
+ o(V, {
213
212
  type: "primary",
214
213
  onClick: t[8] || (t[8] = (e) => a(s).handleQuery())
215
214
  }, {
216
215
  default: l(() => [
217
- f(u(n.$t("common.search")), 1)
216
+ b(u(n.$t("common.search")), 1)
218
217
  ]),
219
218
  _: 1
220
219
  }),
221
- o(y, {
220
+ o(V, {
222
221
  onClick: t[9] || (t[9] = (e) => a(s).resetQuery())
223
222
  }, {
224
223
  default: l(() => [
225
- f(u(n.$t("common.reset")), 1)
224
+ b(u(n.$t("common.reset")), 1)
226
225
  ]),
227
226
  _: 1
228
227
  })
@@ -248,16 +247,16 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
248
247
  default: l(() => [
249
248
  o(d, { span: 17 }, {
250
249
  default: l(() => [
251
- k((p(), V(y, {
250
+ F((c(), I(V, {
252
251
  type: "primary",
253
- onClick: P
252
+ onClick: q
254
253
  }, {
255
254
  default: l(() => [
256
- f(u(n.$t("common.add")), 1)
255
+ b(u(n.$t("common.add")), 1)
257
256
  ]),
258
257
  _: 1
259
258
  })), [
260
- [_, ["itsmflow:itsm_flow_entrust:add"]]
259
+ [k, ["itsmflow:itsm_flow_entrust:add"]]
261
260
  ])
262
261
  ]),
263
262
  _: 1
@@ -267,21 +266,9 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
267
266
  class: "container-float"
268
267
  }, {
269
268
  default: l(() => [
270
- k((p(), V(y, {
271
- plain: "",
272
- type: "primary",
273
- onClick: t[10] || (t[10] = (e) => a(s).handleExportPdf(a(v)("itsmFlowEntrust.name")))
274
- }, {
275
- default: l(() => [
276
- f(u(n.$t("common.print")), 1)
277
- ]),
278
- _: 1
279
- })), [
280
- [_, ["itsmflow:itsm_flow_entrust:print"]]
281
- ]),
282
269
  o(H, {
283
- modelValue: a(w),
284
- "onUpdate:modelValue": t[11] || (t[11] = (e) => S(w) ? w.value = e : w = e),
270
+ modelValue: a(f),
271
+ "onUpdate:modelValue": t[10] || (t[10] = (e) => S(f) ? f.value = e : f = e),
285
272
  "label-name": "itsm-flow-entrust"
286
273
  }, null, 8, ["modelValue"])
287
274
  ]),
@@ -292,15 +279,15 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
292
279
  })
293
280
  ]),
294
281
  footer: l(() => [
295
- a(C) > 0 ? (p(), V(J, {
282
+ a(C) > 0 ? (c(), I(J, {
296
283
  key: 0,
297
284
  total: a(C),
298
- "onUpdate:total": t[12] || (t[12] = (e) => S(C) ? C.value = e : null),
285
+ "onUpdate:total": t[11] || (t[11] = (e) => S(C) ? C.value = e : null),
299
286
  "current-page": r.value.curPage,
300
- "onUpdate:currentPage": t[13] || (t[13] = (e) => r.value.curPage = e),
287
+ "onUpdate:currentPage": t[12] || (t[12] = (e) => r.value.curPage = e),
301
288
  "page-size": r.value.pageSize,
302
- "onUpdate:pageSize": t[14] || (t[14] = (e) => r.value.pageSize = e),
303
- onPagination: t[15] || (t[15] = (e) => a(s).getList())
289
+ "onUpdate:pageSize": t[13] || (t[13] = (e) => r.value.pageSize = e),
290
+ onPagination: t[14] || (t[14] = (e) => a(s).getList())
304
291
  }, null, 8, ["total", "current-page", "page-size"])) : j("", !0)
305
292
  ]),
306
293
  default: l(() => [
@@ -308,42 +295,42 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
308
295
  ref_key: "multipleTableRef",
309
296
  ref: O,
310
297
  "row-key": "entrustId",
311
- "list-loading": a(z),
298
+ "list-loading": a(T),
312
299
  data: a(U),
313
- "table-label": a(w),
314
- onSelectionChange: B,
300
+ "table-label": a(f),
301
+ onSelectionChange: P,
315
302
  onSortChange: K
316
303
  }, {
317
304
  entrustName: l((e) => [
318
- g("span", null, u(a(c).projectNameDict.getDictValue(e.data.row.entrustName)), 1)
305
+ w("span", null, u(a(p).projectNameDict.getDictValue(e.data.row.entrustName)), 1)
319
306
  ]),
320
307
  belongOrgId: l((e) => [
321
- g("span", null, u(e.data.row.belongOrgId.split(",").map(($) => a(c).parentIdBizDict.getValue($)).join(",")), 1)
308
+ w("span", null, u(e.data.row.belongOrgId.split(",").map((E) => a(p).parentIdBizDict.getValue(E)).join(",")), 1)
322
309
  ]),
323
310
  serviceContent: l((e) => [
324
- g("span", null, u(a(c).serviceContentEnum.getEnumValue(
311
+ w("span", null, u(a(p).serviceContentEnum.getEnumValue(
325
312
  e.data.row.serviceContent
326
313
  )), 1)
327
314
  ]),
328
315
  serviceOrg: l((e) => [
329
- g("span", null, u(a(c).orgIdBizDict.getValue(e.data.row.serviceOrg)), 1)
316
+ w("span", null, u(a(p).orgIdBizDict.getValue(e.data.row.serviceOrg)), 1)
330
317
  ]),
331
318
  operation: l((e) => [
332
- k((p(), I("span", {
319
+ F((c(), $("span", {
333
320
  class: "el-button-color",
334
- onClick: ($) => q(e.data.row)
321
+ onClick: (E) => B(e.data.row)
335
322
  }, [
336
- f(u(n.$t("common.edit")), 1)
337
- ], 8, oe)), [
338
- [_, ["itsmflow:itsm_flow_entrust:update"]]
323
+ b(u(n.$t("common.edit")), 1)
324
+ ], 8, ne)), [
325
+ [k, ["itsmflow:itsm_flow_entrust:update"]]
339
326
  ]),
340
- k((p(), I("span", {
327
+ F((c(), $("span", {
341
328
  class: "el-button-color dropdown-left",
342
- onClick: ($) => a(s).deleteRecord(e.data.row)
329
+ onClick: (E) => a(s).deleteRecord(e.data.row)
343
330
  }, [
344
- f(u(n.$t("common.delete")), 1)
345
- ], 8, ne)), [
346
- [_, ["itsmflow:itsm_flow_entrust:delete"]]
331
+ b(u(n.$t("common.delete")), 1)
332
+ ], 8, ae)), [
333
+ [k, ["itsmflow:itsm_flow_entrust:delete"]]
347
334
  ])
348
335
  ]),
349
336
  _: 1
@@ -351,12 +338,12 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
351
338
  ]),
352
339
  _: 1
353
340
  }),
354
- m.value.visible ? (p(), V(ee, {
341
+ m.value.visible ? (c(), I(te, {
355
342
  key: 0,
356
343
  modelValue: m.value.visible,
357
- "onUpdate:modelValue": t[16] || (t[16] = (e) => m.value.visible = e),
344
+ "onUpdate:modelValue": t[15] || (t[15] = (e) => m.value.visible = e),
358
345
  title: m.value.title,
359
- "entity-key": a(E),
346
+ "entity-key": a(y),
360
347
  onRefresh: Q,
361
348
  width: "900px"
362
349
  }, null, 8, ["modelValue", "title", "entity-key"])) : j("", !0)
@@ -365,5 +352,5 @@ const te = { class: "app-container" }, le = { class: "search-container" }, oe =
365
352
  }
366
353
  });
367
354
  export {
368
- de as default
355
+ pe as default
369
356
  };