xyvcard-itsmsys 0.0.3 → 0.0.5
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/common-B2PCBCJ2.mjs +13 -0
- package/dist/edit-BhRXuYku.mjs +342 -0
- package/dist/edit-CIm8Y0Be.mjs +4 -0
- package/dist/edit-CWVYUzgf.mjs +369 -0
- package/dist/edit-D82hX9if.mjs +4 -0
- package/dist/edit-DLAiwJjs.mjs +342 -0
- package/dist/edit-DPM0jGQT.mjs +4 -0
- package/dist/edit-DZJU5ZPt.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
- package/dist/{invoiceEdit-Chsj8_aC.mjs → edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs} +58 -63
- package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
- package/dist/{index-CUjT3FVb.mjs → index-BQRtMgmZ.mjs} +106 -117
- package/dist/index-B_cot8iN.mjs +439 -0
- package/dist/index-BkHGzL0R.mjs +358 -0
- package/dist/index-C6KvLUoL.mjs +4 -0
- package/dist/index-CEUyLrKg.mjs +404 -0
- package/dist/index-ChTssr8-.mjs +123 -0
- package/dist/{index-B02UvpyC.mjs → index-ClU157bA.mjs} +103 -113
- package/dist/{index-Cskg0LGf.mjs → index-CogdeN09.mjs} +101 -111
- package/dist/index.mjs +2765 -126
- package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
- package/dist/info-70H0sycC.mjs +187 -0
- package/dist/info-BWgVN2mJ.mjs +176 -0
- package/dist/info-CE-ZnFj5.mjs +179 -0
- package/dist/info-Kf11Ye-N.mjs +187 -0
- package/dist/info-MYJGcyMX.mjs +179 -0
- package/dist/info-Z5LuCRmr.mjs +187 -0
- package/dist/style.css +1 -1
- package/dts/src/api/dict.d.ts +4 -1
- package/dts/src/api/index.d.ts +4 -1
- package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
- package/dts/src/api/itsm-sys-org/types.d.ts +2 -2
- package/dts/src/api/itsm-sys-user-ext/types.d.ts +18 -3
- package/dts/src/constant.d.ts +7 -0
- package/dts/src/lang/itsmsys/zh-cn.d.ts +27 -11
- package/dts/src/router/index.d.ts +6 -4
- package/dts/src/utils/common.d.ts +1 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/src/views/itsmsys/{itsm-sys-gov/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
- package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-user-out/edit.vue.d.ts} +6 -15
- package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
- package/package.json +3 -3
- package/dist/edit-BeMy_aOl.mjs +0 -548
- package/dist/edit-BhXrnHr7.mjs +0 -520
- package/dist/edit-BsLAy2-H.mjs +0 -276
- package/dist/edit-D7n1rZY2.mjs +0 -240
- package/dist/edit-l4-w6Psd.mjs +0 -520
- package/dist/index-Bw3EuEs9.mjs +0 -345
- package/dist/index-COPul57Z.mjs +0 -84
- package/dist/index-CRlIL96y.mjs +0 -334
- package/dist/info-7Rre3Mm0.mjs +0 -198
- package/dist/info-CYKiOMB6.mjs +0 -198
- package/dist/info-Dub2j7gN.mjs +0 -198
- package/dist/info-O3dKVGmT.mjs +0 -10
- package/dist/invoiceEdit-C5dQG8ZJ.mjs +0 -253
- package/dist/invoiceEdit-DuSCNiDz.mjs +0 -253
- package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
- package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
- package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
- package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
- package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +0 -31
- /package/dts/src/views/{itsmsys-user/itsm-sys-user-man → itsmsys/itsm-sys-org-invoice}/index.vue.d.ts +0 -0
- /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/edit.vue.d.ts +0 -0
- /package/dts/src/views/{itsmsys-user/itsm-sys-user-ops → itsmsys/itsm-sys-user-man}/index.vue.d.ts +0 -0
- /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/info.vue.d.ts +0 -0
- /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-ops/edit.vue.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function c() {
|
|
2
|
+
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", a = "abcdefghijklmnopqrstuvwxyz", n = "0123456789", r = "!@#$%^&*()_+~`|}{[]\\:;?><,./-=", e = o + a + n + r, l = Math.floor(Math.random() * 13) + 8;
|
|
3
|
+
let t = "";
|
|
4
|
+
t += o[Math.floor(Math.random() * o.length)], t += a[Math.floor(Math.random() * a.length)], t += n[Math.floor(Math.random() * n.length)], t += r[Math.floor(Math.random() * r.length)];
|
|
5
|
+
for (let h = 0; h < l - 4; h++) {
|
|
6
|
+
const s = Math.floor(Math.random() * e.length);
|
|
7
|
+
t += e[s];
|
|
8
|
+
}
|
|
9
|
+
return t = t.split("").sort(() => Math.random() - 0.5).join(""), t;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as g
|
|
13
|
+
};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { _ as S } from "./index-BRupqW34.mjs";
|
|
2
|
+
import { defineComponent as B, ref as f, reactive as O, resolveComponent as i, openBlock as b, createElementBlock as E, createVNode as e, withCtx as l, unref as n, createTextVNode as K, toDisplayString as A, createBlock as q, createCommentVNode as v } from "vue";
|
|
3
|
+
import { ElMessage as w } from "element-plus";
|
|
4
|
+
import { useI18n as F } from "vue-i18n";
|
|
5
|
+
import { useRoute as G } from "vue-router";
|
|
6
|
+
import { C as j } from "./index-ChTssr8-.mjs";
|
|
7
|
+
import { sysOrgApi as y } from "./index.mjs";
|
|
8
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs";
|
|
9
|
+
const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
|
|
10
|
+
__name: "edit",
|
|
11
|
+
setup(H) {
|
|
12
|
+
const { t: m } = F(), g = G(), _ = f(), c = f("first"), p = f("");
|
|
13
|
+
p.value = g.query.entityKey;
|
|
14
|
+
function L(t) {
|
|
15
|
+
c.value = t.paneName;
|
|
16
|
+
}
|
|
17
|
+
let o = O({
|
|
18
|
+
requestId: Math.random() * 10 + "",
|
|
19
|
+
updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
|
|
20
|
+
orgType: j.orgType.outsource
|
|
21
|
+
});
|
|
22
|
+
const P = (t, a, s) => {
|
|
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();
|
|
24
|
+
}, h = O({
|
|
25
|
+
orgName: [
|
|
26
|
+
{
|
|
27
|
+
required: !0,
|
|
28
|
+
message: m("sysOut.orgNameRequired"),
|
|
29
|
+
trigger: "blur"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
address: [
|
|
33
|
+
{
|
|
34
|
+
required: !0,
|
|
35
|
+
message: m("sysOut.addressRequired"),
|
|
36
|
+
trigger: "blur"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
contactPerson: [
|
|
40
|
+
{
|
|
41
|
+
required: !0,
|
|
42
|
+
message: m("sysOut.contactPersonRequired"),
|
|
43
|
+
trigger: "blur"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
contactPersonPosi: [
|
|
47
|
+
{
|
|
48
|
+
required: !0,
|
|
49
|
+
message: m("sysOut.contactPersonPosiRequired"),
|
|
50
|
+
trigger: "blur"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
contactPersonMobile: [
|
|
54
|
+
{
|
|
55
|
+
required: !0,
|
|
56
|
+
trigger: "blur",
|
|
57
|
+
validator: P
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
contactPersonTel: [
|
|
61
|
+
{
|
|
62
|
+
required: !0,
|
|
63
|
+
trigger: "blur",
|
|
64
|
+
validator: P
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
function $(t) {
|
|
69
|
+
o.geoLatitude = t[0], o.geoLongitude = t[1];
|
|
70
|
+
}
|
|
71
|
+
function R(t) {
|
|
72
|
+
o.address = t;
|
|
73
|
+
}
|
|
74
|
+
g.query.entityKey && y.findById({ orgId: g.query.entityKey }).then(({ data: t }) => {
|
|
75
|
+
Object.assign(o, t);
|
|
76
|
+
});
|
|
77
|
+
const M = async () => {
|
|
78
|
+
var t;
|
|
79
|
+
await ((t = _.value) == null ? void 0 : t.validate((a) => {
|
|
80
|
+
var s, u;
|
|
81
|
+
a && (o.geoLongitude = (s = o.geoLongitude) == null ? void 0 : s.toString(), o.geoLatitude = (u = o.geoLatitude) == null ? void 0 : u.toString(), o.orgId = p.value, o.requestId = Math.random() * 10 + "", o.orgId ? y.update(o).then((d) => {
|
|
82
|
+
d.status === 200 && (w({
|
|
83
|
+
message: m("common.submitSuccess"),
|
|
84
|
+
type: "success"
|
|
85
|
+
}), c.value = "second");
|
|
86
|
+
}) : y.create(o).then((d) => {
|
|
87
|
+
d.status === 200 && (w({
|
|
88
|
+
message: m("common.submitSuccess"),
|
|
89
|
+
type: "success"
|
|
90
|
+
}), p.value = d.data.orgId, c.value = "second");
|
|
91
|
+
}));
|
|
92
|
+
}));
|
|
93
|
+
};
|
|
94
|
+
return (t, a) => {
|
|
95
|
+
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N = S, 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");
|
|
96
|
+
return b(), E("div", z, [
|
|
97
|
+
e(I, { shadow: "never" }, {
|
|
98
|
+
default: l(() => [
|
|
99
|
+
e(k, {
|
|
100
|
+
modelValue: c.value,
|
|
101
|
+
"onUpdate:modelValue": a[8] || (a[8] = (r) => c.value = r),
|
|
102
|
+
onTabClick: L
|
|
103
|
+
}, {
|
|
104
|
+
default: l(() => [
|
|
105
|
+
e(V, {
|
|
106
|
+
label: "外协单位信息",
|
|
107
|
+
name: "first"
|
|
108
|
+
}, {
|
|
109
|
+
default: l(() => [
|
|
110
|
+
e(U, {
|
|
111
|
+
ref_key: "sysOutFormRef",
|
|
112
|
+
ref: _,
|
|
113
|
+
model: n(o),
|
|
114
|
+
"label-width": "135px",
|
|
115
|
+
rules: h
|
|
116
|
+
}, {
|
|
117
|
+
default: l(() => [
|
|
118
|
+
e(T, null, {
|
|
119
|
+
default: l(() => [
|
|
120
|
+
e(d, { span: 24 }, {
|
|
121
|
+
default: l(() => [
|
|
122
|
+
e(u, {
|
|
123
|
+
label: t.$t("sysOut.orgName"),
|
|
124
|
+
prop: "orgName"
|
|
125
|
+
}, {
|
|
126
|
+
default: l(() => [
|
|
127
|
+
e(s, {
|
|
128
|
+
modelValue: n(o).orgName,
|
|
129
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => n(o).orgName = r),
|
|
130
|
+
placeholder: t.$t("sysOut.orgNameRequired"),
|
|
131
|
+
maxlength: "50",
|
|
132
|
+
"show-word-limit": "",
|
|
133
|
+
clearable: ""
|
|
134
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["label"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
e(d, { span: 12 }, {
|
|
142
|
+
default: l(() => [
|
|
143
|
+
e(u, {
|
|
144
|
+
label: t.$t("sysOut.contactPerson"),
|
|
145
|
+
prop: "contactPerson"
|
|
146
|
+
}, {
|
|
147
|
+
default: l(() => [
|
|
148
|
+
e(s, {
|
|
149
|
+
modelValue: n(o).contactPerson,
|
|
150
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => n(o).contactPerson = r),
|
|
151
|
+
placeholder: t.$t("sysOut.contactPersonRequired"),
|
|
152
|
+
maxlength: "20",
|
|
153
|
+
"show-word-limit": "",
|
|
154
|
+
clearable: ""
|
|
155
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["label"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}),
|
|
162
|
+
e(d, { span: 12 }, {
|
|
163
|
+
default: l(() => [
|
|
164
|
+
e(u, {
|
|
165
|
+
label: t.$t("sysOut.contactPersonPosi"),
|
|
166
|
+
prop: "contactPersonPosi"
|
|
167
|
+
}, {
|
|
168
|
+
default: l(() => [
|
|
169
|
+
e(s, {
|
|
170
|
+
modelValue: n(o).contactPersonPosi,
|
|
171
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => n(o).contactPersonPosi = r),
|
|
172
|
+
placeholder: t.$t("sysOut.contactPersonPosiRequired"),
|
|
173
|
+
maxlength: "30",
|
|
174
|
+
"show-word-limit": "",
|
|
175
|
+
clearable: ""
|
|
176
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["label"])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
e(d, { span: 12 }, {
|
|
184
|
+
default: l(() => [
|
|
185
|
+
e(u, {
|
|
186
|
+
label: t.$t("sysOut.contactPersonTel"),
|
|
187
|
+
prop: "contactPersonTel"
|
|
188
|
+
}, {
|
|
189
|
+
default: l(() => [
|
|
190
|
+
e(s, {
|
|
191
|
+
modelValue: n(o).contactPersonTel,
|
|
192
|
+
"onUpdate:modelValue": a[3] || (a[3] = (r) => n(o).contactPersonTel = r),
|
|
193
|
+
placeholder: t.$t("sysOut.contactPersonTels"),
|
|
194
|
+
maxlength: "15",
|
|
195
|
+
"show-word-limit": "",
|
|
196
|
+
clearable: ""
|
|
197
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["label"])
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}),
|
|
204
|
+
e(d, { span: 12 }, {
|
|
205
|
+
default: l(() => [
|
|
206
|
+
e(u, {
|
|
207
|
+
label: t.$t("sysOut.contactPersonMobile"),
|
|
208
|
+
prop: "contactPersonMobile"
|
|
209
|
+
}, {
|
|
210
|
+
default: l(() => [
|
|
211
|
+
e(s, {
|
|
212
|
+
modelValue: n(o).contactPersonMobile,
|
|
213
|
+
"onUpdate:modelValue": a[4] || (a[4] = (r) => n(o).contactPersonMobile = r),
|
|
214
|
+
placeholder: t.$t("sysOut.contactPersonMobileRequired"),
|
|
215
|
+
maxlength: "11",
|
|
216
|
+
"show-word-limit": "",
|
|
217
|
+
clearable: ""
|
|
218
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["label"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
e(d, { span: 24 }, {
|
|
226
|
+
default: l(() => [
|
|
227
|
+
e(u, {
|
|
228
|
+
label: t.$t("sysOut.address"),
|
|
229
|
+
prop: "address"
|
|
230
|
+
}, {
|
|
231
|
+
default: l(() => [
|
|
232
|
+
e(s, {
|
|
233
|
+
modelValue: n(o).address,
|
|
234
|
+
"onUpdate:modelValue": a[5] || (a[5] = (r) => n(o).address = r),
|
|
235
|
+
placeholder: t.$t("sysOut.addressRequired"),
|
|
236
|
+
maxlength: "120",
|
|
237
|
+
"show-word-limit": "",
|
|
238
|
+
clearable: ""
|
|
239
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["label"])
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
}),
|
|
246
|
+
e(d, { span: 24 }, {
|
|
247
|
+
default: l(() => [
|
|
248
|
+
e(u, null, {
|
|
249
|
+
default: l(() => [
|
|
250
|
+
e(N, {
|
|
251
|
+
address: n(o).address,
|
|
252
|
+
onGetLatLng: $,
|
|
253
|
+
onGetAddress: R
|
|
254
|
+
}, null, 8, ["address"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}),
|
|
261
|
+
e(d, { span: 12 }, {
|
|
262
|
+
default: l(() => [
|
|
263
|
+
e(u, {
|
|
264
|
+
label: t.$t("sysOut.geoLongitude"),
|
|
265
|
+
prop: "geoLongitude"
|
|
266
|
+
}, {
|
|
267
|
+
default: l(() => [
|
|
268
|
+
e(s, {
|
|
269
|
+
modelValue: n(o).geoLongitude,
|
|
270
|
+
"onUpdate:modelValue": a[6] || (a[6] = (r) => n(o).geoLongitude = r),
|
|
271
|
+
clearable: ""
|
|
272
|
+
}, null, 8, ["modelValue"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}, 8, ["label"])
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}),
|
|
279
|
+
e(d, { span: 12 }, {
|
|
280
|
+
default: l(() => [
|
|
281
|
+
e(u, {
|
|
282
|
+
label: t.$t("sysOut.geoLatitude"),
|
|
283
|
+
prop: "geoLatitude"
|
|
284
|
+
}, {
|
|
285
|
+
default: l(() => [
|
|
286
|
+
e(s, {
|
|
287
|
+
modelValue: n(o).geoLatitude,
|
|
288
|
+
"onUpdate:modelValue": a[7] || (a[7] = (r) => n(o).geoLatitude = r),
|
|
289
|
+
clearable: ""
|
|
290
|
+
}, null, 8, ["modelValue"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
}, 8, ["label"])
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
})
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}),
|
|
300
|
+
e(u, null, {
|
|
301
|
+
default: l(() => [
|
|
302
|
+
e(C, {
|
|
303
|
+
type: "primary",
|
|
304
|
+
onClick: M
|
|
305
|
+
}, {
|
|
306
|
+
default: l(() => [
|
|
307
|
+
K(A(t.$t("common.save")), 1)
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
})
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
})
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
}, 8, ["model", "rules"])
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
}),
|
|
320
|
+
p.value ? (b(), q(V, {
|
|
321
|
+
key: 0,
|
|
322
|
+
label: "发票信息",
|
|
323
|
+
name: "second"
|
|
324
|
+
}, {
|
|
325
|
+
default: l(() => [
|
|
326
|
+
c.value === "second" ? (b(), q(D, { key: 0 })) : v("", !0)
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
})) : v("", !0)
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 8, ["modelValue"])
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
})
|
|
336
|
+
]);
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
export {
|
|
341
|
+
oe as default
|
|
342
|
+
};
|