xyvcard-itsmsys 0.0.12 → 0.0.13
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/{edit-aqBMKpoJ.mjs → edit-B7N9QLYv.mjs} +97 -82
- package/dist/{edit-C-Ddf0UV.mjs → edit-CBnnqc6q.mjs} +103 -87
- package/dist/{edit-BSgQ7aTw.mjs → edit-CuD0yKla.mjs} +1 -1
- package/dist/{edit-BSllWdRO.mjs → edit-D2lhB7lU.mjs} +1 -1
- package/dist/{edit-CNw8JPUb.mjs → edit-DQ04LbhC.mjs} +89 -74
- package/dist/{edit-Cd4dWFsH.mjs → edit-IRLCMnWT.mjs} +1 -1
- package/dist/{edit-q5TFAMBm.mjs → edit-g4L03h6h.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs → edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs} +50 -50
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs → edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs} +50 -50
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +44 -37
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs → edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs} +74 -74
- package/dist/import-upload-Bsl-7w0B.mjs +161 -0
- package/dist/import-upload-COLdGpcs.mjs +161 -0
- package/dist/{index-Dno_3GpX.mjs → index-B4M6ZC7N.mjs} +91 -40
- package/dist/{index-BY5Djw_C.mjs → index-BBPQd1dS.mjs} +138 -127
- package/dist/{index-BaixQptZ.mjs → index-BxX1lrD5.mjs} +63 -61
- package/dist/{index-LOMCvxtf.mjs → index-CzVhcXfx.mjs} +57 -55
- package/dist/index-DNpEXtyQ.mjs +423 -0
- package/dist/{index-DrBtW9Aj.mjs → index-Dh_kNwqv.mjs} +144 -157
- package/dist/{index-Cz9Xj4Mn.mjs → index-Dih4mOx4.mjs} +1 -1
- package/dist/index-n4FekcLF.mjs +504 -0
- package/dist/index.mjs +118 -114
- package/dist/{index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +2 -2
- package/dist/info-BHylKqOX.mjs +186 -0
- package/dist/info-BZOWTNSd.mjs +209 -0
- package/dist/{info-BUDmirQy.mjs → info-CDtqpKVD.mjs} +80 -58
- package/dist/{info-D0Pwnmsu.mjs → info-XDDe5ve6.mjs} +1 -1
- package/dist/{info-C3knY6l_.mjs → info-bwhmPzeG.mjs} +1 -1
- package/dist/info-dBqoxL-p.mjs +209 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +7 -1
- package/dts/api/index.d.ts +3 -1
- package/dts/api/itsm-sys-org/types.d.ts +1 -0
- package/dts/api/itsm-sys-user-ext/types.d.ts +4 -0
- package/dts/constant.d.ts +8 -0
- package/dts/lang/itsmsys/zh-cn.d.ts +4 -0
- package/package.json +1 -1
- package/dist/import-upload-BIT504-g.mjs +0 -4
- package/dist/import-upload-pZG8yku3.mjs +0 -4
- package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +0 -162
- package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +0 -162
- package/dist/index-CoMhbtrg.mjs +0 -449
- package/dist/index-DPz8be3T.mjs +0 -351
- package/dist/info-BivxW-qV.mjs +0 -187
- package/dist/info-Bn-BseIm.mjs +0 -187
- package/dist/info-C-ga_8K9.mjs +0 -176
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { s as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { C as
|
|
7
|
-
import { sysOrgApi as
|
|
8
|
-
import { _ as
|
|
9
|
-
|
|
1
|
+
import { defineComponent as I, ref as p, reactive as O, resolveComponent as i, openBlock as f, createElementBlock as K, createVNode as e, withCtx as l, unref as a, createTextVNode as A, toDisplayString as F, createBlock as q, createCommentVNode as w } from "vue";
|
|
2
|
+
import { ElMessage as $ } from "element-plus";
|
|
3
|
+
import { s as E } from "./index-B2xwBTw-.mjs";
|
|
4
|
+
import { useI18n as D } from "vue-i18n";
|
|
5
|
+
import { useRoute as J, useRouter as z } from "vue-router";
|
|
6
|
+
import { C as b } from "./index-B4M6ZC7N.mjs";
|
|
7
|
+
import { sysOrgApi as y } from "./index.mjs";
|
|
8
|
+
import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs";
|
|
9
|
+
import { routerUtil as v } from "jmash-core";
|
|
10
|
+
const Q = { class: "app-container" }, re = /* @__PURE__ */ I({
|
|
10
11
|
__name: "edit",
|
|
11
|
-
setup(
|
|
12
|
-
const { t: m } =
|
|
13
|
-
let o =
|
|
12
|
+
setup(W) {
|
|
13
|
+
const { t: m } = D(), c = J(), _ = z(), P = p(), g = p("first");
|
|
14
|
+
let o = O({
|
|
14
15
|
requestId: Math.random() * 10 + "",
|
|
15
16
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
16
|
-
orgType:
|
|
17
|
+
orgType: b.orgType.cloud
|
|
17
18
|
});
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
|
|
19
|
+
const V = p("");
|
|
20
|
+
function R(t) {
|
|
21
|
+
g.value = t.props.name;
|
|
21
22
|
}
|
|
22
|
-
const
|
|
23
|
+
const T = O({
|
|
23
24
|
orgName: [
|
|
24
25
|
{
|
|
25
26
|
required: !0,
|
|
@@ -34,6 +35,20 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
34
35
|
trigger: "blur"
|
|
35
36
|
}
|
|
36
37
|
],
|
|
38
|
+
geoLongitude: [
|
|
39
|
+
{
|
|
40
|
+
required: !0,
|
|
41
|
+
message: m("sysGov.geoLongitudeRequired"),
|
|
42
|
+
trigger: "change"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
geoLatitude: [
|
|
46
|
+
{
|
|
47
|
+
required: !0,
|
|
48
|
+
message: m("sysGov.geoLatitudeRequired"),
|
|
49
|
+
trigger: "change"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
37
52
|
contactPersonMobile: [
|
|
38
53
|
{
|
|
39
54
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
@@ -50,63 +65,63 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
50
65
|
]
|
|
51
66
|
});
|
|
52
67
|
function k() {
|
|
53
|
-
|
|
68
|
+
V.value = o.address;
|
|
54
69
|
}
|
|
55
70
|
function C(t) {
|
|
56
71
|
o.geoLatitude = t[0], o.geoLongitude = t[1];
|
|
57
72
|
}
|
|
58
|
-
function
|
|
73
|
+
function N(t) {
|
|
59
74
|
o.address = t;
|
|
60
75
|
}
|
|
61
|
-
|
|
76
|
+
c.query.entityKey && y.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
|
|
62
77
|
Object.assign(o, t);
|
|
63
78
|
});
|
|
64
|
-
const
|
|
79
|
+
const M = async () => {
|
|
65
80
|
var t;
|
|
66
|
-
await ((t =
|
|
67
|
-
var u,
|
|
68
|
-
r && (o.geoLongitude = (u = o.geoLongitude) == null ? void 0 : u.toString(), o.geoLatitude = (
|
|
69
|
-
|
|
81
|
+
await ((t = P.value) == null ? void 0 : t.validate((r) => {
|
|
82
|
+
var u, n;
|
|
83
|
+
r && (o.geoLongitude = (u = o.geoLongitude) == null ? void 0 : u.toString(), o.geoLatitude = (n = o.geoLatitude) == null ? void 0 : n.toString(), o.orgId ? y.update(o).then((d) => {
|
|
84
|
+
d.status === 200 && ($({
|
|
70
85
|
message: m("common.submitSuccess"),
|
|
71
86
|
type: "success"
|
|
72
|
-
}), c.
|
|
73
|
-
}) :
|
|
74
|
-
|
|
87
|
+
}), v.closeTagView(c.fullPath, _, !1));
|
|
88
|
+
}) : y.create(o).then((d) => {
|
|
89
|
+
d.status === 200 && ($({
|
|
75
90
|
message: m("common.submitSuccess"),
|
|
76
91
|
type: "success"
|
|
77
|
-
}),
|
|
92
|
+
}), v.closeTagView(c.fullPath, _, !1));
|
|
78
93
|
}));
|
|
79
94
|
}));
|
|
80
95
|
};
|
|
81
96
|
return (t, r) => {
|
|
82
|
-
const u = i("el-input"),
|
|
83
|
-
return f(),
|
|
84
|
-
e(
|
|
97
|
+
const u = i("el-input"), n = i("el-form-item"), d = i("el-col"), h = i("el-button"), U = i("jmash-amap"), S = i("el-row"), j = i("el-form"), L = i("el-tab-pane"), B = i("el-tabs"), G = i("el-card");
|
|
98
|
+
return f(), K("div", Q, [
|
|
99
|
+
e(G, { shadow: "never" }, {
|
|
85
100
|
default: l(() => [
|
|
86
|
-
e(
|
|
87
|
-
modelValue:
|
|
88
|
-
"onUpdate:modelValue": r[8] || (r[8] = (s) =>
|
|
89
|
-
onTabClick:
|
|
101
|
+
e(B, {
|
|
102
|
+
modelValue: g.value,
|
|
103
|
+
"onUpdate:modelValue": r[8] || (r[8] = (s) => g.value = s),
|
|
104
|
+
onTabClick: R
|
|
90
105
|
}, {
|
|
91
106
|
default: l(() => [
|
|
92
|
-
e(
|
|
107
|
+
e(L, {
|
|
93
108
|
label: "公司信息",
|
|
94
109
|
name: "first"
|
|
95
110
|
}, {
|
|
96
111
|
default: l(() => [
|
|
97
|
-
e(
|
|
112
|
+
e(j, {
|
|
98
113
|
ref_key: "sysOrgFormRef",
|
|
99
|
-
ref:
|
|
114
|
+
ref: P,
|
|
100
115
|
model: a(o),
|
|
101
116
|
"label-width": "120px",
|
|
102
|
-
rules:
|
|
117
|
+
rules: T
|
|
103
118
|
}, {
|
|
104
119
|
default: l(() => [
|
|
105
|
-
e(
|
|
120
|
+
e(S, null, {
|
|
106
121
|
default: l(() => [
|
|
107
|
-
e(
|
|
122
|
+
e(d, { span: 24 }, {
|
|
108
123
|
default: l(() => [
|
|
109
|
-
e(
|
|
124
|
+
e(n, {
|
|
110
125
|
label: t.$t("sysOrg.orgName"),
|
|
111
126
|
prop: "orgName"
|
|
112
127
|
}, {
|
|
@@ -125,9 +140,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
125
140
|
]),
|
|
126
141
|
_: 1
|
|
127
142
|
}),
|
|
128
|
-
e(
|
|
143
|
+
e(d, { span: 12 }, {
|
|
129
144
|
default: l(() => [
|
|
130
|
-
e(
|
|
145
|
+
e(n, {
|
|
131
146
|
label: t.$t("sysOrg.contactPerson"),
|
|
132
147
|
prop: "contactPerson"
|
|
133
148
|
}, {
|
|
@@ -146,9 +161,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
146
161
|
]),
|
|
147
162
|
_: 1
|
|
148
163
|
}),
|
|
149
|
-
e(
|
|
164
|
+
e(d, { span: 12 }, {
|
|
150
165
|
default: l(() => [
|
|
151
|
-
e(
|
|
166
|
+
e(n, {
|
|
152
167
|
label: t.$t("sysOrg.contactPersonPosi"),
|
|
153
168
|
prop: "contactPersonPosi"
|
|
154
169
|
}, {
|
|
@@ -167,9 +182,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
167
182
|
]),
|
|
168
183
|
_: 1
|
|
169
184
|
}),
|
|
170
|
-
e(
|
|
185
|
+
e(d, { span: 12 }, {
|
|
171
186
|
default: l(() => [
|
|
172
|
-
e(
|
|
187
|
+
e(n, {
|
|
173
188
|
label: t.$t("sysOrg.contactPersonTel"),
|
|
174
189
|
prop: "contactPersonTel"
|
|
175
190
|
}, {
|
|
@@ -188,9 +203,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
188
203
|
]),
|
|
189
204
|
_: 1
|
|
190
205
|
}),
|
|
191
|
-
e(
|
|
206
|
+
e(d, { span: 12 }, {
|
|
192
207
|
default: l(() => [
|
|
193
|
-
e(
|
|
208
|
+
e(n, {
|
|
194
209
|
label: t.$t("sysOrg.contactPersonMobile"),
|
|
195
210
|
prop: "contactPersonMobile"
|
|
196
211
|
}, {
|
|
@@ -209,9 +224,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
209
224
|
]),
|
|
210
225
|
_: 1
|
|
211
226
|
}),
|
|
212
|
-
e(
|
|
227
|
+
e(d, { span: 24 }, {
|
|
213
228
|
default: l(() => [
|
|
214
|
-
e(
|
|
229
|
+
e(n, {
|
|
215
230
|
label: t.$t("sysOrg.address"),
|
|
216
231
|
prop: "address"
|
|
217
232
|
}, {
|
|
@@ -225,8 +240,8 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
225
240
|
clearable: ""
|
|
226
241
|
}, {
|
|
227
242
|
append: l(() => [
|
|
228
|
-
e(
|
|
229
|
-
icon: a(
|
|
243
|
+
e(h, {
|
|
244
|
+
icon: a(E),
|
|
230
245
|
onClick: k
|
|
231
246
|
}, null, 8, ["icon"])
|
|
232
247
|
]),
|
|
@@ -238,18 +253,18 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
238
253
|
]),
|
|
239
254
|
_: 1
|
|
240
255
|
}),
|
|
241
|
-
e(
|
|
256
|
+
e(d, { span: 24 }, {
|
|
242
257
|
default: l(() => [
|
|
243
|
-
e(
|
|
258
|
+
e(n, null, {
|
|
244
259
|
default: l(() => [
|
|
245
|
-
e(
|
|
246
|
-
"security-js-code": a(
|
|
247
|
-
"api-key": a(
|
|
248
|
-
address:
|
|
260
|
+
e(U, {
|
|
261
|
+
"security-js-code": a(b).amapConfig.securityJsCode,
|
|
262
|
+
"api-key": a(b).amapConfig.apiKey,
|
|
263
|
+
address: V.value,
|
|
249
264
|
lat: a(o).geoLatitude,
|
|
250
265
|
lng: a(o).geoLongitude,
|
|
251
266
|
onGetLatLng: C,
|
|
252
|
-
onGetAddress:
|
|
267
|
+
onGetAddress: N
|
|
253
268
|
}, null, 8, ["security-js-code", "api-key", "address", "lat", "lng"])
|
|
254
269
|
]),
|
|
255
270
|
_: 1
|
|
@@ -257,9 +272,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
257
272
|
]),
|
|
258
273
|
_: 1
|
|
259
274
|
}),
|
|
260
|
-
e(
|
|
275
|
+
e(d, { span: 12 }, {
|
|
261
276
|
default: l(() => [
|
|
262
|
-
e(
|
|
277
|
+
e(n, {
|
|
263
278
|
label: t.$t("sysOrg.geoLongitude"),
|
|
264
279
|
prop: "geoLongitude"
|
|
265
280
|
}, {
|
|
@@ -276,9 +291,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
276
291
|
]),
|
|
277
292
|
_: 1
|
|
278
293
|
}),
|
|
279
|
-
e(
|
|
294
|
+
e(d, { span: 12 }, {
|
|
280
295
|
default: l(() => [
|
|
281
|
-
e(
|
|
296
|
+
e(n, {
|
|
282
297
|
label: t.$t("sysOrg.geoLatitude"),
|
|
283
298
|
prop: "geoLatitude"
|
|
284
299
|
}, {
|
|
@@ -298,14 +313,14 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
298
313
|
]),
|
|
299
314
|
_: 1
|
|
300
315
|
}),
|
|
301
|
-
e(
|
|
316
|
+
e(n, null, {
|
|
302
317
|
default: l(() => [
|
|
303
|
-
e(
|
|
318
|
+
e(h, {
|
|
304
319
|
type: "primary",
|
|
305
|
-
onClick:
|
|
320
|
+
onClick: M
|
|
306
321
|
}, {
|
|
307
322
|
default: l(() => [
|
|
308
|
-
|
|
323
|
+
A(F(t.$t("common.save")), 1)
|
|
309
324
|
]),
|
|
310
325
|
_: 1
|
|
311
326
|
})
|
|
@@ -318,16 +333,16 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
318
333
|
]),
|
|
319
334
|
_: 1
|
|
320
335
|
}),
|
|
321
|
-
a(
|
|
336
|
+
a(c).query.entityKey ? (f(), q(L, {
|
|
322
337
|
key: 0,
|
|
323
338
|
label: "发票信息",
|
|
324
339
|
name: "second"
|
|
325
340
|
}, {
|
|
326
341
|
default: l(() => [
|
|
327
|
-
|
|
342
|
+
g.value === "second" ? (f(), q(H, { key: 0 })) : w("", !0)
|
|
328
343
|
]),
|
|
329
344
|
_: 1
|
|
330
|
-
})) :
|
|
345
|
+
})) : w("", !0)
|
|
331
346
|
]),
|
|
332
347
|
_: 1
|
|
333
348
|
}, 8, ["modelValue"])
|
|
@@ -339,5 +354,5 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
|
|
|
339
354
|
}
|
|
340
355
|
});
|
|
341
356
|
export {
|
|
342
|
-
|
|
357
|
+
re as default
|
|
343
358
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as G, mergeModels as v, ref as j, useModel as Z, reactive as M, resolveComponent as m, openBlock as U, createBlock as V, withCtx as s, createElementVNode as L, createVNode as e, createTextVNode as h, toDisplayString as O, unref as
|
|
1
|
+
import { defineComponent as G, mergeModels as v, ref as j, useModel as Z, reactive as M, resolveComponent as m, openBlock as U, createBlock as V, withCtx as s, createElementVNode as L, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as P } from "vue";
|
|
2
2
|
import { ElMessage as C } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
4
|
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
5
|
import { generateRandomKey as H } from "jmash-core";
|
|
6
|
-
import { D as f, C as y } from "./index-
|
|
6
|
+
import { D as f, C as y } from "./index-B4M6ZC7N.mjs";
|
|
7
7
|
const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ v({
|
|
@@ -20,7 +20,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
20
20
|
setup(q, { emit: S }) {
|
|
21
21
|
const { t: i } = X(), R = j(), p = Z(q, "modelValue"), $ = S;
|
|
22
22
|
f.sysOrgBizDict.useValues();
|
|
23
|
-
let
|
|
23
|
+
let a = M({
|
|
24
24
|
requestId: Math.random() * 10 + "",
|
|
25
25
|
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty,engineeCertificate",
|
|
26
26
|
userType: y.userType.companyOps,
|
|
@@ -28,8 +28,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
28
28
|
engineeType: y.engineeType.ease_test,
|
|
29
29
|
engineeJobMode: y.engineeJobMode.resident
|
|
30
30
|
});
|
|
31
|
-
const T = (l,
|
|
32
|
-
|
|
31
|
+
const T = (l, o, n) => {
|
|
32
|
+
o === void 0 && n(new Error(i("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || n(new Error(i("sysUserOps.mobilePhoneRequireds"))), n();
|
|
33
33
|
}, E = M({
|
|
34
34
|
realName: [
|
|
35
35
|
{
|
|
@@ -96,17 +96,17 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
96
96
|
]
|
|
97
97
|
}), N = q, I = Object.keys(N.entityKey), b = j(I.length >= 1);
|
|
98
98
|
b.value && w.findById(N.entityKey).then(({ data: l }) => {
|
|
99
|
-
Object.assign(
|
|
99
|
+
Object.assign(a, l), a.gender === "unknown" && (a.gender = "");
|
|
100
100
|
});
|
|
101
|
-
const
|
|
101
|
+
const k = async () => {
|
|
102
102
|
var l;
|
|
103
|
-
await ((l = R.value) == null ? void 0 : l.validate((
|
|
104
|
-
|
|
103
|
+
await ((l = R.value) == null ? void 0 : l.validate((o) => {
|
|
104
|
+
o && (b.value ? w.update(a).then((n) => {
|
|
105
105
|
console.log(n), n.status === 200 && (C({
|
|
106
106
|
message: i("common.submitSuccess"),
|
|
107
107
|
type: "success"
|
|
108
108
|
}), p.value && (p.value = !1), $("refresh", n.status === 200));
|
|
109
|
-
}) : w.create(
|
|
109
|
+
}) : w.create(a).then((n) => {
|
|
110
110
|
console.log(n), n.status === 200 && (C({
|
|
111
111
|
message: i("common.submitSuccess"),
|
|
112
112
|
type: "success"
|
|
@@ -114,17 +114,17 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
114
114
|
}));
|
|
115
115
|
}));
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function D() {
|
|
118
|
+
a.userPassword = H();
|
|
119
119
|
}
|
|
120
120
|
function _() {
|
|
121
121
|
p.value && (p.value = !1);
|
|
122
122
|
}
|
|
123
|
-
return (l,
|
|
124
|
-
const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), g = m("el-input"),
|
|
123
|
+
return (l, o) => {
|
|
124
|
+
const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), g = m("el-input"), J = m("jmash-enum-select"), z = m("jmash-dict-select"), B = m("jmash-enum-radio"), c = m("el-button"), A = m("el-row"), K = m("el-form"), F = m("el-dialog");
|
|
125
125
|
return U(), V(F, {
|
|
126
126
|
modelValue: p.value,
|
|
127
|
-
"onUpdate:modelValue":
|
|
127
|
+
"onUpdate:modelValue": o[13] || (o[13] = (t) => p.value = t),
|
|
128
128
|
onClose: _
|
|
129
129
|
}, {
|
|
130
130
|
footer: s(() => [
|
|
@@ -137,7 +137,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
137
137
|
}),
|
|
138
138
|
e(c, {
|
|
139
139
|
type: "primary",
|
|
140
|
-
onClick:
|
|
140
|
+
onClick: k
|
|
141
141
|
}, {
|
|
142
142
|
default: s(() => [
|
|
143
143
|
h(O(l.$t("common.confirm")), 1)
|
|
@@ -150,7 +150,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
150
150
|
e(K, {
|
|
151
151
|
ref_key: "sysUserExtFormRef",
|
|
152
152
|
ref: R,
|
|
153
|
-
model:
|
|
153
|
+
model: r(a),
|
|
154
154
|
"label-width": "100px",
|
|
155
155
|
rules: E
|
|
156
156
|
}, {
|
|
@@ -165,10 +165,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
165
165
|
}, {
|
|
166
166
|
default: s(() => [
|
|
167
167
|
e(n, {
|
|
168
|
-
modelValue:
|
|
169
|
-
"onUpdate:modelValue":
|
|
168
|
+
modelValue: r(a).orgId,
|
|
169
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => r(a).orgId = t),
|
|
170
170
|
placeholder: l.$t("sysUserOps.orgIdRequired"),
|
|
171
|
-
data:
|
|
171
|
+
data: r(f).sysOrgBizDict.values,
|
|
172
172
|
clearable: "",
|
|
173
173
|
class: "w-full"
|
|
174
174
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -189,8 +189,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
189
189
|
}, {
|
|
190
190
|
default: s(() => [
|
|
191
191
|
e(g, {
|
|
192
|
-
modelValue:
|
|
193
|
-
"onUpdate:modelValue":
|
|
192
|
+
modelValue: r(a).loginName,
|
|
193
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => r(a).loginName = t),
|
|
194
194
|
clearable: "",
|
|
195
195
|
placeholder: l.$t("sysUserOps.loginNameRequired"),
|
|
196
196
|
maxlength: "30",
|
|
@@ -210,8 +210,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
210
210
|
}, {
|
|
211
211
|
default: s(() => [
|
|
212
212
|
e(g, {
|
|
213
|
-
modelValue:
|
|
214
|
-
"onUpdate:modelValue":
|
|
213
|
+
modelValue: r(a).realName,
|
|
214
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => r(a).realName = t),
|
|
215
215
|
placeholder: l.$t("sysUserOps.realNameRequired"),
|
|
216
216
|
maxlength: "8",
|
|
217
217
|
"show-word-limit": "",
|
|
@@ -230,9 +230,9 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
230
230
|
prop: "gender"
|
|
231
231
|
}, {
|
|
232
232
|
default: s(() => [
|
|
233
|
-
e(
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue":
|
|
233
|
+
e(J, {
|
|
234
|
+
modelValue: r(a).gender,
|
|
235
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => r(a).gender = t),
|
|
236
236
|
clearable: "",
|
|
237
237
|
placeholder: l.$t("sysUserOps.genderRequired"),
|
|
238
238
|
"enum-type": "jmash.protobuf.Gender",
|
|
@@ -252,8 +252,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
252
252
|
}, {
|
|
253
253
|
default: s(() => [
|
|
254
254
|
e(g, {
|
|
255
|
-
modelValue:
|
|
256
|
-
"onUpdate:modelValue":
|
|
255
|
+
modelValue: r(a).mobilePhone,
|
|
256
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => r(a).mobilePhone = t),
|
|
257
257
|
placeholder: l.$t("sysUserOps.mobilePhoneRequired"),
|
|
258
258
|
maxlength: "11",
|
|
259
259
|
"show-word-limit": "",
|
|
@@ -273,8 +273,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
273
273
|
}, {
|
|
274
274
|
default: s(() => [
|
|
275
275
|
e(g, {
|
|
276
|
-
modelValue:
|
|
277
|
-
"onUpdate:modelValue":
|
|
276
|
+
modelValue: r(a).email,
|
|
277
|
+
"onUpdate:modelValue": o[5] || (o[5] = (t) => r(a).email = t),
|
|
278
278
|
placeholder: l.$t("sysUserOps.emailRequired"),
|
|
279
279
|
maxlength: "30",
|
|
280
280
|
"show-word-limit": "",
|
|
@@ -294,8 +294,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
294
294
|
}, {
|
|
295
295
|
default: s(() => [
|
|
296
296
|
e(g, {
|
|
297
|
-
modelValue:
|
|
298
|
-
"onUpdate:modelValue":
|
|
297
|
+
modelValue: r(a).idNo,
|
|
298
|
+
"onUpdate:modelValue": o[6] || (o[6] = (t) => r(a).idNo = t),
|
|
299
299
|
placeholder: l.$t("sysUserOps.idNoRequired"),
|
|
300
300
|
maxlength: "18",
|
|
301
301
|
"show-word-limit": "",
|
|
@@ -315,10 +315,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
315
315
|
}, {
|
|
316
316
|
default: s(() => [
|
|
317
317
|
e(n, {
|
|
318
|
-
modelValue:
|
|
319
|
-
"onUpdate:modelValue":
|
|
318
|
+
modelValue: r(a).engineeType,
|
|
319
|
+
"onUpdate:modelValue": o[7] || (o[7] = (t) => r(a).engineeType = t),
|
|
320
320
|
placeholder: l.$t("sysUserOps.engineeTypeRequired"),
|
|
321
|
-
data:
|
|
321
|
+
data: r(f).engineeTypeDictEnum.values,
|
|
322
322
|
clearable: "",
|
|
323
323
|
class: "w-full"
|
|
324
324
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -336,10 +336,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
336
336
|
}, {
|
|
337
337
|
default: s(() => [
|
|
338
338
|
e(z, {
|
|
339
|
-
modelValue:
|
|
340
|
-
"onUpdate:modelValue":
|
|
339
|
+
modelValue: r(a).engineeCertificate,
|
|
340
|
+
"onUpdate:modelValue": o[8] || (o[8] = (t) => r(a).engineeCertificate = t),
|
|
341
341
|
placeholder: l.$t("sysUserOps.engineeCertificateRequired"),
|
|
342
|
-
"type-code":
|
|
342
|
+
"type-code": r(y).DICT_ENGINEE_GRADE,
|
|
343
343
|
clearable: "",
|
|
344
344
|
filterable: "",
|
|
345
345
|
class: "w-full"
|
|
@@ -358,10 +358,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
358
358
|
}, {
|
|
359
359
|
default: s(() => [
|
|
360
360
|
e(n, {
|
|
361
|
-
modelValue:
|
|
362
|
-
"onUpdate:modelValue":
|
|
361
|
+
modelValue: r(a).engineeJobMode,
|
|
362
|
+
"onUpdate:modelValue": o[9] || (o[9] = (t) => r(a).engineeJobMode = t),
|
|
363
363
|
placeholder: l.$t("sysUserOps.engineeJobModeRequired"),
|
|
364
|
-
data:
|
|
364
|
+
data: r(f).engineeJobModeDictEnum.values,
|
|
365
365
|
clearable: "",
|
|
366
366
|
class: "w-full"
|
|
367
367
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -379,9 +379,9 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
379
379
|
}, {
|
|
380
380
|
default: s(() => [
|
|
381
381
|
e(B, {
|
|
382
|
-
modelValue:
|
|
383
|
-
"onUpdate:modelValue":
|
|
384
|
-
data:
|
|
382
|
+
modelValue: r(a).jobStatus,
|
|
383
|
+
"onUpdate:modelValue": o[10] || (o[10] = (t) => r(a).jobStatus = t),
|
|
384
|
+
data: r(f).jobStatusDictEnum.values
|
|
385
385
|
}, null, 8, ["modelValue", "data"])
|
|
386
386
|
]),
|
|
387
387
|
_: 1
|
|
@@ -400,15 +400,15 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
400
400
|
}, {
|
|
401
401
|
default: s(() => [
|
|
402
402
|
e(g, {
|
|
403
|
-
modelValue:
|
|
404
|
-
"onUpdate:modelValue":
|
|
403
|
+
modelValue: r(a).userPassword,
|
|
404
|
+
"onUpdate:modelValue": o[11] || (o[11] = (t) => r(a).userPassword = t),
|
|
405
405
|
clearable: "",
|
|
406
406
|
type: "password",
|
|
407
407
|
"show-password": "",
|
|
408
408
|
placeholder: l.$t("sysUserOps.userPasswordRequired")
|
|
409
409
|
}, {
|
|
410
410
|
append: s(() => [
|
|
411
|
-
e(c, { onClick:
|
|
411
|
+
e(c, { onClick: D }, {
|
|
412
412
|
default: s(() => [
|
|
413
413
|
h(O(l.$t("sysUserOps.randomPwd")), 1)
|
|
414
414
|
]),
|
|
@@ -431,8 +431,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
|
|
|
431
431
|
}, {
|
|
432
432
|
default: s(() => [
|
|
433
433
|
e(g, {
|
|
434
|
-
modelValue:
|
|
435
|
-
"onUpdate:modelValue":
|
|
434
|
+
modelValue: r(a).engineeSpecialty,
|
|
435
|
+
"onUpdate:modelValue": o[12] || (o[12] = (t) => r(a).engineeSpecialty = t),
|
|
436
436
|
placeholder: l.$t("sysUserOps.engineeSpecialtyRequired"),
|
|
437
437
|
type: "textarea",
|
|
438
438
|
autosize: { minRows: 2 },
|