xyvcard-itsm-flow 0.0.10 → 0.0.11

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 (37) hide show
  1. package/README.md +51 -51
  2. package/dist/{FileSaver.min-BeKvLuyk.mjs → FileSaver.min-5d27MsC6.mjs} +12 -12
  3. package/dist/{edit-BnJnxvY6.mjs → edit-B6eDlOpi.mjs} +1 -1
  4. package/dist/{edit-D8J1Znw_.mjs → edit-Cfo0JZSs.mjs} +1 -1
  5. package/dist/{edit-har-8Y54.mjs → edit-RoD8ie-7.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs → edit.vue_vue_type_script_setup_true_lang-IEXBlCBV.mjs} +26 -23
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-TXBAzoPS.mjs → edit.vue_vue_type_script_setup_true_lang-e_oZRaYA.mjs} +51 -47
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-QsTI3qOD.mjs → edit.vue_vue_type_script_setup_true_lang-iiu5w8LK.mjs} +222 -214
  9. package/dist/{el-message-CIdVBT5R.mjs → el-message-So7u3ZRi.mjs} +357 -366
  10. package/dist/{index-DugZK_BS.mjs → index-C7wI2ALv.mjs} +13 -13
  11. package/dist/{index-DBIF93AC.mjs → index-C96hiFIm.mjs} +22 -19
  12. package/dist/{index-Cp3csR1g.mjs → index-CC7B9YOg.mjs} +12 -12
  13. package/dist/{index-BjBTIknS.mjs → index-CMbZtOBo.mjs} +211 -203
  14. package/dist/{index-BAHlhmvh.mjs → index-CNIFtVcB.mjs} +95 -92
  15. package/dist/{index-bMREgnhp.mjs → index-CzSzBtpb.mjs} +15 -15
  16. package/dist/{index-CF0oM0UA.mjs → index-D5ZcRr4h.mjs} +26 -22
  17. package/dist/{index-DnFWLmFk.mjs → index-DWuCzfFj.mjs} +21 -18
  18. package/dist/{index-C6XFHtva.mjs → index-m-ohs_8-.mjs} +25 -22
  19. package/dist/{index-DKIrRXT5.mjs → index-nSm5Jecq.mjs} +12 -12
  20. package/dist/index.mjs +1 -1
  21. package/dist/style.css +1 -1
  22. package/dts/api/itsm-flow-entrust/types.d.ts +3 -1
  23. package/dts/api/itsm-flow-entrust-user/types.d.ts +3 -1
  24. package/dts/api/itsm-flow-reckoning/types.d.ts +1 -1
  25. package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +2 -2
  26. package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +2 -2
  27. package/dts/components/TaskItsmFlowEntrust/index.vue.d.ts +2 -2
  28. package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +2 -2
  29. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +2 -2
  30. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +2 -2
  31. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +2 -2
  32. package/dts/views/itsm-flow-acceptance/index.vue.d.ts +1 -1
  33. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +2 -2
  34. package/dts/views/itsm-flow-entrust/index.vue.d.ts +1 -1
  35. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +2 -2
  36. package/dts/views/itsm-flow-reckoning/index.vue.d.ts +1 -1
  37. package/package.json +63 -63
package/README.md CHANGED
@@ -1,51 +1,51 @@
1
- # pnpm publish --no-git-checks
2
- npm config set registry https://registry.npmjs.org/
3
-
4
- # pnpm install
5
- npm config set registry https://registry.npmmirror.com/
6
-
7
-
8
- This template should help get you started developing with Vue 3 in Vite.
9
-
10
- ## Recommended IDE Setup
11
-
12
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13
-
14
- ## Type Support for `.vue` Imports in TS
15
-
16
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
17
-
18
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
19
-
20
- 1. Disable the built-in TypeScript Extension
21
- 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
22
- 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
23
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
24
-
25
- ## Customize configuration
26
-
27
- See [Vite Configuration Reference](https://vitejs.dev/config/).
28
-
29
- ## Project Setup
30
-
31
- ```sh
32
- pnpm install
33
- ```
34
-
35
- ### Compile and Hot-Reload for Development
36
-
37
- ```sh
38
- pnpm dev
39
- ```
40
-
41
- ### Type-Check, Compile and Minify for Production
42
-
43
- ```sh
44
- pnpm build
45
- ```
46
-
47
- ### Lint with [ESLint](https://eslint.org/)
48
-
49
- ```sh
50
- pnpm lint
51
- ```
1
+ # pnpm publish --no-git-checks
2
+ npm config set registry https://registry.npmjs.org/
3
+
4
+ # pnpm install
5
+ npm config set registry https://registry.npmmirror.com/
6
+
7
+
8
+ This template should help get you started developing with Vue 3 in Vite.
9
+
10
+ ## Recommended IDE Setup
11
+
12
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13
+
14
+ ## Type Support for `.vue` Imports in TS
15
+
16
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
17
+
18
+ If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
19
+
20
+ 1. Disable the built-in TypeScript Extension
21
+ 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
22
+ 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
23
+ 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
24
+
25
+ ## Customize configuration
26
+
27
+ See [Vite Configuration Reference](https://vitejs.dev/config/).
28
+
29
+ ## Project Setup
30
+
31
+ ```sh
32
+ pnpm install
33
+ ```
34
+
35
+ ### Compile and Hot-Reload for Development
36
+
37
+ ```sh
38
+ pnpm dev
39
+ ```
40
+
41
+ ### Type-Check, Compile and Minify for Production
42
+
43
+ ```sh
44
+ pnpm build
45
+ ```
46
+
47
+ ### Lint with [ESLint](https://eslint.org/)
48
+
49
+ ```sh
50
+ pnpm lint
51
+ ```
@@ -1,15 +1,15 @@
1
- var c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, h = { exports: {} };
1
+ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, h = { exports: {} };
2
2
  (function(b, j) {
3
3
  (function(p, r) {
4
4
  r();
5
- })(c, function() {
5
+ })(l, function() {
6
6
  function p(e, t) {
7
7
  return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
8
8
  }
9
9
  function r(e, t, i) {
10
10
  var n = new XMLHttpRequest();
11
11
  n.open("GET", e), n.responseType = "blob", n.onload = function() {
12
- d(n.response, t, i);
12
+ f(n.response, t, i);
13
13
  }, n.onerror = function() {
14
14
  console.error("could not download file");
15
15
  }, n.send();
@@ -23,7 +23,7 @@ var c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
23
23
  }
24
24
  return 200 <= t.status && 299 >= t.status;
25
25
  }
26
- function l(e) {
26
+ function c(e) {
27
27
  try {
28
28
  e.dispatchEvent(new MouseEvent("click"));
29
29
  } catch {
@@ -31,13 +31,13 @@ var c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
31
31
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
32
32
  }
33
33
  }
34
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), d = a.saveAs || (typeof window != "object" || window !== a ? function() {
34
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof l == "object" && l.global === l ? l : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), f = a.saveAs || (typeof window != "object" || window !== a ? function() {
35
35
  } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, i) {
36
36
  var n = a.URL || a.webkitURL, o = document.createElement("a");
37
- t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? r(e, t, i) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
37
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? c(o) : v(o.href) ? r(e, t, i) : c(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
38
38
  n.revokeObjectURL(o.href);
39
39
  }, 4e4), setTimeout(function() {
40
- l(o);
40
+ c(o);
41
41
  }, 0));
42
42
  } : "msSaveOrOpenBlob" in navigator ? function(e, t, i) {
43
43
  if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, i), t);
@@ -45,7 +45,7 @@ var c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
45
45
  else {
46
46
  var n = document.createElement("a");
47
47
  n.href = e, n.target = "_blank", setTimeout(function() {
48
- l(n);
48
+ c(n);
49
49
  });
50
50
  }
51
51
  } : function(e, t, i, n) {
@@ -58,13 +58,13 @@ var c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
58
58
  s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
59
59
  }, u.readAsDataURL(e);
60
60
  } else {
61
- var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
62
- n ? n.location = f : location.href = f, n = null, setTimeout(function() {
63
- y.revokeObjectURL(f);
61
+ var y = a.URL || a.webkitURL, d = y.createObjectURL(e);
62
+ n ? n.location = d : location.href = d, n = null, setTimeout(function() {
63
+ y.revokeObjectURL(d);
64
64
  }, 4e4);
65
65
  }
66
66
  });
67
- a.saveAs = d.saveAs = d, b.exports = d;
67
+ a.saveAs = f.saveAs = f, b.exports = f;
68
68
  });
69
69
  })(h);
70
70
  var L = h.exports;
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-QsTI3qOD.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-iiu5w8LK.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-IEXBlCBV.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-TXBAzoPS.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-e_oZRaYA.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as se, mergeModels as z, ref as k, useModel as de, reactive as A, computed as ie, resolveComponent as r, openBlock as w, createBlock as V, withCtx as o, createElementVNode as i, createVNode as t, createTextVNode as b, toDisplayString as g, unref as d, createElementBlock as re, Fragment as ue, renderList as ce, createCommentVNode as me } from "vue";
1
+ import { defineComponent as se, mergeModels as z, ref as k, useModel as de, reactive as A, computed as ie, resolveComponent as r, createBlock as V, openBlock as F, withCtx as o, createVNode as t, createElementVNode as i, unref as d, createElementBlock as re, Fragment as ue, renderList as ce, createTextVNode as b, toDisplayString as g, createCommentVNode as me } from "vue";
2
2
  import { ElMessage as S } from "element-plus";
3
3
  import { useI18n as pe } from "vue-i18n";
4
4
  import { i as I, t as fe, a as be } from "./common-Cwl5jzlM.mjs";
5
- import { g as ve, C as ge, D as $, h as Ne, p as ke, e as he } from "./index-DugZK_BS.mjs";
6
- const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
5
+ import { g as ve, C as ge, D as $, h as Ne, p as ke, e as _e } from "./index-C7wI2ALv.mjs";
6
+ const he = { class: "title" }, Ie = /* @__PURE__ */ se({
7
7
  __name: "edit",
8
8
  props: /* @__PURE__ */ z({
9
9
  entityKey: {
@@ -17,7 +17,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
17
17
  }),
18
18
  emits: /* @__PURE__ */ z(["refresh"], ["update:modelValue"]),
19
19
  setup(C, { emit: M }) {
20
- const { t: N } = pe(), _ = k(), p = de(C, "modelValue"), E = M, U = k([]), h = k({}), y = C, R = new ve({
20
+ const { t: N } = pe(), w = k(), p = de(C, "modelValue"), E = M, U = k([]), _ = k({}), y = C, R = new ve({
21
21
  applyStatus: ge.applyStatus.finished
22
22
  });
23
23
  R.useValues(), $.orgIdBizDict.useValues();
@@ -66,7 +66,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
66
66
  ]
67
67
  });
68
68
  function G() {
69
- he.findList({ actionId: y.entityKey.reckoningId }).then(({ data: l }) => {
69
+ _e.findList({ actionId: y.entityKey.reckoningId }).then(({ data: l }) => {
70
70
  const e = l.results.map(
71
71
  (n) => ({
72
72
  ...n,
@@ -91,7 +91,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
91
91
  }
92
92
  const J = async () => {
93
93
  var l;
94
- await ((l = _.value) == null ? void 0 : l.validate((e) => {
94
+ await ((l = w.value) == null ? void 0 : l.validate((e) => {
95
95
  e && (q(), I.save({
96
96
  ...s,
97
97
  entrustUser: U.value
@@ -104,7 +104,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
104
104
  }));
105
105
  }, Q = async () => {
106
106
  var l;
107
- await ((l = _.value) == null ? void 0 : l.validate((e) => {
107
+ await ((l = w.value) == null ? void 0 : l.validate((e) => {
108
108
  e && (q(), I.submit({
109
109
  ...s,
110
110
  entrustUser: U.value
@@ -128,32 +128,32 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
128
128
  const e = R.values.find(
129
129
  (n) => n.key === l
130
130
  );
131
- s.contractName = (e == null ? void 0 : e.contractName) ?? "", s.contractNo = (e == null ? void 0 : e.contractNo) ?? "", s.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", s.entrustName = (e == null ? void 0 : e.entrustName) ?? "", s.orderNo = (e == null ? void 0 : e.orderNo) ?? "", s.serviceContent = (e == null ? void 0 : e.serviceContent) ?? "", s.entrustId = (e == null ? void 0 : e.entrustId) ?? "", s.acceptanceId = (e == null ? void 0 : e.acceptanceId) ?? "", W(), h.value = new Ne({
131
+ s.contractName = (e == null ? void 0 : e.contractName) ?? "", s.contractNo = (e == null ? void 0 : e.contractNo) ?? "", s.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", s.entrustName = (e == null ? void 0 : e.entrustName) ?? "", s.orderNo = (e == null ? void 0 : e.orderNo) ?? "", s.serviceContent = (e == null ? void 0 : e.serviceContent) ?? "", s.entrustId = (e == null ? void 0 : e.entrustId) ?? "", s.acceptanceId = (e == null ? void 0 : e.acceptanceId) ?? "", W(), _.value = new Ne({
132
132
  actionId: (e == null ? void 0 : e.entrustId) ?? ""
133
- }), h.value.useValues();
133
+ }), _.value.useValues();
134
134
  }
135
135
  function X(l, e) {
136
- const n = h.value.values.find(
136
+ const n = _.value.values.find(
137
137
  (c) => c.key === l
138
138
  );
139
139
  n ? (e.userName = n.value ?? "", e.idNo = n.idNo ?? "", e.cost = Number(n.cost) || 0, e.entrustUserId = n.entrustUserId ?? "") : (e.userName = "", e.idNo = "", e.cost = 0, e.entrustUserId = "");
140
140
  }
141
141
  return (l, e) => {
142
- const n = r("el-col"), c = r("el-input"), m = r("el-form-item"), Y = r("jmash-dict-select"), O = r("jmash-select"), j = r("el-row"), v = r("el-table-column"), Z = r("el-option"), x = r("el-select"), ee = r("el-input-number"), le = r("DeleteFilled"), te = r("el-icon"), oe = r("el-table"), F = r("el-button"), ae = r("el-form"), ne = r("el-dialog");
143
- return w(), V(ne, {
142
+ const n = r("el-col"), c = r("el-input"), m = r("el-form-item"), Y = r("jmash-dict-select"), O = r("jmash-select"), j = r("el-row"), v = r("el-table-column"), Z = r("el-option"), x = r("el-select"), ee = r("el-input-number"), le = r("DeleteFilled"), te = r("el-icon"), oe = r("el-table"), h = r("el-button"), ae = r("el-form"), ne = r("el-dialog");
143
+ return F(), V(ne, {
144
144
  modelValue: p.value,
145
145
  "onUpdate:modelValue": e[8] || (e[8] = (a) => p.value = a),
146
146
  onClose: D
147
147
  }, {
148
148
  footer: o(() => [
149
- i("div", Fe, [
150
- t(F, { onClick: D }, {
149
+ i("div", he, [
150
+ t(h, { onClick: D }, {
151
151
  default: o(() => [
152
152
  b(g(l.$t("common.cancel")), 1)
153
153
  ]),
154
154
  _: 1
155
155
  }),
156
- t(F, {
156
+ t(h, {
157
157
  type: "primary",
158
158
  onClick: J
159
159
  }, {
@@ -162,7 +162,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
162
162
  ]),
163
163
  _: 1
164
164
  }),
165
- t(F, {
165
+ t(h, {
166
166
  type: "primary",
167
167
  onClick: Q
168
168
  }, {
@@ -178,11 +178,12 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
178
178
  default: o(() => e[9] || (e[9] = [
179
179
  i("div", { class: "title" }, "委托服务合同结算清单", -1)
180
180
  ])),
181
- _: 1
181
+ _: 1,
182
+ __: [9]
182
183
  }),
183
184
  t(ae, {
184
185
  ref_key: "itsmFlowReckoningFormRef",
185
- ref: _,
186
+ ref: w,
186
187
  model: d(s),
187
188
  "label-width": "150px",
188
189
  rules: T,
@@ -388,7 +389,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
388
389
  onChange: (u) => X(u, a)
389
390
  }, {
390
391
  default: o(() => [
391
- (w(!0), re(ue, null, ce(h.value.values, (u) => (w(), V(Z, {
392
+ (F(!0), re(ue, null, ce(_.value.values, (u) => (F(), V(Z, {
392
393
  key: u.key,
393
394
  label: u.value,
394
395
  value: u.key
@@ -463,7 +464,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
463
464
  align: "center"
464
465
  }, {
465
466
  default: o((a) => [
466
- a.$index !== 0 ? (w(), V(te, {
467
+ a.$index !== 0 ? (F(), V(te, {
467
468
  key: 0,
468
469
  onClick: (u) => L(a),
469
470
  size: "18",
@@ -481,7 +482,7 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
481
482
  ]),
482
483
  _: 1
483
484
  }, 8, ["data"]),
484
- t(F, {
485
+ t(h, {
485
486
  icon: d(ke),
486
487
  class: "addButton",
487
488
  onClick: P
@@ -525,7 +526,8 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
525
526
  ])
526
527
  ], -1)
527
528
  ])),
528
- _: 1
529
+ _: 1,
530
+ __: [10]
529
531
  }),
530
532
  t(n, {
531
533
  span: 12,
@@ -546,7 +548,8 @@ const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
546
548
  ])
547
549
  ], -1)
548
550
  ])),
549
- _: 1
551
+ _: 1,
552
+ __: [11]
550
553
  })
551
554
  ]),
552
555
  _: 1
@@ -1,9 +1,9 @@
1
- import { defineComponent as ue, mergeModels as L, ref as f, useModel as ie, reactive as M, resolveComponent as i, openBlock as R, createBlock as me, withCtx as a, createElementVNode as r, createVNode as t, createTextVNode as v, toDisplayString as y, unref as d, createElementBlock as T, Fragment as ce, renderList as pe } from "vue";
1
+ import { defineComponent as re, mergeModels as L, ref as f, useModel as ue, reactive as M, resolveComponent as i, createBlock as ie, openBlock as R, withCtx as a, createVNode as t, createElementVNode as r, unref as d, createTextVNode as v, toDisplayString as y, createElementBlock as T, Fragment as me, renderList as ce } from "vue";
2
2
  import { ElMessage as V } from "element-plus";
3
- import { useI18n as fe } from "vue-i18n";
4
- import { I as ve, C as j, U as be, D as A, i as h, u as we } from "./index-DugZK_BS.mjs";
5
- import { useUserStore as ge } from "jmash-core";
6
- const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
3
+ import { useI18n as pe } from "vue-i18n";
4
+ import { I as fe, C as j, U as ve, D as A, i as h, u as be } from "./index-C7wI2ALv.mjs";
5
+ import { useUserStore as we } from "jmash-core";
6
+ const ge = { class: "title" }, Ie = /* @__PURE__ */ re({
7
7
  __name: "edit",
8
8
  props: /* @__PURE__ */ L({
9
9
  entityKey: {
@@ -17,25 +17,25 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
17
17
  }),
18
18
  emits: /* @__PURE__ */ L(["refresh"], ["update:modelValue"]),
19
19
  setup(D, { emit: H }) {
20
- const I = f(!1), S = f(), { t: b } = fe(), _ = f(), p = ie(D, "modelValue"), B = H, $ = f([]), w = f([]), m = f([]), g = f([]), C = ge();
21
- console.log(C.user);
22
- const U = new ve({
20
+ const I = f(!1), S = f(), { t: b } = pe(), $ = f(), p = ue(D, "modelValue"), B = H, C = f([]), w = f([]), m = f([]), g = f([]), U = we();
21
+ console.log(U.user);
22
+ const q = new fe({
23
23
  applyStatus: j.applyStatus.finished
24
24
  });
25
- U.useValues();
26
- const q = new be({
25
+ q.useValues();
26
+ const k = new ve({
27
27
  userType: j.userType.companyManager
28
28
  });
29
- q.useValues(), A.orgIdBizDict.useValues();
29
+ k.useValues(), A.orgIdBizDict.useValues();
30
30
  function J() {
31
31
  var e;
32
- const l = (e = C.user.userJobs[0]) == null ? void 0 : e.deptId;
32
+ const l = (e = U.user.userJobs[0]) == null ? void 0 : e.deptId;
33
33
  if (!l) {
34
34
  V.warning("当前用户缺少岗位信息,无法查询验收组长");
35
35
  return;
36
36
  }
37
37
  h.findHeadman({
38
- tenant: C.user.tenant,
38
+ tenant: U.user.tenant,
39
39
  deptId: l,
40
40
  jobCode: j.jobCode.groupLeader
41
41
  }).then(({ data: o }) => {
@@ -96,8 +96,8 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
96
96
  Object.assign(s, l);
97
97
  }), Y(), X());
98
98
  function O() {
99
- $.value = w.value.map((l) => {
100
- const e = q.values.find(
99
+ C.value = w.value.map((l) => {
100
+ const e = k.values.find(
101
101
  (o) => o.key === l
102
102
  );
103
103
  return {
@@ -108,7 +108,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
108
108
  }
109
109
  const x = async () => {
110
110
  var l;
111
- await ((l = _.value) == null ? void 0 : l.validate((e) => {
111
+ await ((l = $.value) == null ? void 0 : l.validate((e) => {
112
112
  if (e) {
113
113
  if (w.value.length === 0) {
114
114
  V.warning(b("itsmFlowAcceptance.membersRequired"));
@@ -116,7 +116,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
116
116
  }
117
117
  O(), h.save({
118
118
  ...s,
119
- members: $.value,
119
+ members: C.value,
120
120
  files: g.value
121
121
  }).then((o) => {
122
122
  o.status === 200 && (V({
@@ -128,7 +128,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
128
128
  }));
129
129
  }, ee = async () => {
130
130
  var l;
131
- await ((l = _.value) == null ? void 0 : l.validate((e) => {
131
+ await ((l = $.value) == null ? void 0 : l.validate((e) => {
132
132
  if (e) {
133
133
  if (w.value.length === 0) {
134
134
  V.warning(b("itsmFlowAcceptance.membersRequired"));
@@ -136,7 +136,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
136
136
  }
137
137
  O(), h.submit({
138
138
  ...s,
139
- members: $.value,
139
+ members: C.value,
140
140
  files: g.value
141
141
  }).then((o) => {
142
142
  o.status === 200 && (V({
@@ -151,27 +151,27 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
151
151
  p.value && (p.value = !1);
152
152
  }
153
153
  function le(l) {
154
- const e = U.values.find(
154
+ const e = q.values.find(
155
155
  (o) => o.key === l
156
156
  );
157
157
  s.contractName = (e == null ? void 0 : e.contractName) ?? "", s.contractNo = (e == null ? void 0 : e.contractNo) ?? "", s.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", s.entrustName = (e == null ? void 0 : e.entrustName) ?? "", s.serviceContent = (e == null ? void 0 : e.workContent) ?? "", s.entrustId = (e == null ? void 0 : e.entrustId) ?? "";
158
158
  }
159
159
  return (l, e) => {
160
- const o = i("el-col"), c = i("el-input"), u = i("el-form-item"), k = i("jmash-select"), te = i("jmash-dict-select"), N = i("el-button"), ae = i("CircleClose"), oe = i("el-icon"), se = i("jmash-enum-radio"), z = i("el-row"), ne = i("el-form"), de = i("jmash-multi-upload"), re = i("el-dialog");
161
- return R(), me(re, {
160
+ const o = i("el-col"), c = i("el-input"), u = i("el-form-item"), N = i("jmash-select"), _ = i("el-button"), te = i("CircleClose"), ae = i("el-icon"), oe = i("jmash-enum-radio"), z = i("el-row"), se = i("el-form"), ne = i("jmash-multi-upload"), de = i("el-dialog");
161
+ return R(), ie(de, {
162
162
  modelValue: p.value,
163
163
  "onUpdate:modelValue": e[12] || (e[12] = (n) => p.value = n),
164
164
  onClose: E
165
165
  }, {
166
166
  footer: a(() => [
167
- r("div", Fe, [
168
- t(N, { onClick: E }, {
167
+ r("div", ge, [
168
+ t(_, { onClick: E }, {
169
169
  default: a(() => [
170
170
  v(y(l.$t("common.cancel")), 1)
171
171
  ]),
172
172
  _: 1
173
173
  }),
174
- t(N, {
174
+ t(_, {
175
175
  type: "primary",
176
176
  onClick: x
177
177
  }, {
@@ -180,7 +180,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
180
180
  ]),
181
181
  _: 1
182
182
  }),
183
- t(N, {
183
+ t(_, {
184
184
  type: "primary",
185
185
  onClick: ee
186
186
  }, {
@@ -196,11 +196,12 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
196
196
  default: a(() => e[13] || (e[13] = [
197
197
  r("div", { class: "title" }, "山西云时代技术有限公司大数据中心分公司项目验收书", -1)
198
198
  ])),
199
- _: 1
199
+ _: 1,
200
+ __: [13]
200
201
  }),
201
- t(ne, {
202
+ t(se, {
202
203
  ref_key: "itsmFlowAcceptanceFormRef",
203
- ref: _,
204
+ ref: $,
204
205
  model: d(s),
205
206
  "label-width": "150px",
206
207
  rules: W,
@@ -254,11 +255,11 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
254
255
  prop: "orderNo"
255
256
  }, {
256
257
  default: a(() => [
257
- t(k, {
258
+ t(N, {
258
259
  modelValue: d(s).orderNo,
259
260
  "onUpdate:modelValue": e[2] || (e[2] = (n) => d(s).orderNo = n),
260
261
  placeholder: l.$t("itsmFlowAcceptance.orderIdRequired"),
261
- data: d(U).values,
262
+ data: d(q).values,
262
263
  clearable: "",
263
264
  filterable: "",
264
265
  class: "w-full",
@@ -277,7 +278,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
277
278
  prop: "entrustName"
278
279
  }, {
279
280
  default: a(() => [
280
- t(te, {
281
+ t(N, {
281
282
  modelValue: d(s).entrustName,
282
283
  "onUpdate:modelValue": e[3] || (e[3] = (n) => d(s).entrustName = n),
283
284
  placeholder: l.$t("itsmFlowAcceptance.orderIdRequireds"),
@@ -298,7 +299,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
298
299
  prop: "serviceOrg"
299
300
  }, {
300
301
  default: a(() => [
301
- t(k, {
302
+ t(N, {
302
303
  modelValue: d(s).serviceOrg,
303
304
  "onUpdate:modelValue": e[4] || (e[4] = (n) => d(s).serviceOrg = n),
304
305
  placeholder: l.$t("itsmFlowAcceptance.orderIdRequireds"),
@@ -359,11 +360,11 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
359
360
  label: l.$t("itsmFlowAcceptance.members")
360
361
  }, {
361
362
  default: a(() => [
362
- t(k, {
363
+ t(N, {
363
364
  modelValue: w.value,
364
365
  "onUpdate:modelValue": e[7] || (e[7] = (n) => w.value = n),
365
366
  placeholder: l.$t("itsmFlowAcceptance.membersRequired"),
366
- data: d(q).values,
367
+ data: d(k).values,
367
368
  clearable: "",
368
369
  multiple: "",
369
370
  filterable: "",
@@ -382,9 +383,9 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
382
383
  prop: "files"
383
384
  }, {
384
385
  default: a(() => [
385
- t(N, {
386
+ t(_, {
386
387
  type: "primary",
387
- icon: d(we),
388
+ icon: d(be),
388
389
  onClick: G
389
390
  }, {
390
391
  default: a(() => [
@@ -397,18 +398,18 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
397
398
  }, 8, ["label"]),
398
399
  t(u, null, {
399
400
  default: a(() => [
400
- (R(!0), T(ce, null, pe(m.value, (n, K) => (R(), T("div", {
401
+ (R(!0), T(me, null, ce(m.value, (n, K) => (R(), T("div", {
401
402
  key: K,
402
403
  class: "files-list"
403
404
  }, [
404
405
  v(y(n.fileName) + " ", 1),
405
- t(oe, {
406
+ t(ae, {
406
407
  size: "16",
407
408
  class: "icon-right",
408
- onClick: (Ve) => P(K, n)
409
+ onClick: (ye) => P(K, n)
409
410
  }, {
410
411
  default: a(() => [
411
- t(ae)
412
+ t(te)
412
413
  ]),
413
414
  _: 2
414
415
  }, 1032, ["onClick"])
@@ -449,7 +450,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
449
450
  prop: "result"
450
451
  }, {
451
452
  default: a(() => [
452
- t(se, {
453
+ t(oe, {
453
454
  modelValue: d(s).result,
454
455
  "onUpdate:modelValue": e[9] || (e[9] = (n) => d(s).result = n),
455
456
  data: d(A).isValuesDict.values,
@@ -505,7 +506,8 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
505
506
  ])
506
507
  ], -1)
507
508
  ])),
508
- _: 1
509
+ _: 1,
510
+ __: [14]
509
511
  }),
510
512
  t(o, {
511
513
  span: 12,
@@ -526,7 +528,8 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
526
528
  ])
527
529
  ], -1)
528
530
  ])),
529
- _: 1
531
+ _: 1,
532
+ __: [15]
530
533
  })
531
534
  ]),
532
535
  _: 1
@@ -535,7 +538,7 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
535
538
  _: 1
536
539
  }, 8, ["model", "rules"]),
537
540
  e[16] || (e[16] = r("div", { class: "with-end" }, "注:验收书编号在验收通过后自动生成。", -1)),
538
- t(de, {
541
+ t(ne, {
539
542
  ref_key: "uploadRef",
540
543
  ref: S,
541
544
  modelValue: I.value,
@@ -543,11 +546,12 @@ const Fe = { class: "title" }, $e = /* @__PURE__ */ ue({
543
546
  onUploadFileList: Q
544
547
  }, null, 8, ["modelValue"])
545
548
  ]),
546
- _: 1
549
+ _: 1,
550
+ __: [16]
547
551
  }, 8, ["modelValue"]);
548
552
  };
549
553
  }
550
554
  });
551
555
  export {
552
- $e as _
556
+ Ie as _
553
557
  };