xyvcard-itsm-flow 0.0.16 → 0.0.18

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 (34) hide show
  1. package/dist/{edit-BKYkA5db.mjs → edit-DIh0NEYf.mjs} +1 -1
  2. package/dist/{edit-BeFLJLv1.mjs → edit-DdzFTqhg.mjs} +1 -1
  3. package/dist/{edit-BrIptvPg.mjs → edit-Vw2XQ1u6.mjs} +1 -1
  4. package/dist/{edit.vue_vue_type_script_setup_true_lang-CjjtZ0-a.mjs → edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs} +1 -1
  5. package/dist/{edit.vue_vue_type_script_setup_true_lang-BiWjf5y2.mjs → edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BhTKkYft.mjs → edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs} +1 -1
  7. package/dist/{index-CZw5m3rz.mjs → index-7_pEehBt.mjs} +4 -8
  8. package/dist/{index-B9enSHLF.mjs → index-BI1uXq1f.mjs} +1 -1
  9. package/dist/index-C54FcKfo.mjs +424 -0
  10. package/dist/{index-DY017z-s.mjs → index-C7_kMdm5.mjs} +2 -2
  11. package/dist/index-C7nUkCbR.mjs +361 -0
  12. package/dist/{index-B7xhs2Eg.mjs → index-CITy8Hqm.mjs} +1 -1
  13. package/dist/{index-DVDOqO_3.mjs → index-Cgbv4Ijf.mjs} +16 -13
  14. package/dist/{index-B7M3zSyM.mjs → index-CxyHtsq2.mjs} +2 -2
  15. package/dist/{index-C0CZrR-1.mjs → index-DaSMRndr.mjs} +2 -2
  16. package/dist/{index-BcD1DAF_.mjs → index-DcpiD-9M.mjs} +102 -77
  17. package/dist/{index-Clc9EA6r.mjs → index-Dooa5UH_.mjs} +1 -1
  18. package/dist/{index-IG9HKXxJ.mjs → index-g0KiWDPW.mjs} +35 -38
  19. package/dist/{index-d_oBTW1A.mjs → index-tnTugnqa.mjs} +51 -54
  20. package/dist/index.mjs +193 -187
  21. package/dist/{info-D6GMiIlG.mjs → info-8NydJYfB.mjs} +1 -1
  22. package/dist/{info-DxYNokk4.mjs → info-BbMCDfFR.mjs} +1 -1
  23. package/dist/{info-CFSSXb0f.mjs → info-l0eP5Tw1.mjs} +1 -1
  24. package/dist/{info.vue_vue_type_script_setup_true_lang-BFT23MNt.mjs → info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs} +17 -13
  25. package/dist/{info.vue_vue_type_script_setup_true_lang-CSn1JLZG.mjs → info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs} +1 -1
  26. package/dist/{info.vue_vue_type_script_setup_true_lang-CYmFW8We.mjs → info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs} +1 -1
  27. package/dts/api/itsm-flow-acceptance/types.d.ts +2 -0
  28. package/dts/api/itsm-flow-entrust/types.d.ts +4 -0
  29. package/dts/api/itsm-flow-reckoning/types.d.ts +1 -0
  30. package/dts/constant.d.ts +1 -0
  31. package/dts/lang/itsm-flow/zh-cn.d.ts +6 -0
  32. package/package.json +2 -2
  33. package/dist/index-DTKFEGFs.mjs +0 -339
  34. package/dist/index-rnfNatQ1.mjs +0 -315
@@ -1,21 +1,23 @@
1
- import { defineComponent as E, ref as b, reactive as H, resolveComponent as u, resolveDirective as W, createElementBlock as C, openBlock as w, createElementVNode as y, createVNode as o, createBlock as F, createCommentVNode as h, withCtx as t, withKeys as d, unref as a, createTextVNode as V, toDisplayString as v, withDirectives as G, isRef as S } from "vue";
2
- import { useTableHooks as J } from "jmash-core";
3
- import { useI18n as M } from "vue-i18n";
4
- import { i as X } from "./common-Cwl5jzlM.mjs";
5
- import { D as k } from "./index-DVDOqO_3.mjs";
6
- import { _ as Y } from "./info.vue_vue_type_script_setup_true_lang-BFT23MNt.mjs";
7
- const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["onClick"], se = /* @__PURE__ */ E({
1
+ import { defineComponent as H, ref as b, reactive as W, resolveComponent as u, resolveDirective as G, createElementBlock as S, openBlock as w, createElementVNode as N, createVNode as o, createBlock as h, createCommentVNode as D, withCtx as t, withKeys as m, unref as a, createTextVNode as y, toDisplayString as v, withDirectives as J, isRef as O } from "vue";
2
+ import { useTableHooks as M } from "jmash-core";
3
+ import { useI18n as X } from "vue-i18n";
4
+ import { i as Y } from "./common-Cwl5jzlM.mjs";
5
+ import { O as Z, C as x, D as V } from "./index-Cgbv4Ijf.mjs";
6
+ import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs";
7
+ const le = { class: "app-container" }, oe = { class: "search-container" }, te = ["onClick"], de = /* @__PURE__ */ H({
8
8
  __name: "index",
9
- setup(le) {
10
- const { t: N } = M(), r = b({}), {
9
+ setup(ne) {
10
+ const { t: k } = X(), r = b({}), {
11
11
  tableHooks: i,
12
- multipleTableRef: D,
13
- queryFormRef: U,
12
+ multipleTableRef: U,
13
+ queryFormRef: q,
14
14
  listLoading: j,
15
- tableData: q,
15
+ tableData: K,
16
16
  total: f
17
- } = J(N, X, r);
18
- k.orgIdBizDict.useValues();
17
+ } = M(k, Y, r), R = new Z({
18
+ orgType: x.orgType.outsource
19
+ });
20
+ R.useValues();
19
21
  let c = b([
20
22
  {
21
23
  label: "itsmFlowReckoning.contractName",
@@ -72,36 +74,36 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
72
74
  isColumn: !0
73
75
  }
74
76
  ]);
75
- const p = b({
76
- title: N("common.view"),
77
+ const d = b({
78
+ title: k("common.view"),
77
79
  visible: !1
78
80
  });
79
- let R = H({});
80
- function K(n) {
81
- R = { ...n }, p.value.title = N("common.view"), p.value.visible = !0;
81
+ let $ = W({});
82
+ function Q(n) {
83
+ $ = { ...n }, d.value.title = k("common.view"), d.value.visible = !0;
82
84
  }
83
- function P(n) {
85
+ function T(n) {
84
86
  i.selectionRows.value = n;
85
87
  }
86
- function Q(n) {
88
+ function z(n) {
87
89
  i.handleSort(n.prop, n.order);
88
90
  }
89
91
  return i.getList(), (n, e) => {
90
- const g = u("el-input"), m = u("el-form-item"), s = u("el-col"), z = u("jmash-select"), _ = u("el-button"), $ = u("el-row"), T = u("el-form"), B = u("jmash-column-select"), O = u("jmash-table"), I = u("jmash-pagination"), L = u("el-card"), A = W("hasPerm");
91
- return w(), C("div", Z, [
92
- y("div", x, [
93
- o(T, {
92
+ const g = u("el-input"), p = u("el-form-item"), s = u("el-col"), C = u("jmash-select"), F = u("el-button"), _ = u("el-row"), P = u("el-form"), B = u("jmash-column-select"), I = u("jmash-table"), A = u("jmash-pagination"), L = u("el-card"), E = G("hasPerm");
93
+ return w(), S("div", le, [
94
+ N("div", oe, [
95
+ o(P, {
94
96
  ref_key: "queryFormRef",
95
- ref: U,
97
+ ref: q,
96
98
  model: r.value,
97
99
  inline: !0
98
100
  }, {
99
101
  default: t(() => [
100
- o($, null, {
102
+ o(_, null, {
101
103
  default: t(() => [
102
104
  o(s, { span: 6 }, {
103
105
  default: t(() => [
104
- o(m, {
106
+ o(p, {
105
107
  label: n.$t("itsmFlowReckoning.contractName"),
106
108
  prop: "likeContractName"
107
109
  }, {
@@ -110,7 +112,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
110
112
  modelValue: r.value.likeContractName,
111
113
  "onUpdate:modelValue": e[0] || (e[0] = (l) => r.value.likeContractName = l),
112
114
  placeholder: n.$t("itsmFlowReckoning.contractNameRequired"),
113
- onKeyup: e[1] || (e[1] = d((l) => a(i).handleQuery(), ["enter"])),
115
+ onKeyup: e[1] || (e[1] = m((l) => a(i).handleQuery(), ["enter"])),
114
116
  class: "!w-[203px]"
115
117
  }, null, 8, ["modelValue", "placeholder"])
116
118
  ]),
@@ -121,7 +123,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
121
123
  }),
122
124
  o(s, { span: 6 }, {
123
125
  default: t(() => [
124
- o(m, {
126
+ o(p, {
125
127
  label: n.$t("itsmFlowReckoning.contractNo"),
126
128
  prop: "likeContractNo"
127
129
  }, {
@@ -130,7 +132,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
130
132
  modelValue: r.value.likeContractNo,
131
133
  "onUpdate:modelValue": e[2] || (e[2] = (l) => r.value.likeContractNo = l),
132
134
  placeholder: n.$t("itsmFlowReckoning.contractNoRequired"),
133
- onKeyup: e[3] || (e[3] = d((l) => a(i).handleQuery(), ["enter"])),
135
+ onKeyup: e[3] || (e[3] = m((l) => a(i).handleQuery(), ["enter"])),
134
136
  class: "!w-[203px]"
135
137
  }, null, 8, ["modelValue", "placeholder"])
136
138
  ]),
@@ -141,7 +143,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
141
143
  }),
142
144
  o(s, { span: 6 }, {
143
145
  default: t(() => [
144
- o(m, {
146
+ o(p, {
145
147
  label: n.$t("itsmFlowReckoning.acceptanceNo"),
146
148
  prop: "acceptanceNo"
147
149
  }, {
@@ -150,7 +152,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
150
152
  modelValue: r.value.acceptanceNo,
151
153
  "onUpdate:modelValue": e[4] || (e[4] = (l) => r.value.acceptanceNo = l),
152
154
  placeholder: n.$t("itsmFlowReckoning.acceptanceNoRequireds"),
153
- onKeyup: e[5] || (e[5] = d((l) => a(i).handleQuery(), ["enter"])),
155
+ onKeyup: e[5] || (e[5] = m((l) => a(i).handleQuery(), ["enter"])),
154
156
  class: "!w-[203px]"
155
157
  }, null, 8, ["modelValue", "placeholder"])
156
158
  ]),
@@ -161,7 +163,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
161
163
  }),
162
164
  o(s, { span: 6 }, {
163
165
  default: t(() => [
164
- o(m, {
166
+ o(p, {
165
167
  label: n.$t("itsmFlowReckoning.orderNo"),
166
168
  prop: "orderNo"
167
169
  }, {
@@ -170,7 +172,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
170
172
  modelValue: r.value.orderNo,
171
173
  "onUpdate:modelValue": e[6] || (e[6] = (l) => r.value.orderNo = l),
172
174
  placeholder: n.$t("itsmFlowReckoning.orderNoRequireds"),
173
- onKeyup: e[7] || (e[7] = d((l) => a(i).handleQuery(), ["enter"])),
175
+ onKeyup: e[7] || (e[7] = m((l) => a(i).handleQuery(), ["enter"])),
174
176
  class: "!w-[203px]"
175
177
  }, null, 8, ["modelValue", "placeholder"])
176
178
  ]),
@@ -181,7 +183,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
181
183
  }),
182
184
  o(s, { span: 6 }, {
183
185
  default: t(() => [
184
- o(m, {
186
+ o(p, {
185
187
  label: n.$t("itsmFlowReckoning.reckoningNo"),
186
188
  prop: "reckoningNo"
187
189
  }, {
@@ -190,7 +192,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
190
192
  modelValue: r.value.reckoningNo,
191
193
  "onUpdate:modelValue": e[8] || (e[8] = (l) => r.value.reckoningNo = l),
192
194
  placeholder: n.$t("itsmFlowReckoning.reckoningNoRequireds"),
193
- onKeyup: e[9] || (e[9] = d((l) => a(i).handleQuery(), ["enter"])),
195
+ onKeyup: e[9] || (e[9] = m((l) => a(i).handleQuery(), ["enter"])),
194
196
  class: "!w-[203px]"
195
197
  }, null, 8, ["modelValue", "placeholder"])
196
198
  ]),
@@ -201,17 +203,40 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
201
203
  }),
202
204
  o(s, { span: 6 }, {
203
205
  default: t(() => [
204
- o(m, {
206
+ o(p, {
207
+ label: n.$t("itsmFlowReckoning.serviceOrg"),
208
+ prop: "likeServiceOrg"
209
+ }, {
210
+ default: t(() => [
211
+ o(C, {
212
+ modelValue: r.value.serviceOrg,
213
+ "onUpdate:modelValue": e[10] || (e[10] = (l) => r.value.serviceOrg = l),
214
+ placeholder: n.$t("itsmFlowAcceptance.serviceOrgRequired"),
215
+ data: a(R).values,
216
+ clearable: "",
217
+ filterable: "",
218
+ onKeyup: e[11] || (e[11] = m((l) => a(i).handleQuery(), ["enter"])),
219
+ class: "!w-[203px]"
220
+ }, null, 8, ["modelValue", "placeholder", "data"])
221
+ ]),
222
+ _: 1
223
+ }, 8, ["label"])
224
+ ]),
225
+ _: 1
226
+ }),
227
+ o(s, { span: 6 }, {
228
+ default: t(() => [
229
+ o(p, {
205
230
  label: n.$t("itsmFlowAcceptance.applyStatus"),
206
231
  prop: "applyStatus"
207
232
  }, {
208
233
  default: t(() => [
209
- o(z, {
234
+ o(C, {
210
235
  modelValue: r.value.applyStatus,
211
- "onUpdate:modelValue": e[10] || (e[10] = (l) => r.value.applyStatus = l),
236
+ "onUpdate:modelValue": e[12] || (e[12] = (l) => r.value.applyStatus = l),
212
237
  placeholder: n.$t("itsmFlowAcceptance.applyStatusRequired"),
213
- data: a(k).applyStatusEnum.values,
214
- onKeyup: e[11] || (e[11] = d((l) => a(i).handleQuery(), ["enter"]))
238
+ data: a(V).applyStatusEnum.values,
239
+ onKeyup: e[13] || (e[13] = m((l) => a(i).handleQuery(), ["enter"]))
215
240
  }, null, 8, ["modelValue", "placeholder", "data"])
216
241
  ]),
217
242
  _: 1
@@ -219,24 +244,24 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
219
244
  ]),
220
245
  _: 1
221
246
  }),
222
- o(s, { span: 12 }, {
247
+ o(s, { span: 6 }, {
223
248
  default: t(() => [
224
- o(m, { class: "search-btn" }, {
249
+ o(p, { class: "search-btn" }, {
225
250
  default: t(() => [
226
- o(_, {
251
+ o(F, {
227
252
  type: "primary",
228
- onClick: e[12] || (e[12] = (l) => a(i).handleQuery())
253
+ onClick: e[14] || (e[14] = (l) => a(i).handleQuery())
229
254
  }, {
230
255
  default: t(() => [
231
- V(v(n.$t("common.search")), 1)
256
+ y(v(n.$t("common.search")), 1)
232
257
  ]),
233
258
  _: 1
234
259
  }),
235
- o(_, {
236
- onClick: e[13] || (e[13] = (l) => a(i).resetQuery())
260
+ o(F, {
261
+ onClick: e[15] || (e[15] = (l) => a(i).resetQuery())
237
262
  }, {
238
263
  default: t(() => [
239
- V(v(n.$t("common.reset")), 1)
264
+ y(v(n.$t("common.reset")), 1)
240
265
  ]),
241
266
  _: 1
242
267
  })
@@ -258,7 +283,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
258
283
  class: "table-container"
259
284
  }, {
260
285
  header: t(() => [
261
- o($, null, {
286
+ o(_, null, {
262
287
  default: t(() => [
263
288
  o(s, { span: 17 }),
264
289
  o(s, {
@@ -268,7 +293,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
268
293
  default: t(() => [
269
294
  o(B, {
270
295
  modelValue: a(c),
271
- "onUpdate:modelValue": e[14] || (e[14] = (l) => S(c) ? c.value = l : c = l),
296
+ "onUpdate:modelValue": e[16] || (e[16] = (l) => O(c) ? c.value = l : c = l),
272
297
  "label-name": "itsm-flow-reckoning"
273
298
  }, null, 8, ["modelValue"])
274
299
  ]),
@@ -279,42 +304,42 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
279
304
  })
280
305
  ]),
281
306
  footer: t(() => [
282
- a(f) > 0 ? (w(), F(I, {
307
+ a(f) > 0 ? (w(), h(A, {
283
308
  key: 0,
284
309
  total: a(f),
285
- "onUpdate:total": e[15] || (e[15] = (l) => S(f) ? f.value = l : null),
310
+ "onUpdate:total": e[17] || (e[17] = (l) => O(f) ? f.value = l : null),
286
311
  "current-page": r.value.curPage,
287
- "onUpdate:currentPage": e[16] || (e[16] = (l) => r.value.curPage = l),
312
+ "onUpdate:currentPage": e[18] || (e[18] = (l) => r.value.curPage = l),
288
313
  "page-size": r.value.pageSize,
289
- "onUpdate:pageSize": e[17] || (e[17] = (l) => r.value.pageSize = l),
290
- onPagination: e[18] || (e[18] = (l) => a(i).getList())
291
- }, null, 8, ["total", "current-page", "page-size"])) : h("", !0)
314
+ "onUpdate:pageSize": e[19] || (e[19] = (l) => r.value.pageSize = l),
315
+ onPagination: e[20] || (e[20] = (l) => a(i).getList())
316
+ }, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
292
317
  ]),
293
318
  default: t(() => [
294
- o(O, {
319
+ o(I, {
295
320
  ref_key: "multipleTableRef",
296
- ref: D,
321
+ ref: U,
297
322
  "row-key": "reckoningId",
298
323
  "list-loading": a(j),
299
- data: a(q),
324
+ data: a(K),
300
325
  "table-label": a(c),
301
- onSelectionChange: P,
302
- onSortChange: Q
326
+ onSelectionChange: T,
327
+ onSortChange: z
303
328
  }, {
304
329
  entrustName: t((l) => [
305
- y("span", null, v(a(k).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
330
+ N("span", null, v(a(V).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
306
331
  ]),
307
332
  serviceOrg: t((l) => [
308
- y("span", null, v(a(k).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
333
+ N("span", null, v(a(V).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
309
334
  ]),
310
335
  operation: t((l) => [
311
- G((w(), C("span", {
336
+ J((w(), S("span", {
312
337
  class: "el-button-color",
313
- onClick: (oe) => K(l.data.row)
338
+ onClick: (ae) => Q(l.data.row)
314
339
  }, [
315
- V(v(n.$t("common.view")), 1)
316
- ], 8, ee)), [
317
- [A, ["itsmflow:itsm_flow_reckoning:view"]]
340
+ y(v(n.$t("common.view")), 1)
341
+ ], 8, te)), [
342
+ [E, ["itsmflow:itsm_flow_reckoning:view"]]
318
343
  ])
319
344
  ]),
320
345
  _: 1
@@ -322,18 +347,18 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
322
347
  ]),
323
348
  _: 1
324
349
  }),
325
- p.value.visible ? (w(), F(Y, {
350
+ d.value.visible ? (w(), h(ee, {
326
351
  key: 0,
327
- modelValue: p.value.visible,
328
- "onUpdate:modelValue": e[19] || (e[19] = (l) => p.value.visible = l),
329
- title: p.value.title,
330
- "entity-key": a(R),
352
+ modelValue: d.value.visible,
353
+ "onUpdate:modelValue": e[21] || (e[21] = (l) => d.value.visible = l),
354
+ title: d.value.title,
355
+ "entity-key": a($),
331
356
  width: "900px"
332
- }, null, 8, ["modelValue", "title", "entity-key"])) : h("", !0)
357
+ }, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
333
358
  ]);
334
359
  };
335
360
  }
336
361
  });
337
362
  export {
338
- se as default
363
+ de as default
339
364
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as le, mergeModels as oe, ref as f, useModel as ne, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as j, createVNode as e, withCtx as t, createElementVNode as n, createTextVNode as r, toDisplayString as s, unref as b, createCommentVNode as g, withDirectives as L, vShow as q, createBlock as z, renderList as ae } from "vue";
2
2
  import "element-plus";
3
3
  import { u as se } from "./index-PafaMNgK.mjs";
4
- import { D as y, a as h, C as $, b as ue } from "./index-DVDOqO_3.mjs";
4
+ import { D as y, a as h, C as $, b as ue } from "./index-Cgbv4Ijf.mjs";
5
5
  import "jmash-core";
6
6
  import { useI18n as re } from "vue-i18n";
7
7
  import { F as ie } from "./FileSaver.min-5d27MsC6.mjs";
@@ -1,10 +1,10 @@
1
- import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as O, resolveComponent as i, createElementBlock as C, openBlock as g, Fragment as L, createVNode as l, createElementVNode as r, withCtx as t, unref as s, createBlock as re, createCommentVNode as ue, createTextVNode as V, toDisplayString as S, renderList as ie } from "vue";
1
+ import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as M, resolveComponent as i, createElementBlock as C, openBlock as g, Fragment as O, createVNode as l, createElementVNode as r, withCtx as t, unref as s, createBlock as re, createCommentVNode as ue, createTextVNode as V, toDisplayString as L, renderList as ie } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as me } from "vue-i18n";
4
4
  import { u as ce } from "./index-PafaMNgK.mjs";
5
- import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-DVDOqO_3.mjs";
5
+ import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-Cgbv4Ijf.mjs";
6
6
  import { useUserStore as be } from "jmash-core";
7
- import { E as q } from "./el-message-DawVzOVQ.mjs";
7
+ import { E as S } from "./el-message-DawVzOVQ.mjs";
8
8
  const Ae = /* @__PURE__ */ ne({
9
9
  __name: "index",
10
10
  props: /* @__PURE__ */ se({
@@ -18,24 +18,24 @@ const Ae = /* @__PURE__ */ ne({
18
18
  modelModifiers: {}
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
- setup(U, { expose: E }) {
22
- const { t: h } = me(), D = be(), I = p(!1), R = p(), j = p([]), v = p([]), c = p([]), b = p([]), y = new pe({
21
+ setup(q, { expose: E }) {
22
+ const { t: h } = me(), U = be(), I = p(!1), D = p(), R = p([]), v = p([]), c = p([]), b = p([]), _ = new pe({
23
23
  applyStatus: w.applyStatus.finished
24
24
  });
25
- y.useValues();
26
- const _ = new fe({
25
+ _.useValues();
26
+ const y = new fe({
27
27
  userType: w.userType.companyManager
28
28
  });
29
- _.useValues(), new ve({}).useValues(), F.orgIdBizDict.useValues();
29
+ y.useValues(), new ve({}).useValues(), F.orgIdBizDict.useValues();
30
30
  function T() {
31
31
  var e;
32
- const a = (e = D.user.userJobs[0]) == null ? void 0 : e.deptId;
32
+ const a = (e = U.user.userJobs[0]) == null ? void 0 : e.deptId;
33
33
  if (!a) {
34
- q.warning("当前用户缺少岗位信息,无法查询验收组长");
34
+ S.warning("当前用户缺少岗位信息,无法查询验收组长");
35
35
  return;
36
36
  }
37
37
  N.findHeadman({
38
- tenant: D.user.tenant,
38
+ tenant: U.user.tenant,
39
39
  deptId: a,
40
40
  jobCode: w.jobCode.groupLeader
41
41
  }).then(({ data: n }) => {
@@ -44,16 +44,16 @@ const Ae = /* @__PURE__ */ ne({
44
44
  });
45
45
  }
46
46
  T();
47
- const A = U, B = p({
47
+ const A = q, j = p({
48
48
  curPage: 1,
49
49
  pageSize: 10,
50
50
  acceptanceId: A.task.businessKey
51
- }), f = de(U, "modelValue"), z = p();
52
- let o = O({
51
+ }), f = de(q, "modelValue"), B = p();
52
+ let o = M({
53
53
  requestId: Math.random() * 10 + ""
54
54
  });
55
55
  function K() {
56
- I.value = !0, R.value.clearFileList();
56
+ I.value = !0, D.value.clearFileList();
57
57
  }
58
58
  function P(a, e) {
59
59
  c == null || c.value.splice(a, 1), b.value = b.value.filter(
@@ -67,7 +67,7 @@ const Ae = /* @__PURE__ */ ne({
67
67
  };
68
68
  c == null || c.value.push(e), c.value = [...new Set(c.value)], b.value.push(e);
69
69
  }
70
- const W = O({
70
+ const W = M({
71
71
  orderNo: [
72
72
  {
73
73
  required: !0,
@@ -87,13 +87,13 @@ const Ae = /* @__PURE__ */ ne({
87
87
  changeModel: () => Y()
88
88
  });
89
89
  function J(a) {
90
- const e = y.values.find(
90
+ const e = _.values.find(
91
91
  (n) => n.key === a
92
92
  );
93
93
  o.contractName = (e == null ? void 0 : e.contractName) ?? "", o.contractNo = (e == null ? void 0 : e.contractNo) ?? "", o.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", o.entrustName = (e == null ? void 0 : e.entrustName) ?? "", o.serviceContent = (e == null ? void 0 : e.workContent) ?? "";
94
94
  }
95
95
  function G() {
96
- N.findFilesList({ actionId: B.value.acceptanceId }).then(({ data: a }) => {
96
+ N.findFilesList({ actionId: j.value.acceptanceId }).then(({ data: a }) => {
97
97
  c.value = a.results, b.value = (a.results || []).map((e) => ({
98
98
  fileName: e.fileName,
99
99
  fileId: e.fileId,
@@ -102,13 +102,13 @@ const Ae = /* @__PURE__ */ ne({
102
102
  });
103
103
  }
104
104
  function Q() {
105
- N.findById({ acceptanceId: B.value.acceptanceId }).then(({ data: a }) => {
105
+ N.findById({ acceptanceId: j.value.acceptanceId }).then(({ data: a }) => {
106
106
  Object.assign(o, a), v.value = typeof a.membersId == "string" ? a.membersId.split(",") || [] : [];
107
107
  }), G();
108
108
  }
109
109
  function X() {
110
- j.value = v.value.map((a) => {
111
- const e = _.values.find(
110
+ R.value = v.value.map((a) => {
111
+ const e = y.values.find(
112
112
  (n) => n.key === a
113
113
  );
114
114
  return {
@@ -123,22 +123,19 @@ const Ae = /* @__PURE__ */ ne({
123
123
  { key: "false", value: "不同意" }
124
124
  ], f.value.varName = "approved", f.value.module = "", f.value.module = w.MODULE_ITSMFLOW), new Promise((a, e) => {
125
125
  var n;
126
- (n = z.value) == null || n.validate((m) => {
126
+ (n = B.value) == null || n.validate((m) => {
127
127
  if (m) {
128
128
  if (f.value) {
129
129
  if (f.value.comment = "", X(), v.value.length === 0) {
130
- q.warning(h("itsmFlowAcceptance.membersRequired"));
130
+ S.warning(h("itsmFlowAcceptance.membersRequired"));
131
131
  return;
132
132
  }
133
133
  o.requestId = Math.random() * 10 + "", N.save({
134
134
  ...o,
135
- members: j.value,
135
+ members: R.value,
136
136
  files: b.value
137
137
  }).then((u) => {
138
- u.status === 200 ? a(!0) : (q({
139
- message: "保存失败,请联系管理员!",
140
- type: "error"
141
- }), e(!1));
138
+ u.status === 200 ? a(!0) : e(!1);
142
139
  });
143
140
  }
144
141
  } else
@@ -148,7 +145,7 @@ const Ae = /* @__PURE__ */ ne({
148
145
  }
149
146
  return (a, e) => {
150
147
  const n = i("el-col"), m = i("el-input"), u = i("el-form-item"), k = i("jmash-select"), Z = i("jmash-dict-select"), $ = i("el-row"), x = i("el-button"), ee = i("CircleClose"), le = i("el-icon"), ae = i("jmash-enum-radio"), te = i("el-form"), oe = i("jmash-multi-upload");
151
- return g(), C(L, null, [
148
+ return g(), C(O, null, [
152
149
  l(n, { span: 24 }, {
153
150
  default: t(() => e[12] || (e[12] = [
154
151
  r("div", { class: "title" }, "山西云时代技术有限公司大数据中心分公司项目验收书", -1)
@@ -158,7 +155,7 @@ const Ae = /* @__PURE__ */ ne({
158
155
  }),
159
156
  l(te, {
160
157
  ref_key: "taskFormRef",
161
- ref: z,
158
+ ref: B,
162
159
  model: s(o),
163
160
  "label-width": "150px",
164
161
  rules: W,
@@ -214,7 +211,7 @@ const Ae = /* @__PURE__ */ ne({
214
211
  modelValue: s(o).orderNo,
215
212
  "onUpdate:modelValue": e[2] || (e[2] = (d) => s(o).orderNo = d),
216
213
  placeholder: a.$t("itsmFlowAcceptance.orderIdRequired"),
217
- data: s(y).values,
214
+ data: s(_).values,
218
215
  clearable: "",
219
216
  filterable: "",
220
217
  class: "w-full",
@@ -325,7 +322,7 @@ const Ae = /* @__PURE__ */ ne({
325
322
  modelValue: v.value,
326
323
  "onUpdate:modelValue": e[7] || (e[7] = (d) => v.value = d),
327
324
  placeholder: a.$t("itsmFlowAcceptance.membersRequired"),
328
- data: s(_).values,
325
+ data: s(y).values,
329
326
  clearable: "",
330
327
  multiple: "",
331
328
  filterable: "",
@@ -353,7 +350,7 @@ const Ae = /* @__PURE__ */ ne({
353
350
  onClick: K
354
351
  }, {
355
352
  default: t(() => [
356
- V(S(a.$t("common.uploadFiles")), 1)
353
+ V(L(a.$t("common.uploadFiles")), 1)
357
354
  ]),
358
355
  _: 1
359
356
  }, 8, ["icon"])
@@ -362,15 +359,15 @@ const Ae = /* @__PURE__ */ ne({
362
359
  }, 8, ["label"]),
363
360
  l(u, null, {
364
361
  default: t(() => [
365
- (g(!0), C(L, null, ie(c.value, (d, M) => (g(), C("div", {
366
- key: M,
362
+ (g(!0), C(O, null, ie(c.value, (d, z) => (g(), C("div", {
363
+ key: z,
367
364
  class: "files-list"
368
365
  }, [
369
- V(S(d.fileName) + " ", 1),
366
+ V(L(d.fileName) + " ", 1),
370
367
  l(le, {
371
368
  size: "16",
372
369
  class: "icon-right",
373
- onClick: (ge) => P(M, d)
370
+ onClick: (ge) => P(z, d)
374
371
  }, {
375
372
  default: t(() => [
376
373
  l(ee)
@@ -504,7 +501,7 @@ const Ae = /* @__PURE__ */ ne({
504
501
  e[15] || (e[15] = r("div", { class: "with-end" }, "注:验收书编号在验收通过后自动生成。", -1)),
505
502
  l(oe, {
506
503
  ref_key: "uploadRef",
507
- ref: R,
504
+ ref: D,
508
505
  modelValue: I.value,
509
506
  "onUpdate:modelValue": e[11] || (e[11] = (d) => I.value = d),
510
507
  onUploadFileList: H