sooyie-task 0.0.15 → 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.
Files changed (26) hide show
  1. package/dist/add-BCXmZ5aL.mjs +379 -0
  2. package/dist/{add-DWG73DwX.mjs → add-gL0XtI27.mjs} +1 -1
  3. package/dist/{add.vue_vue_type_script_setup_true_lang-C7iqLsd8.mjs → add.vue_vue_type_script_setup_true_lang-Cqv6b-C8.mjs} +1 -1
  4. package/dist/{edit-C6PKgMYP.mjs → edit-BAm4jf7L.mjs} +1 -1
  5. package/dist/{edit-DbRtvsz8.mjs → edit-Cus7hYzT.mjs} +2 -2
  6. package/dist/{index-jFALjInU.mjs → index-Bim1_RHW.mjs} +1 -1
  7. package/dist/{index-BAvA0Ouj.mjs → index-Bw13biMq.mjs} +1 -1
  8. package/dist/{index-X-o3kDV2.mjs → index-CttdaCF2.mjs} +3 -3
  9. package/dist/{index-BUfsHvCP.mjs → index-DYWzNOZQ.mjs} +13 -2
  10. package/dist/{index-BUWBZCoN.mjs → index-XBjO09nS.mjs} +2 -2
  11. package/dist/index.mjs +2 -4
  12. package/dist/{index.vue_vue_type_script_setup_true_lang-9dzewzjH.mjs → index.vue_vue_type_script_setup_true_lang-C1RCQr_c.mjs} +2 -2
  13. package/dist/{info-296UB09j.mjs → info-DWe85R6X.mjs} +676 -694
  14. package/dist/{report-DhfHhf7j.mjs → report-CUT7qwJy.mjs} +57 -56
  15. package/dist/report-info-B95aThGL.mjs +341 -0
  16. package/dist/style.css +1 -1
  17. package/dts/src/api/task/task-inspect-matterst-record/types.d.ts +1 -1
  18. package/dts/src/lang/task/zh-cn.d.ts +0 -2
  19. package/dts/src/main.d.ts +2 -1
  20. package/dts/src/views/task/task-define/add.vue.d.ts +1 -1
  21. package/dts/src/views/task/task-define-rel/add.vue.d.ts +1 -1
  22. package/dts/src/views/task/task-inst/edit.vue.d.ts +1 -1
  23. package/dts/src/views/task/task-inst/report.vue.d.ts +1 -1
  24. package/package.json +2 -2
  25. package/dist/add-C5oSuf1e.mjs +0 -335
  26. package/dist/report-info-qI3MGran.mjs +0 -315
@@ -1,12 +1,12 @@
1
- import { defineComponent as x, ref as O, toRefs as ie, watchEffect as ue, computed as de, resolveComponent as p, createBlock as f, openBlock as i, withCtx as m, createElementBlock as R, createVNode as r, unref as e, mergeModels as j, useModel as me, reactive as ce, watch as pe, Fragment as G, createCommentVNode as c, createTextVNode as K, toDisplayString as T, createElementVNode as B, renderList as fe } from "vue";
1
+ import { defineComponent as x, ref as O, toRefs as ie, watchEffect as de, computed as ue, resolveComponent as p, createBlock as f, openBlock as i, withCtx as m, createElementBlock as R, createVNode as r, unref as e, mergeModels as j, useModel as me, reactive as ce, watch as pe, Fragment as G, createCommentVNode as c, createTextVNode as K, toDisplayString as T, createElementVNode as B, renderList as fe } from "vue";
2
2
  import { p as ye, u as _e } from "./index-DaJ5KrbS.mjs";
3
- import { useUserStore as w, clearEmpty as D, request as C, fileApi as $, useUserStoreHook as Ie } from "jmash-core";
3
+ import { useUserStore as D, clearEmpty as w, request as C, fileApi as $, useUserStoreHook as Ie } from "jmash-core";
4
4
  import { E as V } from "./el-message-CajLrSgM.mjs";
5
5
  import { useI18n as ge } from "vue-i18n";
6
- import { D as v, $ as ke, C as l } from "./index-BUfsHvCP.mjs";
6
+ import { D as S, $ as ke, C as l } from "./index-DYWzNOZQ.mjs";
7
7
  import { t as Re } from "./index-BYV5ylFn.mjs";
8
8
  import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
- class ve {
9
+ class Se {
10
10
  getKey(u) {
11
11
  return {
12
12
  taskInstId: u.taskInstId
@@ -14,8 +14,8 @@ class ve {
14
14
  }
15
15
  // 查询翻页信息任务实例
16
16
  findPage(u) {
17
- const g = w().user.tenant;
18
- return D(u), u && (u.hasStatus = u.status !== void 0), C({
17
+ const g = D().user.tenant;
18
+ return w(u), u && (u.hasStatus = u.status !== void 0), C({
19
19
  url: "/v1/front/task/sooyie/my_task/page/" + g,
20
20
  method: "get",
21
21
  params: u
@@ -23,8 +23,8 @@ class ve {
23
23
  }
24
24
  // 查询列表信息任务实例
25
25
  findList(u) {
26
- const g = w().user.tenant;
27
- return D(u), C({
26
+ const g = D().user.tenant;
27
+ return w(u), C({
28
28
  url: "/v1/task/task_inst/list/" + g,
29
29
  method: "get",
30
30
  params: u
@@ -32,8 +32,8 @@ class ve {
32
32
  }
33
33
  // 查询列表信息任务实例
34
34
  findMyTaskList(u) {
35
- const g = w().user.tenant;
36
- return D(u), C({
35
+ const g = D().user.tenant;
36
+ return w(u), C({
37
37
  url: "/v1/front/task/sooyie/my_task/list/" + g,
38
38
  method: "get",
39
39
  params: u
@@ -41,8 +41,8 @@ class ve {
41
41
  }
42
42
  // 查询任务实例
43
43
  findById(u) {
44
- const g = w().user.tenant;
45
- return D(u), C({
44
+ const g = D().user.tenant;
45
+ return w(u), C({
46
46
  url: "/v1/front/task/sooyie/task_inst/id/" + g + "/" + u.taskInstId,
47
47
  method: "get",
48
48
  params: u
@@ -50,14 +50,14 @@ class ve {
50
50
  }
51
51
  // 设置我的任务已读状态
52
52
  setReadStatus(u) {
53
- return u.tenant = w().user.tenant, D(u), C({
53
+ return u.tenant = D().user.tenant, w(u), C({
54
54
  url: "/v1/front/task/sooyie/my_task/read_status",
55
55
  method: "put",
56
56
  data: u
57
57
  });
58
58
  }
59
59
  }
60
- const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
60
+ const ve = new Se(), Ee = ["src"], be = /* @__PURE__ */ x({
61
61
  __name: "index",
62
62
  props: {
63
63
  pictureUrl: {
@@ -82,37 +82,37 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
82
82
  },
83
83
  emits: ["imageSrc"],
84
84
  setup(N, { emit: u }) {
85
- const g = O($.uploadUrl()), L = O($.authHeader()), k = N, { pictureUrl: U } = ie(k), S = O("");
86
- S.value = U.value;
85
+ const g = O($.uploadUrl()), F = O($.authHeader()), k = N, { pictureUrl: L } = ie(k), v = O("");
86
+ v.value = L.value;
87
87
  const t = u;
88
88
  function n(E) {
89
89
  E.fileId && (V({
90
90
  message: "上传成功",
91
91
  type: "success"
92
- }), S.value = E.fileId, t("imageSrc", E));
92
+ }), v.value = E.fileId, t("imageSrc", E));
93
93
  }
94
- ue(() => {
95
- S.value = k.pictureUrl;
94
+ de(() => {
95
+ v.value = k.pictureUrl;
96
96
  });
97
- const M = de(
98
- () => $.imageUrl(S.value, k.width, k.height, k.type)
97
+ const M = ue(
98
+ () => $.imageUrl(v.value, k.width, k.height, k.type)
99
99
  );
100
- return (E, W) => {
101
- const F = p("el-icon"), Y = p("el-upload");
100
+ return (E, U) => {
101
+ const W = p("el-icon"), Y = p("el-upload");
102
102
  return i(), f(Y, {
103
103
  class: "avatar-uploader",
104
104
  action: g.value,
105
- headers: L.value,
105
+ headers: F.value,
106
106
  "show-file-list": !1,
107
107
  "on-success": n
108
108
  }, {
109
109
  default: m(() => [
110
- S.value ? (i(), R("img", {
110
+ v.value ? (i(), R("img", {
111
111
  key: 0,
112
112
  src: M.value,
113
113
  class: "avatar",
114
114
  alt: ""
115
- }, null, 8, Ee)) : (i(), f(F, {
115
+ }, null, 8, Ee)) : (i(), f(W, {
116
116
  key: 1,
117
117
  class: "avatar-uploader-icon"
118
118
  }, {
@@ -144,7 +144,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
144
144
  }, Te = {
145
145
  key: 5,
146
146
  class: "margin-top"
147
- }, we = { class: "dialog-footer" }, De = /* @__PURE__ */ x({
147
+ }, De = { class: "dialog-footer" }, we = /* @__PURE__ */ x({
148
148
  __name: "report",
149
149
  props: /* @__PURE__ */ j({
150
150
  entityKey: {
@@ -158,7 +158,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
158
158
  }),
159
159
  emits: /* @__PURE__ */ j(["refresh"], ["update:modelValue"]),
160
160
  setup(N, { emit: u }) {
161
- const g = Ie(), { t: L } = ge(), k = me(N, "modelValue"), U = O(), S = ({ rowIndex: d, columnIndex: o }) => {
161
+ const g = Ie(), { t: F } = ge(), k = me(N, "modelValue"), L = O(), v = ({ rowIndex: d, columnIndex: o }) => {
162
162
  if (o === 1) {
163
163
  if (d === 0)
164
164
  return { rowspan: 3, colspan: 1 };
@@ -178,10 +178,10 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
178
178
  date: (/* @__PURE__ */ new Date()).toISOString()
179
179
  });
180
180
  console.log(t.entityKey, "=> props.entityKey.taskDefineId"), Promise.all([
181
- v.itemBizLayDict.useValues(),
182
- v.OrgBizDict.useValues()
181
+ S.itemBizLayDict.useValues(),
182
+ S.OrgBizDict.useValues()
183
183
  ]).then(() => {
184
- Se.findById({ taskInstId: t.entityKey.taskInstId }).then((d) => {
184
+ ve.findById({ taskInstId: t.entityKey.taskInstId }).then((d) => {
185
185
  const o = d.data.annivCustomerId;
186
186
  o && (n.itsmId = o), ke.findList({ inspectId: d.data.actionId }).then((y) => {
187
187
  n.records = y.data.results.map((I) => ({
@@ -200,12 +200,12 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
200
200
  n.govOrgId = "";
201
201
  return;
202
202
  }
203
- const o = v.itemBizLayDict.values.find(
203
+ const o = S.itemBizLayDict.values.find(
204
204
  // itsmId对应Dict.itemBizLayDict的key
205
205
  (y) => y.key === d
206
206
  );
207
207
  if (o) {
208
- const y = o.orgId, I = v.OrgBizDict.values.find(
208
+ const y = o.orgId, I = S.OrgBizDict.values.find(
209
209
  // 省直单位ID对应Dict.OrgBizDict的key
210
210
  (h) => h.key === y
211
211
  );
@@ -220,15 +220,16 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
220
220
  const y = {
221
221
  fileId: o.fileId,
222
222
  fileSrc: o.fileSrc,
223
- fileName: o.fileName
223
+ fileName: o.fileName,
224
+ fileSort: d.inspectType
224
225
  };
225
- console.log(y, "=>file "), d.file = y;
226
+ console.log(y, "=>file "), d.recordFile = y;
226
227
  }
227
228
  const E = (d) => {
228
229
  d.mattersResult === "true" && (d.problem = "", d.proposal = "");
229
- }, W = O(!1), F = O();
230
+ }, U = O(!1), W = O();
230
231
  function Y() {
231
- W.value = !0, F.value.clearFileList();
232
+ U.value = !0, W.value.clearFileList();
232
233
  }
233
234
  function J(d) {
234
235
  const o = {
@@ -244,11 +245,11 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
244
245
  }
245
246
  const Z = u, q = async () => {
246
247
  var I, h, P, b;
247
- if (!await ((I = U.value) == null ? void 0 : I.validate())) return;
248
+ if (!await ((I = L.value) == null ? void 0 : I.validate())) return;
248
249
  let o = !0;
249
250
  const y = [];
250
251
  if ((h = n.records) == null || h.forEach((a, A) => {
251
- a.mattersResult === "true" && t.entityKey.sort !== l.LOG_ANALYSIS && (!a.file || !a.file.fileId) && (o = !1, y.push(`第 ${A + 1} 行:请上传截图`)), a.mattersResult === "false" && t.entityKey.sort !== l.LOG_ANALYSIS && (a.problem || (o = !1, y.push(`第 ${A + 1} 行:请填写问题记录`)), a.proposal || (o = !1, y.push(`第 ${A + 1} 行:请填写处置建议`)));
252
+ a.mattersResult === "true" && t.entityKey.sort !== l.LOG_ANALYSIS && (!a.recordFile || !a.recordFile.fileId) && (o = !1, y.push(`第 ${A + 1} 行:请上传截图`)), a.mattersResult === "false" && t.entityKey.sort !== l.LOG_ANALYSIS && (a.problem || (o = !1, y.push(`第 ${A + 1} 行:请填写问题记录`)), a.proposal || (o = !1, y.push(`第 ${A + 1} 行:请填写处置建议`)));
252
253
  }), !o) {
253
254
  y.forEach((a) => {
254
255
  V.error(a);
@@ -256,7 +257,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
256
257
  return;
257
258
  }
258
259
  if (((P = n.file) == null ? void 0 : P.length) === 0 && (t.entityKey.sort === l.SOFTWARE || t.entityKey.sort === l.HARDWARE || t.entityKey.sort === l.EXPERT_INSPECTION)) {
259
- V.warning(L("taskInst.fileRequired"));
260
+ V.warning(F("taskInst.fileRequired"));
260
261
  return;
261
262
  }
262
263
  n.records = (b = n.records) == null ? void 0 : b.map((a) => ({
@@ -264,9 +265,9 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
264
265
  mattersResult: a.mattersResult,
265
266
  problem: a.problem,
266
267
  proposal: a.proposal,
267
- file: a.file || {}
268
+ recordFile: a.recordFile || {}
268
269
  })), Re.create(n).then((a) => {
269
- a.status === 200 && (V.success(L("common.submitSuccess")), k.value = !1, Z("refresh", !0));
270
+ a.status === 200 && (V.success(F("common.submitSuccess")), k.value = !1, Z("refresh", !0));
270
271
  });
271
272
  };
272
273
  function z() {
@@ -284,7 +285,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
284
285
  width: "1300px"
285
286
  }, {
286
287
  footer: m(() => [
287
- B("div", we, [
288
+ B("div", De, [
288
289
  r(H, { onClick: z }, {
289
290
  default: m(() => [
290
291
  K(T(d.$t("common.cancel")), 1)
@@ -310,7 +311,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
310
311
  t.entityKey.sort === e(l).CUSTOMER ? (i(), R("h2", Ne, " 拜访客户 ")) : c("", !0),
311
312
  r(oe, {
312
313
  ref_key: "taskReportFormRef",
313
- ref: U,
314
+ ref: L,
314
315
  model: e(n),
315
316
  "label-width": "120",
316
317
  "label-position": "top"
@@ -328,7 +329,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
328
329
  r(y, {
329
330
  modelValue: e(n).govOrgId,
330
331
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e(n).govOrgId = s),
331
- data: e(v).OrgBizDict.values,
332
+ data: e(S).OrgBizDict.values,
332
333
  "show-word-limit": "",
333
334
  clearable: "",
334
335
  required: "",
@@ -350,7 +351,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
350
351
  r(y, {
351
352
  modelValue: e(n).itsmId,
352
353
  "onUpdate:modelValue": o[1] || (o[1] = (s) => e(n).itsmId = s),
353
- data: e(v).itemBizLayDict.values,
354
+ data: e(S).itemBizLayDict.values,
354
355
  "show-word-limit": "",
355
356
  clearable: "",
356
357
  required: "",
@@ -405,7 +406,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
405
406
  }),
406
407
  r(te, {
407
408
  data: e(n).records,
408
- "span-method": S,
409
+ "span-method": v,
409
410
  border: "",
410
411
  style: { width: "100%", "margin-top": "20px" }
411
412
  }, {
@@ -466,7 +467,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
466
467
  label: "风险等级"
467
468
  }, {
468
469
  default: m((s) => [
469
- K(T(e(v).riskLevelEnum.getEnumValue(s.row.riskLevel)), 1)
470
+ K(T(e(S).riskLevelEnum.getEnumValue(s.row.riskLevel)), 1)
470
471
  ]),
471
472
  _: 1
472
473
  })) : c("", !0),
@@ -479,7 +480,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
479
480
  r(A, {
480
481
  modelValue: s.row.mattersResult,
481
482
  "onUpdate:modelValue": (_) => s.row.mattersResult = _,
482
- data: e(v).mattersResultDict.values,
483
+ data: e(S).mattersResultDict.values,
483
484
  onChange: (_) => E(s.row)
484
485
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "onChange"])
485
486
  ]),
@@ -494,7 +495,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
494
495
  r(A, {
495
496
  modelValue: s.row.mattersResult,
496
497
  "onUpdate:modelValue": (_) => s.row.mattersResult = _,
497
- data: e(v).logResultDict.values
498
+ data: e(S).logResultDict.values
498
499
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data"])
499
500
  ]),
500
501
  _: 1
@@ -507,7 +508,7 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
507
508
  var _;
508
509
  return [
509
510
  r(ee, {
510
- "picture-url": (_ = s.row.file) == null ? void 0 : _.fileSrc,
511
+ "picture-url": (_ = s.row.recordFile) == null ? void 0 : _.fileSrc,
511
512
  onImageSrc: (X) => M(s.row, X),
512
513
  width: 80,
513
514
  type: "trans"
@@ -589,20 +590,20 @@ const Se = new ve(), Ee = ["src"], be = /* @__PURE__ */ x({
589
590
  }, 8, ["modelValue"]),
590
591
  r(ne, {
591
592
  ref_key: "uploadRef",
592
- ref: F,
593
- modelValue: W.value,
594
- "onUpdate:modelValue": o[4] || (o[4] = (s) => W.value = s),
593
+ ref: W,
594
+ modelValue: U.value,
595
+ "onUpdate:modelValue": o[4] || (o[4] = (s) => U.value = s),
595
596
  onUploadFileList: J
596
597
  }, null, 8, ["modelValue"])
597
598
  ], 64);
598
599
  };
599
600
  }
600
- }), Ce = /* @__PURE__ */ he(De, [["__scopeId", "data-v-460a1c46"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
601
+ }), Ce = /* @__PURE__ */ he(we, [["__scopeId", "data-v-4b4687cb"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
601
602
  __proto__: null,
602
603
  default: Ce
603
604
  }, Symbol.toStringTag, { value: "Module" }));
604
605
  export {
605
606
  Ce as a,
606
607
  Be as r,
607
- Se as t
608
+ ve as t
608
609
  };
@@ -0,0 +1,341 @@
1
+ import { defineComponent as z, mergeModels as X, useModel as H, ref as N, resolveComponent as i, createBlock as _, openBlock as n, withCtx as a, createVNode as l, createElementBlock as k, createCommentVNode as m, unref as e, createTextVNode as S, toDisplayString as E, Fragment as O, renderList as q, createElementVNode as U } from "vue";
2
+ import { useI18n as G } from "vue-i18n";
3
+ import { D as R, C as s } from "./index-DYWzNOZQ.mjs";
4
+ import { useUserStore as $, clearEmpty as J, request as Q, useUserStoreHook as Z, fileApi as L } from "jmash-core";
5
+ import { useRoute as ee } from "vue-router";
6
+ import { t as te } from "./index-BYV5ylFn.mjs";
7
+ import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
+ class le {
9
+ getKey(o) {
10
+ return {};
11
+ }
12
+ // 查询列表信息附件
13
+ findList(o) {
14
+ const T = $().user.tenant;
15
+ return J(o), Q({
16
+ url: "/v1/front/task/sooyie/file/list/" + T,
17
+ method: "get",
18
+ params: o
19
+ });
20
+ }
21
+ }
22
+ const h = new le(), re = {
23
+ key: 0,
24
+ class: "margin-top"
25
+ }, ae = {
26
+ key: 1,
27
+ class: "margin-top"
28
+ }, se = /* @__PURE__ */ z({
29
+ __name: "report-info",
30
+ props: /* @__PURE__ */ X({
31
+ govOrgId: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ reportsInfoEntityKey: {
36
+ type: Object,
37
+ default: () => {
38
+ }
39
+ }
40
+ }, {
41
+ modelValue: { type: Boolean },
42
+ modelModifiers: {}
43
+ }),
44
+ emits: ["update:modelValue"],
45
+ setup(A) {
46
+ const o = ee(), T = Z(), { t: ie } = G(), w = H(A, "modelValue");
47
+ R.itemBizLayDict.useValues();
48
+ const W = ({ rowIndex: d, columnIndex: t }) => {
49
+ if (t === 1) {
50
+ if (d === 0)
51
+ return { rowspan: 3, colspan: 1 };
52
+ if (d < 3)
53
+ return { rowspan: 0, colspan: 0 };
54
+ }
55
+ return t === 7 ? { rowspan: 1, colspan: 1 } : { rowspan: 1, colspan: 1 };
56
+ }, c = A, C = N([]), D = N([]), g = N([]);
57
+ te.findList({ reportRecordId: c.reportsInfoEntityKey.taskRecordId }).then(async (d) => {
58
+ const t = d.data.results;
59
+ g.value = t;
60
+ const I = await Promise.all(
61
+ t.map(async (p) => {
62
+ const f = p.recordId;
63
+ o.query.taskSort === s.LOG_ANALYSIS && h.findList({
64
+ businessId: g.value[0].reportRecordId
65
+ }).then((v) => {
66
+ C.value = v.data.results;
67
+ }), o.query.taskSort === s.SOFTWARE && h.findList({
68
+ businessId: c.reportsInfoEntityKey.taskRecordId
69
+ }).then((v) => {
70
+ D.value = v.data.results;
71
+ });
72
+ const y = await h.findList({ businessId: f });
73
+ return {
74
+ ...p,
75
+ images: y.data.results || []
76
+ };
77
+ })
78
+ );
79
+ g.value = I;
80
+ });
81
+ async function P(d) {
82
+ try {
83
+ const t = L.fileUrl(d.filePath), p = await (await fetch(t)).blob(), f = window.URL.createObjectURL(p), y = document.createElement("a");
84
+ y.href = f, y.download = d.fileName || d.fileId || "", document.body.appendChild(y), y.click();
85
+ } catch {
86
+ }
87
+ }
88
+ function Y() {
89
+ w.value && (w.value = !1);
90
+ }
91
+ return (d, t) => {
92
+ const I = i("el-input"), p = i("el-form-item"), f = i("el-col"), y = i("jmash-select"), v = i("el-date-picker"), M = i("el-row"), x = i("el-form"), u = i("el-table-column"), K = i("el-image"), j = i("el-table"), F = i("el-button"), B = i("el-dialog");
93
+ return n(), _(B, {
94
+ modelValue: w.value,
95
+ "onUpdate:modelValue": t[3] || (t[3] = (r) => w.value = r),
96
+ "close-on-click-modal": !1,
97
+ "close-on-press-escape": !1,
98
+ onClose: Y,
99
+ width: "1200px"
100
+ }, {
101
+ default: a(() => [
102
+ l(x, {
103
+ ref: "taskReportFormRef",
104
+ "label-width": "120",
105
+ "label-position": "top"
106
+ }, {
107
+ default: a(() => [
108
+ l(M, null, {
109
+ default: a(() => [
110
+ l(f, { span: 6 }, {
111
+ default: a(() => [
112
+ l(p, { label: "省直单位名称:" }, {
113
+ default: a(() => [
114
+ l(I, {
115
+ modelValue: c.govOrgId,
116
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => c.govOrgId = r),
117
+ "show-word-limit": "",
118
+ clearable: "",
119
+ required: "",
120
+ disabled: !0,
121
+ class: "!w-[203px]"
122
+ }, null, 8, ["modelValue"])
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ _: 1
128
+ }),
129
+ l(f, { span: 6 }, {
130
+ default: a(() => [
131
+ l(p, { label: "运维项目:" }, {
132
+ default: a(() => [
133
+ l(y, {
134
+ modelValue: c.reportsInfoEntityKey.customerId,
135
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => c.reportsInfoEntityKey.customerId = r),
136
+ data: e(R).itemBizLayDict.values,
137
+ "show-word-limit": "",
138
+ clearable: "",
139
+ required: "",
140
+ disabled: !0,
141
+ class: "!w-[203px]"
142
+ }, null, 8, ["modelValue", "data"])
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 1
148
+ }),
149
+ l(f, { span: 6 }, {
150
+ default: a(() => [
151
+ l(p, {
152
+ label: "巡检日期:",
153
+ prop: "createTime"
154
+ }, {
155
+ default: a(() => [
156
+ l(v, {
157
+ modelValue: c.reportsInfoEntityKey.createTime,
158
+ "onUpdate:modelValue": t[2] || (t[2] = (r) => c.reportsInfoEntityKey.createTime = r),
159
+ type: "date",
160
+ format: "YYYY-MM-DD",
161
+ "value-format": "YYYY-MM-DD",
162
+ disabled: !0
163
+ }, null, 8, ["modelValue"])
164
+ ]),
165
+ _: 1
166
+ })
167
+ ]),
168
+ _: 1
169
+ }),
170
+ l(f, { span: 6 }, {
171
+ default: a(() => [
172
+ l(p, {
173
+ label: "巡检人:",
174
+ prop: "realName"
175
+ }, {
176
+ default: a(() => [
177
+ l(I, {
178
+ value: e(T).user.realName,
179
+ "show-word-limit": "",
180
+ clearable: "",
181
+ disabled: !0,
182
+ class: "!w-[203px]"
183
+ }, null, 8, ["value"])
184
+ ]),
185
+ _: 1
186
+ })
187
+ ]),
188
+ _: 1
189
+ })
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]),
194
+ _: 1
195
+ }, 512),
196
+ l(j, {
197
+ data: g.value,
198
+ "span-method": W,
199
+ border: "",
200
+ style: { width: "100%", "margin-top": "20px" }
201
+ }, {
202
+ default: a(() => [
203
+ l(u, {
204
+ type: "index",
205
+ label: "序号",
206
+ width: "60"
207
+ }),
208
+ l(u, {
209
+ prop: "mattersDimension",
210
+ label: "检查维度"
211
+ }),
212
+ l(u, {
213
+ prop: "mattersItem",
214
+ label: "检查项目"
215
+ }),
216
+ l(u, {
217
+ prop: "mattersWay",
218
+ label: "检查内容与方法"
219
+ }),
220
+ e(o).query.taskSort !== e(s).SOFTWARE && e(o).query.taskSort !== e(s).HARDWARE && e(o).query.taskSort !== e(s).EXPERT_INSPECTION ? (n(), _(u, {
221
+ key: 0,
222
+ prop: "mattersStandard",
223
+ label: "达标标准"
224
+ })) : m("", !0),
225
+ e(o).query.taskSort === e(s).HARDWARE ? (n(), _(u, {
226
+ key: 1,
227
+ prop: "riskLevel",
228
+ label: "风险等级"
229
+ }, {
230
+ default: a((r) => [
231
+ S(E(e(R).riskLevelEnum.getEnumValue(r.row.riskLevel)), 1)
232
+ ]),
233
+ _: 1
234
+ })) : m("", !0),
235
+ e(o).query.taskSort === e(s).EXPERT_INSPECTION || e(o).query.taskSort === e(s).SOFTWARE ? (n(), _(u, {
236
+ key: 2,
237
+ label: "巡检结果",
238
+ width: "180",
239
+ prop: "mattersResult"
240
+ }, {
241
+ default: a((r) => [
242
+ S(E(e(R).mattersResultDict.getValue(r.row.mattersResult)), 1)
243
+ ]),
244
+ _: 1
245
+ })) : m("", !0),
246
+ e(o).query.taskSort === e(s).LOG_ANALYSIS ? (n(), _(u, {
247
+ key: 3,
248
+ label: "结果",
249
+ width: "180",
250
+ prop: "mattersResult"
251
+ }, {
252
+ default: a((r) => [
253
+ S(E(e(R).logResultDict.getValue(r.row.mattersResult)), 1)
254
+ ]),
255
+ _: 1
256
+ })) : m("", !0),
257
+ e(o).query.taskSort === e(s).EXPERT_INSPECTION || e(o).query.taskSort === e(s).SOFTWARE ? (n(), _(u, {
258
+ key: 4,
259
+ label: "截图/拍照"
260
+ }, {
261
+ default: a((r) => [
262
+ (n(!0), k(O, null, q(r.row.images, (b, V) => (n(), k("div", {
263
+ key: b.id || V
264
+ }, [
265
+ l(K, {
266
+ src: e(L).imageUrl(b.filePath, 120, 120),
267
+ "preview-src-list": [e(L).imageUrl(b.filePath)],
268
+ "preview-teleported": "",
269
+ "hide-on-click-modal": "",
270
+ fit: "cover"
271
+ }, null, 8, ["src", "preview-src-list"])
272
+ ]))), 128))
273
+ ]),
274
+ _: 1
275
+ })) : m("", !0),
276
+ e(o).query.taskSort === e(s).EXPERT_INSPECTION || e(o).query.taskSort === e(s).SOFTWARE ? (n(), _(u, {
277
+ key: 5,
278
+ label: "问题记录",
279
+ prop: "problem"
280
+ })) : m("", !0),
281
+ e(o).query.taskSort === e(s).EXPERT_INSPECTION || e(o).query.taskSort === e(s).SOFTWARE ? (n(), _(u, {
282
+ key: 6,
283
+ label: "处置建议",
284
+ prop: "proposal"
285
+ })) : m("", !0)
286
+ ]),
287
+ _: 1
288
+ }, 8, ["data"]),
289
+ e(o).query.taskSort === e(s).LOG_ANALYSIS ? (n(), k("div", re, [
290
+ t[5] || (t[5] = U("span", null, "日志附件:", -1)),
291
+ (n(!0), k(O, null, q(C.value, (r, b) => (n(), k("div", {
292
+ key: b,
293
+ class: "files-list"
294
+ }, [
295
+ S(E(r.fileName) + " ", 1),
296
+ l(F, {
297
+ type: "primary",
298
+ link: "",
299
+ size: "small",
300
+ class: "icon-right",
301
+ onClick: (V) => P(r)
302
+ }, {
303
+ default: a(() => [...t[4] || (t[4] = [
304
+ S(" 查看 ", -1)
305
+ ])]),
306
+ _: 1
307
+ }, 8, ["onClick"])
308
+ ]))), 128))
309
+ ])) : m("", !0),
310
+ e(o).query.taskSort === e(s).SOFTWARE || e(o).query.taskSort === e(s).HARDWARE ? (n(), k("div", ae, [
311
+ t[7] || (t[7] = U("span", null, "附件:", -1)),
312
+ (n(!0), k(O, null, q(D.value, (r, b) => (n(), k("div", { key: b }, [
313
+ S(E(r.fileName) + " ", 1),
314
+ l(F, {
315
+ type: "primary",
316
+ link: "",
317
+ size: "small",
318
+ class: "icon-right",
319
+ onClick: (V) => P(r)
320
+ }, {
321
+ default: a(() => [...t[6] || (t[6] = [
322
+ S(" 查看 ", -1)
323
+ ])]),
324
+ _: 1
325
+ }, 8, ["onClick"])
326
+ ]))), 128))
327
+ ])) : m("", !0)
328
+ ]),
329
+ _: 1
330
+ }, 8, ["modelValue"]);
331
+ };
332
+ }
333
+ }), ne = /* @__PURE__ */ oe(se, [["__scopeId", "data-v-cbed26d0"]]), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
334
+ __proto__: null,
335
+ default: ne
336
+ }, Symbol.toStringTag, { value: "Module" }));
337
+ export {
338
+ ne as a,
339
+ _e as r,
340
+ h as t
341
+ };