xyvcard-itsm-flow 0.0.9 → 0.0.10

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 (23) hide show
  1. package/dist/{edit-BatVtQjM.mjs → edit-BnJnxvY6.mjs} +1 -1
  2. package/dist/{edit-CJKi69Ya.mjs → edit-D8J1Znw_.mjs} +1 -1
  3. package/dist/{edit-RNcc8UYn.mjs → edit-har-8Y54.mjs} +1 -1
  4. package/dist/{edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs → edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs} +3 -4
  5. package/dist/{edit.vue_vue_type_script_setup_true_lang-DlfhAjvW.mjs → edit.vue_vue_type_script_setup_true_lang-QsTI3qOD.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs → edit.vue_vue_type_script_setup_true_lang-TXBAzoPS.mjs} +138 -135
  7. package/dist/{el-message-9Nit-6wb.mjs → el-message-CIdVBT5R.mjs} +1 -1
  8. package/dist/{index-CpSpS_gR.mjs → index-BAHlhmvh.mjs} +60 -61
  9. package/dist/{index-tnwVLRVb.mjs → index-BjBTIknS.mjs} +115 -114
  10. package/dist/{index-w_RSrZed.mjs → index-C6XFHtva.mjs} +72 -76
  11. package/dist/{index-BkB6hpAN.mjs → index-CF0oM0UA.mjs} +98 -99
  12. package/dist/{index-2vkMhoSW.mjs → index-Cp3csR1g.mjs} +2 -2
  13. package/dist/{index-Ckl3mXfI.mjs → index-DBIF93AC.mjs} +175 -157
  14. package/dist/{index-BqZwYXr_.mjs → index-DKIrRXT5.mjs} +2 -2
  15. package/dist/{index-DmttwKtY.mjs → index-DnFWLmFk.mjs} +58 -59
  16. package/dist/{index-CitJdS-N.mjs → index-DugZK_BS.mjs} +56 -60
  17. package/dist/{index-ay0TMqjH.mjs → index-bMREgnhp.mjs} +2 -2
  18. package/dist/index.mjs +60 -59
  19. package/dts/api/itsm-flow-acceptance/index.d.ts +1 -3
  20. package/dts/api/itsm-flow-acceptance/types.d.ts +1 -6
  21. package/dts/constant.d.ts +3 -0
  22. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
  23. package/package.json +1 -1
@@ -1,14 +1,13 @@
1
- import { defineComponent as Y, mergeModels as Z, ref as m, useModel as ee, resolveComponent as d, openBlock as b, createElementBlock as A, Fragment as M, createVNode as e, withCtx as l, createElementVNode as o, createTextVNode as s, toDisplayString as r, unref as F, createBlock as S, renderList as le, createCommentVNode as B } from "vue";
1
+ import { defineComponent as X, mergeModels as Y, ref as m, useModel as Z, resolveComponent as d, openBlock as b, createElementBlock as g, Fragment as M, createVNode as e, withCtx as l, createElementVNode as o, createTextVNode as s, toDisplayString as r, unref as F, createBlock as S, renderList as ee, createCommentVNode as B } from "vue";
2
2
  import "element-plus";
3
- import { useRoute as te } from "vue-router";
4
- import { D as k, i as I, C as ae, u as oe, a as ne } from "./index-CitJdS-N.mjs";
5
- import { handlePreview as se } from "jmash-core";
6
- import { useI18n as ue } from "vue-i18n";
7
- import { F as ce } from "./FileSaver.min-BeKvLuyk.mjs";
8
- import { E as L } from "./el-message-9Nit-6wb.mjs";
9
- const Fe = /* @__PURE__ */ Y({
3
+ import { D as k, i as A, C as le, u as ae, a as te } from "./index-DugZK_BS.mjs";
4
+ import { handlePreview as oe } from "jmash-core";
5
+ import { useI18n as ne } from "vue-i18n";
6
+ import { F as se } from "./FileSaver.min-BeKvLuyk.mjs";
7
+ import { E as L } from "./el-message-CIdVBT5R.mjs";
8
+ const ve = /* @__PURE__ */ X({
10
9
  __name: "index",
11
- props: /* @__PURE__ */ Z({
10
+ props: /* @__PURE__ */ Y({
12
11
  task: {
13
12
  type: Object,
14
13
  default: () => {
@@ -20,91 +19,91 @@ const Fe = /* @__PURE__ */ Y({
20
19
  }),
21
20
  emits: ["update:modelValue"],
22
21
  setup($, { expose: O }) {
23
- const { t: y } = ue(), U = () => {
24
- I.exportFilePdf({ acceptanceId: w.value.acceptanceId }).then((t) => {
25
- const u = new Blob([t.data], {
22
+ const { t: w } = ne(), U = () => {
23
+ A.exportFilePdf({ acceptanceId: V.value.acceptanceId }).then((a) => {
24
+ const u = new Blob([a.data], {
26
25
  type: "application/octet-stream"
27
26
  });
28
- ce.saveAs(u, y("itsmFlowAcceptance.name") + ".pdf");
27
+ se.saveAs(u, w("itsmFlowAcceptance.name") + ".pdf");
29
28
  });
30
29
  };
31
30
  k.orgIdBizDict.useValues();
32
- const j = te(), v = $, w = m({
33
- acceptanceId: j.query.applyId
34
- }), c = m({}), f = ee($, "modelValue"), V = m(), q = m({}), N = m(!1), h = m(), p = m([]), D = m();
35
- function K() {
36
- N.value = !0, h.value.clearFileList();
31
+ const v = $, V = m({
32
+ acceptanceId: v.task.businessKey
33
+ }), c = m({}), f = Z($, "modelValue"), I = m(), j = m({}), y = m(!1), h = m(), p = m([]), D = m();
34
+ function q() {
35
+ y.value = !0, h.value.clearFileList();
37
36
  }
38
- function P(t) {
39
- p == null || p.value.splice(t, 1);
37
+ function K(a) {
38
+ p == null || p.value.splice(a, 1);
40
39
  }
41
- function R(t) {
40
+ function P(a) {
42
41
  const u = {
43
- fileName: t.name,
44
- fileId: t.response.fileId
42
+ fileName: a.name,
43
+ fileId: a.response.fileId
45
44
  };
46
45
  p == null || p.value.push(u), p.value = [...new Set(p.value)], D.value = {
47
46
  requestId: Math.random() * 10 + "",
48
47
  taskId: v.task.id,
49
- name: t.name,
50
- type: t.response.contentType,
51
- url: t.response.fileSrc
48
+ name: a.name,
49
+ type: a.response.contentType,
50
+ url: a.response.fileSrc
52
51
  }, z();
53
52
  }
54
53
  function z() {
55
- ne.uploadFile(D.value).then(() => {
56
- L.success(y("common.uploadSuccess"));
54
+ te.uploadFile(D.value).then(() => {
55
+ L.success(w("common.uploadSuccess"));
57
56
  }).catch(() => {
58
- L.error(y("common.uploadError"));
57
+ L.error(w("common.uploadError"));
59
58
  });
60
59
  }
61
- function T() {
62
- I.findFilesList({ actionId: v.task.businessKey }).then(({ data: t }) => {
63
- c.value.files = t.results;
60
+ function R() {
61
+ A.findFilesList({ actionId: v.task.businessKey }).then(({ data: a }) => {
62
+ c.value.files = a.results;
64
63
  });
65
64
  }
66
- v.task.businessKey && W(), O({
67
- changeModel: () => x()
65
+ v.task.businessKey && T(), O({
66
+ changeModel: () => W()
68
67
  });
69
- function W() {
70
- w.value.acceptanceId = v.task.businessKey, I.findById({ acceptanceId: w.value.acceptanceId }).then(({ data: t }) => {
71
- c.value = Object.assign(c.value, t);
72
- }), T();
68
+ function T() {
69
+ A.findById({ acceptanceId: V.value.acceptanceId }).then(({ data: a }) => {
70
+ c.value = Object.assign(c.value, a);
71
+ }), R();
73
72
  }
74
- function x() {
73
+ function W() {
75
74
  return f.value && (f.value.selectActions = [
76
75
  { key: "true", value: "同意" },
77
76
  { key: "false", value: "不同意" }
78
- ], f.value.varName = "approved", f.value.module = "", f.value.module = ae.MODULE_ITSMFLOW), new Promise((t, u) => {
79
- var a;
80
- (a = V.value) == null || a.validate((n) => {
81
- n ? (f.value && (f.value.comment = ""), t(!0)) : u(!1);
77
+ ], f.value.varName = "approved", f.value.module = "", f.value.module = le.MODULE_ITSMFLOW), new Promise((a, u) => {
78
+ var t;
79
+ (t = I.value) == null || t.validate((n) => {
80
+ n ? (f.value && (f.value.comment = ""), a(!0)) : u(!1);
82
81
  });
83
82
  });
84
83
  }
85
- return (t, u) => {
86
- const a = d("el-col"), n = d("el-form-item"), i = d("el-row"), E = d("el-table-column"), C = d("el-button"), G = d("el-table"), H = d("CircleClose"), J = d("el-icon"), Q = d("el-form"), X = d("jmash-multi-upload");
87
- return b(), A(M, null, [
88
- e(a, { span: 24 }, {
84
+ return (a, u) => {
85
+ const t = d("el-col"), n = d("el-form-item"), i = d("el-row"), E = d("el-table-column"), N = d("el-button"), x = d("el-table"), G = d("CircleClose"), H = d("el-icon"), J = d("el-form"), Q = d("jmash-multi-upload");
86
+ return b(), g(M, null, [
87
+ e(t, { span: 24 }, {
89
88
  default: l(() => u[1] || (u[1] = [
90
89
  o("div", { class: "title" }, "山西云时代技术有限公司大数据中心分公司项目验收书", -1)
91
90
  ])),
92
91
  _: 1
93
92
  }),
94
- e(Q, {
93
+ e(J, {
95
94
  ref_key: "taskFormRef",
96
- ref: V,
97
- model: q.value,
95
+ ref: I,
96
+ model: j.value,
98
97
  "label-width": "150px",
99
98
  class: "custom-table-form"
100
99
  }, {
101
100
  default: l(() => [
102
101
  e(i, null, {
103
102
  default: l(() => [
104
- e(a, { span: 24 }, {
103
+ e(t, { span: 24 }, {
105
104
  default: l(() => [
106
105
  e(n, {
107
- label: t.$t("itsmFlowAcceptance.contractName"),
106
+ label: a.$t("itsmFlowAcceptance.contractName"),
108
107
  prop: "contractName"
109
108
  }, {
110
109
  default: l(() => [
@@ -120,10 +119,10 @@ const Fe = /* @__PURE__ */ Y({
120
119
  }),
121
120
  e(i, null, {
122
121
  default: l(() => [
123
- e(a, { span: 24 }, {
122
+ e(t, { span: 24 }, {
124
123
  default: l(() => [
125
124
  e(n, {
126
- label: t.$t("itsmFlowAcceptance.contractNo"),
125
+ label: a.$t("itsmFlowAcceptance.contractNo"),
127
126
  prop: "contractNo"
128
127
  }, {
129
128
  default: l(() => [
@@ -139,10 +138,10 @@ const Fe = /* @__PURE__ */ Y({
139
138
  }),
140
139
  e(i, null, {
141
140
  default: l(() => [
142
- e(a, { span: 24 }, {
141
+ e(t, { span: 24 }, {
143
142
  default: l(() => [
144
143
  e(n, {
145
- label: t.$t("itsmFlowAcceptance.orderId"),
144
+ label: a.$t("itsmFlowAcceptance.orderId"),
146
145
  prop: "orderNo"
147
146
  }, {
148
147
  default: l(() => [
@@ -158,10 +157,10 @@ const Fe = /* @__PURE__ */ Y({
158
157
  }),
159
158
  e(i, null, {
160
159
  default: l(() => [
161
- e(a, { span: 24 }, {
160
+ e(t, { span: 24 }, {
162
161
  default: l(() => [
163
162
  e(n, {
164
- label: t.$t("itsmFlowAcceptance.entrustName"),
163
+ label: a.$t("itsmFlowAcceptance.entrustName"),
165
164
  prop: "entrustName"
166
165
  }, {
167
166
  default: l(() => [
@@ -177,10 +176,10 @@ const Fe = /* @__PURE__ */ Y({
177
176
  }),
178
177
  e(i, null, {
179
178
  default: l(() => [
180
- e(a, { span: 12 }, {
179
+ e(t, { span: 12 }, {
181
180
  default: l(() => [
182
181
  e(n, {
183
- label: t.$t("itsmFlowAcceptance.serviceOrg"),
182
+ label: a.$t("itsmFlowAcceptance.serviceOrg"),
184
183
  prop: "serviceOrg"
185
184
  }, {
186
185
  default: l(() => [
@@ -191,10 +190,10 @@ const Fe = /* @__PURE__ */ Y({
191
190
  ]),
192
191
  _: 1
193
192
  }),
194
- e(a, { span: 12 }, {
193
+ e(t, { span: 12 }, {
195
194
  default: l(() => [
196
195
  e(n, {
197
- label: t.$t("itsmFlowAcceptance.stage"),
196
+ label: a.$t("itsmFlowAcceptance.stage"),
198
197
  prop: "stage"
199
198
  }, {
200
199
  default: l(() => [
@@ -205,10 +204,10 @@ const Fe = /* @__PURE__ */ Y({
205
204
  ]),
206
205
  _: 1
207
206
  }),
208
- e(a, { span: 12 }, {
207
+ e(t, { span: 12 }, {
209
208
  default: l(() => [
210
209
  e(n, {
211
- label: t.$t("itsmFlowAcceptance.headman"),
210
+ label: a.$t("itsmFlowAcceptance.headman"),
212
211
  prop: "headmanName"
213
212
  }, {
214
213
  default: l(() => [
@@ -219,10 +218,10 @@ const Fe = /* @__PURE__ */ Y({
219
218
  ]),
220
219
  _: 1
221
220
  }),
222
- e(a, { span: 12 }, {
221
+ e(t, { span: 12 }, {
223
222
  default: l(() => [
224
223
  e(n, {
225
- label: t.$t("itsmFlowAcceptance.members"),
224
+ label: a.$t("itsmFlowAcceptance.members"),
226
225
  prop: "membersName"
227
226
  }, {
228
227
  default: l(() => [
@@ -238,14 +237,14 @@ const Fe = /* @__PURE__ */ Y({
238
237
  }),
239
238
  e(i, null, {
240
239
  default: l(() => [
241
- e(a, { span: 24 }, {
240
+ e(t, { span: 24 }, {
242
241
  default: l(() => [
243
242
  e(n, {
244
- label: t.$t("itsmFlowAcceptance.files"),
243
+ label: a.$t("itsmFlowAcceptance.files"),
245
244
  prop: "files"
246
245
  }, {
247
246
  default: l(() => [
248
- e(G, {
247
+ e(x, {
249
248
  data: c.value.files,
250
249
  border: ""
251
250
  }, {
@@ -260,11 +259,11 @@ const Fe = /* @__PURE__ */ Y({
260
259
  width: "100"
261
260
  }, {
262
261
  default: l((_) => [
263
- e(C, {
262
+ e(N, {
264
263
  type: "primary",
265
264
  link: "",
266
265
  size: "small",
267
- onClick: (g) => F(se)(_.row)
266
+ onClick: (C) => F(oe)(_.row)
268
267
  }, {
269
268
  default: l(() => u[2] || (u[2] = [
270
269
  s(" 查看 ")
@@ -288,10 +287,10 @@ const Fe = /* @__PURE__ */ Y({
288
287
  }),
289
288
  e(i, null, {
290
289
  default: l(() => [
291
- e(a, { span: 24 }, {
290
+ e(t, { span: 24 }, {
292
291
  default: l(() => [
293
292
  e(n, {
294
- label: t.$t("itsmFlowAcceptance.serviceContent"),
293
+ label: a.$t("itsmFlowAcceptance.serviceContent"),
295
294
  prop: "serviceContent"
296
295
  }, {
297
296
  default: l(() => [
@@ -307,10 +306,10 @@ const Fe = /* @__PURE__ */ Y({
307
306
  }),
308
307
  e(i, null, {
309
308
  default: l(() => [
310
- e(a, { span: 24 }, {
309
+ e(t, { span: 24 }, {
311
310
  default: l(() => [
312
311
  e(n, {
313
- label: t.$t("itsmFlowAcceptance.result"),
312
+ label: a.$t("itsmFlowAcceptance.result"),
314
313
  prop: "result"
315
314
  }, {
316
315
  default: l(() => [
@@ -326,10 +325,10 @@ const Fe = /* @__PURE__ */ Y({
326
325
  }),
327
326
  e(i, null, {
328
327
  default: l(() => [
329
- e(a, { span: 24 }, {
328
+ e(t, { span: 24 }, {
330
329
  default: l(() => [
331
330
  e(n, {
332
- label: t.$t("itsmFlowAcceptance.evaluate"),
331
+ label: a.$t("itsmFlowAcceptance.evaluate"),
333
332
  prop: "evaluate"
334
333
  }, {
335
334
  default: l(() => [
@@ -345,7 +344,7 @@ const Fe = /* @__PURE__ */ Y({
345
344
  }),
346
345
  e(i, { class: "bordered-row" }, {
347
346
  default: l(() => [
348
- e(a, { span: 12 }, {
347
+ e(t, { span: 12 }, {
349
348
  default: l(() => u[3] || (u[3] = [
350
349
  o("div", { class: "content-box" }, [
351
350
  o("div", { class: "content-box-top" }, [
@@ -363,7 +362,7 @@ const Fe = /* @__PURE__ */ Y({
363
362
  ])),
364
363
  _: 1
365
364
  }),
366
- e(a, {
365
+ e(t, {
367
366
  span: 12,
368
367
  class: "with-divider"
369
368
  }, {
@@ -389,22 +388,22 @@ const Fe = /* @__PURE__ */ Y({
389
388
  }),
390
389
  e(i, null, {
391
390
  default: l(() => [
392
- v.task.taskDefinitionKey === "UploadScanFile" ? (b(), S(a, {
391
+ v.task.taskDefinitionKey === "UploadScanFile" ? (b(), S(t, {
393
392
  key: 0,
394
393
  span: 12
395
394
  }, {
396
395
  default: l(() => [
397
396
  e(n, {
398
- label: t.$t("itsmFlowEntrust.scannedCopy")
397
+ label: a.$t("itsmFlowEntrust.scannedCopy")
399
398
  }, {
400
399
  default: l(() => [
401
- e(C, {
400
+ e(N, {
402
401
  type: "primary",
403
- icon: F(oe),
404
- onClick: K
402
+ icon: F(ae),
403
+ onClick: q
405
404
  }, {
406
405
  default: l(() => [
407
- s(r(t.$t("common.uploadFiles")), 1)
406
+ s(r(a.$t("common.uploadFiles")), 1)
408
407
  ]),
409
408
  _: 1
410
409
  }, 8, ["icon"])
@@ -413,18 +412,18 @@ const Fe = /* @__PURE__ */ Y({
413
412
  }, 8, ["label"]),
414
413
  e(n, null, {
415
414
  default: l(() => [
416
- (b(!0), A(M, null, le(p.value, (_, g) => (b(), A("div", {
417
- key: g,
415
+ (b(!0), g(M, null, ee(p.value, (_, C) => (b(), g("div", {
416
+ key: C,
418
417
  class: "files-list"
419
418
  }, [
420
419
  s(r(_.fileName) + " ", 1),
421
- e(J, {
420
+ e(H, {
422
421
  size: "16",
423
422
  class: "icon-right",
424
- onClick: (re) => P(g)
423
+ onClick: (ue) => K(C)
425
424
  }, {
426
425
  default: l(() => [
427
- e(H)
426
+ e(G)
428
427
  ]),
429
428
  _: 2
430
429
  }, 1032, ["onClick"])
@@ -435,22 +434,22 @@ const Fe = /* @__PURE__ */ Y({
435
434
  ]),
436
435
  _: 1
437
436
  })) : B("", !0),
438
- v.task.taskDefinitionKey === "UploadScanFile" ? (b(), S(a, {
437
+ v.task.taskDefinitionKey === "UploadScanFile" ? (b(), S(t, {
439
438
  key: 1,
440
439
  span: 12
441
440
  }, {
442
441
  default: l(() => [
443
442
  e(n, {
444
- label: t.$t("itsmFlowEntrust.export")
443
+ label: a.$t("itsmFlowEntrust.export")
445
444
  }, {
446
445
  default: l(() => [
447
- e(C, {
446
+ e(N, {
448
447
  plain: "",
449
448
  type: "primary",
450
449
  onClick: U
451
450
  }, {
452
451
  default: l(() => [
453
- s(r(t.$t("itsmFlowEntrust.export")), 1)
452
+ s(r(a.$t("itsmFlowEntrust.export")), 1)
454
453
  ]),
455
454
  _: 1
456
455
  })
@@ -466,17 +465,17 @@ const Fe = /* @__PURE__ */ Y({
466
465
  ]),
467
466
  _: 1
468
467
  }, 8, ["model"]),
469
- e(X, {
468
+ e(Q, {
470
469
  ref_key: "uploadRef",
471
470
  ref: h,
472
- modelValue: N.value,
473
- "onUpdate:modelValue": u[0] || (u[0] = (_) => N.value = _),
474
- onUploadFileList: R
471
+ modelValue: y.value,
472
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => y.value = _),
473
+ onUploadFileList: P
475
474
  }, null, 8, ["modelValue"])
476
475
  ], 64);
477
476
  };
478
477
  }
479
478
  });
480
479
  export {
481
- Fe as default
480
+ ve as default
482
481
  };
@@ -2,8 +2,8 @@ import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, r
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
4
  import { i as Z } from "./common-Cwl5jzlM.mjs";
5
- import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs";
6
- import { C as ee, D as h } from "./index-CitJdS-N.mjs";
5
+ import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs";
6
+ import { C as ee, D as h } from "./index-DugZK_BS.mjs";
7
7
  const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
8
8
  __name: "index",
9
9
  setup(ae) {