xyvcard-itsmsys 0.0.5 → 0.0.7
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-DPM0jGQT.mjs → edit-B2gR_6I8.mjs} +1 -1
- package/dist/{edit-DLAiwJjs.mjs → edit-BbJa_Nfr.mjs} +10 -10
- package/dist/{edit-CIm8Y0Be.mjs → edit-C42Omp9z.mjs} +1 -1
- package/dist/{edit-DZJU5ZPt.mjs → edit-Dfay8i1B.mjs} +1 -1
- package/dist/{edit-CWVYUzgf.mjs → edit-Dm9CXMA6.mjs} +11 -10
- package/dist/{edit-D82hX9if.mjs → edit-Fi1_QjAr.mjs} +1 -1
- package/dist/{edit-BhRXuYku.mjs → edit-GlkC3kLR.mjs} +15 -15
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs → edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs} +24 -23
- package/dist/{edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs → edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs} +49 -48
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs → edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs} +46 -45
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs → edit.vue_vue_type_script_setup_true_lang-r4tQk9wV.mjs} +2 -2
- package/dist/index-B6FMyHxQ.mjs +99 -0
- package/dist/index-B6vJj_z6.mjs +74 -0
- package/dist/{index-B_cot8iN.mjs → index-BHLCtDlx.mjs} +126 -133
- package/dist/{index-C6KvLUoL.mjs → index-BV8SsW14.mjs} +1 -1
- package/dist/{index-CEUyLrKg.mjs → index-CSMVzE7h.mjs} +101 -108
- package/dist/{index-BkHGzL0R.mjs → index-Ce07ACPH.mjs} +130 -137
- package/dist/{index-CogdeN09.mjs → index-DTjJvEfz.mjs} +103 -124
- package/dist/{index-ClU157bA.mjs → index-N57BEkTO.mjs} +116 -130
- package/dist/index-Up4lAJrU.mjs +364 -0
- package/dist/index.mjs +1096 -1055
- package/dist/index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs +191 -0
- package/dist/{info-BWgVN2mJ.mjs → info-BVrtvDle.mjs} +1 -1
- package/dist/{info-70H0sycC.mjs → info-Bc3bycK1.mjs} +2 -2
- package/dist/{info-CE-ZnFj5.mjs → info-Bz6yHt3N.mjs} +1 -1
- package/dist/{info-MYJGcyMX.mjs → info-D-ykgDrJ.mjs} +1 -1
- package/dist/{info-Z5LuCRmr.mjs → info-D7YAHptq.mjs} +2 -2
- package/dist/{info-Kf11Ye-N.mjs → info-DO3PSaAZ.mjs} +2 -2
- package/dts/src/api/itsm-sys-org/types.d.ts +0 -3
- package/dts/src/api/itsm-sys-org-invoice/index.d.ts +1 -0
- package/dts/src/api/itsm-sys-org-invoice/types.d.ts +5 -1
- package/dts/src/constant.d.ts +9 -1
- package/dts/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-BQRtMgmZ.mjs +0 -340
- package/dist/index-ChTssr8-.mjs +0 -123
- package/dist/index-DOXuGEyW.mjs +0 -62
- package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +0 -180
|
@@ -3,10 +3,9 @@ import { defineComponent as S, ref as f, reactive as O, resolveComponent as i, o
|
|
|
3
3
|
import { ElMessage as w } from "element-plus";
|
|
4
4
|
import { useI18n as F } from "vue-i18n";
|
|
5
5
|
import { useRoute as G } from "vue-router";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
6
|
+
import { Constant as j, sysOrgApi as y } from "./index.mjs";
|
|
7
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
|
|
8
|
+
const z = { class: "app-container" }, ee = /* @__PURE__ */ S({
|
|
10
9
|
__name: "edit",
|
|
11
10
|
setup(H) {
|
|
12
11
|
const { t: m } = F(), p = G(), _ = f(), c = f("first"), g = f("");
|
|
@@ -17,7 +16,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
17
16
|
let o = O({
|
|
18
17
|
requestId: Math.random() * 10 + "",
|
|
19
18
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
20
|
-
orgType: j.orgType.cloud
|
|
19
|
+
orgType: j.orgType.cloud,
|
|
20
|
+
status: !0
|
|
21
21
|
});
|
|
22
22
|
const P = (t, a, s) => {
|
|
23
23
|
a === void 0 && s(new Error(m("sysOrg.mobileRequired"))), /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(a) || s(new Error(m("sysOrg.mobileRequireds"))), s();
|
|
@@ -92,11 +92,11 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
92
92
|
}));
|
|
93
93
|
};
|
|
94
94
|
return (t, a) => {
|
|
95
|
-
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = K, T = i("el-row"),
|
|
95
|
+
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = K, T = i("el-row"), U = i("el-button"), k = i("el-form"), V = i("el-tab-pane"), C = i("el-tabs"), I = i("el-card");
|
|
96
96
|
return b(), B("div", z, [
|
|
97
97
|
e(I, { shadow: "never" }, {
|
|
98
98
|
default: l(() => [
|
|
99
|
-
e(
|
|
99
|
+
e(C, {
|
|
100
100
|
modelValue: c.value,
|
|
101
101
|
"onUpdate:modelValue": a[8] || (a[8] = (n) => c.value = n),
|
|
102
102
|
onTabClick: L
|
|
@@ -107,7 +107,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
107
107
|
name: "first"
|
|
108
108
|
}, {
|
|
109
109
|
default: l(() => [
|
|
110
|
-
e(
|
|
110
|
+
e(k, {
|
|
111
111
|
ref_key: "sysOrgFormRef",
|
|
112
112
|
ref: _,
|
|
113
113
|
model: r(o),
|
|
@@ -299,7 +299,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
299
299
|
}),
|
|
300
300
|
e(d, null, {
|
|
301
301
|
default: l(() => [
|
|
302
|
-
e(
|
|
302
|
+
e(U, {
|
|
303
303
|
type: "primary",
|
|
304
304
|
onClick: M
|
|
305
305
|
}, {
|
|
@@ -338,5 +338,5 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
export {
|
|
341
|
-
|
|
341
|
+
ee as default
|
|
342
342
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { _ as K } from "./index-BRupqW34.mjs";
|
|
2
|
+
import { defineComponent as S, ref as f, reactive as V, resolveComponent as i, openBlock as b, createElementBlock as E, createVNode as e, withCtx as l, unref as r, createTextVNode as A, toDisplayString as F, createBlock as G, createCommentVNode as q } from "vue";
|
|
3
3
|
import { ElMessage as h } from "element-plus";
|
|
4
4
|
import { useI18n as z } from "vue-i18n";
|
|
5
5
|
import { useRoute as O } from "vue-router";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const J = { class: "app-container" }, le = /* @__PURE__ */
|
|
6
|
+
import { Constant as j, sysOrgApi as y } from "./index.mjs";
|
|
7
|
+
import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
|
|
8
|
+
import { D as w } from "./index-B6FMyHxQ.mjs";
|
|
9
|
+
const J = { class: "app-container" }, le = /* @__PURE__ */ S({
|
|
10
10
|
__name: "edit",
|
|
11
11
|
setup(Q) {
|
|
12
12
|
const { t: m } = z(), g = O();
|
|
@@ -19,7 +19,8 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ E({
|
|
|
19
19
|
let o = V({
|
|
20
20
|
requestId: Math.random() * 10 + "",
|
|
21
21
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,parentId,geoLongitude,geoLatitude",
|
|
22
|
-
orgType: j.orgType.hall
|
|
22
|
+
orgType: j.orgType.hall,
|
|
23
|
+
status: !0
|
|
23
24
|
});
|
|
24
25
|
const _ = (t, a, s) => {
|
|
25
26
|
a === void 0 && s(new Error(m("sysGov.mobileRequired"))), /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(a) || s(new Error(m("sysGov.mobileRequireds"))), s();
|
|
@@ -89,13 +90,13 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ E({
|
|
|
89
90
|
u.status === 200 && (h({
|
|
90
91
|
message: m("common.submitSuccess"),
|
|
91
92
|
type: "success"
|
|
92
|
-
}), p.value = u.data.orgId, c.value = "second");
|
|
93
|
+
}), p.value = u.data.orgId, g.query.entityKey = p.value, c.value = "second");
|
|
93
94
|
}));
|
|
94
95
|
}));
|
|
95
96
|
};
|
|
96
97
|
return (t, a) => {
|
|
97
|
-
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = i("el-tree-select"), T =
|
|
98
|
-
return b(),
|
|
98
|
+
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = i("el-tree-select"), T = K, U = i("el-row"), k = i("el-button"), C = i("el-form"), P = i("el-tab-pane"), B = i("el-tabs"), D = i("el-card");
|
|
99
|
+
return b(), E("div", J, [
|
|
99
100
|
e(D, { shadow: "never" }, {
|
|
100
101
|
default: l(() => [
|
|
101
102
|
e(B, {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { _ as K } from "./index-BRupqW34.mjs";
|
|
2
|
+
import { defineComponent as S, ref as f, reactive as O, resolveComponent as i, openBlock as b, createElementBlock as B, createVNode as e, withCtx as l, unref as n, createTextVNode as E, toDisplayString as A, createBlock as q, createCommentVNode as v } from "vue";
|
|
3
3
|
import { ElMessage as w } from "element-plus";
|
|
4
4
|
import { useI18n as F } from "vue-i18n";
|
|
5
5
|
import { useRoute as G } from "vue-router";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
6
|
+
import { Constant as j, sysOrgApi as y } from "./index.mjs";
|
|
7
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
|
|
8
|
+
const z = { class: "app-container" }, ee = /* @__PURE__ */ S({
|
|
10
9
|
__name: "edit",
|
|
11
10
|
setup(H) {
|
|
12
11
|
const { t: m } = F(), g = G(), _ = f(), c = f("first"), p = f("");
|
|
@@ -17,7 +16,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
17
16
|
let o = O({
|
|
18
17
|
requestId: Math.random() * 10 + "",
|
|
19
18
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
20
|
-
orgType: j.orgType.outsource
|
|
19
|
+
orgType: j.orgType.outsource,
|
|
20
|
+
status: !0
|
|
21
21
|
});
|
|
22
22
|
const P = (t, a, s) => {
|
|
23
23
|
a === void 0 && s(new Error(m("sysOut.mobileRequired"))), /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(a) || s(new Error(m("sysOut.mobileRequireds"))), s();
|
|
@@ -87,16 +87,16 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
87
87
|
d.status === 200 && (w({
|
|
88
88
|
message: m("common.submitSuccess"),
|
|
89
89
|
type: "success"
|
|
90
|
-
}), p.value = d.data.orgId, c.value = "second");
|
|
90
|
+
}), p.value = d.data.orgId, g.query.entityKey = p.value, c.value = "second");
|
|
91
91
|
}));
|
|
92
92
|
}));
|
|
93
93
|
};
|
|
94
94
|
return (t, a) => {
|
|
95
|
-
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N =
|
|
96
|
-
return b(),
|
|
95
|
+
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N = K, T = i("el-row"), U = i("el-button"), k = i("el-form"), V = i("el-tab-pane"), C = i("el-tabs"), I = i("el-card");
|
|
96
|
+
return b(), B("div", z, [
|
|
97
97
|
e(I, { shadow: "never" }, {
|
|
98
98
|
default: l(() => [
|
|
99
|
-
e(
|
|
99
|
+
e(C, {
|
|
100
100
|
modelValue: c.value,
|
|
101
101
|
"onUpdate:modelValue": a[8] || (a[8] = (r) => c.value = r),
|
|
102
102
|
onTabClick: L
|
|
@@ -107,7 +107,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
107
107
|
name: "first"
|
|
108
108
|
}, {
|
|
109
109
|
default: l(() => [
|
|
110
|
-
e(
|
|
110
|
+
e(k, {
|
|
111
111
|
ref_key: "sysOutFormRef",
|
|
112
112
|
ref: _,
|
|
113
113
|
model: n(o),
|
|
@@ -299,12 +299,12 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
299
299
|
}),
|
|
300
300
|
e(u, null, {
|
|
301
301
|
default: l(() => [
|
|
302
|
-
e(
|
|
302
|
+
e(U, {
|
|
303
303
|
type: "primary",
|
|
304
304
|
onClick: M
|
|
305
305
|
}, {
|
|
306
306
|
default: l(() => [
|
|
307
|
-
|
|
307
|
+
E(A(t.$t("common.save")), 1)
|
|
308
308
|
]),
|
|
309
309
|
_: 1
|
|
310
310
|
})
|
|
@@ -338,5 +338,5 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
export {
|
|
341
|
-
|
|
341
|
+
ee as default
|
|
342
342
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as H, mergeModels as M, ref as V, useModel as G, reactive as S, resolveComponent as i, openBlock as b, createBlock as c, withCtx as l, createElementVNode as j, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as L } from "vue";
|
|
2
2
|
import { ElMessage as I } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
|
-
import { g as
|
|
6
|
-
import { D as
|
|
7
|
-
const
|
|
4
|
+
import { Constant as Q, sysUserExtApi as w } from "./index.mjs";
|
|
5
|
+
import { g as W } from "./common-B2PCBCJ2.mjs";
|
|
6
|
+
import { D as y } from "./index-B6FMyHxQ.mjs";
|
|
7
|
+
const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ M({
|
|
10
10
|
entityKey: {
|
|
@@ -17,16 +17,17 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ M(["refresh"], ["update:modelValue"]),
|
|
20
|
-
setup(q, { emit:
|
|
21
|
-
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ =
|
|
22
|
-
|
|
20
|
+
setup(q, { emit: T }) {
|
|
21
|
+
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = T, f = V(!1);
|
|
22
|
+
y.sysOrgBizDict.useValues();
|
|
23
23
|
let o = S({
|
|
24
24
|
requestId: Math.random() * 10 + "",
|
|
25
|
-
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty"
|
|
25
|
+
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
|
|
26
|
+
userType: Q.userType.companyOps
|
|
26
27
|
});
|
|
27
|
-
const
|
|
28
|
+
const k = (s, a, d) => {
|
|
28
29
|
a === void 0 && d(new Error(n("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || d(new Error(n("sysUserOps.mobilePhoneRequireds"))), d();
|
|
29
|
-
},
|
|
30
|
+
}, C = S({
|
|
30
31
|
realName: [
|
|
31
32
|
{
|
|
32
33
|
required: !0,
|
|
@@ -45,7 +46,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
45
46
|
{
|
|
46
47
|
required: !0,
|
|
47
48
|
trigger: "blur",
|
|
48
|
-
validator:
|
|
49
|
+
validator: k
|
|
49
50
|
}
|
|
50
51
|
],
|
|
51
52
|
email: [
|
|
@@ -97,7 +98,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
97
98
|
trigger: "blur"
|
|
98
99
|
}
|
|
99
100
|
]
|
|
100
|
-
}), _ = q,
|
|
101
|
+
}), _ = q, E = Object.keys(_.entityKey), v = V(E.length >= 1);
|
|
101
102
|
v.value && w.findById(_.entityKey).then(({ data: s }) => {
|
|
102
103
|
Object.assign(o, s);
|
|
103
104
|
});
|
|
@@ -118,7 +119,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
118
119
|
}));
|
|
119
120
|
};
|
|
120
121
|
function J() {
|
|
121
|
-
o.userPassword =
|
|
122
|
+
o.userPassword = W();
|
|
122
123
|
}
|
|
123
124
|
function N() {
|
|
124
125
|
m.value && (m.value = !1);
|
|
@@ -131,7 +132,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
131
132
|
onClose: N
|
|
132
133
|
}, {
|
|
133
134
|
footer: l(() => [
|
|
134
|
-
j("div",
|
|
135
|
+
j("div", Y, [
|
|
135
136
|
e(U, { onClick: N }, {
|
|
136
137
|
default: l(() => [
|
|
137
138
|
h(O(s.$t("common.cancel")), 1)
|
|
@@ -155,7 +156,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
155
156
|
ref: R,
|
|
156
157
|
model: r(o),
|
|
157
158
|
"label-width": "100px",
|
|
158
|
-
rules:
|
|
159
|
+
rules: C
|
|
159
160
|
}, {
|
|
160
161
|
default: l(() => [
|
|
161
162
|
e(K, null, {
|
|
@@ -171,7 +172,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
171
172
|
modelValue: r(o).orgId,
|
|
172
173
|
"onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
|
|
173
174
|
placeholder: s.$t("sysUserOps.orgIdRequired"),
|
|
174
|
-
data: r(
|
|
175
|
+
data: r(y).sysOrgBizDict.values,
|
|
175
176
|
clearable: "",
|
|
176
177
|
class: "w-full"
|
|
177
178
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -297,7 +298,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
297
298
|
modelValue: r(o).engineeType,
|
|
298
299
|
"onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineeType = t),
|
|
299
300
|
placeholder: s.$t("sysUserOps.engineeTypeRequired"),
|
|
300
|
-
data: r(
|
|
301
|
+
data: r(y).engineeTypeDictEnum.values,
|
|
301
302
|
clearable: "",
|
|
302
303
|
class: "w-full"
|
|
303
304
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -318,7 +319,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
318
319
|
modelValue: r(o).engineeJobMode,
|
|
319
320
|
"onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineeJobMode = t),
|
|
320
321
|
placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
|
|
321
|
-
data: r(
|
|
322
|
+
data: r(y).engineeJobModeDictEnum.values,
|
|
322
323
|
clearable: "",
|
|
323
324
|
class: "w-full"
|
|
324
325
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -339,7 +340,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
339
340
|
modelValue: r(o).jobStatus,
|
|
340
341
|
"onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).jobStatus = t),
|
|
341
342
|
placeholder: s.$t("sysUserOps.jobStatusRequired"),
|
|
342
|
-
data: r(
|
|
343
|
+
data: r(y).jobStatusDictEnum.values,
|
|
343
344
|
clearable: "",
|
|
344
345
|
class: "w-full"
|
|
345
346
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -363,7 +364,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
363
364
|
modelValue: r(o).userPassword,
|
|
364
365
|
"onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).userPassword = t),
|
|
365
366
|
clearable: "",
|
|
366
|
-
type:
|
|
367
|
+
type: f.value ? "text" : "password",
|
|
367
368
|
placeholder: s.$t("sysUserOps.userPasswordRequired")
|
|
368
369
|
}, {
|
|
369
370
|
append: l(() => [
|
|
@@ -376,9 +377,9 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
376
377
|
]),
|
|
377
378
|
suffix: l(() => [
|
|
378
379
|
j("span", {
|
|
379
|
-
onClick: a[9] || (a[9] = (t) =>
|
|
380
|
+
onClick: a[9] || (a[9] = (t) => f.value = !f.value)
|
|
380
381
|
}, [
|
|
381
|
-
|
|
382
|
+
f.value ? (b(), c(P, { key: 0 }, {
|
|
382
383
|
default: l(() => [
|
|
383
384
|
e(B)
|
|
384
385
|
]),
|
|
@@ -435,5 +436,5 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
435
436
|
}
|
|
436
437
|
});
|
|
437
438
|
export {
|
|
438
|
-
|
|
439
|
+
re as _
|
|
439
440
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as H, mergeModels as M, ref as V, useModel as G, reactive as S, resolveComponent as i, openBlock as b, createBlock as c, withCtx as l, createElementVNode as j, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as L } from "vue";
|
|
2
2
|
import { ElMessage as I } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
|
-
import { g as
|
|
6
|
-
import { D as f } from "./index-
|
|
7
|
-
const
|
|
4
|
+
import { Constant as Q, sysUserExtApi as w } from "./index.mjs";
|
|
5
|
+
import { g as W } from "./common-B2PCBCJ2.mjs";
|
|
6
|
+
import { D as f } from "./index-B6FMyHxQ.mjs";
|
|
7
|
+
const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ M({
|
|
10
10
|
entityKey: {
|
|
@@ -17,16 +17,17 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ M(["refresh"], ["update:modelValue"]),
|
|
20
|
-
setup(q, { emit:
|
|
21
|
-
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ =
|
|
20
|
+
setup(q, { emit: T }) {
|
|
21
|
+
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = T, y = V(!1);
|
|
22
22
|
f.sysOutBizDict.useValues();
|
|
23
|
-
let
|
|
23
|
+
let a = S({
|
|
24
24
|
requestId: Math.random() * 10 + "",
|
|
25
|
-
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty"
|
|
25
|
+
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
|
|
26
|
+
userType: Q.userType.outsourceOps
|
|
26
27
|
});
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
},
|
|
28
|
+
const k = (s, o, d) => {
|
|
29
|
+
o === void 0 && d(new Error(n("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || d(new Error(n("sysUserOps.mobilePhoneRequireds"))), d();
|
|
30
|
+
}, C = S({
|
|
30
31
|
realName: [
|
|
31
32
|
{
|
|
32
33
|
required: !0,
|
|
@@ -45,7 +46,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
45
46
|
{
|
|
46
47
|
required: !0,
|
|
47
48
|
trigger: "blur",
|
|
48
|
-
validator:
|
|
49
|
+
validator: k
|
|
49
50
|
}
|
|
50
51
|
],
|
|
51
52
|
email: [
|
|
@@ -97,19 +98,19 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
97
98
|
trigger: "blur"
|
|
98
99
|
}
|
|
99
100
|
]
|
|
100
|
-
}), _ = q,
|
|
101
|
+
}), _ = q, E = Object.keys(_.entityKey), v = V(E.length >= 1);
|
|
101
102
|
v.value && w.findById(_.entityKey).then(({ data: s }) => {
|
|
102
|
-
Object.assign(
|
|
103
|
+
Object.assign(a, s);
|
|
103
104
|
});
|
|
104
105
|
const D = async () => {
|
|
105
106
|
var s;
|
|
106
|
-
await ((s = R.value) == null ? void 0 : s.validate((
|
|
107
|
-
|
|
107
|
+
await ((s = R.value) == null ? void 0 : s.validate((o) => {
|
|
108
|
+
o && (v.value ? w.update(a).then((d) => {
|
|
108
109
|
console.log(d), d.status === 200 && (I({
|
|
109
110
|
message: n("common.submitSuccess"),
|
|
110
111
|
type: "success"
|
|
111
112
|
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
112
|
-
}) : w.create(
|
|
113
|
+
}) : w.create(a).then((d) => {
|
|
113
114
|
console.log(d), d.status === 200 && (I({
|
|
114
115
|
message: n("common.submitSuccess"),
|
|
115
116
|
type: "success"
|
|
@@ -118,20 +119,20 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
118
119
|
}));
|
|
119
120
|
};
|
|
120
121
|
function J() {
|
|
121
|
-
|
|
122
|
+
a.userPassword = W();
|
|
122
123
|
}
|
|
123
124
|
function N() {
|
|
124
125
|
m.value && (m.value = !1);
|
|
125
126
|
}
|
|
126
|
-
return (s,
|
|
127
|
+
return (s, o) => {
|
|
127
128
|
const d = i("jmash-select"), u = i("el-form-item"), p = i("el-col"), g = i("el-input"), z = i("jmash-enum-select"), U = i("el-button"), B = i("View"), P = i("el-icon"), A = i("Hide"), K = i("el-row"), F = i("el-form"), Z = i("el-dialog");
|
|
128
129
|
return b(), c(Z, {
|
|
129
130
|
modelValue: m.value,
|
|
130
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": o[12] || (o[12] = (t) => m.value = t),
|
|
131
132
|
onClose: N
|
|
132
133
|
}, {
|
|
133
134
|
footer: l(() => [
|
|
134
|
-
j("div",
|
|
135
|
+
j("div", Y, [
|
|
135
136
|
e(U, { onClick: N }, {
|
|
136
137
|
default: l(() => [
|
|
137
138
|
h(O(s.$t("common.cancel")), 1)
|
|
@@ -153,9 +154,9 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
153
154
|
e(F, {
|
|
154
155
|
ref_key: "sysUserExtFormRef",
|
|
155
156
|
ref: R,
|
|
156
|
-
model: r(
|
|
157
|
+
model: r(a),
|
|
157
158
|
"label-width": "100px",
|
|
158
|
-
rules:
|
|
159
|
+
rules: C
|
|
159
160
|
}, {
|
|
160
161
|
default: l(() => [
|
|
161
162
|
e(K, null, {
|
|
@@ -168,8 +169,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
168
169
|
}, {
|
|
169
170
|
default: l(() => [
|
|
170
171
|
e(d, {
|
|
171
|
-
modelValue: r(
|
|
172
|
-
"onUpdate:modelValue":
|
|
172
|
+
modelValue: r(a).orgId,
|
|
173
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => r(a).orgId = t),
|
|
173
174
|
placeholder: s.$t("sysUserOps.orgIdRequired"),
|
|
174
175
|
data: r(f).sysOutBizDict.values,
|
|
175
176
|
clearable: "",
|
|
@@ -189,8 +190,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
189
190
|
}, {
|
|
190
191
|
default: l(() => [
|
|
191
192
|
e(g, {
|
|
192
|
-
modelValue: r(
|
|
193
|
-
"onUpdate:modelValue":
|
|
193
|
+
modelValue: r(a).realName,
|
|
194
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => r(a).realName = t),
|
|
194
195
|
placeholder: s.$t("sysUserOps.realNameRequired"),
|
|
195
196
|
maxlength: "8",
|
|
196
197
|
"show-word-limit": "",
|
|
@@ -210,8 +211,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
210
211
|
}, {
|
|
211
212
|
default: l(() => [
|
|
212
213
|
e(z, {
|
|
213
|
-
modelValue: r(
|
|
214
|
-
"onUpdate:modelValue":
|
|
214
|
+
modelValue: r(a).gender,
|
|
215
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => r(a).gender = t),
|
|
215
216
|
clearable: "",
|
|
216
217
|
placeholder: s.$t("sysUserOps.genderRequired"),
|
|
217
218
|
"enum-type": "jmash.protobuf.Gender",
|
|
@@ -231,8 +232,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
231
232
|
}, {
|
|
232
233
|
default: l(() => [
|
|
233
234
|
e(g, {
|
|
234
|
-
modelValue: r(
|
|
235
|
-
"onUpdate:modelValue":
|
|
235
|
+
modelValue: r(a).mobilePhone,
|
|
236
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => r(a).mobilePhone = t),
|
|
236
237
|
placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
|
|
237
238
|
maxlength: "11",
|
|
238
239
|
"show-word-limit": "",
|
|
@@ -252,8 +253,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
252
253
|
}, {
|
|
253
254
|
default: l(() => [
|
|
254
255
|
e(g, {
|
|
255
|
-
modelValue: r(
|
|
256
|
-
"onUpdate:modelValue":
|
|
256
|
+
modelValue: r(a).email,
|
|
257
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => r(a).email = t),
|
|
257
258
|
placeholder: s.$t("sysUserOps.emailRequired"),
|
|
258
259
|
maxlength: "30",
|
|
259
260
|
"show-word-limit": "",
|
|
@@ -273,8 +274,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
273
274
|
}, {
|
|
274
275
|
default: l(() => [
|
|
275
276
|
e(g, {
|
|
276
|
-
modelValue: r(
|
|
277
|
-
"onUpdate:modelValue":
|
|
277
|
+
modelValue: r(a).idNo,
|
|
278
|
+
"onUpdate:modelValue": o[5] || (o[5] = (t) => r(a).idNo = t),
|
|
278
279
|
placeholder: s.$t("sysUserOps.idNoRequired"),
|
|
279
280
|
maxlength: "18",
|
|
280
281
|
"show-word-limit": "",
|
|
@@ -294,8 +295,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
294
295
|
}, {
|
|
295
296
|
default: l(() => [
|
|
296
297
|
e(d, {
|
|
297
|
-
modelValue: r(
|
|
298
|
-
"onUpdate:modelValue":
|
|
298
|
+
modelValue: r(a).engineeType,
|
|
299
|
+
"onUpdate:modelValue": o[6] || (o[6] = (t) => r(a).engineeType = t),
|
|
299
300
|
placeholder: s.$t("sysUserOps.engineeTypeRequired"),
|
|
300
301
|
data: r(f).engineeTypeDictEnum.values,
|
|
301
302
|
clearable: "",
|
|
@@ -315,8 +316,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
315
316
|
}, {
|
|
316
317
|
default: l(() => [
|
|
317
318
|
e(d, {
|
|
318
|
-
modelValue: r(
|
|
319
|
-
"onUpdate:modelValue":
|
|
319
|
+
modelValue: r(a).engineeJobMode,
|
|
320
|
+
"onUpdate:modelValue": o[7] || (o[7] = (t) => r(a).engineeJobMode = t),
|
|
320
321
|
placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
|
|
321
322
|
data: r(f).engineeJobModeDictEnum.values,
|
|
322
323
|
clearable: "",
|
|
@@ -336,8 +337,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
336
337
|
}, {
|
|
337
338
|
default: l(() => [
|
|
338
339
|
e(d, {
|
|
339
|
-
modelValue: r(
|
|
340
|
-
"onUpdate:modelValue":
|
|
340
|
+
modelValue: r(a).jobStatus,
|
|
341
|
+
"onUpdate:modelValue": o[8] || (o[8] = (t) => r(a).jobStatus = t),
|
|
341
342
|
placeholder: s.$t("sysUserOps.jobStatusRequired"),
|
|
342
343
|
data: r(f).jobStatusDictEnum.values,
|
|
343
344
|
clearable: "",
|
|
@@ -349,7 +350,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
349
350
|
]),
|
|
350
351
|
_: 1
|
|
351
352
|
}),
|
|
352
|
-
r(
|
|
353
|
+
r(a).userId ? L("", !0) : (b(), c(p, {
|
|
353
354
|
key: 0,
|
|
354
355
|
span: 12
|
|
355
356
|
}, {
|
|
@@ -360,8 +361,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
360
361
|
}, {
|
|
361
362
|
default: l(() => [
|
|
362
363
|
e(g, {
|
|
363
|
-
modelValue: r(
|
|
364
|
-
"onUpdate:modelValue":
|
|
364
|
+
modelValue: r(a).userPassword,
|
|
365
|
+
"onUpdate:modelValue": o[10] || (o[10] = (t) => r(a).userPassword = t),
|
|
365
366
|
clearable: "",
|
|
366
367
|
type: y.value ? "text" : "password",
|
|
367
368
|
placeholder: s.$t("sysUserOps.userPasswordRequired")
|
|
@@ -376,7 +377,7 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
376
377
|
]),
|
|
377
378
|
suffix: l(() => [
|
|
378
379
|
j("span", {
|
|
379
|
-
onClick:
|
|
380
|
+
onClick: o[9] || (o[9] = (t) => y.value = !y.value)
|
|
380
381
|
}, [
|
|
381
382
|
y.value ? (b(), c(P, { key: 0 }, {
|
|
382
383
|
default: l(() => [
|
|
@@ -407,8 +408,8 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
407
408
|
}, {
|
|
408
409
|
default: l(() => [
|
|
409
410
|
e(g, {
|
|
410
|
-
modelValue: r(
|
|
411
|
-
"onUpdate:modelValue":
|
|
411
|
+
modelValue: r(a).engineeSpecialty,
|
|
412
|
+
"onUpdate:modelValue": o[11] || (o[11] = (t) => r(a).engineeSpecialty = t),
|
|
412
413
|
placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
|
|
413
414
|
type: "textarea",
|
|
414
415
|
autosize: { minRows: 2 },
|
|
@@ -435,5 +436,5 @@ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
|
435
436
|
}
|
|
436
437
|
});
|
|
437
438
|
export {
|
|
438
|
-
|
|
439
|
+
re as _
|
|
439
440
|
};
|