xyvcard-itsmsys 0.0.18 → 0.0.20
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/README.md +51 -51
- package/dist/{edit-C1zg8B0y.mjs → edit-BrHOGUbU.mjs} +1 -1
- package/dist/{edit-Cs3KIwaz.mjs → edit-CNEVornb.mjs} +100 -100
- package/dist/{edit-CxRGbAP_.mjs → edit-COKceKzl.mjs} +87 -87
- package/dist/{edit-DLN1WFrt.mjs → edit-Czi-Vkbf.mjs} +1 -1
- package/dist/{edit-CNFS8ehW.mjs → edit-DYqAdRsK.mjs} +99 -99
- package/dist/{edit-DlEW6lB8.mjs → edit-DybO5r3p.mjs} +1 -1
- package/dist/{edit-Dmxyf_Gp.mjs → edit-_QJnKCdq.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-jsZCbrsm.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
- package/dist/{edit.vue_vue_type_script_setup_true_lang-MQ4ZtR6S.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +172 -173
- package/dist/{edit.vue_vue_type_script_setup_true_lang-eMXMvSnV.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
- package/dist/{import-upload-BvBtwEbI.mjs → import-upload-BaJGVcNb.mjs} +6 -6
- package/dist/{import-upload-BM5kcXdg.mjs → import-upload-CC1Ho43e.mjs} +2 -2
- package/dist/{index-D2e-NU3E.mjs → index-BV5uRZXE.mjs} +24 -22
- package/dist/{index-nhzVBt2y.mjs → index-CAzxJ_Vp.mjs} +38 -38
- package/dist/{index-D2BUGsak.mjs → index-Di1yx94g.mjs} +32 -30
- package/dist/{index-Dsf1qOUx.mjs → index-IpHv0Vzi.mjs} +1 -1
- package/dist/{index-Bxg8G8aA.mjs → index-WHNNztBg.mjs} +30 -28
- package/dist/{index-BzqZLipq.mjs → index-cpyRUYdS.mjs} +57 -55
- package/dist/{index-EhejgmO6.mjs → index-dIcRC4jE.mjs} +7 -13
- package/dist/{index-CdQGs3Vu.mjs → index-q_wZjCJN.mjs} +30 -28
- package/dist/index.mjs +1021 -936
- package/dist/{index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
- package/dist/{info-rnc-sgQt.mjs → info-BUKhtcuu.mjs} +2 -2
- package/dist/{info-DBObKyIh.mjs → info-Bn5mhJtq.mjs} +2 -2
- package/dist/{info-BZ7IZet8.mjs → info-Dx5fzSIP.mjs} +2 -2
- package/dist/{info-B2d8xPwW.mjs → info-EodyqiPm.mjs} +2 -2
- package/dist/{info-CoizfoOq.mjs → info-G1z1-aeX.mjs} +2 -2
- package/dist/{info-CCfX-q4c.mjs → info-bYWisCey.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/index.d.ts +5 -0
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
- package/dts/api/itsm-sys-user-ext/types.d.ts +8 -0
- package/dts/constant.d.ts +0 -4
- package/dts/index.d.ts +0 -1
- package/dts/lang/itsmsys/en.d.ts +130 -49
- package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
- package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
- package/package.json +58 -60
- package/dist/import-upload-CjeTCQBx.mjs +0 -161
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, mergeModels as q, ref as N, useModel as F, reactive as R, resolveComponent as m, openBlock as K, createBlock as A, withCtx as s, createElementVNode as G, createVNode as e, createTextVNode as $, toDisplayString as E, unref as o } from "vue";
|
|
2
2
|
import { ElMessage as j } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
3
|
+
import { useI18n as L } from "vue-i18n";
|
|
4
|
+
import { validatePhoneNumber as H, validateEmail as Q, validateIDCard as W } from "jmash-core";
|
|
5
|
+
import { D as g, C as y } from "./index-dIcRC4jE.mjs";
|
|
4
6
|
import { sysUserExtApi as b } from "./index.mjs";
|
|
5
|
-
|
|
6
|
-
const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
7
|
+
const X = { class: "dialog-footer" }, oe = /* @__PURE__ */ z({
|
|
7
8
|
__name: "edit",
|
|
8
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ q({
|
|
9
10
|
entityKey: {
|
|
10
11
|
type: Object,
|
|
11
12
|
default: () => {
|
|
@@ -15,11 +16,11 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
15
16
|
modelValue: { type: Boolean },
|
|
16
17
|
modelModifiers: {}
|
|
17
18
|
}),
|
|
18
|
-
emits: /* @__PURE__ */
|
|
19
|
-
setup(c, { emit:
|
|
20
|
-
const { t:
|
|
21
|
-
|
|
22
|
-
let
|
|
19
|
+
emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(c, { emit: C }) {
|
|
21
|
+
const { t: u } = L(), U = N(), p = F(c, "modelValue"), V = C;
|
|
22
|
+
g.sysOrgBizDict.useValues();
|
|
23
|
+
let r = R({
|
|
23
24
|
requestId: Math.random() * 10 + "",
|
|
24
25
|
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineerType,engineerJobMode,engineerSpecialty,engineerCertificate",
|
|
25
26
|
userType: y.userType.companyOps,
|
|
@@ -27,102 +28,104 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
27
28
|
engineerType: y.engineerType.ease_test,
|
|
28
29
|
engineerJobMode: y.engineerJobMode.resident
|
|
29
30
|
});
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
},
|
|
31
|
+
const M = (a, l, n) => {
|
|
32
|
+
l && (Q(l) || n(new Error(u("sysUserOps.emailRequireds")))), n();
|
|
33
|
+
}, S = (a, l, n) => {
|
|
34
|
+
l && (W(l) || n(new Error(u("sysUserOps.idNoLengthRequired")))), n();
|
|
35
|
+
}, I = R({
|
|
33
36
|
realName: [
|
|
34
37
|
{
|
|
35
38
|
required: !0,
|
|
36
|
-
message:
|
|
39
|
+
message: u("sysUserOps.realNameRequired"),
|
|
37
40
|
trigger: "blur"
|
|
38
41
|
}
|
|
39
42
|
],
|
|
40
43
|
mobilePhone: [
|
|
41
44
|
{
|
|
42
45
|
required: !0,
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
validator: (a, l, n) => {
|
|
47
|
+
l ? H(l) ? n() : n(new Error(u("sysUserOps.mobilePhoneRequireds"))) : n(new Error(u("sysUserOps.mobilePhoneRequired")));
|
|
48
|
+
},
|
|
49
|
+
trigger: "blur"
|
|
45
50
|
}
|
|
46
51
|
],
|
|
47
52
|
email: [
|
|
48
53
|
{
|
|
49
|
-
|
|
50
|
-
message: m("sysUserOps.emailRequireds"),
|
|
54
|
+
validator: M,
|
|
51
55
|
trigger: "blur"
|
|
52
56
|
}
|
|
53
57
|
],
|
|
54
58
|
idNo: [
|
|
55
59
|
{
|
|
56
|
-
|
|
57
|
-
message: m("sysUserOps.idNoLengthRequired"),
|
|
60
|
+
validator: S,
|
|
58
61
|
trigger: "blur"
|
|
59
62
|
}
|
|
60
63
|
],
|
|
61
64
|
engineerType: [
|
|
62
65
|
{
|
|
63
66
|
required: !0,
|
|
64
|
-
message:
|
|
67
|
+
message: u("sysUserOps.engineerTypeRequired"),
|
|
65
68
|
trigger: "change"
|
|
66
69
|
}
|
|
67
70
|
],
|
|
68
71
|
engineerJobMode: [
|
|
69
72
|
{
|
|
70
73
|
required: !0,
|
|
71
|
-
message:
|
|
74
|
+
message: u("sysUserOps.engineerJobModeRequired"),
|
|
72
75
|
trigger: "change"
|
|
73
76
|
}
|
|
74
77
|
],
|
|
75
78
|
orgId: [
|
|
76
79
|
{
|
|
77
80
|
required: !0,
|
|
78
|
-
message:
|
|
81
|
+
message: u("sysUserOps.orgIdRequired"),
|
|
79
82
|
trigger: "change"
|
|
80
83
|
}
|
|
81
84
|
]
|
|
82
|
-
}), h = c, T = Object.keys(h.entityKey), O =
|
|
83
|
-
O.value && b.findById(h.entityKey).then(({ data:
|
|
84
|
-
Object.assign(
|
|
85
|
+
}), h = c, T = Object.keys(h.entityKey), O = N(T.length >= 1);
|
|
86
|
+
O.value && b.findById(h.entityKey).then(({ data: a }) => {
|
|
87
|
+
Object.assign(r, a), r.gender === "unknown" && (r.gender = "");
|
|
85
88
|
});
|
|
86
|
-
const
|
|
87
|
-
var
|
|
88
|
-
await ((
|
|
89
|
-
|
|
89
|
+
const D = async () => {
|
|
90
|
+
var a;
|
|
91
|
+
await ((a = U.value) == null ? void 0 : a.validate((l) => {
|
|
92
|
+
l && (O.value ? b.update(r).then((n) => {
|
|
90
93
|
n.status === 200 && (j({
|
|
91
|
-
message:
|
|
94
|
+
message: u("common.submitSuccess"),
|
|
92
95
|
type: "success"
|
|
93
96
|
}), p.value && (p.value = !1), V("refresh", n.status === 200));
|
|
94
|
-
}) : b.create(
|
|
97
|
+
}) : b.create(r).then((n) => {
|
|
95
98
|
n.status === 200 && (j({
|
|
96
|
-
message:
|
|
99
|
+
message: u("common.submitSuccess"),
|
|
97
100
|
type: "success"
|
|
98
101
|
}), p.value && (p.value = !1), V("refresh", n.status === 200));
|
|
99
102
|
}));
|
|
100
103
|
}));
|
|
101
104
|
};
|
|
102
|
-
function
|
|
105
|
+
function w() {
|
|
103
106
|
p.value && (p.value = !1);
|
|
104
107
|
}
|
|
105
|
-
return (
|
|
106
|
-
const n =
|
|
107
|
-
return
|
|
108
|
+
return (a, l) => {
|
|
109
|
+
const n = m("jmash-select"), d = m("el-form-item"), i = m("el-col"), f = m("el-input"), v = m("jmash-enum-radio"), J = m("jmash-dict-select"), P = m("el-row"), k = m("el-form"), _ = m("el-button"), B = m("el-dialog");
|
|
110
|
+
return K(), A(B, {
|
|
108
111
|
modelValue: p.value,
|
|
109
|
-
"onUpdate:modelValue":
|
|
110
|
-
onClose:
|
|
112
|
+
"onUpdate:modelValue": l[11] || (l[11] = (t) => p.value = t),
|
|
113
|
+
onClose: w
|
|
111
114
|
}, {
|
|
112
115
|
footer: s(() => [
|
|
113
|
-
|
|
114
|
-
e(
|
|
116
|
+
G("div", X, [
|
|
117
|
+
e(_, { onClick: w }, {
|
|
115
118
|
default: s(() => [
|
|
116
|
-
|
|
119
|
+
$(E(a.$t("common.cancel")), 1)
|
|
117
120
|
]),
|
|
118
121
|
_: 1
|
|
119
122
|
}),
|
|
120
|
-
e(
|
|
123
|
+
e(_, {
|
|
121
124
|
type: "primary",
|
|
122
|
-
onClick:
|
|
125
|
+
onClick: D
|
|
123
126
|
}, {
|
|
124
127
|
default: s(() => [
|
|
125
|
-
|
|
128
|
+
$(E(a.$t("common.confirm")), 1)
|
|
126
129
|
]),
|
|
127
130
|
_: 1
|
|
128
131
|
})
|
|
@@ -132,9 +135,9 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
132
135
|
e(k, {
|
|
133
136
|
ref_key: "sysUserExtFormRef",
|
|
134
137
|
ref: U,
|
|
135
|
-
model: r
|
|
138
|
+
model: o(r),
|
|
136
139
|
"label-width": "100px",
|
|
137
|
-
rules:
|
|
140
|
+
rules: I
|
|
138
141
|
}, {
|
|
139
142
|
default: s(() => [
|
|
140
143
|
e(P, null, {
|
|
@@ -142,15 +145,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
142
145
|
e(i, { span: 12 }, {
|
|
143
146
|
default: s(() => [
|
|
144
147
|
e(d, {
|
|
145
|
-
label:
|
|
148
|
+
label: a.$t("sysUserOps.orgId"),
|
|
146
149
|
prop: "orgId"
|
|
147
150
|
}, {
|
|
148
151
|
default: s(() => [
|
|
149
152
|
e(n, {
|
|
150
|
-
modelValue: r
|
|
151
|
-
"onUpdate:modelValue":
|
|
152
|
-
placeholder:
|
|
153
|
-
data:
|
|
153
|
+
modelValue: o(r).orgId,
|
|
154
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => o(r).orgId = t),
|
|
155
|
+
placeholder: a.$t("sysUserOps.orgIdRequired"),
|
|
156
|
+
data: o(g).sysOrgBizDict.values,
|
|
154
157
|
clearable: "",
|
|
155
158
|
class: "w-full"
|
|
156
159
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -163,14 +166,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
163
166
|
e(i, { span: 12 }, {
|
|
164
167
|
default: s(() => [
|
|
165
168
|
e(d, {
|
|
166
|
-
label:
|
|
169
|
+
label: a.$t("sysUserOps.realName"),
|
|
167
170
|
prop: "realName"
|
|
168
171
|
}, {
|
|
169
172
|
default: s(() => [
|
|
170
|
-
e(
|
|
171
|
-
modelValue: r
|
|
172
|
-
"onUpdate:modelValue":
|
|
173
|
-
placeholder:
|
|
173
|
+
e(f, {
|
|
174
|
+
modelValue: o(r).realName,
|
|
175
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => o(r).realName = t),
|
|
176
|
+
placeholder: a.$t("sysUserOps.realNameRequired"),
|
|
174
177
|
maxlength: "8",
|
|
175
178
|
"show-word-limit": "",
|
|
176
179
|
clearable: ""
|
|
@@ -184,18 +187,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
184
187
|
e(i, { span: 12 }, {
|
|
185
188
|
default: s(() => [
|
|
186
189
|
e(d, {
|
|
187
|
-
label:
|
|
190
|
+
label: a.$t("sysUserOps.gender"),
|
|
188
191
|
prop: "gender"
|
|
189
192
|
}, {
|
|
190
193
|
default: s(() => [
|
|
191
|
-
e(
|
|
192
|
-
modelValue: r
|
|
193
|
-
"onUpdate:modelValue":
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"enum-type": "jmash.protobuf.Gender",
|
|
197
|
-
class: "w-full"
|
|
198
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
194
|
+
e(v, {
|
|
195
|
+
modelValue: o(r).gender,
|
|
196
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => o(r).gender = t),
|
|
197
|
+
data: o(g).genderDict.values
|
|
198
|
+
}, null, 8, ["modelValue", "data"])
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
201
|
}, 8, ["label"])
|
|
@@ -205,14 +205,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
205
205
|
e(i, { span: 12 }, {
|
|
206
206
|
default: s(() => [
|
|
207
207
|
e(d, {
|
|
208
|
-
label:
|
|
208
|
+
label: a.$t("sysUserOps.mobilePhone"),
|
|
209
209
|
prop: "mobilePhone"
|
|
210
210
|
}, {
|
|
211
211
|
default: s(() => [
|
|
212
|
-
e(
|
|
213
|
-
modelValue: r
|
|
214
|
-
"onUpdate:modelValue":
|
|
215
|
-
placeholder:
|
|
212
|
+
e(f, {
|
|
213
|
+
modelValue: o(r).mobilePhone,
|
|
214
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => o(r).mobilePhone = t),
|
|
215
|
+
placeholder: a.$t("sysUserOps.mobilePhoneRequired"),
|
|
216
216
|
maxlength: "11",
|
|
217
217
|
"show-word-limit": "",
|
|
218
218
|
clearable: ""
|
|
@@ -226,14 +226,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
226
226
|
e(i, { span: 12 }, {
|
|
227
227
|
default: s(() => [
|
|
228
228
|
e(d, {
|
|
229
|
-
label:
|
|
229
|
+
label: a.$t("sysUserOps.email"),
|
|
230
230
|
prop: "email"
|
|
231
231
|
}, {
|
|
232
232
|
default: s(() => [
|
|
233
|
-
e(
|
|
234
|
-
modelValue: r
|
|
235
|
-
"onUpdate:modelValue":
|
|
236
|
-
placeholder:
|
|
233
|
+
e(f, {
|
|
234
|
+
modelValue: o(r).email,
|
|
235
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => o(r).email = t),
|
|
236
|
+
placeholder: a.$t("sysUserOps.emailRequired"),
|
|
237
237
|
maxlength: "30",
|
|
238
238
|
"show-word-limit": "",
|
|
239
239
|
clearable: ""
|
|
@@ -247,14 +247,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
247
247
|
e(i, { span: 12 }, {
|
|
248
248
|
default: s(() => [
|
|
249
249
|
e(d, {
|
|
250
|
-
label:
|
|
250
|
+
label: a.$t("sysUserOps.idNo"),
|
|
251
251
|
prop: "idNo"
|
|
252
252
|
}, {
|
|
253
253
|
default: s(() => [
|
|
254
|
-
e(
|
|
255
|
-
modelValue: r
|
|
256
|
-
"onUpdate:modelValue":
|
|
257
|
-
placeholder:
|
|
254
|
+
e(f, {
|
|
255
|
+
modelValue: o(r).idNo,
|
|
256
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => o(r).idNo = t),
|
|
257
|
+
placeholder: a.$t("sysUserOps.idNoRequired"),
|
|
258
258
|
maxlength: "18",
|
|
259
259
|
"show-word-limit": "",
|
|
260
260
|
clearable: ""
|
|
@@ -268,15 +268,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
268
268
|
e(i, { span: 12 }, {
|
|
269
269
|
default: s(() => [
|
|
270
270
|
e(d, {
|
|
271
|
-
label:
|
|
271
|
+
label: a.$t("sysUserOps.engineerType"),
|
|
272
272
|
prop: "engineerType"
|
|
273
273
|
}, {
|
|
274
274
|
default: s(() => [
|
|
275
275
|
e(n, {
|
|
276
|
-
modelValue: r
|
|
277
|
-
"onUpdate:modelValue":
|
|
278
|
-
placeholder:
|
|
279
|
-
data:
|
|
276
|
+
modelValue: o(r).engineerType,
|
|
277
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => o(r).engineerType = t),
|
|
278
|
+
placeholder: a.$t("sysUserOps.engineerTypeRequired"),
|
|
279
|
+
data: o(g).engineerTypeDictEnum.values,
|
|
280
280
|
clearable: "",
|
|
281
281
|
class: "w-full"
|
|
282
282
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -289,15 +289,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
289
289
|
e(i, { span: 12 }, {
|
|
290
290
|
default: s(() => [
|
|
291
291
|
e(d, {
|
|
292
|
-
label:
|
|
292
|
+
label: a.$t("sysUserOps.engineerCertificate"),
|
|
293
293
|
prop: "engineerCertificate"
|
|
294
294
|
}, {
|
|
295
295
|
default: s(() => [
|
|
296
|
-
e(
|
|
297
|
-
modelValue: r
|
|
298
|
-
"onUpdate:modelValue":
|
|
299
|
-
placeholder:
|
|
300
|
-
"type-code":
|
|
296
|
+
e(J, {
|
|
297
|
+
modelValue: o(r).engineerCertificate,
|
|
298
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => o(r).engineerCertificate = t),
|
|
299
|
+
placeholder: a.$t("sysUserOps.engineerCertificateRequired"),
|
|
300
|
+
"type-code": o(y).DICT_ENGINEER_GRADE,
|
|
301
301
|
clearable: "",
|
|
302
302
|
filterable: "",
|
|
303
303
|
class: "w-full"
|
|
@@ -311,15 +311,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
311
311
|
e(i, { span: 12 }, {
|
|
312
312
|
default: s(() => [
|
|
313
313
|
e(d, {
|
|
314
|
-
label:
|
|
314
|
+
label: a.$t("sysUserOps.engineerJobMode"),
|
|
315
315
|
prop: "engineerJobMode"
|
|
316
316
|
}, {
|
|
317
317
|
default: s(() => [
|
|
318
318
|
e(n, {
|
|
319
|
-
modelValue: r
|
|
320
|
-
"onUpdate:modelValue":
|
|
321
|
-
placeholder:
|
|
322
|
-
data:
|
|
319
|
+
modelValue: o(r).engineerJobMode,
|
|
320
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => o(r).engineerJobMode = t),
|
|
321
|
+
placeholder: a.$t("sysUserOps.engineerJobModeRequired"),
|
|
322
|
+
data: o(g).engineerJobModeDictEnum.values,
|
|
323
323
|
clearable: "",
|
|
324
324
|
class: "w-full"
|
|
325
325
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -332,14 +332,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
332
332
|
e(i, { span: 12 }, {
|
|
333
333
|
default: s(() => [
|
|
334
334
|
e(d, {
|
|
335
|
-
label:
|
|
335
|
+
label: a.$t("sysUserOps.jobStatus"),
|
|
336
336
|
prop: "jobStatus"
|
|
337
337
|
}, {
|
|
338
338
|
default: s(() => [
|
|
339
|
-
e(
|
|
340
|
-
modelValue: r
|
|
341
|
-
"onUpdate:modelValue":
|
|
342
|
-
data:
|
|
339
|
+
e(v, {
|
|
340
|
+
modelValue: o(r).jobStatus,
|
|
341
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => o(r).jobStatus = t),
|
|
342
|
+
data: o(g).jobStatusDictEnum.values
|
|
343
343
|
}, null, 8, ["modelValue", "data"])
|
|
344
344
|
]),
|
|
345
345
|
_: 1
|
|
@@ -350,14 +350,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
350
350
|
e(i, { span: 24 }, {
|
|
351
351
|
default: s(() => [
|
|
352
352
|
e(d, {
|
|
353
|
-
label:
|
|
353
|
+
label: a.$t("sysUserOps.engineerSpecialty"),
|
|
354
354
|
prop: "engineerSpecialty"
|
|
355
355
|
}, {
|
|
356
356
|
default: s(() => [
|
|
357
|
-
e(
|
|
358
|
-
modelValue: r
|
|
359
|
-
"onUpdate:modelValue":
|
|
360
|
-
placeholder:
|
|
357
|
+
e(f, {
|
|
358
|
+
modelValue: o(r).engineerSpecialty,
|
|
359
|
+
"onUpdate:modelValue": l[10] || (l[10] = (t) => o(r).engineerSpecialty = t),
|
|
360
|
+
placeholder: a.$t("sysUserOps.engineerSpecialtyRequired"),
|
|
361
361
|
type: "textarea",
|
|
362
362
|
autosize: { minRows: 2 },
|
|
363
363
|
maxlength: "200",
|
|
@@ -383,5 +383,5 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
export {
|
|
386
|
-
|
|
386
|
+
oe as _
|
|
387
387
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
|
|
|
2
2
|
import { useI18n as L } from "vue-i18n";
|
|
3
3
|
import { ElMessage as f } from "element-plus";
|
|
4
4
|
import { fileApi as w, useUserStore as D } from "jmash-core";
|
|
5
|
-
import { D as I } from "./index-
|
|
5
|
+
import { D as I } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
|
|
8
8
|
__name: "import-upload",
|
|
@@ -18,7 +18,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["templateDown", "importEvents", "uploadClosed"],
|
|
20
20
|
setup(_, { emit: U }) {
|
|
21
|
-
const { t: g } = L(),
|
|
21
|
+
const { t: g } = L(), k = i(w.uploadUrl()), $ = i(w.authHeader()), b = C({
|
|
22
22
|
tenant: D().user.tenant
|
|
23
23
|
}), E = i(), d = C({
|
|
24
24
|
tenant: D().user.tenant,
|
|
@@ -120,9 +120,9 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
120
120
|
ref_key: "uploadRef",
|
|
121
121
|
ref: E,
|
|
122
122
|
drag: "",
|
|
123
|
-
action:
|
|
124
|
-
headers:
|
|
125
|
-
data:
|
|
123
|
+
action: k.value,
|
|
124
|
+
headers: $.value,
|
|
125
|
+
data: b,
|
|
126
126
|
limit: 1,
|
|
127
127
|
"on-success": q,
|
|
128
128
|
"on-exceed": B,
|
|
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
155
155
|
}, 8, ["modelValue", "title"]);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-2d832d04"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
161
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
|
|
|
2
2
|
import { useI18n as L } from "vue-i18n";
|
|
3
3
|
import { ElMessage as f } from "element-plus";
|
|
4
4
|
import { fileApi as w, useUserStore as D } from "jmash-core";
|
|
5
|
-
import { D as I } from "./index-
|
|
5
|
+
import { D as I } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
|
|
8
8
|
__name: "import-upload",
|
|
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
155
155
|
}, 8, ["modelValue", "title"]);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-96565565"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
161
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as W, ref as $, resolveComponent as s, resolveDirective as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { C as k, D as
|
|
6
|
-
import { sysOrgApi as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as W, ref as $, onActivated as X, resolveComponent as s, resolveDirective as Y, openBlock as i, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as _, createBlock as C, isRef as O, createCommentVNode as Z } from "vue";
|
|
2
|
+
import { useTableHooks as x } from "jmash-core";
|
|
3
|
+
import { useI18n as ee } from "vue-i18n";
|
|
4
|
+
import { useRouter as te } from "vue-router";
|
|
5
|
+
import { C as k, D as oe } from "./index-dIcRC4jE.mjs";
|
|
6
|
+
import { sysOrgApi as le } from "./index.mjs";
|
|
7
|
+
const ne = { class: "app-container" }, ae = { class: "search-container" }, se = ["onClick"], re = ["onClick"], ue = ["onClick"], _e = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t: T } =
|
|
9
|
+
setup(ie) {
|
|
10
|
+
const { t: T } = ee(), v = te(), u = $({
|
|
11
11
|
orgType: k.orgType.outsource,
|
|
12
12
|
orderName: k.orderBy.orderName,
|
|
13
13
|
orderAsc: k.orderBy.orderAsc
|
|
@@ -18,7 +18,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
18
18
|
listLoading: R,
|
|
19
19
|
tableData: j,
|
|
20
20
|
total: f
|
|
21
|
-
} =
|
|
21
|
+
} = x(T, le, u);
|
|
22
22
|
let c = $([
|
|
23
23
|
{
|
|
24
24
|
label: "sysOut.orgName",
|
|
@@ -92,10 +92,12 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
92
92
|
function z(o) {
|
|
93
93
|
r.handleSort(o.prop, o.order);
|
|
94
94
|
}
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
return X(() => {
|
|
96
|
+
r.getList();
|
|
97
|
+
}), (o, t) => {
|
|
98
|
+
const A = s("el-input"), w = s("el-form-item"), y = s("el-col"), B = s("jmash-select"), g = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), b = Y("hasPerm");
|
|
99
|
+
return i(), h("div", ne, [
|
|
100
|
+
V("div", ae, [
|
|
99
101
|
n(K, {
|
|
100
102
|
ref_key: "queryFormRef",
|
|
101
103
|
ref: I,
|
|
@@ -112,7 +114,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
112
114
|
prop: "likeOrgName"
|
|
113
115
|
}, {
|
|
114
116
|
default: l(() => [
|
|
115
|
-
n(
|
|
117
|
+
n(A, {
|
|
116
118
|
modelValue: u.value.likeOrgName,
|
|
117
119
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeOrgName = e),
|
|
118
120
|
placeholder: o.$t("sysOut.orgNameRequired"),
|
|
@@ -133,11 +135,11 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
133
135
|
prop: "status"
|
|
134
136
|
}, {
|
|
135
137
|
default: l(() => [
|
|
136
|
-
n(
|
|
138
|
+
n(B, {
|
|
137
139
|
modelValue: u.value.status,
|
|
138
140
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
|
|
139
141
|
placeholder: o.$t("sysOut.statusRequired"),
|
|
140
|
-
data: a(
|
|
142
|
+
data: a(oe).hasStatusDict.values,
|
|
141
143
|
clearable: "",
|
|
142
144
|
onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
|
|
143
145
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -243,7 +245,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
243
245
|
"page-size": u.value.pageSize,
|
|
244
246
|
"onUpdate:pageSize": t[10] || (t[10] = (e) => u.value.pageSize = e),
|
|
245
247
|
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
246
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
248
|
+
}, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
|
|
247
249
|
]),
|
|
248
250
|
default: l(() => [
|
|
249
251
|
n(H, {
|
|
@@ -277,7 +279,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
277
279
|
onClick: (p) => U(e.data.row)
|
|
278
280
|
}, [
|
|
279
281
|
m(d(o.$t("common.edit")), 1)
|
|
280
|
-
], 8,
|
|
282
|
+
], 8, se)), [
|
|
281
283
|
[b, ["itsmsys:sys_org_out:update"]]
|
|
282
284
|
]),
|
|
283
285
|
_((i(), h("span", {
|
|
@@ -285,7 +287,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
285
287
|
onClick: (p) => a(r).deleteRecord(e.data.row)
|
|
286
288
|
}, [
|
|
287
289
|
m(d(o.$t("common.delete")), 1)
|
|
288
|
-
], 8,
|
|
290
|
+
], 8, re)), [
|
|
289
291
|
[b, ["itsmsys:sys_org_out:delete"]]
|
|
290
292
|
]),
|
|
291
293
|
_((i(), h("span", {
|
|
@@ -293,7 +295,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
293
295
|
onClick: (p) => q(e.data.row)
|
|
294
296
|
}, [
|
|
295
297
|
m(d(o.$t("common.view")), 1)
|
|
296
|
-
], 8,
|
|
298
|
+
], 8, ue)), [
|
|
297
299
|
[b, ["itsmsys:sys_org_out:view"]]
|
|
298
300
|
])
|
|
299
301
|
]),
|
|
@@ -307,5 +309,5 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
307
309
|
}
|
|
308
310
|
});
|
|
309
311
|
export {
|
|
310
|
-
|
|
312
|
+
_e as default
|
|
311
313
|
};
|