xyvcard-itsmsys 0.0.2 → 0.0.4
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-CkaU_6vk.mjs +342 -0
- package/dist/edit-D82hX9if.mjs +4 -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/edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs +248 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
- package/dist/index-BRupqW34.mjs +96 -0
- 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-ClU157bA.mjs +324 -0
- package/dist/index-CogdeN09.mjs +331 -0
- package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
- package/dist/index-i7X9N_rj.mjs +341 -0
- package/dist/index.mjs +2903 -70
- 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 +9 -1
- package/dts/src/api/index.d.ts +8 -1
- package/dts/src/api/itsm-sys-org/index.d.ts +2 -0
- package/dts/src/api/itsm-sys-org/types.d.ts +14 -6
- package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
- package/dts/src/api/itsm-sys-user-ext/types.d.ts +91 -0
- package/dts/src/constant.d.ts +11 -0
- package/dts/src/index.d.ts +2 -0
- package/dts/src/lang/itsmsys/zh-cn.d.ts +87 -10
- package/dts/src/router/index.d.ts +8 -1
- 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/edit.vue.d.ts +1 -21
- package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
- package/dts/src/views/itsmsys/itsm-sys-org-invoice/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +22 -0
- 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-user-out/edit.vue.d.ts +22 -0
- 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-BKMLirl4.mjs +0 -602
- package/dist/edit-ccGk5679.mjs +0 -610
- package/dist/index-BGwm5W6z.mjs +0 -343
- package/dist/index-CSDhKMEP.mjs +0 -332
- package/dist/info-CSOdbuvm.mjs +0 -192
- package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
- 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
|
@@ -0,0 +1,439 @@
|
|
|
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
|
+
import { ElMessage as I } from "element-plus";
|
|
3
|
+
import { useI18n as X } from "vue-i18n";
|
|
4
|
+
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
|
+
import { g as Q } from "./common-B2PCBCJ2.mjs";
|
|
6
|
+
import { D as f } from "./index-ChTssr8-.mjs";
|
|
7
|
+
const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
|
|
8
|
+
__name: "edit",
|
|
9
|
+
props: /* @__PURE__ */ M({
|
|
10
|
+
entityKey: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: Boolean },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ M(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(q, { emit: k }) {
|
|
21
|
+
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = k, y = V(!1);
|
|
22
|
+
f.sysOrgBizDict.useValues();
|
|
23
|
+
let o = S({
|
|
24
|
+
requestId: Math.random() * 10 + "",
|
|
25
|
+
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty"
|
|
26
|
+
});
|
|
27
|
+
const E = (s, a, d) => {
|
|
28
|
+
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
|
+
}, T = S({
|
|
30
|
+
realName: [
|
|
31
|
+
{
|
|
32
|
+
required: !0,
|
|
33
|
+
message: n("sysUserOps.realNameRequired"),
|
|
34
|
+
trigger: "blur"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
gender: [
|
|
38
|
+
{
|
|
39
|
+
required: !0,
|
|
40
|
+
message: n("sysUserOps.genderRequired"),
|
|
41
|
+
trigger: "change"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
mobilePhone: [
|
|
45
|
+
{
|
|
46
|
+
required: !0,
|
|
47
|
+
trigger: "blur",
|
|
48
|
+
validator: E
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
email: [
|
|
52
|
+
{
|
|
53
|
+
pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
|
|
54
|
+
message: n("sysUserOps.emailRequireds"),
|
|
55
|
+
trigger: "blur"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
idNo: [
|
|
59
|
+
{
|
|
60
|
+
pattern: /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X)$/,
|
|
61
|
+
message: n("sysUserOps.idNoLengthRequired"),
|
|
62
|
+
trigger: "blur"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
jobStatus: [
|
|
66
|
+
{
|
|
67
|
+
required: !0,
|
|
68
|
+
message: n("sysUserOps.jobStatusRequired"),
|
|
69
|
+
trigger: "change"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
engineeType: [
|
|
73
|
+
{
|
|
74
|
+
required: !0,
|
|
75
|
+
message: n("sysUserOps.engineeTypeRequired"),
|
|
76
|
+
trigger: "change"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
engineeJobMode: [
|
|
80
|
+
{
|
|
81
|
+
required: !0,
|
|
82
|
+
message: n("sysUserOps.engineeJobModeRequired"),
|
|
83
|
+
trigger: "change"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
orgId: [
|
|
87
|
+
{
|
|
88
|
+
required: !0,
|
|
89
|
+
message: n("sysUserOps.orgIdRequired"),
|
|
90
|
+
trigger: "change"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
userPassword: [
|
|
94
|
+
{
|
|
95
|
+
required: !0,
|
|
96
|
+
message: n("sysUserOps.userPasswordRequired"),
|
|
97
|
+
trigger: "blur"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}), _ = q, C = Object.keys(_.entityKey), v = V(C.length >= 1);
|
|
101
|
+
v.value && w.findById(_.entityKey).then(({ data: s }) => {
|
|
102
|
+
Object.assign(o, s);
|
|
103
|
+
});
|
|
104
|
+
const D = async () => {
|
|
105
|
+
var s;
|
|
106
|
+
await ((s = R.value) == null ? void 0 : s.validate((a) => {
|
|
107
|
+
a && (v.value ? w.update(o).then((d) => {
|
|
108
|
+
console.log(d), d.status === 200 && (I({
|
|
109
|
+
message: n("common.submitSuccess"),
|
|
110
|
+
type: "success"
|
|
111
|
+
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
112
|
+
}) : w.create(o).then((d) => {
|
|
113
|
+
console.log(d), d.status === 200 && (I({
|
|
114
|
+
message: n("common.submitSuccess"),
|
|
115
|
+
type: "success"
|
|
116
|
+
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
117
|
+
}));
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
function J() {
|
|
121
|
+
o.userPassword = Q();
|
|
122
|
+
}
|
|
123
|
+
function N() {
|
|
124
|
+
m.value && (m.value = !1);
|
|
125
|
+
}
|
|
126
|
+
return (s, a) => {
|
|
127
|
+
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
|
+
return b(), c(Z, {
|
|
129
|
+
modelValue: m.value,
|
|
130
|
+
"onUpdate:modelValue": a[12] || (a[12] = (t) => m.value = t),
|
|
131
|
+
onClose: N
|
|
132
|
+
}, {
|
|
133
|
+
footer: l(() => [
|
|
134
|
+
j("div", W, [
|
|
135
|
+
e(U, { onClick: N }, {
|
|
136
|
+
default: l(() => [
|
|
137
|
+
h(O(s.$t("common.cancel")), 1)
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
e(U, {
|
|
142
|
+
type: "primary",
|
|
143
|
+
onClick: D
|
|
144
|
+
}, {
|
|
145
|
+
default: l(() => [
|
|
146
|
+
h(O(s.$t("common.confirm")), 1)
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
})
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
default: l(() => [
|
|
153
|
+
e(F, {
|
|
154
|
+
ref_key: "sysUserExtFormRef",
|
|
155
|
+
ref: R,
|
|
156
|
+
model: r(o),
|
|
157
|
+
"label-width": "100px",
|
|
158
|
+
rules: T
|
|
159
|
+
}, {
|
|
160
|
+
default: l(() => [
|
|
161
|
+
e(K, null, {
|
|
162
|
+
default: l(() => [
|
|
163
|
+
e(p, { span: 12 }, {
|
|
164
|
+
default: l(() => [
|
|
165
|
+
e(u, {
|
|
166
|
+
label: s.$t("sysUserOps.orgId"),
|
|
167
|
+
prop: "orgId"
|
|
168
|
+
}, {
|
|
169
|
+
default: l(() => [
|
|
170
|
+
e(d, {
|
|
171
|
+
modelValue: r(o).orgId,
|
|
172
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
|
|
173
|
+
placeholder: s.$t("sysUserOps.orgIdRequired"),
|
|
174
|
+
data: r(f).sysOrgBizDict.values,
|
|
175
|
+
clearable: "",
|
|
176
|
+
class: "w-full"
|
|
177
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["label"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}),
|
|
184
|
+
e(p, { span: 12 }, {
|
|
185
|
+
default: l(() => [
|
|
186
|
+
e(u, {
|
|
187
|
+
label: s.$t("sysUserOps.realName"),
|
|
188
|
+
prop: "realName"
|
|
189
|
+
}, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
e(g, {
|
|
192
|
+
modelValue: r(o).realName,
|
|
193
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
|
|
194
|
+
placeholder: s.$t("sysUserOps.realNameRequired"),
|
|
195
|
+
maxlength: "8",
|
|
196
|
+
"show-word-limit": "",
|
|
197
|
+
clearable: ""
|
|
198
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["label"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}),
|
|
205
|
+
e(p, { span: 12 }, {
|
|
206
|
+
default: l(() => [
|
|
207
|
+
e(u, {
|
|
208
|
+
label: s.$t("sysUserOps.gender"),
|
|
209
|
+
prop: "gender"
|
|
210
|
+
}, {
|
|
211
|
+
default: l(() => [
|
|
212
|
+
e(z, {
|
|
213
|
+
modelValue: r(o).gender,
|
|
214
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
|
|
215
|
+
clearable: "",
|
|
216
|
+
placeholder: s.$t("sysUserOps.genderRequired"),
|
|
217
|
+
"enum-type": "jmash.protobuf.Gender",
|
|
218
|
+
class: "w-full"
|
|
219
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["label"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
e(p, { span: 12 }, {
|
|
227
|
+
default: l(() => [
|
|
228
|
+
e(u, {
|
|
229
|
+
label: s.$t("sysUserOps.mobilePhone"),
|
|
230
|
+
prop: "mobilePhone"
|
|
231
|
+
}, {
|
|
232
|
+
default: l(() => [
|
|
233
|
+
e(g, {
|
|
234
|
+
modelValue: r(o).mobilePhone,
|
|
235
|
+
"onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
|
|
236
|
+
placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
|
|
237
|
+
maxlength: "11",
|
|
238
|
+
"show-word-limit": "",
|
|
239
|
+
clearable: ""
|
|
240
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["label"])
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}),
|
|
247
|
+
e(p, { span: 12 }, {
|
|
248
|
+
default: l(() => [
|
|
249
|
+
e(u, {
|
|
250
|
+
label: s.$t("sysUserOps.email"),
|
|
251
|
+
prop: "email"
|
|
252
|
+
}, {
|
|
253
|
+
default: l(() => [
|
|
254
|
+
e(g, {
|
|
255
|
+
modelValue: r(o).email,
|
|
256
|
+
"onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
|
|
257
|
+
placeholder: s.$t("sysUserOps.emailRequired"),
|
|
258
|
+
maxlength: "30",
|
|
259
|
+
"show-word-limit": "",
|
|
260
|
+
clearable: ""
|
|
261
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}, 8, ["label"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}),
|
|
268
|
+
e(p, { span: 12 }, {
|
|
269
|
+
default: l(() => [
|
|
270
|
+
e(u, {
|
|
271
|
+
label: s.$t("sysUserOps.idNo"),
|
|
272
|
+
prop: "idNo"
|
|
273
|
+
}, {
|
|
274
|
+
default: l(() => [
|
|
275
|
+
e(g, {
|
|
276
|
+
modelValue: r(o).idNo,
|
|
277
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
|
|
278
|
+
placeholder: s.$t("sysUserOps.idNoRequired"),
|
|
279
|
+
maxlength: "18",
|
|
280
|
+
"show-word-limit": "",
|
|
281
|
+
clearable: ""
|
|
282
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["label"])
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}),
|
|
289
|
+
e(p, { span: 12 }, {
|
|
290
|
+
default: l(() => [
|
|
291
|
+
e(u, {
|
|
292
|
+
label: s.$t("sysUserOps.engineeType"),
|
|
293
|
+
prop: "engineeType"
|
|
294
|
+
}, {
|
|
295
|
+
default: l(() => [
|
|
296
|
+
e(d, {
|
|
297
|
+
modelValue: r(o).engineeType,
|
|
298
|
+
"onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineeType = t),
|
|
299
|
+
placeholder: s.$t("sysUserOps.engineeTypeRequired"),
|
|
300
|
+
data: r(f).engineeTypeDictEnum.values,
|
|
301
|
+
clearable: "",
|
|
302
|
+
class: "w-full"
|
|
303
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["label"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}),
|
|
310
|
+
e(p, { span: 12 }, {
|
|
311
|
+
default: l(() => [
|
|
312
|
+
e(u, {
|
|
313
|
+
label: s.$t("sysUserOps.engineeJobMode"),
|
|
314
|
+
prop: "engineeJobMode"
|
|
315
|
+
}, {
|
|
316
|
+
default: l(() => [
|
|
317
|
+
e(d, {
|
|
318
|
+
modelValue: r(o).engineeJobMode,
|
|
319
|
+
"onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineeJobMode = t),
|
|
320
|
+
placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
|
|
321
|
+
data: r(f).engineeJobModeDictEnum.values,
|
|
322
|
+
clearable: "",
|
|
323
|
+
class: "w-full"
|
|
324
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["label"])
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
}),
|
|
331
|
+
e(p, { span: 12 }, {
|
|
332
|
+
default: l(() => [
|
|
333
|
+
e(u, {
|
|
334
|
+
label: s.$t("sysUserOps.jobStatus"),
|
|
335
|
+
prop: "jobStatus"
|
|
336
|
+
}, {
|
|
337
|
+
default: l(() => [
|
|
338
|
+
e(d, {
|
|
339
|
+
modelValue: r(o).jobStatus,
|
|
340
|
+
"onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).jobStatus = t),
|
|
341
|
+
placeholder: s.$t("sysUserOps.jobStatusRequired"),
|
|
342
|
+
data: r(f).jobStatusDictEnum.values,
|
|
343
|
+
clearable: "",
|
|
344
|
+
class: "w-full"
|
|
345
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["label"])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
r(o).userId ? L("", !0) : (b(), c(p, {
|
|
353
|
+
key: 0,
|
|
354
|
+
span: 12
|
|
355
|
+
}, {
|
|
356
|
+
default: l(() => [
|
|
357
|
+
e(u, {
|
|
358
|
+
label: s.$t("sysUserOps.userPassword"),
|
|
359
|
+
prop: "userPassword"
|
|
360
|
+
}, {
|
|
361
|
+
default: l(() => [
|
|
362
|
+
e(g, {
|
|
363
|
+
modelValue: r(o).userPassword,
|
|
364
|
+
"onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).userPassword = t),
|
|
365
|
+
clearable: "",
|
|
366
|
+
type: y.value ? "text" : "password",
|
|
367
|
+
placeholder: s.$t("sysUserOps.userPasswordRequired")
|
|
368
|
+
}, {
|
|
369
|
+
append: l(() => [
|
|
370
|
+
e(U, { onClick: J }, {
|
|
371
|
+
default: l(() => [
|
|
372
|
+
h(O(s.$t("sysUserOps.randomPwd")), 1)
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
})
|
|
376
|
+
]),
|
|
377
|
+
suffix: l(() => [
|
|
378
|
+
j("span", {
|
|
379
|
+
onClick: a[9] || (a[9] = (t) => y.value = !y.value)
|
|
380
|
+
}, [
|
|
381
|
+
y.value ? (b(), c(P, { key: 0 }, {
|
|
382
|
+
default: l(() => [
|
|
383
|
+
e(B)
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
})) : (b(), c(P, { key: 1 }, {
|
|
387
|
+
default: l(() => [
|
|
388
|
+
e(A)
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
}))
|
|
392
|
+
])
|
|
393
|
+
]),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["modelValue", "type", "placeholder"])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}, 8, ["label"])
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
})),
|
|
402
|
+
e(p, { span: 24 }, {
|
|
403
|
+
default: l(() => [
|
|
404
|
+
e(u, {
|
|
405
|
+
label: s.$t("sysUserOps.engineeSpecialty"),
|
|
406
|
+
prop: "engineeSpecialty"
|
|
407
|
+
}, {
|
|
408
|
+
default: l(() => [
|
|
409
|
+
e(g, {
|
|
410
|
+
modelValue: r(o).engineeSpecialty,
|
|
411
|
+
"onUpdate:modelValue": a[11] || (a[11] = (t) => r(o).engineeSpecialty = t),
|
|
412
|
+
placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
|
|
413
|
+
type: "textarea",
|
|
414
|
+
autosize: { minRows: 2 },
|
|
415
|
+
maxlength: "200",
|
|
416
|
+
"show-word-limit": "",
|
|
417
|
+
clearable: ""
|
|
418
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}, 8, ["label"])
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
})
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
})
|
|
428
|
+
]),
|
|
429
|
+
_: 1
|
|
430
|
+
}, 8, ["model", "rules"])
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
}, 8, ["modelValue"]);
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
export {
|
|
438
|
+
oe as _
|
|
439
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { defineComponent as D, mergeModels as _, ref as I, useModel as B, reactive as O, resolveComponent as u, openBlock as K, createBlock as E, withCtx as o, createElementVNode as F, createVNode as e, createTextVNode as h, toDisplayString as q, unref as r } from "vue";
|
|
2
|
+
import { ElMessage as T } from "element-plus";
|
|
3
|
+
import { useI18n as S } from "vue-i18n";
|
|
4
|
+
import { useRoute as A } from "vue-router";
|
|
5
|
+
import { s as b } from "./index-DOXuGEyW.mjs";
|
|
6
|
+
import { D as L } from "./index-ChTssr8-.mjs";
|
|
7
|
+
const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
8
|
+
__name: "edit",
|
|
9
|
+
props: /* @__PURE__ */ _({
|
|
10
|
+
entityKey: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: Boolean },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(f, { emit: w }) {
|
|
21
|
+
const { t: s } = S(), R = A(), g = I(), n = B(f, "modelValue"), v = w;
|
|
22
|
+
let t = O({
|
|
23
|
+
requestId: Math.random() * 10 + "",
|
|
24
|
+
updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber",
|
|
25
|
+
orgId: R.query.entityKey
|
|
26
|
+
});
|
|
27
|
+
const $ = O({
|
|
28
|
+
invoiceType: [
|
|
29
|
+
{
|
|
30
|
+
required: !0,
|
|
31
|
+
message: s("sysOrgInvoice.invoiceTypeRequired"),
|
|
32
|
+
trigger: "blur"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
invoiceTitle: [
|
|
36
|
+
{
|
|
37
|
+
required: !0,
|
|
38
|
+
message: s("sysOrgInvoice.invoiceTitleRequired"),
|
|
39
|
+
trigger: "blur"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
taxNumber: [
|
|
43
|
+
{
|
|
44
|
+
required: !0,
|
|
45
|
+
message: s("sysOrgInvoice.taxNumberRequired"),
|
|
46
|
+
trigger: "blur"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
bankName: [
|
|
50
|
+
{
|
|
51
|
+
required: !0,
|
|
52
|
+
message: s("sysOrgInvoice.bankNameRequired"),
|
|
53
|
+
trigger: "blur"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
backNumber: [
|
|
57
|
+
{
|
|
58
|
+
required: !0,
|
|
59
|
+
message: s("sysOrgInvoice.backNumberRequired"),
|
|
60
|
+
trigger: "blur"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
min: 16,
|
|
64
|
+
max: 20,
|
|
65
|
+
message: s("sysOrgInvoice.backNumberLengthRequired"),
|
|
66
|
+
trigger: "blur"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}), y = f, x = Object.keys(y.entityKey), N = I(x.length >= 1);
|
|
70
|
+
N.value && b.findById(y.entityKey).then(({ data: l }) => {
|
|
71
|
+
Object.assign(t, l);
|
|
72
|
+
});
|
|
73
|
+
const C = async () => {
|
|
74
|
+
var l;
|
|
75
|
+
await ((l = g.value) == null ? void 0 : l.validate((a) => {
|
|
76
|
+
a && (N.value ? b.update(t).then((m) => {
|
|
77
|
+
m.status === 200 && (T({
|
|
78
|
+
message: s("common.submitSuccess"),
|
|
79
|
+
type: "success"
|
|
80
|
+
}), n.value && (n.value = !1), v("refresh", m.status === 200));
|
|
81
|
+
}) : b.create(t).then((m) => {
|
|
82
|
+
m.status === 200 && (T({
|
|
83
|
+
message: s("common.submitSuccess"),
|
|
84
|
+
type: "success"
|
|
85
|
+
}), n.value && (n.value = !1), v("refresh", m.status === 200));
|
|
86
|
+
}));
|
|
87
|
+
}));
|
|
88
|
+
};
|
|
89
|
+
function k() {
|
|
90
|
+
n.value && (n.value = !1);
|
|
91
|
+
}
|
|
92
|
+
return (l, a) => {
|
|
93
|
+
const m = u("jmash-select"), d = u("el-form-item"), c = u("el-col"), p = u("el-input"), M = u("el-row"), U = u("el-form"), V = u("el-button"), j = u("el-dialog");
|
|
94
|
+
return K(), E(j, {
|
|
95
|
+
modelValue: n.value,
|
|
96
|
+
"onUpdate:modelValue": a[5] || (a[5] = (i) => n.value = i),
|
|
97
|
+
onClose: k
|
|
98
|
+
}, {
|
|
99
|
+
footer: o(() => [
|
|
100
|
+
F("div", z, [
|
|
101
|
+
e(V, { onClick: k }, {
|
|
102
|
+
default: o(() => [
|
|
103
|
+
h(q(l.$t("common.cancel")), 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
e(V, {
|
|
108
|
+
type: "primary",
|
|
109
|
+
onClick: C
|
|
110
|
+
}, {
|
|
111
|
+
default: o(() => [
|
|
112
|
+
h(q(l.$t("common.confirm")), 1)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
default: o(() => [
|
|
119
|
+
e(U, {
|
|
120
|
+
ref_key: "sysOrgInvoiceFormRef",
|
|
121
|
+
ref: g,
|
|
122
|
+
model: r(t),
|
|
123
|
+
"label-width": "100px",
|
|
124
|
+
rules: $
|
|
125
|
+
}, {
|
|
126
|
+
default: o(() => [
|
|
127
|
+
e(M, null, {
|
|
128
|
+
default: o(() => [
|
|
129
|
+
e(c, { span: 24 }, {
|
|
130
|
+
default: o(() => [
|
|
131
|
+
e(d, {
|
|
132
|
+
label: l.$t("sysOrgInvoice.invoiceType"),
|
|
133
|
+
prop: "invoiceType"
|
|
134
|
+
}, {
|
|
135
|
+
default: o(() => [
|
|
136
|
+
e(m, {
|
|
137
|
+
modelValue: r(t).invoiceType,
|
|
138
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => r(t).invoiceType = i),
|
|
139
|
+
placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
|
|
140
|
+
data: r(L).invoiceTypeDictEnum.values,
|
|
141
|
+
class: "w-full",
|
|
142
|
+
clearable: ""
|
|
143
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["label"])
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}),
|
|
150
|
+
e(c, { span: 24 }, {
|
|
151
|
+
default: o(() => [
|
|
152
|
+
e(d, {
|
|
153
|
+
label: l.$t("sysOrgInvoice.invoiceTitle"),
|
|
154
|
+
prop: "invoiceTitle"
|
|
155
|
+
}, {
|
|
156
|
+
default: o(() => [
|
|
157
|
+
e(p, {
|
|
158
|
+
modelValue: r(t).invoiceTitle,
|
|
159
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => r(t).invoiceTitle = i),
|
|
160
|
+
placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
|
|
161
|
+
maxlength: "50",
|
|
162
|
+
"show-word-limit": "",
|
|
163
|
+
clearable: ""
|
|
164
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["label"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}),
|
|
171
|
+
e(c, { span: 24 }, {
|
|
172
|
+
default: o(() => [
|
|
173
|
+
e(d, {
|
|
174
|
+
label: l.$t("sysOrgInvoice.taxNumber"),
|
|
175
|
+
prop: "taxNumber"
|
|
176
|
+
}, {
|
|
177
|
+
default: o(() => [
|
|
178
|
+
e(p, {
|
|
179
|
+
modelValue: r(t).taxNumber,
|
|
180
|
+
"onUpdate:modelValue": a[2] || (a[2] = (i) => r(t).taxNumber = i),
|
|
181
|
+
placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
|
|
182
|
+
maxlength: "50",
|
|
183
|
+
"show-word-limit": "",
|
|
184
|
+
clearable: ""
|
|
185
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["label"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
e(c, { span: 24 }, {
|
|
193
|
+
default: o(() => [
|
|
194
|
+
e(d, {
|
|
195
|
+
label: l.$t("sysOrgInvoice.bankName"),
|
|
196
|
+
prop: "bankName"
|
|
197
|
+
}, {
|
|
198
|
+
default: o(() => [
|
|
199
|
+
e(p, {
|
|
200
|
+
modelValue: r(t).bankName,
|
|
201
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => r(t).bankName = i),
|
|
202
|
+
placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
|
|
203
|
+
maxlength: "50",
|
|
204
|
+
"show-word-limit": "",
|
|
205
|
+
clearable: ""
|
|
206
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["label"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}),
|
|
213
|
+
e(c, { span: 24 }, {
|
|
214
|
+
default: o(() => [
|
|
215
|
+
e(d, {
|
|
216
|
+
label: l.$t("sysOrgInvoice.backNumber"),
|
|
217
|
+
prop: "backNumber"
|
|
218
|
+
}, {
|
|
219
|
+
default: o(() => [
|
|
220
|
+
e(p, {
|
|
221
|
+
modelValue: r(t).backNumber,
|
|
222
|
+
"onUpdate:modelValue": a[4] || (a[4] = (i) => r(t).backNumber = i),
|
|
223
|
+
placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
|
|
224
|
+
maxlength: "20",
|
|
225
|
+
"show-word-limit": "",
|
|
226
|
+
clearable: ""
|
|
227
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["label"])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
})
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
})
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["model", "rules"])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["modelValue"]);
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
export {
|
|
247
|
+
X as _
|
|
248
|
+
};
|