xyvcard-itsm-flow 0.0.3 → 0.0.5

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CUxhR_sw.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as W, openBlock as w, createElementBlock as T, createElementVNode as U, mergeModels as P, ref as y, useModel as me, reactive as J, resolveComponent as i, createBlock as k, withCtx as s, createVNode as l, createTextVNode as O, toDisplayString as C, unref as r, Fragment as G, renderList as Q, createCommentVNode as ce } from "vue";
2
2
  import { ElMessage as R } from "element-plus";
3
3
  import { useI18n as pe } from "vue-i18n";
4
- import { I as fe, C as E, a as ve, D as _, i as M, b as be, c as ge } from "./index-wmDI5TRw.mjs";
4
+ import { I as fe, C as E, a as ve, D as _, i as M, b as be, c as ge } from "./index-DKtAcP6b.mjs";
5
5
  import "xyvcard-itsm";
6
6
  /*! Element Plus Icons Vue v2.3.1 */
7
7
  var Ie = /* @__PURE__ */ W({
@@ -1,8 +1,8 @@
1
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";
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-wmDI5TRw.mjs";
5
- import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-CUxhR_sw.mjs";
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
6
  const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ne = ["onClick"], de = /* @__PURE__ */ W({
7
7
  __name: "index",
8
8
  setup(ae) {
@@ -1,13 +1,13 @@
1
- import { defineComponent as M, mergeModels as j, ref as _, useModel as q, resolveComponent as i, openBlock as v, createBlock as A, withCtx as t, createVNode as e, createElementVNode as P, createTextVNode as u, toDisplayString as r, unref as b, createElementBlock as E, withDirectives as $, vShow as h, createCommentVNode as R } from "vue";
1
+ import { defineComponent as z, mergeModels as M, ref as v, useModel as q, resolveComponent as d, openBlock as b, createBlock as A, withCtx as t, createVNode as e, createElementVNode as P, createTextVNode as u, toDisplayString as r, unref as w, createElementBlock as E, withDirectives as C, vShow as $, createCommentVNode as R } from "vue";
2
2
  import "element-plus";
3
3
  import { useRoute as S } from "vue-router";
4
- import { D as c, i as K, b as T } from "./index-wmDI5TRw.mjs";
4
+ import { D as c, i as K, b as T } from "./index-DKtAcP6b.mjs";
5
5
  const L = { key: 0 }, W = { key: 1 }, G = {
6
6
  key: 2,
7
7
  class: "distance-left"
8
- }, Y = /* @__PURE__ */ M({
8
+ }, Y = /* @__PURE__ */ z({
9
9
  __name: "index",
10
- props: /* @__PURE__ */ j({
10
+ props: /* @__PURE__ */ M({
11
11
  task: {
12
12
  type: Object,
13
13
  default: () => {
@@ -18,25 +18,25 @@ const L = { key: 0 }, W = { key: 1 }, G = {
18
18
  modelModifiers: {}
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
- setup(I, { expose: V }) {
21
+ setup(g, { expose: h }) {
22
22
  c.parentIdBizDict.useValues(), c.orgIdBizDict.useValues();
23
- const g = S(), k = I, w = _({
23
+ const V = S(), I = g, f = v({
24
24
  curPage: 1,
25
25
  pageSize: 10,
26
- applyId: g.query.applyId
27
- }), n = _({}), p = q(I, "modelValue"), N = _(), D = _({});
28
- function F(l) {
26
+ applyId: V.query.applyId
27
+ }), n = v({}), p = q(g, "modelValue"), k = v(), D = v({});
28
+ function N(l) {
29
29
  l.mobileEncrypt = !l.mobileEncrypt;
30
30
  }
31
- k.task.businessKey && B(), V({
31
+ I.task.businessKey && B(), h({
32
32
  changeModel: () => O()
33
33
  });
34
34
  function B() {
35
- w.value.applyId = k.task.businessKey, K.findById({ entrustId: w.value.applyId }).then(({ data: l }) => {
36
- n.value = Object.assign(n.value, l), T.findList({ applyId: g.query.applyId }).then(({ data: m }) => {
37
- n.value.entrustUser = [], m.results.forEach((a) => {
38
- a.applyId == w.value.applyId && n.value.entrustUser.push({
39
- ...a
35
+ f.value.applyId = I.task.businessKey, K.findById({ entrustId: f.value.applyId }).then(({ data: l }) => {
36
+ n.value = Object.assign(n.value, l), T.findList({ actionId: f.value.applyId }).then(({ data: m }) => {
37
+ n.value.entrustUser = [], m.results.forEach((o) => {
38
+ o.actionId == f.value.applyId && n.value.entrustUser.push({
39
+ ...o
40
40
  });
41
41
  });
42
42
  });
@@ -46,25 +46,25 @@ const L = { key: 0 }, W = { key: 1 }, G = {
46
46
  return p.value && (p.value.selectActions = [
47
47
  { key: "true", value: "同意" },
48
48
  { key: "false", value: "不同意" }
49
- ], p.value.varName = "approved", p.value.module = "apply"), new Promise((l, m) => {
50
- var a;
51
- (a = N.value) == null || a.validate((s) => {
49
+ ], p.value.varName = "approved", p.value.module = ""), new Promise((l, m) => {
50
+ var o;
51
+ (o = k.value) == null || o.validate((s) => {
52
52
  s ? (p.value && (p.value.comment = ""), l(!0)) : m(!1);
53
53
  });
54
54
  });
55
55
  }
56
56
  return (l, m) => {
57
- const a = i("el-col"), s = i("el-row"), d = i("el-form-item"), f = i("el-table-column"), C = i("svg-icon"), U = i("el-table"), z = i("el-form");
58
- return v(), A(z, {
57
+ const o = d("el-col"), s = d("el-row"), i = d("el-form-item"), _ = d("el-table-column"), F = d("svg-icon"), U = d("el-table"), j = d("el-form");
58
+ return b(), A(j, {
59
59
  ref_key: "taskFormRef",
60
- ref: N,
60
+ ref: k,
61
61
  model: D.value,
62
62
  "label-width": "130px"
63
63
  }, {
64
64
  default: t(() => [
65
65
  e(s, null, {
66
66
  default: t(() => [
67
- e(a, { span: 12 }, {
67
+ e(o, { span: 12 }, {
68
68
  default: t(() => m[0] || (m[0] = [
69
69
  P("div", { class: "title" }, "委托服务订单", -1)
70
70
  ])),
@@ -75,9 +75,9 @@ const L = { key: 0 }, W = { key: 1 }, G = {
75
75
  }),
76
76
  e(s, null, {
77
77
  default: t(() => [
78
- e(a, { span: 24 }, {
78
+ e(o, { span: 24 }, {
79
79
  default: t(() => [
80
- e(d, {
80
+ e(i, {
81
81
  label: l.$t("itsmFlowEntrust.contractId"),
82
82
  prop: "contractName"
83
83
  }, {
@@ -94,9 +94,9 @@ const L = { key: 0 }, W = { key: 1 }, G = {
94
94
  }),
95
95
  e(s, null, {
96
96
  default: t(() => [
97
- e(a, { span: 24 }, {
97
+ e(o, { span: 24 }, {
98
98
  default: t(() => [
99
- e(d, {
99
+ e(i, {
100
100
  label: l.$t("itsmFlowEntrust.contractNo"),
101
101
  prop: "contractNo"
102
102
  }, {
@@ -113,14 +113,14 @@ const L = { key: 0 }, W = { key: 1 }, G = {
113
113
  }),
114
114
  e(s, null, {
115
115
  default: t(() => [
116
- e(a, { span: 12 }, {
116
+ e(o, { span: 12 }, {
117
117
  default: t(() => [
118
- e(d, {
118
+ e(i, {
119
119
  label: l.$t("itsmFlowEntrust.entrustName"),
120
120
  prop: "entrustName"
121
121
  }, {
122
122
  default: t(() => [
123
- u(r(b(c).projectNameDict.getDictValue(n.value.entrustName)), 1)
123
+ u(r(w(c).projectNameDict.getDictValue(n.value.entrustName)), 1)
124
124
  ]),
125
125
  _: 1
126
126
  }, 8, ["label"])
@@ -132,9 +132,9 @@ const L = { key: 0 }, W = { key: 1 }, G = {
132
132
  }),
133
133
  e(s, null, {
134
134
  default: t(() => [
135
- e(a, { span: 12 }, {
135
+ e(o, { span: 12 }, {
136
136
  default: t(() => [
137
- e(d, {
137
+ e(i, {
138
138
  label: l.$t("itsmFlowEntrust.entrustItsmId"),
139
139
  prop: "entrustItsmId"
140
140
  }, {
@@ -151,16 +151,16 @@ const L = { key: 0 }, W = { key: 1 }, G = {
151
151
  }),
152
152
  e(s, null, {
153
153
  default: t(() => [
154
- e(a, { span: 12 }, {
154
+ e(o, { span: 12 }, {
155
155
  default: t(() => [
156
- e(d, {
156
+ e(i, {
157
157
  label: l.$t("itsmFlowEntrust.belongOrg"),
158
158
  prop: "belongOrg"
159
159
  }, {
160
160
  default: t(() => {
161
- var o;
161
+ var a;
162
162
  return [
163
- u(r((((o = n.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((y) => b(c).parentIdBizDict.getValue(y)).join(",")), 1)
163
+ u(r((((a = n.value.belongOrgId) == null ? void 0 : a.split(",")) || []).map((y) => w(c).parentIdBizDict.getValue(y)).join(",")), 1)
164
164
  ];
165
165
  }),
166
166
  _: 1
@@ -173,14 +173,14 @@ const L = { key: 0 }, W = { key: 1 }, G = {
173
173
  }),
174
174
  e(s, null, {
175
175
  default: t(() => [
176
- e(a, { span: 12 }, {
176
+ e(o, { span: 12 }, {
177
177
  default: t(() => [
178
- e(d, {
178
+ e(i, {
179
179
  label: l.$t("itsmFlowEntrust.serviceContent"),
180
180
  prop: "serviceContent"
181
181
  }, {
182
182
  default: t(() => [
183
- u(r(b(c).serviceContentEnum.getEnumValue(n.value.serviceContent)), 1)
183
+ u(r(w(c).serviceContentEnum.getEnumValue(n.value.serviceContent)), 1)
184
184
  ]),
185
185
  _: 1
186
186
  }, 8, ["label"])
@@ -192,14 +192,14 @@ const L = { key: 0 }, W = { key: 1 }, G = {
192
192
  }),
193
193
  e(s, null, {
194
194
  default: t(() => [
195
- e(a, { span: 12 }, {
195
+ e(o, { span: 12 }, {
196
196
  default: t(() => [
197
- e(d, {
197
+ e(i, {
198
198
  label: l.$t("itsmFlowEntrust.serviceOrg"),
199
199
  prop: "serviceOrg"
200
200
  }, {
201
201
  default: t(() => [
202
- u(r(b(c).orgIdBizDict.getValue(n.value.serviceOrg)), 1)
202
+ u(r(w(c).orgIdBizDict.getValue(n.value.serviceOrg)), 1)
203
203
  ]),
204
204
  _: 1
205
205
  }, 8, ["label"])
@@ -211,9 +211,9 @@ const L = { key: 0 }, W = { key: 1 }, G = {
211
211
  }),
212
212
  e(s, null, {
213
213
  default: t(() => [
214
- e(a, { span: 12 }, {
214
+ e(o, { span: 12 }, {
215
215
  default: t(() => [
216
- e(d, {
216
+ e(i, {
217
217
  label: l.$t("itsmFlowEntrust.orderNo"),
218
218
  prop: "orderNo"
219
219
  }, {
@@ -230,9 +230,9 @@ const L = { key: 0 }, W = { key: 1 }, G = {
230
230
  }),
231
231
  e(s, null, {
232
232
  default: t(() => [
233
- e(a, { span: 12 }, {
233
+ e(o, { span: 12 }, {
234
234
  default: t(() => [
235
- e(d, {
235
+ e(i, {
236
236
  label: l.$t("itsmFlowEntrust.workContent"),
237
237
  prop: "workContent"
238
238
  }, {
@@ -249,7 +249,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
249
249
  }),
250
250
  e(s, null, {
251
251
  default: t(() => [
252
- e(a, { span: 14 }, {
252
+ e(o, { span: 14 }, {
253
253
  default: t(() => [
254
254
  e(U, {
255
255
  stripe: "",
@@ -257,53 +257,53 @@ const L = { key: 0 }, W = { key: 1 }, G = {
257
257
  style: { width: "100%" }
258
258
  }, {
259
259
  default: t(() => [
260
- e(f, {
260
+ e(_, {
261
261
  prop: "userId",
262
262
  label: l.$t("itsmFlowEntrustUser.userId")
263
263
  }, {
264
- default: t((o) => [
265
- u(r(o.row.userName), 1)
264
+ default: t((a) => [
265
+ u(r(a.row.userName), 1)
266
266
  ]),
267
267
  _: 1
268
268
  }, 8, ["label"]),
269
- e(f, {
269
+ e(_, {
270
270
  prop: "idNo",
271
271
  label: l.$t("itsmFlowEntrustUser.idNo")
272
272
  }, {
273
- default: t((o) => [
274
- o.row.mobileEncrypt ? (v(), E("span", W, r(o.row.idNo), 1)) : (v(), E("span", L, r(o.row.idNoIns), 1)),
275
- o.row.idNoIns ? (v(), E("span", G, [
276
- $(e(C, {
273
+ default: t((a) => [
274
+ a.row.mobileEncrypt ? (b(), E("span", W, r(a.row.idNo), 1)) : (b(), E("span", L, r(a.row.idNoIns), 1)),
275
+ a.row.idNoIns ? (b(), E("span", G, [
276
+ C(e(F, {
277
277
  "icon-class": "close-eye",
278
- onClick: (y) => F(o.row)
278
+ onClick: (y) => N(a.row)
279
279
  }, null, 8, ["onClick"]), [
280
- [h, !o.row.mobileEncrypt]
280
+ [$, !a.row.mobileEncrypt]
281
281
  ]),
282
- $(e(C, {
282
+ C(e(F, {
283
283
  "icon-class": "eye-open",
284
- onClick: (y) => F(o.row)
284
+ onClick: (y) => N(a.row)
285
285
  }, null, 8, ["onClick"]), [
286
- [h, o.row.mobileEncrypt]
286
+ [$, a.row.mobileEncrypt]
287
287
  ])
288
288
  ])) : R("", !0)
289
289
  ]),
290
290
  _: 1
291
291
  }, 8, ["label"]),
292
- e(f, {
292
+ e(_, {
293
293
  prop: "cost",
294
294
  label: l.$t("itsmFlowEntrustUser.cost")
295
295
  }, {
296
- default: t((o) => [
297
- u(r(o.row.cost), 1)
296
+ default: t((a) => [
297
+ u(r(a.row.cost), 1)
298
298
  ]),
299
299
  _: 1
300
300
  }, 8, ["label"]),
301
- e(f, {
301
+ e(_, {
302
302
  prop: "duration",
303
303
  label: l.$t("itsmFlowEntrustUser.duration")
304
304
  }, {
305
- default: t((o) => [
306
- u(r(o.row.duration), 1)
305
+ default: t((a) => [
306
+ u(r(a.row.duration && typeof a.row.duration == "string" ? a.row.duration.split(",").join("~") : a.row.duration), 1)
307
307
  ]),
308
308
  _: 1
309
309
  }, 8, ["label"])