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,11 +1,10 @@
1
- import { defineComponent as ne, mergeModels as se, ref as g, useModel as de, reactive as E, computed as re, resolveComponent as i, openBlock as k, createElementBlock as D, Fragment as B, createVNode as t, withCtx as a, createElementVNode as r, unref as d, renderList as ie, createBlock as O, createTextVNode as N, toDisplayString as I, createCommentVNode as ue } from "vue";
1
+ import { defineComponent as ne, mergeModels as se, ref as g, useModel as de, reactive as C, computed as re, resolveComponent as u, openBlock as k, createElementBlock as E, Fragment as D, createVNode as t, withCtx as a, createElementVNode as r, unref as d, renderList as ue, createBlock as B, createTextVNode as N, toDisplayString as I, createCommentVNode as ie } from "vue";
2
2
  import "element-plus";
3
- import { useRoute as ce } from "vue-router";
4
- import { useI18n as me } from "vue-i18n";
5
- import { g as pe, C as M, D as U, h as fe, p as be, e as ve } from "./index-CitJdS-N.mjs";
6
- import { i as z, t as ge, a as Ne } from "./common-Cwl5jzlM.mjs";
7
- import { E as ke } from "./el-message-9Nit-6wb.mjs";
8
- const Ve = /* @__PURE__ */ ne({
3
+ import { useI18n as ce } from "vue-i18n";
4
+ import { g as me, C as O, D as U, h as M, p as pe, e as fe } from "./index-DugZK_BS.mjs";
5
+ import { i as z, t as be, a as ve } from "./common-Cwl5jzlM.mjs";
6
+ import { E as ge } from "./el-message-CIdVBT5R.mjs";
7
+ const _e = /* @__PURE__ */ ne({
9
8
  __name: "index",
10
9
  props: /* @__PURE__ */ se({
11
10
  task: {
@@ -19,19 +18,19 @@ const Ve = /* @__PURE__ */ ne({
19
18
  }),
20
19
  emits: ["update:modelValue"],
21
20
  setup(_, { expose: A }) {
22
- const { t: h } = me(), R = g([]), F = new pe({
23
- applyStatus: M.applyStatus.finished
21
+ const { t: h } = ce(), R = g([]), F = new me({
22
+ applyStatus: O.applyStatus.finished
24
23
  });
25
24
  F.useValues(), U.orgIdBizDict.useValues();
26
- const P = ce(), V = _, w = g({
25
+ const w = _, V = g({
27
26
  curPage: 1,
28
27
  pageSize: 10,
29
- reckoningId: P.query.applyId
30
- }), f = de(_, "modelValue"), y = g();
31
- let n = E({
28
+ reckoningId: w.task.businessKey
29
+ }), f = de(_, "modelValue"), $ = g();
30
+ let n = C({
32
31
  requestId: Math.random() * 10 + ""
33
32
  });
34
- const S = re(() => p.value.map((l) => ({
33
+ const P = re(() => p.value.map((l) => ({
35
34
  cost: typeof l.cost == "number" ? l.cost : 0,
36
35
  duration: typeof l.duration == "number" ? l.duration : 0
37
36
  }))), p = g([
@@ -43,7 +42,7 @@ const Ve = /* @__PURE__ */ ne({
43
42
  entrustUserId: ""
44
43
  }
45
44
  ]);
46
- function j() {
45
+ function S() {
47
46
  p.value.push({
48
47
  userId: "",
49
48
  idNo: "",
@@ -52,11 +51,11 @@ const Ve = /* @__PURE__ */ ne({
52
51
  entrustUserId: ""
53
52
  });
54
53
  }
55
- function L(l) {
54
+ function j(l) {
56
55
  const e = p.value.indexOf(l.row);
57
56
  e !== 0 && p.value.splice(e, 1);
58
57
  }
59
- const T = E({
58
+ const L = C({
60
59
  acceptanceNo: [
61
60
  {
62
61
  required: !0,
@@ -72,42 +71,43 @@ const Ve = /* @__PURE__ */ ne({
72
71
  }
73
72
  ]
74
73
  });
75
- V.task.businessKey && W(), A({
74
+ w.task.businessKey && K(), A({
76
75
  changeModel: () => Q()
77
76
  });
78
- function K() {
79
- ve.findList({ actionId: w.value.reckoningId }).then(({ data: l }) => {
77
+ function T() {
78
+ fe.findList({ actionId: V.value.reckoningId }).then(({ data: l }) => {
80
79
  const e = l.results.map(
81
80
  (s) => ({
82
81
  ...s,
83
82
  duration: Number(s.duration)
84
- // 将字符串转换为数字
85
83
  })
86
84
  );
87
85
  p.value = e;
88
86
  });
89
87
  }
90
- function W() {
91
- w.value.reckoningId = V.task.businessKey, z.findById({ reckoningId: w.value.reckoningId }).then(({ data: l }) => {
92
- Object.assign(n, l), $(l.acceptanceNo);
93
- }), K();
88
+ function K() {
89
+ z.findById({ reckoningId: V.value.reckoningId }).then(({ data: l }) => {
90
+ Object.assign(n, l), b.value = new M({
91
+ actionId: (l == null ? void 0 : l.entrustId) ?? ""
92
+ }), b.value.useValues();
93
+ }), T();
94
94
  }
95
- function G() {
96
- v.value = { values: [] }, p.value.forEach((l) => {
95
+ function W() {
96
+ b.value = { values: [] }, p.value.forEach((l) => {
97
97
  l.userId = "", l.idNo = "", l.cost = 0, l.duration = 0;
98
98
  });
99
99
  }
100
- const v = g({});
101
- function $(l) {
100
+ const b = g({});
101
+ function G(l) {
102
102
  const e = F.values.find(
103
103
  (s) => s.key === l
104
104
  );
105
- n.contractName = (e == null ? void 0 : e.contractName) ?? "", n.contractNo = (e == null ? void 0 : e.contractNo) ?? "", n.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", n.entrustName = (e == null ? void 0 : e.entrustName) ?? "", n.orderNo = (e == null ? void 0 : e.orderNo) ?? "", n.serviceContent = (e == null ? void 0 : e.serviceContent) ?? "", n.entrustId = (e == null ? void 0 : e.entrustId) ?? "", n.acceptanceId = (e == null ? void 0 : e.acceptanceId) ?? "", G(), v.value = new fe({
105
+ n.contractName = (e == null ? void 0 : e.contractName) ?? "", n.contractNo = (e == null ? void 0 : e.contractNo) ?? "", n.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", n.entrustName = (e == null ? void 0 : e.entrustName) ?? "", n.orderNo = (e == null ? void 0 : e.orderNo) ?? "", n.serviceContent = (e == null ? void 0 : e.serviceContent) ?? "", n.entrustId = (e == null ? void 0 : e.entrustId) ?? "", n.acceptanceId = (e == null ? void 0 : e.acceptanceId) ?? "", W(), b.value = new M({
106
106
  actionId: (e == null ? void 0 : e.entrustId) ?? ""
107
- }), v.value.useValues();
107
+ }), b.value.useValues();
108
108
  }
109
109
  function H(l, e) {
110
- const s = v.value.values.find(
110
+ const s = b.value.values.find(
111
111
  (c) => c.key === l
112
112
  );
113
113
  s ? (e.userName = s.value ?? "", e.idNo = s.idNo ?? "", e.cost = Number(s.cost) || 0, e.entrustUserId = s.entrustUserId ?? "") : (e.userName = "", e.idNo = "", e.cost = 0, e.entrustUserId = "");
@@ -122,14 +122,14 @@ const Ve = /* @__PURE__ */ ne({
122
122
  return f.value && (f.value.selectActions = [
123
123
  { key: "true", value: "同意" },
124
124
  { key: "false", value: "不同意" }
125
- ], f.value.varName = "approved", f.value.module = "", f.value.module = M.MODULE_ITSMFLOW), new Promise((l, e) => {
125
+ ], f.value.varName = "approved", f.value.module = "", f.value.module = O.MODULE_ITSMFLOW), new Promise((l, e) => {
126
126
  var s;
127
- (s = y.value) == null || s.validate((c) => {
127
+ (s = $.value) == null || s.validate((c) => {
128
128
  c ? f.value && (f.value.comment = "", J(), n.requestId = Math.random() * 10 + "", z.save({
129
129
  ...n,
130
130
  entrustUser: R.value
131
131
  }).then((m) => {
132
- m.status === 200 ? l(!0) : (ke({
132
+ m.status === 200 ? l(!0) : (ge({
133
133
  message: "保存失败,请联系管理员!",
134
134
  type: "error"
135
135
  }), e(!1));
@@ -138,8 +138,8 @@ const Ve = /* @__PURE__ */ ne({
138
138
  });
139
139
  }
140
140
  return (l, e) => {
141
- const s = i("el-col"), c = i("el-input"), m = i("el-form-item"), X = i("jmash-dict-select"), q = i("jmash-select"), C = i("el-row"), b = i("el-table-column"), Y = i("el-option"), Z = i("el-select"), x = i("el-input-number"), ee = i("DeleteFilled"), le = i("el-icon"), te = i("el-table"), oe = i("el-button"), ae = i("el-form");
142
- return k(), D(B, null, [
141
+ const s = u("el-col"), c = u("el-input"), m = u("el-form-item"), X = u("jmash-dict-select"), y = u("jmash-select"), q = u("el-row"), v = u("el-table-column"), Y = u("el-option"), Z = u("el-select"), x = u("el-input-number"), ee = u("DeleteFilled"), le = u("el-icon"), te = u("el-table"), oe = u("el-button"), ae = u("el-form");
142
+ return k(), E(D, null, [
143
143
  t(s, { span: 24 }, {
144
144
  default: a(() => e[8] || (e[8] = [
145
145
  r("div", { class: "title" }, "委托服务合同结算清单", -1)
@@ -148,10 +148,10 @@ const Ve = /* @__PURE__ */ ne({
148
148
  }),
149
149
  t(ae, {
150
150
  ref_key: "taskFormRef",
151
- ref: y,
151
+ ref: $,
152
152
  model: d(n),
153
153
  "label-width": "150px",
154
- rules: T,
154
+ rules: L,
155
155
  class: "custom-table-form custom-form"
156
156
  }, {
157
157
  default: a(() => [
@@ -221,7 +221,7 @@ const Ve = /* @__PURE__ */ ne({
221
221
  prop: "serviceOrg"
222
222
  }, {
223
223
  default: a(() => [
224
- t(q, {
224
+ t(y, {
225
225
  modelValue: d(n).serviceOrg,
226
226
  "onUpdate:modelValue": e[3] || (e[3] = (o) => d(n).serviceOrg = o),
227
227
  placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
@@ -242,7 +242,7 @@ const Ve = /* @__PURE__ */ ne({
242
242
  prop: "acceptanceNo"
243
243
  }, {
244
244
  default: a(() => [
245
- t(q, {
245
+ t(y, {
246
246
  modelValue: d(n).acceptanceNo,
247
247
  "onUpdate:modelValue": e[4] || (e[4] = (o) => d(n).acceptanceNo = o),
248
248
  placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequireds"),
@@ -250,7 +250,7 @@ const Ve = /* @__PURE__ */ ne({
250
250
  clearable: "",
251
251
  filterable: "",
252
252
  class: "w-full",
253
- onChange: $
253
+ onChange: G
254
254
  }, null, 8, ["modelValue", "placeholder", "data"])
255
255
  ]),
256
256
  _: 1
@@ -258,7 +258,7 @@ const Ve = /* @__PURE__ */ ne({
258
258
  ]),
259
259
  _: 1
260
260
  }),
261
- t(C, null, {
261
+ t(q, null, {
262
262
  default: a(() => [
263
263
  t(s, { span: 24 }, {
264
264
  default: a(() => [
@@ -331,33 +331,32 @@ const Ve = /* @__PURE__ */ ne({
331
331
  style: { width: "100%" }
332
332
  }, {
333
333
  default: a(() => [
334
- t(b, {
334
+ t(v, {
335
335
  type: "index",
336
336
  label: l.$t("itsmFlowEntrustUser.index"),
337
337
  width: "60",
338
338
  align: "center"
339
339
  }, null, 8, ["label"]),
340
- t(b, {
340
+ t(v, {
341
341
  prop: "userId",
342
342
  label: l.$t("itsmFlowEntrustUser.userId"),
343
- "header-align": "center",
344
- width: "150"
343
+ "header-align": "center"
345
344
  }, {
346
345
  default: a(({ row: o }) => [
347
346
  t(Z, {
348
347
  modelValue: o.userId,
349
- "onUpdate:modelValue": (u) => o.userId = u,
348
+ "onUpdate:modelValue": (i) => o.userId = i,
350
349
  placeholder: l.$t("itsmFlowEntrustUser.userIdRequired"),
351
350
  class: "w-full",
352
351
  filterable: "",
353
352
  clearable: "",
354
- onChange: (u) => H(u, o)
353
+ onChange: (i) => H(i, o)
355
354
  }, {
356
355
  default: a(() => [
357
- (k(!0), D(B, null, ie(v.value.values, (u) => (k(), O(Y, {
358
- key: u.key,
359
- label: u.value,
360
- value: u.key
356
+ (k(!0), E(D, null, ue(b.value.values, (i) => (k(), B(Y, {
357
+ key: i.key,
358
+ label: i.value,
359
+ value: i.key
361
360
  }, null, 8, ["label", "value"]))), 128))
362
361
  ]),
363
362
  _: 2
@@ -365,46 +364,43 @@ const Ve = /* @__PURE__ */ ne({
365
364
  ]),
366
365
  _: 1
367
366
  }, 8, ["label"]),
368
- t(b, {
367
+ t(v, {
369
368
  label: l.$t("itsmFlowEntrustUser.idNo"),
370
- "header-align": "center",
371
- width: "190"
369
+ "header-align": "center"
372
370
  }, {
373
371
  default: a(({ row: o }) => [
374
372
  t(c, {
375
373
  modelValue: o.idNo,
376
- "onUpdate:modelValue": (u) => o.idNo = u,
374
+ "onUpdate:modelValue": (i) => o.idNo = i,
377
375
  placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
378
376
  disabled: ""
379
377
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
380
378
  ]),
381
379
  _: 1
382
380
  }, 8, ["label"]),
383
- t(b, {
381
+ t(v, {
384
382
  label: l.$t("itsmFlowEntrustUser.cost"),
385
- "header-align": "center",
386
- width: "130"
383
+ "header-align": "center"
387
384
  }, {
388
385
  default: a(({ row: o }) => [
389
386
  t(c, {
390
387
  modelValue: o.cost,
391
- "onUpdate:modelValue": (u) => o.cost = u,
388
+ "onUpdate:modelValue": (i) => o.cost = i,
392
389
  placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
393
390
  disabled: ""
394
391
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
395
392
  ]),
396
393
  _: 1
397
394
  }, 8, ["label"]),
398
- t(b, {
395
+ t(v, {
399
396
  prop: "duration",
400
397
  label: l.$t("itsmFlowReckoning.serviceTime"),
401
- "header-align": "center",
402
- width: "140"
398
+ "header-align": "center"
403
399
  }, {
404
400
  default: a(({ row: o }) => [
405
401
  t(x, {
406
402
  modelValue: o.duration,
407
- "onUpdate:modelValue": (u) => o.duration = u,
403
+ "onUpdate:modelValue": (i) => o.duration = i,
408
404
  precision: 1,
409
405
  step: 0.1,
410
406
  min: 0,
@@ -413,25 +409,25 @@ const Ve = /* @__PURE__ */ ne({
413
409
  ]),
414
410
  _: 1
415
411
  }, 8, ["label"]),
416
- t(b, {
412
+ t(v, {
417
413
  prop: "totalAmount",
418
414
  label: l.$t("itsmFlowReckoning.totalAmount"),
419
415
  "header-align": "center"
420
416
  }, {
421
417
  default: a(({ row: o }) => [
422
- N(I(d(ge)(o.cost, o.duration)), 1)
418
+ N(I(d(be)(o.cost, o.duration)) + "元 ", 1)
423
419
  ]),
424
420
  _: 1
425
421
  }, 8, ["label"]),
426
- t(b, {
422
+ t(v, {
427
423
  label: l.$t("common.operate"),
428
424
  width: "60",
429
425
  align: "center"
430
426
  }, {
431
427
  default: a((o) => [
432
- o.$index !== 0 ? (k(), O(le, {
428
+ o.$index !== 0 ? (k(), B(le, {
433
429
  key: 0,
434
- onClick: (u) => L(o),
430
+ onClick: (i) => j(o),
435
431
  size: "18",
436
432
  style: { cursor: "pointer", color: "inherit" },
437
433
  class: "hover-blue"
@@ -440,7 +436,7 @@ const Ve = /* @__PURE__ */ ne({
440
436
  t(ee)
441
437
  ]),
442
438
  _: 2
443
- }, 1032, ["onClick"])) : ue("", !0)
439
+ }, 1032, ["onClick"])) : ie("", !0)
444
440
  ]),
445
441
  _: 1
446
442
  }, 8, ["label"])
@@ -448,9 +444,9 @@ const Ve = /* @__PURE__ */ ne({
448
444
  _: 1
449
445
  }, 8, ["data"]),
450
446
  t(oe, {
451
- icon: d(be),
447
+ icon: d(pe),
452
448
  class: "addButton",
453
- onClick: j
449
+ onClick: S
454
450
  }, {
455
451
  default: a(() => [
456
452
  N(I(d(h)("common.add")), 1)
@@ -466,14 +462,14 @@ const Ve = /* @__PURE__ */ ne({
466
462
  label: l.$t("itsmFlowReckoning.totalPrice")
467
463
  }, {
468
464
  default: a(() => [
469
- N(I(d(Ne)(S.value)), 1)
465
+ N(I(d(ve)(P.value)) + "元 ", 1)
470
466
  ]),
471
467
  _: 1
472
468
  }, 8, ["label"])
473
469
  ]),
474
470
  _: 1
475
471
  }),
476
- t(C, { class: "bordered-row" }, {
472
+ t(q, { class: "bordered-row" }, {
477
473
  default: a(() => [
478
474
  t(s, { span: 12 }, {
479
475
  default: a(() => e[9] || (e[9] = [
@@ -525,5 +521,5 @@ const Ve = /* @__PURE__ */ ne({
525
521
  }
526
522
  });
527
523
  export {
528
- Ve as default
524
+ _e as default
529
525
  };