xyvcard-itsmsys 0.0.17 → 0.0.19
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-BAH_6b13.mjs → edit-BrHOGUbU.mjs} +1 -1
- package/dist/{edit-DgxHpvC6.mjs → edit-CNEVornb.mjs} +100 -100
- package/dist/{edit-CJKLiFvj.mjs → edit-COKceKzl.mjs} +87 -87
- package/dist/{edit-a4L0fy11.mjs → edit-Czi-Vkbf.mjs} +1 -1
- package/dist/{edit-DdBemEtp.mjs → edit-DYqAdRsK.mjs} +99 -99
- package/dist/{edit-CfJWdgBx.mjs → edit-DybO5r3p.mjs} +1 -1
- package/dist/{edit-pCyaGLeW.mjs → edit-_QJnKCdq.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bs8-z-IO.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
- package/dist/{edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +173 -174
- package/dist/{edit.vue_vue_type_script_setup_true_lang-ygCvblxi.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
- package/dist/{import-upload-TERPQdeq.mjs → import-upload-BvY7RZa-.mjs} +2 -2
- package/dist/{import-upload-BISlCHWj.mjs → import-upload-DBk1lPqR.mjs} +5 -5
- package/dist/{index-BxdZzcjP.mjs → index-BHcHN6PY.mjs} +25 -25
- package/dist/{index-DRzFGqnW.mjs → index-Cow_4AlE.mjs} +22 -22
- package/dist/{index-rAUwvtcF.mjs → index-CuBZptA_.mjs} +1 -1
- package/dist/{index-ekie5iUI.mjs → index-D__UxnZG.mjs} +13 -15
- package/dist/{index-DGX9vRbo.mjs → index-IpHv0Vzi.mjs} +1 -1
- package/dist/{index-byYol6y6.mjs → index-cpyRUYdS.mjs} +57 -55
- package/dist/{index-C57850Qg.mjs → index-dIcRC4jE.mjs} +23 -29
- package/dist/{index-B8RLzH1x.mjs → index-p50UkFiJ.mjs} +28 -28
- package/dist/index.mjs +1021 -936
- package/dist/{index.vue_vue_type_script_setup_true_lang-CFepWDIx.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
- package/dist/{info-DHxVt25p.mjs → info-BUKhtcuu.mjs} +2 -2
- package/dist/{info-BqQdA6b-.mjs → info-Bn5mhJtq.mjs} +2 -2
- package/dist/{info-to4iDhQX.mjs → info-Dx5fzSIP.mjs} +2 -2
- package/dist/{info-BraECWiO.mjs → info-EodyqiPm.mjs} +2 -2
- package/dist/{info-Cjx0ceNM.mjs → info-G1z1-aeX.mjs} +2 -2
- package/dist/{info-BNw5IiGi.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 +9 -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 +18 -20
- package/dist/import-upload-CzXWmSM6.mjs +0 -161
- package/dts/components/TMaps/index.vue.d.ts +0 -20
- package/dts/utils/TMap.d.ts +0 -1
- package/dts/utils/common.d.ts +0 -1
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +0 -31
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as K, ref as g, reactive as w, resolveComponent as i, openBlock as f, createElementBlock as A, createVNode as e, withCtx as l, unref as s, createTextVNode as E, toDisplayString as F, createBlock as q, createCommentVNode as v } from "vue";
|
|
2
2
|
import { ElMessage as $ } from "element-plus";
|
|
3
|
-
import { s as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { routerUtil as
|
|
7
|
-
import { C as b } from "./index-
|
|
3
|
+
import { s as D } from "./index-B2xwBTw-.mjs";
|
|
4
|
+
import { useI18n as J } from "vue-i18n";
|
|
5
|
+
import { useRoute as z, useRouter as H } from "vue-router";
|
|
6
|
+
import { validatePhoneOrLandline as Q, routerUtil as R } from "jmash-core";
|
|
7
|
+
import { C as b } from "./index-dIcRC4jE.mjs";
|
|
8
8
|
import { sysOrgApi as y } from "./index.mjs";
|
|
9
|
-
import { _ as
|
|
10
|
-
const
|
|
9
|
+
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs";
|
|
10
|
+
const X = { class: "app-container" }, re = /* @__PURE__ */ K({
|
|
11
11
|
__name: "edit",
|
|
12
|
-
setup(
|
|
13
|
-
const { t: m } =
|
|
14
|
-
let o =
|
|
12
|
+
setup(Y) {
|
|
13
|
+
const { t: m } = J(), c = z(), _ = H(), P = g(), p = g("first");
|
|
14
|
+
let o = w({
|
|
15
15
|
requestId: Math.random() * 10 + "",
|
|
16
16
|
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
17
17
|
orgType: b.orgType.outsource
|
|
18
18
|
});
|
|
19
19
|
const V = g("");
|
|
20
|
-
function
|
|
20
|
+
function T(t) {
|
|
21
21
|
p.value = t.props.name;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const h = (t, a, r) => {
|
|
24
|
+
a && (Q(a) || r(new Error(m("sysOut.contactPersonMobileRequireds")))), r();
|
|
25
|
+
}, C = w({
|
|
24
26
|
orgName: [
|
|
25
27
|
{
|
|
26
28
|
required: !0,
|
|
@@ -51,15 +53,13 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
51
53
|
],
|
|
52
54
|
contactPersonMobile: [
|
|
53
55
|
{
|
|
54
|
-
|
|
55
|
-
message: m("sysOut.contactPersonMobileRequireds"),
|
|
56
|
+
validator: h,
|
|
56
57
|
trigger: "blur"
|
|
57
58
|
}
|
|
58
59
|
],
|
|
59
60
|
contactPersonTel: [
|
|
60
61
|
{
|
|
61
|
-
|
|
62
|
-
message: m("sysOut.contactPersonTelRequireds"),
|
|
62
|
+
validator: h,
|
|
63
63
|
trigger: "blur"
|
|
64
64
|
}
|
|
65
65
|
]
|
|
@@ -67,68 +67,68 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
67
67
|
function k() {
|
|
68
68
|
V.value = o.address;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function N(t) {
|
|
71
71
|
o.geoLatitude = t[0], o.geoLongitude = t[1];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function M(t) {
|
|
74
74
|
o.address = t;
|
|
75
75
|
}
|
|
76
76
|
c.query.entityKey && y.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
|
|
77
77
|
Object.assign(o, t);
|
|
78
78
|
});
|
|
79
|
-
const
|
|
79
|
+
const U = async () => {
|
|
80
80
|
var t;
|
|
81
|
-
await ((t = P.value) == null ? void 0 : t.validate((
|
|
82
|
-
var
|
|
83
|
-
|
|
81
|
+
await ((t = P.value) == null ? void 0 : t.validate((a) => {
|
|
82
|
+
var r, d;
|
|
83
|
+
a && (o.geoLongitude = (r = o.geoLongitude) == null ? void 0 : r.toString(), o.geoLatitude = (d = o.geoLatitude) == null ? void 0 : d.toString(), o.orgId ? y.update(o).then((u) => {
|
|
84
84
|
u.status === 200 && ($({
|
|
85
85
|
message: m("common.submitSuccess"),
|
|
86
86
|
type: "success"
|
|
87
|
-
}),
|
|
87
|
+
}), R.closeTagView(c.fullPath, _, !1));
|
|
88
88
|
}) : y.create(o).then((u) => {
|
|
89
89
|
u.status === 200 && ($({
|
|
90
90
|
message: m("common.submitSuccess"),
|
|
91
91
|
type: "success"
|
|
92
|
-
}),
|
|
92
|
+
}), R.closeTagView(c.fullPath, _, !1));
|
|
93
93
|
}));
|
|
94
94
|
}));
|
|
95
95
|
};
|
|
96
|
-
return (t,
|
|
97
|
-
const
|
|
98
|
-
return f(),
|
|
99
|
-
e(
|
|
96
|
+
return (t, a) => {
|
|
97
|
+
const r = i("el-input"), d = i("el-form-item"), u = i("el-col"), L = i("el-button"), S = i("jmash-amap"), j = i("el-row"), B = i("el-form"), O = i("el-tab-pane"), G = i("el-tabs"), I = i("el-card");
|
|
98
|
+
return f(), A("div", X, [
|
|
99
|
+
e(I, { shadow: "never" }, {
|
|
100
100
|
default: l(() => [
|
|
101
|
-
e(
|
|
101
|
+
e(G, {
|
|
102
102
|
modelValue: p.value,
|
|
103
|
-
"onUpdate:modelValue":
|
|
104
|
-
onTabClick:
|
|
103
|
+
"onUpdate:modelValue": a[8] || (a[8] = (n) => p.value = n),
|
|
104
|
+
onTabClick: T
|
|
105
105
|
}, {
|
|
106
106
|
default: l(() => [
|
|
107
|
-
e(
|
|
107
|
+
e(O, {
|
|
108
108
|
label: "外协单位信息",
|
|
109
109
|
name: "first"
|
|
110
110
|
}, {
|
|
111
111
|
default: l(() => [
|
|
112
|
-
e(
|
|
112
|
+
e(B, {
|
|
113
113
|
ref_key: "sysOutFormRef",
|
|
114
114
|
ref: P,
|
|
115
|
-
model:
|
|
115
|
+
model: s(o),
|
|
116
116
|
"label-width": "135px",
|
|
117
|
-
rules:
|
|
117
|
+
rules: C
|
|
118
118
|
}, {
|
|
119
119
|
default: l(() => [
|
|
120
|
-
e(
|
|
120
|
+
e(j, null, {
|
|
121
121
|
default: l(() => [
|
|
122
122
|
e(u, { span: 24 }, {
|
|
123
123
|
default: l(() => [
|
|
124
|
-
e(
|
|
124
|
+
e(d, {
|
|
125
125
|
label: t.$t("sysOut.orgName"),
|
|
126
126
|
prop: "orgName"
|
|
127
127
|
}, {
|
|
128
128
|
default: l(() => [
|
|
129
|
-
e(
|
|
130
|
-
modelValue:
|
|
131
|
-
"onUpdate:modelValue":
|
|
129
|
+
e(r, {
|
|
130
|
+
modelValue: s(o).orgName,
|
|
131
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => s(o).orgName = n),
|
|
132
132
|
placeholder: t.$t("sysOut.orgNameRequired"),
|
|
133
133
|
maxlength: "50",
|
|
134
134
|
"show-word-limit": "",
|
|
@@ -142,14 +142,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
142
142
|
}),
|
|
143
143
|
e(u, { span: 12 }, {
|
|
144
144
|
default: l(() => [
|
|
145
|
-
e(
|
|
145
|
+
e(d, {
|
|
146
146
|
label: t.$t("sysOut.contactPerson"),
|
|
147
147
|
prop: "contactPerson"
|
|
148
148
|
}, {
|
|
149
149
|
default: l(() => [
|
|
150
|
-
e(
|
|
151
|
-
modelValue:
|
|
152
|
-
"onUpdate:modelValue":
|
|
150
|
+
e(r, {
|
|
151
|
+
modelValue: s(o).contactPerson,
|
|
152
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => s(o).contactPerson = n),
|
|
153
153
|
placeholder: t.$t("sysOut.contactPersonRequired"),
|
|
154
154
|
maxlength: "20",
|
|
155
155
|
"show-word-limit": "",
|
|
@@ -163,14 +163,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
163
163
|
}),
|
|
164
164
|
e(u, { span: 12 }, {
|
|
165
165
|
default: l(() => [
|
|
166
|
-
e(
|
|
166
|
+
e(d, {
|
|
167
167
|
label: t.$t("sysOut.contactPersonPosi"),
|
|
168
168
|
prop: "contactPersonPosi"
|
|
169
169
|
}, {
|
|
170
170
|
default: l(() => [
|
|
171
|
-
e(
|
|
172
|
-
modelValue:
|
|
173
|
-
"onUpdate:modelValue":
|
|
171
|
+
e(r, {
|
|
172
|
+
modelValue: s(o).contactPersonPosi,
|
|
173
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => s(o).contactPersonPosi = n),
|
|
174
174
|
placeholder: t.$t("sysOut.contactPersonPosiRequired"),
|
|
175
175
|
maxlength: "30",
|
|
176
176
|
"show-word-limit": "",
|
|
@@ -184,14 +184,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
184
184
|
}),
|
|
185
185
|
e(u, { span: 12 }, {
|
|
186
186
|
default: l(() => [
|
|
187
|
-
e(
|
|
187
|
+
e(d, {
|
|
188
188
|
label: t.$t("sysOut.contactPersonTel"),
|
|
189
189
|
prop: "contactPersonTel"
|
|
190
190
|
}, {
|
|
191
191
|
default: l(() => [
|
|
192
|
-
e(
|
|
193
|
-
modelValue:
|
|
194
|
-
"onUpdate:modelValue":
|
|
192
|
+
e(r, {
|
|
193
|
+
modelValue: s(o).contactPersonTel,
|
|
194
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => s(o).contactPersonTel = n),
|
|
195
195
|
placeholder: t.$t("sysOut.contactPersonTelRequired"),
|
|
196
196
|
maxlength: "12",
|
|
197
197
|
"show-word-limit": "",
|
|
@@ -205,14 +205,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
205
205
|
}),
|
|
206
206
|
e(u, { span: 12 }, {
|
|
207
207
|
default: l(() => [
|
|
208
|
-
e(
|
|
208
|
+
e(d, {
|
|
209
209
|
label: t.$t("sysOut.contactPersonMobile"),
|
|
210
210
|
prop: "contactPersonMobile"
|
|
211
211
|
}, {
|
|
212
212
|
default: l(() => [
|
|
213
|
-
e(
|
|
214
|
-
modelValue:
|
|
215
|
-
"onUpdate:modelValue":
|
|
213
|
+
e(r, {
|
|
214
|
+
modelValue: s(o).contactPersonMobile,
|
|
215
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => s(o).contactPersonMobile = n),
|
|
216
216
|
placeholder: t.$t("sysOut.contactPersonMobileRequired"),
|
|
217
217
|
maxlength: "11",
|
|
218
218
|
"show-word-limit": "",
|
|
@@ -226,22 +226,22 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
226
226
|
}),
|
|
227
227
|
e(u, { span: 24 }, {
|
|
228
228
|
default: l(() => [
|
|
229
|
-
e(
|
|
229
|
+
e(d, {
|
|
230
230
|
label: t.$t("sysOut.address"),
|
|
231
231
|
prop: "address"
|
|
232
232
|
}, {
|
|
233
233
|
default: l(() => [
|
|
234
|
-
e(
|
|
235
|
-
modelValue:
|
|
236
|
-
"onUpdate:modelValue":
|
|
234
|
+
e(r, {
|
|
235
|
+
modelValue: s(o).address,
|
|
236
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => s(o).address = n),
|
|
237
237
|
placeholder: t.$t("sysOut.addressRequired"),
|
|
238
238
|
maxlength: "120",
|
|
239
239
|
"show-word-limit": "",
|
|
240
240
|
clearable: ""
|
|
241
241
|
}, {
|
|
242
242
|
append: l(() => [
|
|
243
|
-
e(
|
|
244
|
-
icon:
|
|
243
|
+
e(L, {
|
|
244
|
+
icon: s(D),
|
|
245
245
|
onClick: k
|
|
246
246
|
}, null, 8, ["icon"])
|
|
247
247
|
]),
|
|
@@ -255,16 +255,16 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
255
255
|
}),
|
|
256
256
|
e(u, { span: 24 }, {
|
|
257
257
|
default: l(() => [
|
|
258
|
-
e(
|
|
258
|
+
e(d, null, {
|
|
259
259
|
default: l(() => [
|
|
260
|
-
e(
|
|
261
|
-
"security-js-code":
|
|
262
|
-
"api-key":
|
|
260
|
+
e(S, {
|
|
261
|
+
"security-js-code": s(b).amapConfig.securityJsCode,
|
|
262
|
+
"api-key": s(b).amapConfig.apiKey,
|
|
263
263
|
address: V.value,
|
|
264
|
-
lat:
|
|
265
|
-
lng:
|
|
266
|
-
onGetLatLng:
|
|
267
|
-
onGetAddress:
|
|
264
|
+
lat: s(o).geoLatitude,
|
|
265
|
+
lng: s(o).geoLongitude,
|
|
266
|
+
onGetLatLng: N,
|
|
267
|
+
onGetAddress: M
|
|
268
268
|
}, null, 8, ["security-js-code", "api-key", "address", "lat", "lng"])
|
|
269
269
|
]),
|
|
270
270
|
_: 1
|
|
@@ -274,14 +274,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
274
274
|
}),
|
|
275
275
|
e(u, { span: 12 }, {
|
|
276
276
|
default: l(() => [
|
|
277
|
-
e(
|
|
277
|
+
e(d, {
|
|
278
278
|
label: t.$t("sysOut.geoLongitude"),
|
|
279
279
|
prop: "geoLongitude"
|
|
280
280
|
}, {
|
|
281
281
|
default: l(() => [
|
|
282
|
-
e(
|
|
283
|
-
modelValue:
|
|
284
|
-
"onUpdate:modelValue":
|
|
282
|
+
e(r, {
|
|
283
|
+
modelValue: s(o).geoLongitude,
|
|
284
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => s(o).geoLongitude = n),
|
|
285
285
|
clearable: "",
|
|
286
286
|
disabled: !0
|
|
287
287
|
}, null, 8, ["modelValue"])
|
|
@@ -293,14 +293,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
293
293
|
}),
|
|
294
294
|
e(u, { span: 12 }, {
|
|
295
295
|
default: l(() => [
|
|
296
|
-
e(
|
|
296
|
+
e(d, {
|
|
297
297
|
label: t.$t("sysOut.geoLatitude"),
|
|
298
298
|
prop: "geoLatitude"
|
|
299
299
|
}, {
|
|
300
300
|
default: l(() => [
|
|
301
|
-
e(
|
|
302
|
-
modelValue:
|
|
303
|
-
"onUpdate:modelValue":
|
|
301
|
+
e(r, {
|
|
302
|
+
modelValue: s(o).geoLatitude,
|
|
303
|
+
"onUpdate:modelValue": a[7] || (a[7] = (n) => s(o).geoLatitude = n),
|
|
304
304
|
clearable: "",
|
|
305
305
|
disabled: !0
|
|
306
306
|
}, null, 8, ["modelValue"])
|
|
@@ -313,14 +313,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
313
313
|
]),
|
|
314
314
|
_: 1
|
|
315
315
|
}),
|
|
316
|
-
e(
|
|
316
|
+
e(d, null, {
|
|
317
317
|
default: l(() => [
|
|
318
|
-
e(
|
|
318
|
+
e(L, {
|
|
319
319
|
type: "primary",
|
|
320
|
-
onClick:
|
|
320
|
+
onClick: U
|
|
321
321
|
}, {
|
|
322
322
|
default: l(() => [
|
|
323
|
-
|
|
323
|
+
E(F(t.$t("common.save")), 1)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})
|
|
@@ -333,16 +333,16 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
333
333
|
]),
|
|
334
334
|
_: 1
|
|
335
335
|
}),
|
|
336
|
-
|
|
336
|
+
s(c).query.entityKey ? (f(), q(O, {
|
|
337
337
|
key: 0,
|
|
338
338
|
label: "发票信息",
|
|
339
339
|
name: "second"
|
|
340
340
|
}, {
|
|
341
341
|
default: l(() => [
|
|
342
|
-
p.value === "second" ? (f(), q(
|
|
342
|
+
p.value === "second" ? (f(), q(W, { key: 0 })) : v("", !0)
|
|
343
343
|
]),
|
|
344
344
|
_: 1
|
|
345
|
-
})) :
|
|
345
|
+
})) : v("", !0)
|
|
346
346
|
]),
|
|
347
347
|
_: 1
|
|
348
348
|
}, 8, ["modelValue"])
|
|
@@ -354,5 +354,5 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
export {
|
|
357
|
-
|
|
357
|
+
re as default
|
|
358
358
|
};
|