xyvcard-itsm-flow 0.0.16 → 0.0.17

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,22 +1,22 @@
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";
1
+ import { defineComponent as E, ref as b, reactive as H, resolveComponent as u, resolveDirective as W, createElementBlock as F, openBlock as k, createElementVNode as y, createVNode as o, createBlock as _, createCommentVNode as S, withCtx as t, withKeys as m, unref as r, createTextVNode as V, toDisplayString as g, withDirectives as G, isRef as h } from "vue";
2
2
  import { useTableHooks as J } from "jmash-core";
3
3
  import { useI18n as M } from "vue-i18n";
4
4
  import { i as X } from "./common-Cwl5jzlM.mjs";
5
- import { D as k } from "./index-DVDOqO_3.mjs";
5
+ import { D as w } from "./index-DVDOqO_3.mjs";
6
6
  import { _ as Y } from "./info.vue_vue_type_script_setup_true_lang-BFT23MNt.mjs";
7
7
  const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["onClick"], se = /* @__PURE__ */ E({
8
8
  __name: "index",
9
9
  setup(le) {
10
- const { t: N } = M(), r = b({}), {
10
+ const { t: N } = M(), a = b({}), {
11
11
  tableHooks: i,
12
- multipleTableRef: D,
13
- queryFormRef: U,
14
- listLoading: j,
15
- tableData: q,
12
+ multipleTableRef: U,
13
+ queryFormRef: D,
14
+ listLoading: q,
15
+ tableData: O,
16
16
  total: f
17
- } = J(N, X, r);
18
- k.orgIdBizDict.useValues();
19
- let c = b([
17
+ } = J(N, X, a);
18
+ w.orgIdBizDict.useValues();
19
+ let v = b([
20
20
  {
21
21
  label: "itsmFlowReckoning.contractName",
22
22
  prop: "contractName",
@@ -72,45 +72,45 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
72
72
  isColumn: !0
73
73
  }
74
74
  ]);
75
- const p = b({
75
+ const d = b({
76
76
  title: N("common.view"),
77
77
  visible: !1
78
78
  });
79
79
  let R = H({});
80
- function K(n) {
81
- R = { ...n }, p.value.title = N("common.view"), p.value.visible = !0;
80
+ function j(n) {
81
+ R = { ...n }, d.value.title = N("common.view"), d.value.visible = !0;
82
82
  }
83
- function P(n) {
83
+ function K(n) {
84
84
  i.selectionRows.value = n;
85
85
  }
86
86
  function Q(n) {
87
87
  i.handleSort(n.prop, n.order);
88
88
  }
89
89
  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, [
90
+ const c = u("el-input"), p = u("el-form-item"), s = u("el-col"), P = u("jmash-select"), $ = u("el-button"), C = u("el-row"), z = u("el-form"), T = u("jmash-column-select"), B = u("jmash-table"), I = u("jmash-pagination"), L = u("el-card"), A = W("hasPerm");
91
+ return k(), F("div", Z, [
92
92
  y("div", x, [
93
- o(T, {
93
+ o(z, {
94
94
  ref_key: "queryFormRef",
95
- ref: U,
96
- model: r.value,
95
+ ref: D,
96
+ model: a.value,
97
97
  inline: !0
98
98
  }, {
99
99
  default: t(() => [
100
- o($, null, {
100
+ o(C, null, {
101
101
  default: t(() => [
102
102
  o(s, { span: 6 }, {
103
103
  default: t(() => [
104
- o(m, {
104
+ o(p, {
105
105
  label: n.$t("itsmFlowReckoning.contractName"),
106
106
  prop: "likeContractName"
107
107
  }, {
108
108
  default: t(() => [
109
- o(g, {
110
- modelValue: r.value.likeContractName,
111
- "onUpdate:modelValue": e[0] || (e[0] = (l) => r.value.likeContractName = l),
109
+ o(c, {
110
+ modelValue: a.value.likeContractName,
111
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => a.value.likeContractName = l),
112
112
  placeholder: n.$t("itsmFlowReckoning.contractNameRequired"),
113
- onKeyup: e[1] || (e[1] = d((l) => a(i).handleQuery(), ["enter"])),
113
+ onKeyup: e[1] || (e[1] = m((l) => r(i).handleQuery(), ["enter"])),
114
114
  class: "!w-[203px]"
115
115
  }, null, 8, ["modelValue", "placeholder"])
116
116
  ]),
@@ -121,16 +121,16 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
121
121
  }),
122
122
  o(s, { span: 6 }, {
123
123
  default: t(() => [
124
- o(m, {
124
+ o(p, {
125
125
  label: n.$t("itsmFlowReckoning.contractNo"),
126
126
  prop: "likeContractNo"
127
127
  }, {
128
128
  default: t(() => [
129
- o(g, {
130
- modelValue: r.value.likeContractNo,
131
- "onUpdate:modelValue": e[2] || (e[2] = (l) => r.value.likeContractNo = l),
129
+ o(c, {
130
+ modelValue: a.value.likeContractNo,
131
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => a.value.likeContractNo = l),
132
132
  placeholder: n.$t("itsmFlowReckoning.contractNoRequired"),
133
- onKeyup: e[3] || (e[3] = d((l) => a(i).handleQuery(), ["enter"])),
133
+ onKeyup: e[3] || (e[3] = m((l) => r(i).handleQuery(), ["enter"])),
134
134
  class: "!w-[203px]"
135
135
  }, null, 8, ["modelValue", "placeholder"])
136
136
  ]),
@@ -141,16 +141,16 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
141
141
  }),
142
142
  o(s, { span: 6 }, {
143
143
  default: t(() => [
144
- o(m, {
144
+ o(p, {
145
145
  label: n.$t("itsmFlowReckoning.acceptanceNo"),
146
146
  prop: "acceptanceNo"
147
147
  }, {
148
148
  default: t(() => [
149
- o(g, {
150
- modelValue: r.value.acceptanceNo,
151
- "onUpdate:modelValue": e[4] || (e[4] = (l) => r.value.acceptanceNo = l),
149
+ o(c, {
150
+ modelValue: a.value.acceptanceNo,
151
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => a.value.acceptanceNo = l),
152
152
  placeholder: n.$t("itsmFlowReckoning.acceptanceNoRequireds"),
153
- onKeyup: e[5] || (e[5] = d((l) => a(i).handleQuery(), ["enter"])),
153
+ onKeyup: e[5] || (e[5] = m((l) => r(i).handleQuery(), ["enter"])),
154
154
  class: "!w-[203px]"
155
155
  }, null, 8, ["modelValue", "placeholder"])
156
156
  ]),
@@ -161,16 +161,16 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
161
161
  }),
162
162
  o(s, { span: 6 }, {
163
163
  default: t(() => [
164
- o(m, {
164
+ o(p, {
165
165
  label: n.$t("itsmFlowReckoning.orderNo"),
166
166
  prop: "orderNo"
167
167
  }, {
168
168
  default: t(() => [
169
- o(g, {
170
- modelValue: r.value.orderNo,
171
- "onUpdate:modelValue": e[6] || (e[6] = (l) => r.value.orderNo = l),
169
+ o(c, {
170
+ modelValue: a.value.orderNo,
171
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => a.value.orderNo = l),
172
172
  placeholder: n.$t("itsmFlowReckoning.orderNoRequireds"),
173
- onKeyup: e[7] || (e[7] = d((l) => a(i).handleQuery(), ["enter"])),
173
+ onKeyup: e[7] || (e[7] = m((l) => r(i).handleQuery(), ["enter"])),
174
174
  class: "!w-[203px]"
175
175
  }, null, 8, ["modelValue", "placeholder"])
176
176
  ]),
@@ -181,16 +181,16 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
181
181
  }),
182
182
  o(s, { span: 6 }, {
183
183
  default: t(() => [
184
- o(m, {
184
+ o(p, {
185
185
  label: n.$t("itsmFlowReckoning.reckoningNo"),
186
186
  prop: "reckoningNo"
187
187
  }, {
188
188
  default: t(() => [
189
- o(g, {
190
- modelValue: r.value.reckoningNo,
191
- "onUpdate:modelValue": e[8] || (e[8] = (l) => r.value.reckoningNo = l),
189
+ o(c, {
190
+ modelValue: a.value.reckoningNo,
191
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => a.value.reckoningNo = l),
192
192
  placeholder: n.$t("itsmFlowReckoning.reckoningNoRequireds"),
193
- onKeyup: e[9] || (e[9] = d((l) => a(i).handleQuery(), ["enter"])),
193
+ onKeyup: e[9] || (e[9] = m((l) => r(i).handleQuery(), ["enter"])),
194
194
  class: "!w-[203px]"
195
195
  }, null, 8, ["modelValue", "placeholder"])
196
196
  ]),
@@ -201,17 +201,37 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
201
201
  }),
202
202
  o(s, { span: 6 }, {
203
203
  default: t(() => [
204
- o(m, {
204
+ o(p, {
205
+ label: n.$t("itsmFlowReckoning.serviceOrg"),
206
+ prop: "likeServiceOrg"
207
+ }, {
208
+ default: t(() => [
209
+ o(c, {
210
+ modelValue: a.value.likeServiceOrg,
211
+ "onUpdate:modelValue": e[10] || (e[10] = (l) => a.value.likeServiceOrg = l),
212
+ placeholder: n.$t("itsmFlowReckoning.serviceOrgRequired"),
213
+ onKeyup: e[11] || (e[11] = m((l) => r(i).handleQuery(), ["enter"])),
214
+ class: "!w-[203px]"
215
+ }, null, 8, ["modelValue", "placeholder"])
216
+ ]),
217
+ _: 1
218
+ }, 8, ["label"])
219
+ ]),
220
+ _: 1
221
+ }),
222
+ o(s, { span: 6 }, {
223
+ default: t(() => [
224
+ o(p, {
205
225
  label: n.$t("itsmFlowAcceptance.applyStatus"),
206
226
  prop: "applyStatus"
207
227
  }, {
208
228
  default: t(() => [
209
- o(z, {
210
- modelValue: r.value.applyStatus,
211
- "onUpdate:modelValue": e[10] || (e[10] = (l) => r.value.applyStatus = l),
229
+ o(P, {
230
+ modelValue: a.value.applyStatus,
231
+ "onUpdate:modelValue": e[12] || (e[12] = (l) => a.value.applyStatus = l),
212
232
  placeholder: n.$t("itsmFlowAcceptance.applyStatusRequired"),
213
- data: a(k).applyStatusEnum.values,
214
- onKeyup: e[11] || (e[11] = d((l) => a(i).handleQuery(), ["enter"]))
233
+ data: r(w).applyStatusEnum.values,
234
+ onKeyup: e[13] || (e[13] = m((l) => r(i).handleQuery(), ["enter"]))
215
235
  }, null, 8, ["modelValue", "placeholder", "data"])
216
236
  ]),
217
237
  _: 1
@@ -219,24 +239,24 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
219
239
  ]),
220
240
  _: 1
221
241
  }),
222
- o(s, { span: 12 }, {
242
+ o(s, { span: 6 }, {
223
243
  default: t(() => [
224
- o(m, { class: "search-btn" }, {
244
+ o(p, { class: "search-btn" }, {
225
245
  default: t(() => [
226
- o(_, {
246
+ o($, {
227
247
  type: "primary",
228
- onClick: e[12] || (e[12] = (l) => a(i).handleQuery())
248
+ onClick: e[14] || (e[14] = (l) => r(i).handleQuery())
229
249
  }, {
230
250
  default: t(() => [
231
- V(v(n.$t("common.search")), 1)
251
+ V(g(n.$t("common.search")), 1)
232
252
  ]),
233
253
  _: 1
234
254
  }),
235
- o(_, {
236
- onClick: e[13] || (e[13] = (l) => a(i).resetQuery())
255
+ o($, {
256
+ onClick: e[15] || (e[15] = (l) => r(i).resetQuery())
237
257
  }, {
238
258
  default: t(() => [
239
- V(v(n.$t("common.reset")), 1)
259
+ V(g(n.$t("common.reset")), 1)
240
260
  ]),
241
261
  _: 1
242
262
  })
@@ -258,7 +278,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
258
278
  class: "table-container"
259
279
  }, {
260
280
  header: t(() => [
261
- o($, null, {
281
+ o(C, null, {
262
282
  default: t(() => [
263
283
  o(s, { span: 17 }),
264
284
  o(s, {
@@ -266,9 +286,9 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
266
286
  class: "container-float"
267
287
  }, {
268
288
  default: t(() => [
269
- o(B, {
270
- modelValue: a(c),
271
- "onUpdate:modelValue": e[14] || (e[14] = (l) => S(c) ? c.value = l : c = l),
289
+ o(T, {
290
+ modelValue: r(v),
291
+ "onUpdate:modelValue": e[16] || (e[16] = (l) => h(v) ? v.value = l : v = l),
272
292
  "label-name": "itsm-flow-reckoning"
273
293
  }, null, 8, ["modelValue"])
274
294
  ]),
@@ -279,40 +299,40 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
279
299
  })
280
300
  ]),
281
301
  footer: t(() => [
282
- a(f) > 0 ? (w(), F(I, {
302
+ r(f) > 0 ? (k(), _(I, {
283
303
  key: 0,
284
- total: a(f),
285
- "onUpdate:total": e[15] || (e[15] = (l) => S(f) ? f.value = l : null),
286
- "current-page": r.value.curPage,
287
- "onUpdate:currentPage": e[16] || (e[16] = (l) => r.value.curPage = l),
288
- "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)
304
+ total: r(f),
305
+ "onUpdate:total": e[17] || (e[17] = (l) => h(f) ? f.value = l : null),
306
+ "current-page": a.value.curPage,
307
+ "onUpdate:currentPage": e[18] || (e[18] = (l) => a.value.curPage = l),
308
+ "page-size": a.value.pageSize,
309
+ "onUpdate:pageSize": e[19] || (e[19] = (l) => a.value.pageSize = l),
310
+ onPagination: e[20] || (e[20] = (l) => r(i).getList())
311
+ }, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
292
312
  ]),
293
313
  default: t(() => [
294
- o(O, {
314
+ o(B, {
295
315
  ref_key: "multipleTableRef",
296
- ref: D,
316
+ ref: U,
297
317
  "row-key": "reckoningId",
298
- "list-loading": a(j),
299
- data: a(q),
300
- "table-label": a(c),
301
- onSelectionChange: P,
318
+ "list-loading": r(q),
319
+ data: r(O),
320
+ "table-label": r(v),
321
+ onSelectionChange: K,
302
322
  onSortChange: Q
303
323
  }, {
304
324
  entrustName: t((l) => [
305
- y("span", null, v(a(k).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
325
+ y("span", null, g(r(w).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
306
326
  ]),
307
327
  serviceOrg: t((l) => [
308
- y("span", null, v(a(k).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
328
+ y("span", null, g(r(w).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
309
329
  ]),
310
330
  operation: t((l) => [
311
- G((w(), C("span", {
331
+ G((k(), F("span", {
312
332
  class: "el-button-color",
313
- onClick: (oe) => K(l.data.row)
333
+ onClick: (oe) => j(l.data.row)
314
334
  }, [
315
- V(v(n.$t("common.view")), 1)
335
+ V(g(n.$t("common.view")), 1)
316
336
  ], 8, ee)), [
317
337
  [A, ["itsmflow:itsm_flow_reckoning:view"]]
318
338
  ])
@@ -322,14 +342,14 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
322
342
  ]),
323
343
  _: 1
324
344
  }),
325
- p.value.visible ? (w(), F(Y, {
345
+ d.value.visible ? (k(), _(Y, {
326
346
  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),
347
+ modelValue: d.value.visible,
348
+ "onUpdate:modelValue": e[21] || (e[21] = (l) => d.value.visible = l),
349
+ title: d.value.title,
350
+ "entity-key": r(R),
331
351
  width: "900px"
332
- }, null, 8, ["modelValue", "title", "entity-key"])) : h("", !0)
352
+ }, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0)
333
353
  ]);
334
354
  };
335
355
  }