xyvcard-itsm-flow 0.0.12 → 0.0.13

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,10 +1,10 @@
1
1
  var I = Object.defineProperty;
2
- var N = (r, t, e) => t in r ? I(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var a = (r, t, e) => N(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { useUserStore as o, clearEmpty as c, request as u, BizDict as _, BizLayDict as x, CustomBizDict as E, EnumDict as y } from "jmash-core";
5
- import { contractApi as w, itemApi as A, contractUserApi as B } from "xyvcard-itsm";
2
+ var N = (a, t, e) => t in a ? I(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
+ var r = (a, t, e) => N(a, typeof t != "symbol" ? t + "" : t, e);
4
+ import { useUserStore as o, clearEmpty as u, request as i, BizDict as d, BizLayDict as x, CustomBizDict as y, EnumDict as A } from "jmash-core";
5
+ import { contractApi as w, itemApi as E, contractUserApi as B } from "xyvcard-itsm";
6
6
  import { sysUserExtApi as L, sysOrgApi as f } from "xyvcard-itsmsys";
7
- import { ref as z, defineComponent as d, createElementBlock as m, openBlock as h, createElementVNode as v } from "vue";
7
+ import { ref as z, defineComponent as _, createElementBlock as m, openBlock as h, createElementVNode as v } from "vue";
8
8
  import { EntryDict as U } from "jmash-dict";
9
9
  class S {
10
10
  getKey(t) {
@@ -15,7 +15,7 @@ class S {
15
15
  // 查询翻页信息验收流程表
16
16
  findPage(t) {
17
17
  const e = o().user.tenant;
18
- return t && (t.hasApplyStatus = t.applyStatus != null), c(t), u({
18
+ return t && (t.hasApplyStatus = t.applyStatus != null), u(t), i({
19
19
  url: "/v1/itsmflow/itsm_flow_acceptance/mypage/" + e,
20
20
  method: "get",
21
21
  params: t
@@ -24,7 +24,7 @@ class S {
24
24
  // 查询列表信息验收流程表
25
25
  findList(t) {
26
26
  const e = o().user.tenant;
27
- return t && (t.hasApplyStatus = t.applyStatus != null), c(t), u({
27
+ return t && (t.hasApplyStatus = t.applyStatus != null), u(t), i({
28
28
  url: "/v1/itsmflow/itsm_flow_acceptance/mylist/" + e,
29
29
  method: "get",
30
30
  params: t
@@ -33,14 +33,14 @@ class S {
33
33
  // 查询验收流程表
34
34
  findById(t) {
35
35
  const e = o().user.tenant;
36
- return c(t), u({
36
+ return u(t), i({
37
37
  url: "/v1/itsmflow/itsm_flow_acceptance/id/" + e + "/" + t.acceptanceId,
38
38
  method: "get"
39
39
  });
40
40
  }
41
41
  // 保存草稿验收流程表
42
42
  save(t) {
43
- return t.tenant = o().user.tenant, c(t), u({
43
+ return t.tenant = o().user.tenant, u(t), i({
44
44
  url: "/v1/itsmflow/itsm_flow_acceptance",
45
45
  method: "post",
46
46
  data: t
@@ -48,7 +48,7 @@ class S {
48
48
  }
49
49
  // 提交验收流程表
50
50
  submit(t) {
51
- return t.tenant = o().user.tenant, c(t), u({
51
+ return t.tenant = o().user.tenant, u(t), i({
52
52
  url: "/v1/itsmflow/itsm_flow_acceptance/submit",
53
53
  method: "post",
54
54
  data: t
@@ -56,7 +56,7 @@ class S {
56
56
  }
57
57
  // 删除验收流程表
58
58
  delete(t) {
59
- return t.tenant = o().user.tenant, c(t), u({
59
+ return t.tenant = o().user.tenant, u(t), i({
60
60
  url: "/v1/itsmflow/itsm_flow_acceptance/id",
61
61
  method: "delete",
62
62
  params: t
@@ -65,7 +65,7 @@ class S {
65
65
  // 导出pdf
66
66
  exportFilePdf(t) {
67
67
  const e = o().user.tenant;
68
- return c(t), u({
68
+ return u(t), i({
69
69
  url: `/v1/itsmflow/itsm_flow_acceptance/${e}/itsm_flow_acceptances.pdf?acceptanceId=` + t.acceptanceId,
70
70
  method: "get",
71
71
  responseType: "blob"
@@ -74,7 +74,7 @@ class S {
74
74
  // 查询验收材料
75
75
  findFilesList(t) {
76
76
  const e = o().user.tenant;
77
- return c(t), u({
77
+ return u(t), i({
78
78
  url: "/v1/workflow/form_file/list/" + e,
79
79
  method: "get",
80
80
  params: t
@@ -82,15 +82,15 @@ class S {
82
82
  }
83
83
  // 查询验收组长
84
84
  findHeadman(t) {
85
- return c(t), u({
85
+ return u(t), i({
86
86
  url: "/v1/rbac/user/list_user",
87
87
  method: "get",
88
88
  params: t
89
89
  });
90
90
  }
91
91
  }
92
- const C = new S();
93
- class F {
92
+ const F = new S();
93
+ class C {
94
94
  getKey(t) {
95
95
  return {
96
96
  entrustId: t.entrustId
@@ -99,7 +99,7 @@ class F {
99
99
  // 查询翻页信息委托流程表
100
100
  findPage(t) {
101
101
  const e = o().user.tenant;
102
- return t && (t.hasServiceContent = t.serviceContent != null, t.hasApplyStatus = t.applyStatus != null), c(t), u({
102
+ return t && (t.hasServiceContent = t.serviceContent != null, t.hasApplyStatus = t.applyStatus != null), u(t), i({
103
103
  url: "/v1/itsmflow/itsm_flow_entrust/mypage/" + e,
104
104
  method: "get",
105
105
  params: t
@@ -108,7 +108,7 @@ class F {
108
108
  // 查询列表信息委托流程表
109
109
  findList(t) {
110
110
  const e = o().user.tenant;
111
- return t && (t.hasApplyStatus = t.applyStatus != null), c(t), u({
111
+ return t && (t.hasApplyStatus = t.applyStatus != null), u(t), i({
112
112
  url: "/v1/itsmflow/itsm_flow_entrust/mylist/" + e,
113
113
  method: "get",
114
114
  params: t
@@ -117,14 +117,14 @@ class F {
117
117
  // 查询委托流程表
118
118
  findById(t) {
119
119
  const e = o().user.tenant;
120
- return c(t), u({
120
+ return u(t), i({
121
121
  url: "/v1/itsmflow/itsm_flow_entrust/id/" + e + "/" + t.entrustId,
122
122
  method: "get"
123
123
  });
124
124
  }
125
125
  // 保存草稿委托流程表
126
126
  save(t) {
127
- return t.tenant = o().user.tenant, c(t), u({
127
+ return t.tenant = o().user.tenant, u(t), i({
128
128
  url: "/v1/itsmflow/itsm_flow_entrust",
129
129
  method: "post",
130
130
  data: t
@@ -132,7 +132,7 @@ class F {
132
132
  }
133
133
  // 提交委托流程表
134
134
  submit(t) {
135
- return t.tenant = o().user.tenant, c(t), u({
135
+ return t.tenant = o().user.tenant, u(t), i({
136
136
  url: "/v1/itsmflow/itsm_flow_entrust/submit",
137
137
  method: "post",
138
138
  data: t
@@ -140,7 +140,7 @@ class F {
140
140
  }
141
141
  // 删除委托流程表
142
142
  delete(t) {
143
- return t.tenant = o().user.tenant, c(t), u({
143
+ return t.tenant = o().user.tenant, u(t), i({
144
144
  url: "/v1/itsmflow/itsm_flow_entrust/id",
145
145
  method: "delete",
146
146
  params: t
@@ -149,7 +149,7 @@ class F {
149
149
  // 打印委托流程表PDF文件
150
150
  exportFilePdf(t) {
151
151
  const e = o().user.tenant;
152
- return c(t), u({
152
+ return u(t), i({
153
153
  url: `/v1/itsmflow/itsm_flow_entrust/${e}/itsm_flow_entrusts.pdf?entrustId=` + t.entrustId,
154
154
  method: "get",
155
155
  responseType: "blob"
@@ -157,14 +157,14 @@ class F {
157
157
  }
158
158
  // 上传任务附件
159
159
  uploadFile(t) {
160
- return t.tenant = o().user.tenant, c(t), u({
160
+ return t.tenant = o().user.tenant, u(t), i({
161
161
  url: "/v1/flow/task/attachment",
162
162
  method: "post",
163
163
  data: t
164
164
  });
165
165
  }
166
166
  }
167
- const M = new F();
167
+ const M = new C();
168
168
  class T {
169
169
  getKey(t) {
170
170
  return {
@@ -174,7 +174,7 @@ class T {
174
174
  // 查询列表信息委托服务人员信息
175
175
  findList(t) {
176
176
  const e = o().user.tenant;
177
- return c(t), u({
177
+ return u(t), i({
178
178
  url: "/v1/itsmflow/itsm_flow_entrust_user/list/" + e,
179
179
  method: "get",
180
180
  params: t
@@ -182,7 +182,7 @@ class T {
182
182
  }
183
183
  }
184
184
  const D = new T();
185
- class P extends _ {
185
+ class P extends d {
186
186
  // 实现 useValues 方法
187
187
  useValues() {
188
188
  return new Promise((t, e) => {
@@ -203,7 +203,7 @@ class P extends _ {
203
203
  });
204
204
  }
205
205
  }
206
- class V extends _ {
206
+ class V extends d {
207
207
  // 实现 useValues 方法
208
208
  useValues() {
209
209
  return new Promise((t, e) => {
@@ -224,7 +224,7 @@ class V extends _ {
224
224
  });
225
225
  }
226
226
  }
227
- class b extends _ {
227
+ class b extends d {
228
228
  // 实现 useValues 方法
229
229
  useValues() {
230
230
  return new Promise((t, e) => {
@@ -242,7 +242,7 @@ class b extends _ {
242
242
  });
243
243
  }
244
244
  }
245
- class O extends _ {
245
+ class O extends d {
246
246
  // 实现 useValues 方法
247
247
  useValues() {
248
248
  return new Promise((t, e) => {
@@ -286,11 +286,11 @@ class k extends x {
286
286
  }));
287
287
  }
288
288
  }
289
- class R extends _ {
289
+ class R extends d {
290
290
  // 实现 useValues 方法
291
291
  useValues() {
292
292
  return new Promise((t, e) => {
293
- A.findList(this.query).then(({ data: n }) => {
293
+ E.findList(this.query).then(({ data: n }) => {
294
294
  const l = n.results;
295
295
  this.values.length = 0, this.values.push(
296
296
  ...l.map(
@@ -306,7 +306,7 @@ class R extends _ {
306
306
  });
307
307
  }
308
308
  }
309
- class H extends _ {
309
+ class H extends d {
310
310
  // 实现 useValues 方法
311
311
  useValues() {
312
312
  return new Promise((t, e) => {
@@ -330,7 +330,7 @@ class H extends _ {
330
330
  });
331
331
  }
332
332
  }
333
- class Y extends _ {
333
+ class Y extends d {
334
334
  // 实现 useValues 方法
335
335
  useValues() {
336
336
  return new Promise((t, e) => {
@@ -350,11 +350,11 @@ class Y extends _ {
350
350
  });
351
351
  }
352
352
  }
353
- class j extends _ {
353
+ class j extends d {
354
354
  // 实现 useValues 方法
355
355
  useValues() {
356
356
  return new Promise((t, e) => {
357
- C.findList(this.query).then(({ data: n }) => {
357
+ F.findList(this.query).then(({ data: n }) => {
358
358
  const l = n.results;
359
359
  this.values.length = 0, this.values.push(
360
360
  ...l.map(
@@ -376,7 +376,7 @@ class j extends _ {
376
376
  });
377
377
  }
378
378
  }
379
- class K extends _ {
379
+ class K extends d {
380
380
  // 实现 useValues 方法
381
381
  useValues() {
382
382
  return new Promise((t, e) => {
@@ -397,34 +397,34 @@ class K extends _ {
397
397
  });
398
398
  }
399
399
  }
400
- class i {
400
+ class c {
401
401
  }
402
402
  // 模块
403
- a(i, "MODULE_ITSMFLOW", "itsmflow"), // 合同分类
404
- a(i, "contractSort", {
403
+ r(c, "MODULE_ITSMFLOW", "itsmflow"), // 合同分类
404
+ r(c, "contractSort", {
405
405
  // 人力
406
406
  manpower: "manpower"
407
407
  }), // 合同类型
408
- a(i, "contractType", {
408
+ r(c, "contractType", {
409
409
  // 外协合同
410
410
  outsource: "outsource"
411
411
  }), // 时间格式-年月
412
- a(i, "FORMAT_MONTH", "YYYY-MM"), // 验查结果
413
- a(i, "IS_VALUES", z([
412
+ r(c, "FORMAT_MONTH", "YYYY-MM"), // 验查结果
413
+ r(c, "IS_VALUES", z([
414
414
  { key: !0, value: "通过" },
415
415
  { key: !1, value: "不通过" }
416
416
  ])), // 服务内容枚举
417
- a(i, "ENUM_SERVICE_CONTENT", "xyvcard.itsmflow.protobuf.ServiceContent"), // 项目名称
418
- a(i, "DICT_PROJECT_NAME", "projectName"), // 机构类型
419
- a(i, "orgType", {
417
+ r(c, "ENUM_SERVICE_CONTENT", "xyvcard.itsmflow.protobuf.ServiceContent"), // 项目名称
418
+ r(c, "DICT_PROJECT_NAME", "projectName"), // 机构类型
419
+ r(c, "orgType", {
420
420
  // 厅局
421
421
  hall: "HALL"
422
422
  }), // 项目状态
423
- a(i, "status", {
423
+ r(c, "status", {
424
424
  // 项目状态(正常)
425
425
  regular: "regular"
426
426
  }), // 流程状态
427
- a(i, "applyStatus", {
427
+ r(c, "applyStatus", {
428
428
  // 草稿
429
429
  draft: "DRAFT",
430
430
  // 进行中
@@ -432,42 +432,48 @@ a(i, "applyStatus", {
432
432
  // 已办结
433
433
  finished: "FINISHED"
434
434
  }), // 人员类型
435
- a(i, "userType", {
435
+ r(c, "userType", {
436
436
  // 公司管理
437
437
  companyManager: "COMPANY_MANAGER"
438
438
  }), // 岗位编码
439
- a(i, "jobCode", {
439
+ r(c, "jobCode", {
440
440
  // 组长
441
441
  groupLeader: "team_leader"
442
+ }), // 工作流节点
443
+ r(c, "node", {
444
+ // 上传扫描件
445
+ upload: "UploadScanFile",
446
+ // 会签节点
447
+ sign: "Activity_03eim2r"
442
448
  });
443
449
  class p {
444
450
  }
445
451
  // 人力合同
446
- a(p, "itsmContractBizDict", new P({})), // 人力合同编号
447
- a(p, "contractNumberBizDict", new V({})), // 服务人员所属单位
448
- a(p, "orgIdBizDict", new b({})), // 实际投入人员
449
- a(p, "contractUserBizDict", new O({})), // 验查结果
450
- a(p, "isValuesDict", new E(i.IS_VALUES, {})), // 服务内容
451
- a(p, "serviceContentEnum", new y(
452
- i.MODULE_ITSMFLOW,
453
- i.ENUM_SERVICE_CONTENT
452
+ r(p, "itsmContractBizDict", new P({})), // 人力合同编号
453
+ r(p, "contractNumberBizDict", new V({})), // 服务人员所属单位
454
+ r(p, "orgIdBizDict", new b({})), // 实际投入人员
455
+ r(p, "contractUserBizDict", new O({})), // 验查结果
456
+ r(p, "isValuesDict", new y(c.IS_VALUES, {})), // 服务内容
457
+ r(p, "serviceContentEnum", new A(
458
+ c.MODULE_ITSMFLOW,
459
+ c.ENUM_SERVICE_CONTENT
454
460
  )), // 项目名称
455
- a(p, "projectNameDict", new U(i.DICT_PROJECT_NAME)), // 厅局管理父厅级单位
456
- a(p, "parentIdBizDict", new k({
457
- orgType: i.orgType.hall
461
+ r(p, "projectNameDict", new U(c.DICT_PROJECT_NAME)), // 厅局管理父厅级单位
462
+ r(p, "parentIdBizDict", new k({
463
+ orgType: c.orgType.hall
458
464
  })), // 项目列表
459
- a(p, "itemBizLayDict", new R({})), // 验收书查询信息
460
- a(p, "itsmFlowEntrustBizDict", new H({})), // 管理人员
461
- a(p, "userExtBizDict", new Y({})), // 结算清单查询信息
462
- a(p, "itsmFlowAcceptanceBizDict", new j({})), // 结算人员查询信息
463
- a(p, "itsmFlowEntrustUserBizDict", new K(
465
+ r(p, "itemBizLayDict", new R({})), // 验收书查询信息
466
+ r(p, "itsmFlowEntrustBizDict", new H({})), // 管理人员
467
+ r(p, "userExtBizDict", new Y({})), // 结算清单查询信息
468
+ r(p, "itsmFlowAcceptanceBizDict", new j({})), // 结算人员查询信息
469
+ r(p, "itsmFlowEntrustUserBizDict", new K(
464
470
  {}
465
471
  ));
466
472
  /*! Element Plus Icons Vue v2.3.1 */
467
- var W = /* @__PURE__ */ d({
473
+ var W = /* @__PURE__ */ _({
468
474
  name: "CircleCloseFilled",
469
475
  __name: "circle-close-filled",
470
- setup(r) {
476
+ setup(a) {
471
477
  return (t, e) => (h(), m("svg", {
472
478
  xmlns: "http://www.w3.org/2000/svg",
473
479
  viewBox: "0 0 1024 1024"
@@ -478,10 +484,10 @@ var W = /* @__PURE__ */ d({
478
484
  })
479
485
  ]));
480
486
  }
481
- }), nt = W, G = /* @__PURE__ */ d({
487
+ }), nt = W, G = /* @__PURE__ */ _({
482
488
  name: "Close",
483
489
  __name: "close",
484
- setup(r) {
490
+ setup(a) {
485
491
  return (t, e) => (h(), m("svg", {
486
492
  xmlns: "http://www.w3.org/2000/svg",
487
493
  viewBox: "0 0 1024 1024"
@@ -492,10 +498,10 @@ var W = /* @__PURE__ */ d({
492
498
  })
493
499
  ]));
494
500
  }
495
- }), lt = G, J = /* @__PURE__ */ d({
501
+ }), lt = G, J = /* @__PURE__ */ _({
496
502
  name: "InfoFilled",
497
503
  __name: "info-filled",
498
- setup(r) {
504
+ setup(a) {
499
505
  return (t, e) => (h(), m("svg", {
500
506
  xmlns: "http://www.w3.org/2000/svg",
501
507
  viewBox: "0 0 1024 1024"
@@ -506,10 +512,10 @@ var W = /* @__PURE__ */ d({
506
512
  })
507
513
  ]));
508
514
  }
509
- }), ct = J, $ = /* @__PURE__ */ d({
515
+ }), ct = J, $ = /* @__PURE__ */ _({
510
516
  name: "Plus",
511
517
  __name: "plus",
512
- setup(r) {
518
+ setup(a) {
513
519
  return (t, e) => (h(), m("svg", {
514
520
  xmlns: "http://www.w3.org/2000/svg",
515
521
  viewBox: "0 0 1024 1024"
@@ -520,10 +526,10 @@ var W = /* @__PURE__ */ d({
520
526
  })
521
527
  ]));
522
528
  }
523
- }), ut = $, Q = /* @__PURE__ */ d({
529
+ }), ut = $, Q = /* @__PURE__ */ _({
524
530
  name: "SuccessFilled",
525
531
  __name: "success-filled",
526
- setup(r) {
532
+ setup(a) {
527
533
  return (t, e) => (h(), m("svg", {
528
534
  xmlns: "http://www.w3.org/2000/svg",
529
535
  viewBox: "0 0 1024 1024"
@@ -534,10 +540,10 @@ var W = /* @__PURE__ */ d({
534
540
  })
535
541
  ]));
536
542
  }
537
- }), it = Q, X = /* @__PURE__ */ d({
543
+ }), it = Q, X = /* @__PURE__ */ _({
538
544
  name: "Upload",
539
545
  __name: "upload",
540
- setup(r) {
546
+ setup(a) {
541
547
  return (t, e) => (h(), m("svg", {
542
548
  xmlns: "http://www.w3.org/2000/svg",
543
549
  viewBox: "0 0 1024 1024"
@@ -548,10 +554,10 @@ var W = /* @__PURE__ */ d({
548
554
  })
549
555
  ]));
550
556
  }
551
- }), ot = X, Z = /* @__PURE__ */ d({
557
+ }), ot = X, Z = /* @__PURE__ */ _({
552
558
  name: "WarningFilled",
553
559
  __name: "warning-filled",
554
- setup(r) {
560
+ setup(a) {
555
561
  return (t, e) => (h(), m("svg", {
556
562
  xmlns: "http://www.w3.org/2000/svg",
557
563
  viewBox: "0 0 1024 1024"
@@ -564,7 +570,7 @@ var W = /* @__PURE__ */ d({
564
570
  }
565
571
  }), pt = Z;
566
572
  export {
567
- i as C,
573
+ c as C,
568
574
  p as D,
569
575
  H as I,
570
576
  Y as U,
@@ -576,7 +582,7 @@ export {
576
582
  O as f,
577
583
  j as g,
578
584
  K as h,
579
- C as i,
585
+ F as i,
580
586
  ct as j,
581
587
  nt as k,
582
588
  lt as l,