xyvcard-itsmsys 0.0.4 → 0.0.6
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-CkaU_6vk.mjs → edit-BNe0hNw4.mjs} +11 -10
- package/dist/{edit-D82hX9if.mjs → edit-BqPZHwxi.mjs} +1 -1
- package/dist/{edit-CIm8Y0Be.mjs → edit-CwV1OVfe.mjs} +1 -1
- package/dist/{edit-BhRXuYku.mjs → edit-CyM6IuLb.mjs} +30 -29
- package/dist/{edit-DPM0jGQT.mjs → edit-DG_Iw1-J.mjs} +1 -1
- package/dist/{edit-DZJU5ZPt.mjs → edit-DdUUCXSa.mjs} +1 -1
- package/dist/{edit-CWVYUzgf.mjs → edit-RSO388mB.mjs} +10 -9
- package/dist/{edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs → edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs} +13 -12
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs → edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs} +36 -35
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs → edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs → edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs} +21 -20
- package/dist/index-B6vJj_z6.mjs +74 -0
- package/dist/{index-CogdeN09.mjs → index-CI8Z4rNf.mjs} +101 -122
- package/dist/{index-B_cot8iN.mjs → index-CMBtB1kH.mjs} +126 -133
- package/dist/{index-BkHGzL0R.mjs → index-CNGaGeE7.mjs} +130 -137
- package/dist/{index-ChTssr8-.mjs → index-CQ5Bo5a2.mjs} +30 -18
- package/dist/{index-C6KvLUoL.mjs → index-DirPUdCN.mjs} +1 -1
- package/dist/{index-ClU157bA.mjs → index-DxILUznW.mjs} +113 -127
- package/dist/index-NugT80P7.mjs +364 -0
- package/dist/{index-CEUyLrKg.mjs → index-w2SWNZRB.mjs} +101 -108
- package/dist/index.mjs +20 -20
- package/dist/index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs +191 -0
- package/dist/{info-Z5LuCRmr.mjs → info-BFZTqoY3.mjs} +2 -2
- package/dist/{info-BWgVN2mJ.mjs → info-C0OHjgoS.mjs} +1 -1
- package/dist/{info-MYJGcyMX.mjs → info-CXx2899k.mjs} +1 -1
- package/dist/{info-Kf11Ye-N.mjs → info-DReeRuaA.mjs} +2 -2
- package/dist/{info-70H0sycC.mjs → info-Dilg-bji.mjs} +2 -2
- package/dist/{info-CE-ZnFj5.mjs → info-DvYUiSRY.mjs} +1 -1
- package/dts/src/api/itsm-sys-org/index.d.ts +1 -1
- 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/package.json +1 -1
- package/dist/index-DOXuGEyW.mjs +0 -62
- package/dist/index-i7X9N_rj.mjs +0 -341
- package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +0 -180
|
@@ -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 O, resolveComponent as i, openBlock as b, createElementBlock as B, createVNode as e, withCtx as l, unref as r, 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 { C as j } from "./index-
|
|
6
|
+
import { C as j } from "./index-CQ5Bo5a2.mjs";
|
|
7
7
|
import { sysOrgApi as y } from "./index.mjs";
|
|
8
|
-
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
const z = { class: "app-container" }, oe = /* @__PURE__ */
|
|
8
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs";
|
|
9
|
+
const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
10
10
|
__name: "edit",
|
|
11
11
|
setup(H) {
|
|
12
12
|
const { t: m } = F(), p = G(), _ = f(), c = f("first"), g = f("");
|
|
@@ -17,7 +17,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
17
17
|
let o = O({
|
|
18
18
|
requestId: Math.random() * 10 + "",
|
|
19
19
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
20
|
-
orgType: j.orgType.cloud
|
|
20
|
+
orgType: j.orgType.cloud,
|
|
21
|
+
status: !0
|
|
21
22
|
});
|
|
22
23
|
const P = (t, a, s) => {
|
|
23
24
|
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();
|
|
@@ -87,13 +88,13 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
87
88
|
u.status === 200 && (w({
|
|
88
89
|
message: m("common.submitSuccess"),
|
|
89
90
|
type: "success"
|
|
90
|
-
}), g.value = u.data.orgId, c.value = "second");
|
|
91
|
+
}), g.value = u.data.orgId, p.query.entityKey = g.value, c.value = "second");
|
|
91
92
|
}));
|
|
92
93
|
}));
|
|
93
94
|
};
|
|
94
95
|
return (t, a) => {
|
|
95
|
-
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N =
|
|
96
|
-
return b(),
|
|
96
|
+
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = K, T = i("el-row"), C = i("el-button"), U = i("el-form"), V = i("el-tab-pane"), k = i("el-tabs"), I = i("el-card");
|
|
97
|
+
return b(), B("div", z, [
|
|
97
98
|
e(I, { shadow: "never" }, {
|
|
98
99
|
default: l(() => [
|
|
99
100
|
e(k, {
|
|
@@ -304,7 +305,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
304
305
|
onClick: M
|
|
305
306
|
}, {
|
|
306
307
|
default: l(() => [
|
|
307
|
-
|
|
308
|
+
E(A(t.$t("common.save")), 1)
|
|
308
309
|
]),
|
|
309
310
|
_: 1
|
|
310
311
|
})
|
|
@@ -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 O, resolveComponent as i, openBlock as b, createElementBlock as B, createVNode as e, withCtx as l, unref as r, 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 { C as j } from "./index-
|
|
6
|
+
import { C as j } from "./index-CQ5Bo5a2.mjs";
|
|
7
7
|
import { sysOrgApi as y } from "./index.mjs";
|
|
8
|
-
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
const z = { class: "app-container" }, oe = /* @__PURE__ */
|
|
8
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs";
|
|
9
|
+
const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
10
10
|
__name: "edit",
|
|
11
11
|
setup(H) {
|
|
12
12
|
const { t: m } = F(), g = G(), _ = f(), c = f("first"), p = f("");
|
|
@@ -17,7 +17,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
17
17
|
let o = O({
|
|
18
18
|
requestId: Math.random() * 10 + "",
|
|
19
19
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
20
|
-
orgType: j.orgType.outsource
|
|
20
|
+
orgType: j.orgType.outsource,
|
|
21
|
+
status: !0
|
|
21
22
|
});
|
|
22
23
|
const P = (t, a, s) => {
|
|
23
24
|
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,18 +88,18 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
87
88
|
d.status === 200 && (w({
|
|
88
89
|
message: m("common.submitSuccess"),
|
|
89
90
|
type: "success"
|
|
90
|
-
}), p.value = d.data.orgId, c.value = "second");
|
|
91
|
+
}), p.value = d.data.orgId, g.query.entityKey = p.value, c.value = "second");
|
|
91
92
|
}));
|
|
92
93
|
}));
|
|
93
94
|
};
|
|
94
95
|
return (t, a) => {
|
|
95
|
-
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N =
|
|
96
|
-
return b(),
|
|
96
|
+
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N = K, T = i("el-row"), C = i("el-button"), U = i("el-form"), V = i("el-tab-pane"), k = i("el-tabs"), I = i("el-card");
|
|
97
|
+
return b(), B("div", z, [
|
|
97
98
|
e(I, { shadow: "never" }, {
|
|
98
99
|
default: l(() => [
|
|
99
100
|
e(k, {
|
|
100
101
|
modelValue: c.value,
|
|
101
|
-
"onUpdate:modelValue": a[8] || (a[8] = (
|
|
102
|
+
"onUpdate:modelValue": a[8] || (a[8] = (n) => c.value = n),
|
|
102
103
|
onTabClick: L
|
|
103
104
|
}, {
|
|
104
105
|
default: l(() => [
|
|
@@ -110,7 +111,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
110
111
|
e(U, {
|
|
111
112
|
ref_key: "sysOutFormRef",
|
|
112
113
|
ref: _,
|
|
113
|
-
model:
|
|
114
|
+
model: r(o),
|
|
114
115
|
"label-width": "135px",
|
|
115
116
|
rules: h
|
|
116
117
|
}, {
|
|
@@ -125,8 +126,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
125
126
|
}, {
|
|
126
127
|
default: l(() => [
|
|
127
128
|
e(s, {
|
|
128
|
-
modelValue:
|
|
129
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
129
|
+
modelValue: r(o).orgName,
|
|
130
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => r(o).orgName = n),
|
|
130
131
|
placeholder: t.$t("sysOut.orgNameRequired"),
|
|
131
132
|
maxlength: "50",
|
|
132
133
|
"show-word-limit": "",
|
|
@@ -146,8 +147,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
146
147
|
}, {
|
|
147
148
|
default: l(() => [
|
|
148
149
|
e(s, {
|
|
149
|
-
modelValue:
|
|
150
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
150
|
+
modelValue: r(o).contactPerson,
|
|
151
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => r(o).contactPerson = n),
|
|
151
152
|
placeholder: t.$t("sysOut.contactPersonRequired"),
|
|
152
153
|
maxlength: "20",
|
|
153
154
|
"show-word-limit": "",
|
|
@@ -167,8 +168,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
167
168
|
}, {
|
|
168
169
|
default: l(() => [
|
|
169
170
|
e(s, {
|
|
170
|
-
modelValue:
|
|
171
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
171
|
+
modelValue: r(o).contactPersonPosi,
|
|
172
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => r(o).contactPersonPosi = n),
|
|
172
173
|
placeholder: t.$t("sysOut.contactPersonPosiRequired"),
|
|
173
174
|
maxlength: "30",
|
|
174
175
|
"show-word-limit": "",
|
|
@@ -188,8 +189,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
188
189
|
}, {
|
|
189
190
|
default: l(() => [
|
|
190
191
|
e(s, {
|
|
191
|
-
modelValue:
|
|
192
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
192
|
+
modelValue: r(o).contactPersonTel,
|
|
193
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => r(o).contactPersonTel = n),
|
|
193
194
|
placeholder: t.$t("sysOut.contactPersonTels"),
|
|
194
195
|
maxlength: "15",
|
|
195
196
|
"show-word-limit": "",
|
|
@@ -209,8 +210,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
209
210
|
}, {
|
|
210
211
|
default: l(() => [
|
|
211
212
|
e(s, {
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
213
|
+
modelValue: r(o).contactPersonMobile,
|
|
214
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => r(o).contactPersonMobile = n),
|
|
214
215
|
placeholder: t.$t("sysOut.contactPersonMobileRequired"),
|
|
215
216
|
maxlength: "11",
|
|
216
217
|
"show-word-limit": "",
|
|
@@ -230,8 +231,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
230
231
|
}, {
|
|
231
232
|
default: l(() => [
|
|
232
233
|
e(s, {
|
|
233
|
-
modelValue:
|
|
234
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
234
|
+
modelValue: r(o).address,
|
|
235
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => r(o).address = n),
|
|
235
236
|
placeholder: t.$t("sysOut.addressRequired"),
|
|
236
237
|
maxlength: "120",
|
|
237
238
|
"show-word-limit": "",
|
|
@@ -248,7 +249,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
248
249
|
e(u, null, {
|
|
249
250
|
default: l(() => [
|
|
250
251
|
e(N, {
|
|
251
|
-
address:
|
|
252
|
+
address: r(o).address,
|
|
252
253
|
onGetLatLng: $,
|
|
253
254
|
onGetAddress: R
|
|
254
255
|
}, null, 8, ["address"])
|
|
@@ -266,8 +267,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
266
267
|
}, {
|
|
267
268
|
default: l(() => [
|
|
268
269
|
e(s, {
|
|
269
|
-
modelValue:
|
|
270
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
270
|
+
modelValue: r(o).geoLongitude,
|
|
271
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => r(o).geoLongitude = n),
|
|
271
272
|
clearable: ""
|
|
272
273
|
}, null, 8, ["modelValue"])
|
|
273
274
|
]),
|
|
@@ -284,8 +285,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
284
285
|
}, {
|
|
285
286
|
default: l(() => [
|
|
286
287
|
e(s, {
|
|
287
|
-
modelValue:
|
|
288
|
-
"onUpdate:modelValue": a[7] || (a[7] = (
|
|
288
|
+
modelValue: r(o).geoLatitude,
|
|
289
|
+
"onUpdate:modelValue": a[7] || (a[7] = (n) => r(o).geoLatitude = n),
|
|
289
290
|
clearable: ""
|
|
290
291
|
}, null, 8, ["modelValue"])
|
|
291
292
|
]),
|
|
@@ -304,7 +305,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
|
304
305
|
onClick: M
|
|
305
306
|
}, {
|
|
306
307
|
default: l(() => [
|
|
307
|
-
|
|
308
|
+
E(A(t.$t("common.save")), 1)
|
|
308
309
|
]),
|
|
309
310
|
_: 1
|
|
310
311
|
})
|
|
@@ -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 { D as w, C as j } from "./index-
|
|
6
|
+
import { D as w, C as j } from "./index-CQ5Bo5a2.mjs";
|
|
7
7
|
import { sysOrgApi as y } from "./index.mjs";
|
|
8
|
-
import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
const J = { class: "app-container" }, le = /* @__PURE__ */
|
|
8
|
+
import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-r7jQEFkS.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, {
|
|
@@ -3,8 +3,8 @@ import { ElMessage as I } from "element-plus";
|
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
4
|
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
5
|
import { g as Q } from "./common-B2PCBCJ2.mjs";
|
|
6
|
-
import { D as f } from "./index-
|
|
7
|
-
const
|
|
6
|
+
import { D as f, C as W } from "./index-CQ5Bo5a2.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
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: W.userType.outsourceOps
|
|
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
|
});
|
|
@@ -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, {
|
|
@@ -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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Y, mergeModels as S, ref as g, useModel as x, reactive as C, resolveComponent as u, openBlock as b, createBlock as c, withCtx as a, createElementVNode as O, createVNode as e, createTextVNode as U, toDisplayString as V, unref as r, createCommentVNode as ee } from "vue";
|
|
2
2
|
import { ElMessage as A } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { D as M, C as
|
|
3
|
+
import { useI18n as le } from "vue-i18n";
|
|
4
|
+
import { D as M, C as D } from "./index-CQ5Bo5a2.mjs";
|
|
5
5
|
import { deptApi as ae, jobApi as se } from "jmash-rbac";
|
|
6
6
|
import { sysUserExtApi as w, sysOrgApi as oe } from "./index.mjs";
|
|
7
7
|
import { g as re } from "./common-B2PCBCJ2.mjs";
|
|
8
|
-
const te = { class: "dialog-footer" }, ge = /* @__PURE__ */
|
|
8
|
+
const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
9
9
|
__name: "edit",
|
|
10
10
|
props: /* @__PURE__ */ S({
|
|
11
11
|
entityKey: {
|
|
@@ -18,16 +18,17 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
18
18
|
modelModifiers: {}
|
|
19
19
|
}),
|
|
20
20
|
emits: /* @__PURE__ */ S(["refresh"], ["update:modelValue"]),
|
|
21
|
-
setup(_, { emit:
|
|
22
|
-
const { t: n } =
|
|
21
|
+
setup(_, { emit: E }) {
|
|
22
|
+
const { t: n } = le(), q = g(), I = g(), v = g(), p = x(_, "modelValue"), j = E, y = g(!1);
|
|
23
23
|
M.sysOrgBizDict.useValues();
|
|
24
24
|
let o = C({
|
|
25
25
|
requestId: Math.random() * 10 + "",
|
|
26
|
-
updateMask: "realName,gender,mobilePhone,email,idNo,jobStatus,deptId,jobId,orgId"
|
|
26
|
+
updateMask: "realName,gender,mobilePhone,email,idNo,jobStatus,deptId,jobId,orgId",
|
|
27
|
+
userType: D.userType.companyManager
|
|
27
28
|
});
|
|
28
|
-
const
|
|
29
|
+
const B = (l, s, d) => {
|
|
29
30
|
s === void 0 && d(new Error(n("sysUserMan.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(s) || d(new Error(n("sysUserMan.mobilePhoneRequireds"))), d();
|
|
30
|
-
},
|
|
31
|
+
}, z = C({
|
|
31
32
|
realName: [
|
|
32
33
|
{
|
|
33
34
|
required: !0,
|
|
@@ -46,7 +47,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
46
47
|
{
|
|
47
48
|
required: !0,
|
|
48
49
|
trigger: "blur",
|
|
49
|
-
validator:
|
|
50
|
+
validator: B
|
|
50
51
|
}
|
|
51
52
|
],
|
|
52
53
|
email: [
|
|
@@ -98,7 +99,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
98
99
|
trigger: "blur"
|
|
99
100
|
}
|
|
100
101
|
]
|
|
101
|
-
}), R = _,
|
|
102
|
+
}), R = _, T = Object.keys(R.entityKey), $ = g(T.length >= 1);
|
|
102
103
|
$.value && w.findById(R.entityKey).then(({ data: l }) => {
|
|
103
104
|
Object.assign(o, l);
|
|
104
105
|
});
|
|
@@ -126,54 +127,53 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
129
|
F();
|
|
129
|
-
function
|
|
130
|
-
oe.findPage({ orgType:
|
|
130
|
+
function Z() {
|
|
131
|
+
oe.findPage({ orgType: D.orgType.cloud }).then(({ data: { results: l } }) => {
|
|
131
132
|
o.orgId = l[0].orgId;
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
|
-
|
|
135
|
-
function Z() {
|
|
135
|
+
function H() {
|
|
136
136
|
o.userPassword = re();
|
|
137
137
|
}
|
|
138
138
|
function N() {
|
|
139
139
|
p.value && (p.value = !1);
|
|
140
140
|
}
|
|
141
141
|
return (l, s) => {
|
|
142
|
-
const d = u("jmash-select"), i = u("el-form-item"), m = u("el-col"), f = u("el-input"),
|
|
143
|
-
return
|
|
142
|
+
const d = u("jmash-select"), i = u("el-form-item"), m = u("el-col"), f = u("el-input"), G = u("jmash-enum-select"), P = u("el-tree-select"), h = u("el-button"), J = u("View"), k = u("el-icon"), L = u("Hide"), X = u("el-row"), Q = u("el-form"), W = u("el-dialog");
|
|
143
|
+
return b(), c(W, {
|
|
144
144
|
modelValue: p.value,
|
|
145
145
|
"onUpdate:modelValue": s[11] || (s[11] = (t) => p.value = t),
|
|
146
146
|
onClose: N
|
|
147
147
|
}, {
|
|
148
148
|
footer: a(() => [
|
|
149
149
|
O("div", te, [
|
|
150
|
-
e(
|
|
150
|
+
e(h, { onClick: N }, {
|
|
151
151
|
default: a(() => [
|
|
152
|
-
|
|
152
|
+
U(V(l.$t("common.cancel")), 1)
|
|
153
153
|
]),
|
|
154
154
|
_: 1
|
|
155
155
|
}),
|
|
156
|
-
e(
|
|
156
|
+
e(h, {
|
|
157
157
|
type: "primary",
|
|
158
158
|
onClick: K
|
|
159
159
|
}, {
|
|
160
160
|
default: a(() => [
|
|
161
|
-
|
|
161
|
+
U(V(l.$t("common.confirm")), 1)
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
164
|
})
|
|
165
165
|
])
|
|
166
166
|
]),
|
|
167
167
|
default: a(() => [
|
|
168
|
-
e(
|
|
168
|
+
e(Q, {
|
|
169
169
|
ref_key: "sysUserExtFormRef",
|
|
170
170
|
ref: v,
|
|
171
171
|
model: r(o),
|
|
172
172
|
"label-width": "100px",
|
|
173
|
-
rules:
|
|
173
|
+
rules: z
|
|
174
174
|
}, {
|
|
175
175
|
default: a(() => [
|
|
176
|
-
e(
|
|
176
|
+
e(X, null, {
|
|
177
177
|
default: a(() => [
|
|
178
178
|
e(m, { span: 12 }, {
|
|
179
179
|
default: a(() => [
|
|
@@ -188,7 +188,8 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
188
188
|
placeholder: l.$t("sysUserMan.orgIdRequired"),
|
|
189
189
|
data: r(M).sysOrgBizDict.values,
|
|
190
190
|
clearable: "",
|
|
191
|
-
class: "w-full"
|
|
191
|
+
class: "w-full",
|
|
192
|
+
onChange: Z
|
|
192
193
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
193
194
|
]),
|
|
194
195
|
_: 1
|
|
@@ -224,7 +225,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
224
225
|
prop: "gender"
|
|
225
226
|
}, {
|
|
226
227
|
default: a(() => [
|
|
227
|
-
e(
|
|
228
|
+
e(G, {
|
|
228
229
|
modelValue: r(o).gender,
|
|
229
230
|
"onUpdate:modelValue": s[2] || (s[2] = (t) => r(o).gender = t),
|
|
230
231
|
clearable: "",
|
|
@@ -370,7 +371,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
370
371
|
]),
|
|
371
372
|
_: 1
|
|
372
373
|
}),
|
|
373
|
-
r(o).userId ?
|
|
374
|
+
r(o).userId ? ee("", !0) : (b(), c(m, {
|
|
374
375
|
key: 0,
|
|
375
376
|
span: 12
|
|
376
377
|
}, {
|
|
@@ -384,29 +385,29 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ W({
|
|
|
384
385
|
modelValue: r(o).userPassword,
|
|
385
386
|
"onUpdate:modelValue": s[10] || (s[10] = (t) => r(o).userPassword = t),
|
|
386
387
|
clearable: "",
|
|
387
|
-
type:
|
|
388
|
+
type: y.value ? "text" : "password",
|
|
388
389
|
placeholder: l.$t("sysUserMan.userPasswordRequired")
|
|
389
390
|
}, {
|
|
390
391
|
append: a(() => [
|
|
391
|
-
e(
|
|
392
|
+
e(h, { onClick: H }, {
|
|
392
393
|
default: a(() => [
|
|
393
|
-
|
|
394
|
+
U(V(l.$t("sysUserMan.randomPwd")), 1)
|
|
394
395
|
]),
|
|
395
396
|
_: 1
|
|
396
397
|
})
|
|
397
398
|
]),
|
|
398
399
|
suffix: a(() => [
|
|
399
400
|
O("span", {
|
|
400
|
-
onClick: s[9] || (s[9] = (t) =>
|
|
401
|
+
onClick: s[9] || (s[9] = (t) => y.value = !y.value)
|
|
401
402
|
}, [
|
|
402
|
-
|
|
403
|
+
y.value ? (b(), c(k, { key: 0 }, {
|
|
403
404
|
default: a(() => [
|
|
404
|
-
e(
|
|
405
|
+
e(J)
|
|
405
406
|
]),
|
|
406
407
|
_: 1
|
|
407
|
-
})) : (
|
|
408
|
+
})) : (b(), c(k, { key: 1 }, {
|
|
408
409
|
default: a(() => [
|
|
409
|
-
e(
|
|
410
|
+
e(L)
|
|
410
411
|
]),
|
|
411
412
|
_: 1
|
|
412
413
|
}))
|
|
@@ -2,8 +2,8 @@ import { defineComponent as D, mergeModels as _, ref as I, useModel as B, reacti
|
|
|
2
2
|
import { ElMessage as T } from "element-plus";
|
|
3
3
|
import { useI18n as S } from "vue-i18n";
|
|
4
4
|
import { useRoute as A } from "vue-router";
|
|
5
|
-
import { s as b } from "./index-
|
|
6
|
-
import { D as L } from "./index-
|
|
5
|
+
import { s as b } from "./index-B6vJj_z6.mjs";
|
|
6
|
+
import { D as L } from "./index-CQ5Bo5a2.mjs";
|
|
7
7
|
const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ _({
|