xyvcard-reports 0.0.22 → 0.0.24
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.
- package/dist/{FileSaver.min-COCd88eD.mjs → FileSaver.min-C8jP6urb.mjs} +1 -1
- package/dist/{add-C4gESTsp.mjs → add-CMK_IQLS.mjs} +29 -43
- package/dist/{edit-Dyc8Z5Yk.mjs → edit-55REiDKr.mjs} +1 -1
- package/dist/{edit-DodH-iWd.mjs → edit-Baz504Kq.mjs} +3 -3
- package/dist/{edit-BCiPdc7T.mjs → edit-Bvm9utdL.mjs} +1 -1
- package/dist/{edit-Bq0b88mD.mjs → edit-BzgYkpVb.mjs} +2 -2
- package/dist/{edit-RSYMS8jG.mjs → edit-Ce7JMzm-.mjs} +4 -4
- package/dist/{edit-DjbnllTF.mjs → edit-Dfg9GKxT.mjs} +2 -2
- package/dist/edit-DtZhk40u.mjs +253 -0
- package/dist/{follow-DTqpxjNs.mjs → follow-w6DcwXWs.mjs} +1 -1
- package/dist/{import-upload-Lb9P3cOu.mjs → import-upload-BL3nk4jR.mjs} +1 -1
- package/dist/{import-upload-l3zvNUpN.mjs → import-upload-CmEF0ael.mjs} +1 -1
- package/dist/{index-Di3jxTlH.mjs → index-B1n4eQFf.mjs} +6 -6
- package/dist/{index-CylvzMIF.mjs → index-Bx46YXNp.mjs} +114 -110
- package/dist/{index-Caut0S4o.mjs → index-CUWgE9u8.mjs} +1 -1
- package/dist/index-CoohNnvz.mjs +535 -0
- package/dist/{index-Bho55iJk.mjs → index-Cy2DXvff.mjs} +3 -3
- package/dist/{index-H0Y_XeCY.mjs → index-DVeiAERA.mjs} +373 -353
- package/dist/{index-Cr3ilMFl.mjs → index-DgUB9ebt.mjs} +6 -6
- package/dist/{index-C113ntFm.mjs → index-ZV7IojAl.mjs} +4 -4
- package/dist/{index-DTVmC9_Q.mjs → index-fZlNvJ49.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-DJnj_xhS.mjs +325 -0
- package/dist/{info-CV0r2MjR.mjs → info-B7N61U2I.mjs} +1 -1
- package/dist/{info-kDtCxRbV.mjs → info-BHVLBBJl.mjs} +3 -3
- package/dist/{info-9zzOJlzr.mjs → info-C4y8rnmU.mjs} +1 -1
- package/dist/{info-B-Ni9z4q.mjs → info-CglTApBo.mjs} +1 -1
- package/dist/info-CymzVCUf.mjs +106 -0
- package/dist/{info-BI1rq0Io.mjs → info-D8Oxgrr7.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-Gb83ypk8.mjs → info.vue_vue_type_script_setup_true_lang-BlF3-065.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CTdPN7BB.mjs → info.vue_vue_type_script_setup_true_lang-ClMQKKyT.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CFLtf8mI.mjs → info.vue_vue_type_script_setup_true_lang-D-dN92Aq.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang--vj1czZX.mjs → info.vue_vue_type_script_setup_true_lang-ZW4Bbyvm.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dts/src/api/reports/dict.d.ts +3 -0
- package/dts/src/api/reports/index.d.ts +2 -1
- package/dts/src/lang/reports/zh-cn.d.ts +4 -0
- package/dts/src/views/reports/report-demand-ledger/edit.vue.d.ts +2 -2
- package/dts/src/views/reports/report-demand-ledger/follow.vue.d.ts +2 -2
- package/dts/src/views/reports/report-demand-ledger/info.vue.d.ts +1 -1
- package/dts/src/views/reports/report-third-matter/edit.vue.d.ts +2 -2
- package/dts/src/views/reports/report-third-matter/import-upload.vue.d.ts +2 -2
- package/dts/src/views/reports/report-third-matter/info.vue.d.ts +1 -1
- package/dts/src/views/reports/report-third-party/info.vue.d.ts +1 -1
- package/dts/src/views/reports/report-third-use-support/edit.vue.d.ts +2 -2
- package/dts/src/views/reports/report-third-use-support/import-upload.vue.d.ts +2 -2
- package/dts/src/views/reports/report-third-use-support/info.vue.d.ts +1 -1
- package/dts/src/views/reports/task-inspect-matters/edit.vue.d.ts +1 -1
- package/dts/src/views/reports/task-inspect-type/add.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/edit-CnYqX0U5.mjs +0 -222
- package/dist/index-CbUf6OZs.mjs +0 -502
- package/dist/index.vue_vue_type_script_setup_true_lang-BUzs3CvO.mjs +0 -315
- package/dist/info-DI5eHd_J.mjs +0 -105
|
@@ -1,61 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { t as
|
|
1
|
+
import { defineComponent as R, mergeModels as $, ref as M, reactive as y, useModel as D, resolveComponent as a, createBlock as q, openBlock as B, withCtx as e, createVNode as t, unref as p, createElementVNode as E, createTextVNode as T, toDisplayString as g } from "vue";
|
|
2
|
+
import { ElMessage as F } from "element-plus";
|
|
3
|
+
import { t as S } from "./index-Bx46YXNp.mjs";
|
|
4
4
|
import { useI18n as U } from "vue-i18n";
|
|
5
|
-
import { D as j } from "./index-
|
|
5
|
+
import { D as j } from "./index-DVeiAERA.mjs";
|
|
6
6
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
-
const x = { class: "dialog-footer" }, z = /* @__PURE__ */
|
|
7
|
+
const x = { class: "dialog-footer" }, z = /* @__PURE__ */ R({
|
|
8
8
|
__name: "add",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Boolean },
|
|
11
11
|
modelModifiers: {}
|
|
12
12
|
},
|
|
13
|
-
emits: /* @__PURE__ */
|
|
13
|
+
emits: /* @__PURE__ */ $(["refresh"], ["update:modelValue"]),
|
|
14
14
|
setup(k, { emit: I }) {
|
|
15
|
-
const { t:
|
|
16
|
-
let
|
|
15
|
+
const { t: r } = U(), i = M();
|
|
16
|
+
let s = y({
|
|
17
17
|
requestId: Math.random() * 10 + "",
|
|
18
18
|
inspectName: "",
|
|
19
19
|
inspectStatus: "",
|
|
20
20
|
inspectType: ""
|
|
21
21
|
});
|
|
22
22
|
const V = y({
|
|
23
|
-
inspectId: [
|
|
24
|
-
{
|
|
25
|
-
required: !0,
|
|
26
|
-
message: c("taskInspectType.inspectId"),
|
|
27
|
-
trigger: "change"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
23
|
inspectName: [
|
|
31
24
|
{
|
|
32
25
|
required: !0,
|
|
33
|
-
message:
|
|
34
|
-
trigger: "change"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
inspectStatus: [
|
|
38
|
-
{
|
|
39
|
-
required: !0,
|
|
40
|
-
message: c("taskInspectType.inspectStatus"),
|
|
26
|
+
message: r("taskInspectType.likeInspectNameRead"),
|
|
41
27
|
trigger: "change"
|
|
42
28
|
}
|
|
43
29
|
],
|
|
44
30
|
inspectType: [
|
|
45
31
|
{
|
|
46
32
|
required: !0,
|
|
47
|
-
message:
|
|
33
|
+
message: r("taskInspectType.inspectTypeRead"),
|
|
48
34
|
trigger: "change"
|
|
49
35
|
}
|
|
50
36
|
]
|
|
51
|
-
}), n =
|
|
37
|
+
}), n = D(k, "modelValue"), v = I, h = async () => {
|
|
52
38
|
var o;
|
|
53
39
|
await ((o = i.value) == null ? void 0 : o.validate((l) => {
|
|
54
|
-
l &&
|
|
55
|
-
console.log(
|
|
56
|
-
message:
|
|
40
|
+
l && S.create(s).then((c) => {
|
|
41
|
+
console.log(c), c.status === 200 && (F({
|
|
42
|
+
message: r("common.submitSuccess"),
|
|
57
43
|
type: "success"
|
|
58
|
-
}), n.value && (n.value = !1),
|
|
44
|
+
}), n.value && (n.value = !1), v("refresh", c.status === 200));
|
|
59
45
|
});
|
|
60
46
|
}));
|
|
61
47
|
};
|
|
@@ -63,26 +49,26 @@ const x = { class: "dialog-footer" }, z = /* @__PURE__ */ $({
|
|
|
63
49
|
n.value && (n.value = !1);
|
|
64
50
|
}
|
|
65
51
|
return (o, l) => {
|
|
66
|
-
const
|
|
67
|
-
return
|
|
52
|
+
const c = a("el-input"), u = a("el-form-item"), f = a("el-col"), b = a("jmash-select"), N = a("el-row"), w = a("el-form"), _ = a("el-button"), C = a("el-dialog");
|
|
53
|
+
return B(), q(C, {
|
|
68
54
|
modelValue: n.value,
|
|
69
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
55
|
+
"onUpdate:modelValue": l[2] || (l[2] = (m) => n.value = m),
|
|
70
56
|
onClose: d
|
|
71
57
|
}, {
|
|
72
58
|
footer: e(() => [
|
|
73
|
-
|
|
59
|
+
E("div", x, [
|
|
74
60
|
t(_, { onClick: d }, {
|
|
75
61
|
default: e(() => [
|
|
76
|
-
g(
|
|
62
|
+
T(g(o.$t("common.cancel")), 1)
|
|
77
63
|
]),
|
|
78
64
|
_: 1
|
|
79
65
|
}),
|
|
80
66
|
t(_, {
|
|
81
67
|
type: "primary",
|
|
82
|
-
onClick:
|
|
68
|
+
onClick: h
|
|
83
69
|
}, {
|
|
84
70
|
default: e(() => [
|
|
85
|
-
g(
|
|
71
|
+
T(g(o.$t("common.confirm")), 1)
|
|
86
72
|
]),
|
|
87
73
|
_: 1
|
|
88
74
|
})
|
|
@@ -92,7 +78,7 @@ const x = { class: "dialog-footer" }, z = /* @__PURE__ */ $({
|
|
|
92
78
|
t(w, {
|
|
93
79
|
ref_key: "taskInspectTypeFormRef",
|
|
94
80
|
ref: i,
|
|
95
|
-
model: p(
|
|
81
|
+
model: p(s),
|
|
96
82
|
"label-width": "120px",
|
|
97
83
|
rules: V
|
|
98
84
|
}, {
|
|
@@ -106,9 +92,9 @@ const x = { class: "dialog-footer" }, z = /* @__PURE__ */ $({
|
|
|
106
92
|
prop: "inspectName"
|
|
107
93
|
}, {
|
|
108
94
|
default: e(() => [
|
|
109
|
-
t(
|
|
110
|
-
modelValue: p(
|
|
111
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
95
|
+
t(c, {
|
|
96
|
+
modelValue: p(s).inspectName,
|
|
97
|
+
"onUpdate:modelValue": l[0] || (l[0] = (m) => p(s).inspectName = m),
|
|
112
98
|
placeholder: o.$t("taskInspectType.likeInspectNameRead"),
|
|
113
99
|
maxlength: "45",
|
|
114
100
|
"show-word-limit": "",
|
|
@@ -128,8 +114,8 @@ const x = { class: "dialog-footer" }, z = /* @__PURE__ */ $({
|
|
|
128
114
|
}, {
|
|
129
115
|
default: e(() => [
|
|
130
116
|
t(b, {
|
|
131
|
-
modelValue: p(
|
|
132
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
117
|
+
modelValue: p(s).inspectType,
|
|
118
|
+
"onUpdate:modelValue": l[1] || (l[1] = (m) => p(s).inspectType = m),
|
|
133
119
|
data: p(j).inspectTypeEnum.values,
|
|
134
120
|
placeholder: o.$t("taskInspectType.inspectTypeRead"),
|
|
135
121
|
clearable: "",
|
|
@@ -152,7 +138,7 @@ const x = { class: "dialog-footer" }, z = /* @__PURE__ */ $({
|
|
|
152
138
|
}, 8, ["modelValue"]);
|
|
153
139
|
};
|
|
154
140
|
}
|
|
155
|
-
}), P = /* @__PURE__ */ A(z, [["__scopeId", "data-v-
|
|
141
|
+
}), P = /* @__PURE__ */ A(z, [["__scopeId", "data-v-cc6ea867"]]);
|
|
156
142
|
export {
|
|
157
143
|
P as default
|
|
158
144
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as se, mergeModels as A, ref as y, reactive as K, compu
|
|
|
2
2
|
import { ElMessage as R } from "element-plus";
|
|
3
3
|
import { useI18n as ue } from "vue-i18n";
|
|
4
4
|
import { u as pe } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as b } from "./index-
|
|
5
|
+
import { r as b } from "./index-Bx46YXNp.mjs";
|
|
6
6
|
import { useUserStoreHook as me } from "jmash-core";
|
|
7
7
|
import { r as fe } from "./index-ISkSSB59.mjs";
|
|
8
8
|
import { C as G, J as H, $ as ce, G as ge } from "./constant-DfJUUaoZ.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getCurrentInstance as F, inject as V, ref as S, computed as d, unref as l, readonly as It, getCurrentScope as Nt, onScopeDispose as Pt, onMounted as ge, nextTick as qe, watch as ae, isRef as $t, warn as Et, provide as xt, defineComponent as x, createElementBlock as G, openBlock as $, mergeProps as jt, renderSlot as Z, normalizeClass as E, createVNode as y, Transition as Je, withCtx as _, withDirectives as Qe, createElementVNode as te, normalizeStyle as We, createTextVNode as Ye, toDisplayString as ye, vShow as Xe, shallowReactive as et, createBlock as U, createCommentVNode as X, resolveDynamicComponent as kt, Fragment as zt, withModifiers as Dt, isVNode as tt, render as Ie, reactive as Ne, resolveComponent as P } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useRoute as Mt, useRouter as At } from "vue-router";
|
|
4
|
-
import { _ as Vt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as Vt } from "./index.vue_vue_type_script_setup_true_lang-DJnj_xhS.mjs";
|
|
5
5
|
import { useI18n as Ft } from "vue-i18n";
|
|
6
|
-
import { t as Pe } from "./index-
|
|
7
|
-
import { D as $e } from "./index-
|
|
6
|
+
import { t as Pe } from "./index-Bx46YXNp.mjs";
|
|
7
|
+
import { D as $e } from "./index-DVeiAERA.mjs";
|
|
8
8
|
import { routerUtil as Bt } from "jmash-core";
|
|
9
9
|
import { i as Ee, c as Lt, w as Rt, s as Kt, a as Ut } from "./index-CJ1aT1h5.mjs";
|
|
10
10
|
const nt = Symbol(), ee = "el", Ht = "is-", j = (e, n, t, o, a) => {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ee, mergeModels as F, ref as c, reactive as U, compu
|
|
|
2
2
|
import { ElMessage as re } from "element-plus";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
4
|
import { u as de } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as $ } from "./index-
|
|
5
|
+
import { r as $ } from "./index-Bx46YXNp.mjs";
|
|
6
6
|
import { useUserStoreHook as se } from "jmash-core";
|
|
7
7
|
import { C as ne, J as ie, $ as ue, G as me } from "./constant-DfJUUaoZ.mjs";
|
|
8
8
|
import "./index-D1SasUNc-Cw4XGyg-.mjs";
|
|
@@ -2,9 +2,9 @@ import { defineComponent as re, mergeModels as D, ref as g, reactive as A, compu
|
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
3
|
import { useI18n as ue } from "vue-i18n";
|
|
4
4
|
import { u as ie } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as I } from "./index-
|
|
5
|
+
import { r as I } from "./index-Bx46YXNp.mjs";
|
|
6
6
|
import { useUserStoreHook as ne } from "jmash-core";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-DVeiAERA.mjs";
|
|
8
8
|
import { r as pe } from "./index-ISkSSB59.mjs";
|
|
9
9
|
import { C as me, J as fe, $ as ce, G as ge } from "./constant-DfJUUaoZ.mjs";
|
|
10
10
|
import "./index-D1SasUNc-Cw4XGyg-.mjs";
|
|
@@ -4,7 +4,7 @@ import { useI18n as fe } from "vue-i18n";
|
|
|
4
4
|
import { r as I } from "./index-DVvlf-iS.mjs";
|
|
5
5
|
import { useUserStoreHook as ge } from "jmash-core";
|
|
6
6
|
import { u as ye } from "./index-CJ1aT1h5.mjs";
|
|
7
|
-
import { a as ve, D as c } from "./index-
|
|
7
|
+
import { a as ve, D as c } from "./index-DVeiAERA.mjs";
|
|
8
8
|
import { C as z } from "./constant-DfJUUaoZ.mjs";
|
|
9
9
|
import { r as De } from "./index-ISkSSB59.mjs";
|
|
10
10
|
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -318,14 +318,14 @@ const _e = { class: "dialog-footer" }, he = /* @__PURE__ */ ue({
|
|
|
318
318
|
l(p, { span: 24 }, {
|
|
319
319
|
default: d(() => [
|
|
320
320
|
l(u, {
|
|
321
|
-
label: t.$t("reportDemandLedger.
|
|
321
|
+
label: t.$t("reportDemandLedger.content"),
|
|
322
322
|
prop: "content"
|
|
323
323
|
}, {
|
|
324
324
|
default: d(() => [
|
|
325
325
|
l(U, {
|
|
326
326
|
modelValue: r(e).content,
|
|
327
327
|
"onUpdate:modelValue": a[3] || (a[3] = (o) => r(e).content = o),
|
|
328
|
-
placeholder: t.$t("reportDemandLedger.
|
|
328
|
+
placeholder: t.$t("reportDemandLedger.contentRequired"),
|
|
329
329
|
type: "textarea",
|
|
330
330
|
"show-word-limit": "",
|
|
331
331
|
clearable: "",
|
|
@@ -552,7 +552,7 @@ const _e = { class: "dialog-footer" }, he = /* @__PURE__ */ ue({
|
|
|
552
552
|
], 64);
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
|
-
}), Me = /* @__PURE__ */ be(he, [["__scopeId", "data-v-
|
|
555
|
+
}), Me = /* @__PURE__ */ be(he, [["__scopeId", "data-v-3dd44ca3"]]);
|
|
556
556
|
export {
|
|
557
557
|
Me as default
|
|
558
558
|
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as ae, mergeModels as E, ref as g, reactive as L, compu
|
|
|
2
2
|
import { ElMessage as S } from "element-plus";
|
|
3
3
|
import { useI18n as ie } from "vue-i18n";
|
|
4
4
|
import { u as ne } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as I } from "./index-
|
|
5
|
+
import { r as I } from "./index-Bx46YXNp.mjs";
|
|
6
6
|
import { useUserStoreHook as pe } from "jmash-core";
|
|
7
|
-
import { D as me } from "./index-
|
|
7
|
+
import { D as me } from "./index-DVeiAERA.mjs";
|
|
8
8
|
import { r as fe } from "./index-ISkSSB59.mjs";
|
|
9
9
|
import { C as ce, J as ge, $ as ye, G as he } from "./constant-DfJUUaoZ.mjs";
|
|
10
10
|
import "./index-D1SasUNc-Cw4XGyg-.mjs";
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { defineComponent as z, mergeModels as q, ref as A, reactive as E, computed as i, useModel as J, resolveComponent as p, createBlock as I, openBlock as k, withCtx as s, createVNode as a, unref as t, createCommentVNode as D, createElementVNode as Q, createTextVNode as w, toDisplayString as W } from "vue";
|
|
2
|
+
import { ElMessage as C } from "element-plus";
|
|
3
|
+
import { useI18n as Z } from "vue-i18n";
|
|
4
|
+
import { a as _ } from "./index-Bx46YXNp.mjs";
|
|
5
|
+
import { useRoute as ee } from "vue-router";
|
|
6
|
+
import { D as N } from "./index-DVeiAERA.mjs";
|
|
7
|
+
import { C as n } from "./constant-DfJUUaoZ.mjs";
|
|
8
|
+
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const ae = { class: "dialog-footer" }, se = /* @__PURE__ */ z({
|
|
10
|
+
__name: "edit",
|
|
11
|
+
props: /* @__PURE__ */ q({
|
|
12
|
+
entityKey: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
modelValue: { type: Boolean },
|
|
19
|
+
modelModifiers: {}
|
|
20
|
+
}),
|
|
21
|
+
emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
|
|
22
|
+
setup(v, { emit: O }) {
|
|
23
|
+
const { t: e } = Z();
|
|
24
|
+
console.log(N.riskLevelEnum.values, "=> riskLevelEnum");
|
|
25
|
+
const r = ee(), g = A();
|
|
26
|
+
let l = E({
|
|
27
|
+
requestId: Math.random() * 10 + "",
|
|
28
|
+
updateMask: "mattersDimension,mattersItem,mattersStandard,mattersWay,riskLevel",
|
|
29
|
+
inspectId: r.query.inspectId,
|
|
30
|
+
inspectType: r.query.inspectType
|
|
31
|
+
});
|
|
32
|
+
const P = i(() => r.query.inspectType === n.LOG_ANALYSIS ? e("taskInspectMatters.checklistItem") : e("taskInspectMatters.mattersItem")), F = i(() => r.query.inspectType === n.LOG_ANALYSIS ? e("taskInspectMatters.checklistItemRead") : e("taskInspectMatters.mattersItemRead")), U = i(() => r.query.inspectType === n.SOFTWARE ? e("taskInspectMatters.checkCategory") : e("taskInspectMatters.mattersDimension")), M = i(() => r.query.inspectType === n.SOFTWARE ? e("taskInspectMatters.checkCategoryRead") : e("taskInspectMatters.mattersDimensionRead")), j = i(() => r.query.inspectType === n.LOG_ANALYSIS ? e("taskInspectMatters.complianceStandard") : r.query.inspectType === n.EXPERT_INSPECTION ? e("taskInspectMatters.professionalStandards") : e("taskInspectMatters.mattersStandard")), h = i(() => r.query.inspectType === n.LOG_ANALYSIS ? e("taskInspectMatters.complianceStandardRead") : r.query.inspectType === n.EXPERT_INSPECTION ? e("taskInspectMatters.professionalStandardsRead") : e("taskInspectMatters.mattersStandardRead")), B = i(() => r.query.inspectType === n.HARDWARE ? e("taskInspectMatters.checkMethod") : e("taskInspectMatters.mattersWay")), b = i(() => r.query.inspectType === n.HARDWARE ? e("taskInspectMatters.checkMethodRead") : e("taskInspectMatters.mattersWayRead")), G = E({
|
|
33
|
+
mattersItem: [
|
|
34
|
+
{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: e("taskInspectMatters.mattersItemRead"),
|
|
37
|
+
trigger: "change"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
riskLevel: [
|
|
41
|
+
{
|
|
42
|
+
required: !0,
|
|
43
|
+
message: e("taskInspectMatters.riskLevelRead"),
|
|
44
|
+
trigger: "change"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
mattersDimension: [
|
|
48
|
+
{
|
|
49
|
+
required: !0,
|
|
50
|
+
message: M.value,
|
|
51
|
+
trigger: "change"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
mattersStandard: [
|
|
55
|
+
{
|
|
56
|
+
required: !0,
|
|
57
|
+
message: h.value,
|
|
58
|
+
trigger: "change"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
mattersWay: [
|
|
62
|
+
{
|
|
63
|
+
required: !0,
|
|
64
|
+
message: b.value,
|
|
65
|
+
trigger: "change"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}), c = J(v, "modelValue"), R = v, S = O, H = Object.keys(R.entityKey), V = A(H.length >= 1);
|
|
69
|
+
V.value && _.findById(R.entityKey).then(({ data: d }) => {
|
|
70
|
+
Object.assign(l, d);
|
|
71
|
+
});
|
|
72
|
+
const Y = async () => {
|
|
73
|
+
var d;
|
|
74
|
+
await ((d = g.value) == null ? void 0 : d.validate((o) => {
|
|
75
|
+
o && (V.value ? _.update(l).then((m) => {
|
|
76
|
+
console.log(m), m.status === 200 && (C({
|
|
77
|
+
message: e("common.submitSuccess"),
|
|
78
|
+
type: "success"
|
|
79
|
+
}), c.value && (c.value = !1), S("refresh", m.status === 200));
|
|
80
|
+
}) : _.create(l).then((m) => {
|
|
81
|
+
console.log(m), m.status === 200 && (C({
|
|
82
|
+
message: e("common.submitSuccess"),
|
|
83
|
+
type: "success"
|
|
84
|
+
}), c.value && (c.value = !1), S("refresh", m.status === 200));
|
|
85
|
+
}));
|
|
86
|
+
}));
|
|
87
|
+
};
|
|
88
|
+
function L() {
|
|
89
|
+
c.value && (c.value = !1);
|
|
90
|
+
}
|
|
91
|
+
return (d, o) => {
|
|
92
|
+
const m = p("el-input"), f = p("el-form-item"), y = p("el-col"), $ = p("jmash-select"), x = p("el-row"), K = p("el-form"), T = p("el-button"), X = p("el-dialog");
|
|
93
|
+
return k(), I(X, {
|
|
94
|
+
modelValue: c.value,
|
|
95
|
+
"onUpdate:modelValue": o[5] || (o[5] = (u) => c.value = u),
|
|
96
|
+
onClose: L
|
|
97
|
+
}, {
|
|
98
|
+
footer: s(() => [
|
|
99
|
+
Q("div", ae, [
|
|
100
|
+
a(T, { onClick: L }, {
|
|
101
|
+
default: s(() => [
|
|
102
|
+
w(W(d.$t("common.cancel")), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}),
|
|
106
|
+
a(T, {
|
|
107
|
+
type: "primary",
|
|
108
|
+
onClick: Y
|
|
109
|
+
}, {
|
|
110
|
+
default: s(() => [
|
|
111
|
+
w(W(d.$t("common.confirm")), 1)
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
default: s(() => [
|
|
118
|
+
a(K, {
|
|
119
|
+
ref_key: "taskInspectMattersFormRef",
|
|
120
|
+
ref: g,
|
|
121
|
+
model: t(l),
|
|
122
|
+
"label-width": "120px",
|
|
123
|
+
rules: G
|
|
124
|
+
}, {
|
|
125
|
+
default: s(() => [
|
|
126
|
+
a(x, null, {
|
|
127
|
+
default: s(() => [
|
|
128
|
+
a(y, { span: 24 }, {
|
|
129
|
+
default: s(() => [
|
|
130
|
+
a(f, {
|
|
131
|
+
label: P.value,
|
|
132
|
+
prop: "mattersItem"
|
|
133
|
+
}, {
|
|
134
|
+
default: s(() => [
|
|
135
|
+
a(m, {
|
|
136
|
+
modelValue: t(l).mattersItem,
|
|
137
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => t(l).mattersItem = u),
|
|
138
|
+
placeholder: F.value,
|
|
139
|
+
"show-word-limit": "",
|
|
140
|
+
clearable: ""
|
|
141
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 8, ["label"])
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
t(r).query.inspectType === t(n).HARDWARE ? (k(), I(y, {
|
|
149
|
+
key: 0,
|
|
150
|
+
span: 12
|
|
151
|
+
}, {
|
|
152
|
+
default: s(() => [
|
|
153
|
+
a(f, {
|
|
154
|
+
label: d.$t("taskInspectMatters.riskLevel"),
|
|
155
|
+
prop: "riskLevel"
|
|
156
|
+
}, {
|
|
157
|
+
default: s(() => [
|
|
158
|
+
a($, {
|
|
159
|
+
modelValue: t(l).riskLevel,
|
|
160
|
+
"onUpdate:modelValue": o[1] || (o[1] = (u) => t(l).riskLevel = u),
|
|
161
|
+
data: t(N).riskLevelEnum.values,
|
|
162
|
+
placeholder: d.$t("taskInspectMatters.riskLevelRead"),
|
|
163
|
+
"show-word-limit": "",
|
|
164
|
+
clearable: "",
|
|
165
|
+
class: "w-full"
|
|
166
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["label"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
})) : D("", !0),
|
|
173
|
+
a(y, {
|
|
174
|
+
span: t(r).query.inspectType === t(n).HARDWARE ? 12 : 24
|
|
175
|
+
}, {
|
|
176
|
+
default: s(() => [
|
|
177
|
+
a(f, {
|
|
178
|
+
label: U.value,
|
|
179
|
+
prop: "mattersDimension"
|
|
180
|
+
}, {
|
|
181
|
+
default: s(() => [
|
|
182
|
+
a(m, {
|
|
183
|
+
modelValue: t(l).mattersDimension,
|
|
184
|
+
"onUpdate:modelValue": o[2] || (o[2] = (u) => t(l).mattersDimension = u),
|
|
185
|
+
placeholder: M.value,
|
|
186
|
+
"show-word-limit": "",
|
|
187
|
+
clearable: ""
|
|
188
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["label"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["span"]),
|
|
195
|
+
t(r).query.inspectType !== t(n).SOFTWARE ? (k(), I(y, {
|
|
196
|
+
key: 1,
|
|
197
|
+
span: 24
|
|
198
|
+
}, {
|
|
199
|
+
default: s(() => [
|
|
200
|
+
a(f, {
|
|
201
|
+
label: j.value,
|
|
202
|
+
prop: "mattersStandard"
|
|
203
|
+
}, {
|
|
204
|
+
default: s(() => [
|
|
205
|
+
a(m, {
|
|
206
|
+
modelValue: t(l).mattersStandard,
|
|
207
|
+
"onUpdate:modelValue": o[3] || (o[3] = (u) => t(l).mattersStandard = u),
|
|
208
|
+
placeholder: h.value,
|
|
209
|
+
"show-word-limit": "",
|
|
210
|
+
clearable: ""
|
|
211
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["label"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})) : D("", !0),
|
|
218
|
+
a(y, { span: 24 }, {
|
|
219
|
+
default: s(() => [
|
|
220
|
+
a(f, {
|
|
221
|
+
label: B.value,
|
|
222
|
+
prop: "mattersWay"
|
|
223
|
+
}, {
|
|
224
|
+
default: s(() => [
|
|
225
|
+
a(m, {
|
|
226
|
+
modelValue: t(l).mattersWay,
|
|
227
|
+
"onUpdate:modelValue": o[4] || (o[4] = (u) => t(l).mattersWay = u),
|
|
228
|
+
placeholder: b.value,
|
|
229
|
+
"show-word-limit": "",
|
|
230
|
+
clearable: "",
|
|
231
|
+
type: "textarea"
|
|
232
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 8, ["label"])
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
})
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
})
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["model", "rules"])
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["modelValue"]);
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
}), ie = /* @__PURE__ */ te(se, [["__scopeId", "data-v-bf7193d9"]]);
|
|
251
|
+
export {
|
|
252
|
+
ie as default
|
|
253
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as O, mergeModels as I, ref as Y, reactive as v, useMod
|
|
|
2
2
|
import { ElMessage as F } from "element-plus";
|
|
3
3
|
import { useI18n as N } from "vue-i18n";
|
|
4
4
|
import { r as A } from "./index-DVvlf-iS.mjs";
|
|
5
|
-
import { D as p } from "./index-
|
|
5
|
+
import { D as p } from "./index-DVeiAERA.mjs";
|
|
6
6
|
import { r as E } from "./index-BdtTv-FT.mjs";
|
|
7
7
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
8
|
const T = { class: "dialog-footer" }, G = /* @__PURE__ */ O({
|
|
@@ -2,7 +2,7 @@ import { defineComponent as K, ref as i, reactive as w, toRefs as Q, computed as
|
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
3
|
import { ElMessage as g } from "element-plus";
|
|
4
4
|
import { fileApi as $, useUserStore as O } from "jmash-core";
|
|
5
|
-
import { D as U } from "./index-
|
|
5
|
+
import { D as U } from "./index-DVeiAERA.mjs";
|
|
6
6
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const le = { class: "el-upload__text" }, ae = { style: { color: "var(--el-color-primary)" } }, ne = { class: "dialog-footer" }, se = /* @__PURE__ */ K({
|
|
8
8
|
__name: "import-upload",
|
|
@@ -2,7 +2,7 @@ import { defineComponent as K, ref as i, reactive as w, toRefs as Q, computed as
|
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
3
|
import { ElMessage as g } from "element-plus";
|
|
4
4
|
import { fileApi as $, useUserStore as O } from "jmash-core";
|
|
5
|
-
import { D as U } from "./index-
|
|
5
|
+
import { D as U } from "./index-DVeiAERA.mjs";
|
|
6
6
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const le = { class: "el-upload__text" }, ae = { style: { color: "var(--el-color-primary)" } }, ne = { class: "dialog-footer" }, se = /* @__PURE__ */ K({
|
|
8
8
|
__name: "import-upload",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as pe, getCurrentInstance as ue, watch as me, ref as O, reactive as M, onActivated as ce, resolveComponent as u, resolveDirective as ye, createElementBlock as T, openBlock as d, createElementVNode as D, createVNode as r, createBlock as g, createCommentVNode as k, withCtx as l, withKeys as z, unref as a, createTextVNode as c, toDisplayString as i, withDirectives as h, isRef as Q } from "vue";
|
|
2
2
|
import { useTableHooks as ve } from "jmash-core";
|
|
3
3
|
import { useI18n as fe } from "vue-i18n";
|
|
4
|
-
import { r as N } from "./index-
|
|
5
|
-
import be from "./edit-
|
|
6
|
-
import { _ as ge } from "./info.vue_vue_type_script_setup_true_lang
|
|
4
|
+
import { r as N } from "./index-Bx46YXNp.mjs";
|
|
5
|
+
import be from "./edit-Dfg9GKxT.mjs";
|
|
6
|
+
import { _ as ge } from "./info.vue_vue_type_script_setup_true_lang-D-dN92Aq.mjs";
|
|
7
7
|
import { b as he } from "./index-B_hFZVhb-C3Oi__-I.mjs";
|
|
8
8
|
import { C as P } from "./constant-DfJUUaoZ.mjs";
|
|
9
|
-
import { a as Te, O as we, D as R } from "./index-
|
|
10
|
-
import { F as Ie } from "./FileSaver.min-
|
|
11
|
-
import _e from "./import-upload-
|
|
9
|
+
import { a as Te, O as we, D as R } from "./index-DVeiAERA.mjs";
|
|
10
|
+
import { F as Ie } from "./FileSaver.min-C8jP6urb.mjs";
|
|
11
|
+
import _e from "./import-upload-CmEF0ael.mjs";
|
|
12
12
|
const ke = { class: "app-container" }, Ce = { class: "search-container" }, $e = { key: 0 }, Ve = { key: 0 }, Oe = ["onClick"], De = ["onClick"], Pe = ["onClick"], Re = ["onClick"], Ae = /* @__PURE__ */ pe({
|
|
13
13
|
__name: "index",
|
|
14
14
|
setup(Ee) {
|