xyvcard-itsmsys 0.0.11 → 0.0.12

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.
Files changed (47) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-CiCHPkRg.mjs → edit-BSgQ7aTw.mjs} +1 -1
  3. package/dist/{edit-BcE5qrWo.mjs → edit-BSllWdRO.mjs} +1 -1
  4. package/dist/{edit-BSIP_9Mq.mjs → edit-C-Ddf0UV.mjs} +27 -25
  5. package/dist/{edit-BsUWSNnA.mjs → edit-CNw8JPUb.mjs} +23 -21
  6. package/dist/{edit-znznl9Td.mjs → edit-Cd4dWFsH.mjs} +1 -1
  7. package/dist/{edit-Dxs-2AFY.mjs → edit-aqBMKpoJ.mjs} +23 -21
  8. package/dist/{edit-CW0kqOpj.mjs → edit-q5TFAMBm.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs → edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs} +202 -124
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs} +79 -56
  13. package/dist/import-upload-BIT504-g.mjs +4 -0
  14. package/dist/import-upload-pZG8yku3.mjs +4 -0
  15. package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +162 -0
  16. package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +162 -0
  17. package/dist/{index-BV3Je3Rq.mjs → index-BY5Djw_C.mjs} +7 -7
  18. package/dist/{index-BIvJ7rs4.mjs → index-BaixQptZ.mjs} +7 -7
  19. package/dist/index-CoMhbtrg.mjs +449 -0
  20. package/dist/{index-CNRO77Xg.mjs → index-Cz9Xj4Mn.mjs} +1 -1
  21. package/dist/{index-Hh4b5GAI.mjs → index-DPz8be3T.mjs} +32 -32
  22. package/dist/{index-cBbN-uY2.mjs → index-Dno_3GpX.mjs} +49 -59
  23. package/dist/{index-4qnVgDwe.mjs → index-DrBtW9Aj.mjs} +183 -132
  24. package/dist/{index-CzE5REdf.mjs → index-LOMCvxtf.mjs} +1 -1
  25. package/dist/index.mjs +214 -181
  26. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs} +41 -34
  27. package/dist/{info-BP7wPWFZ.mjs → info-BUDmirQy.mjs} +1 -1
  28. package/dist/{info-CtGMbfQJ.mjs → info-BivxW-qV.mjs} +1 -1
  29. package/dist/{info-BCPme1g5.mjs → info-Bn-BseIm.mjs} +1 -1
  30. package/dist/{info-Dk3RzCIp.mjs → info-C-ga_8K9.mjs} +1 -1
  31. package/dist/{info-DRYPl2T-.mjs → info-C3knY6l_.mjs} +58 -47
  32. package/dist/{info-DCRqBi8M.mjs → info-D0Pwnmsu.mjs} +71 -60
  33. package/dist/style.css +1 -1
  34. package/dts/api/dict.d.ts +0 -6
  35. package/dts/api/index.d.ts +4 -2
  36. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  37. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  38. package/dts/api/itsm-sys-user-ext/types.d.ts +15 -1
  39. package/dts/constant.d.ts +1 -0
  40. package/dts/index.d.ts +1 -0
  41. package/dts/lang/itsmsys/zh-cn.d.ts +13 -0
  42. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  43. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  44. package/package.json +3 -3
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  47. package/dist/index-BTO0NHK6.mjs +0 -397
package/dts/api/dict.d.ts CHANGED
@@ -1,11 +1,5 @@
1
1
  import { BizLayDict, type Entry, type LayEntry, BizDict } from "jmash-core";
2
2
  import type { SysOrgModel } from "./itsm-sys-org/types";
3
- export declare class CustomBizDict {
4
- values: import("vue").Reactive<Entry[]>;
5
- query: any;
6
- constructor(results: any, query: any);
7
- getValue(key: string): string;
8
- }
9
3
  export declare class ParentIdBizDict extends BizLayDict {
10
4
  useValues(): Promise<LayEntry[]>;
11
5
  convertToLayEntryArray(dictLayEntries: SysOrgModel[]): LayEntry[];
@@ -1,5 +1,6 @@
1
- import { EnumDict } from "jmash-core";
2
- import { CustomBizDict, ParentIdBizDict, SysOrgBizDict } from "./dict";
1
+ import { EnumDict, CustomBizDict } from "jmash-core";
2
+ import { ParentIdBizDict, SysOrgBizDict } from "./dict";
3
+ import { EntryDict } from "jmash-dict";
3
4
  export declare class Dict {
4
5
  static readonly hasStatusDict: CustomBizDict;
5
6
  static readonly invoiceTypeDictEnum: EnumDict;
@@ -10,4 +11,5 @@ export declare class Dict {
10
11
  static readonly engineeTypeDictEnum: EnumDict;
11
12
  static readonly sysOrgBizDict: SysOrgBizDict;
12
13
  static readonly sysOutBizDict: SysOrgBizDict;
14
+ static readonly engineeCertificateDict: EntryDict;
13
15
  }
@@ -12,6 +12,7 @@ export interface SysOrgInvoiceModel extends EntityModel {
12
12
  taxNumber?: string;
13
13
  bankName?: string;
14
14
  backNumber?: string;
15
+ taxRate?: string;
15
16
  }
16
17
  export interface SysOrgInvoiceList extends EntityList {
17
18
  results: Array<SysOrgInvoiceModel>;
@@ -39,6 +40,7 @@ export interface SysOrgInvoiceCreateReq extends EntityCreateReq {
39
40
  taxNumber?: string;
40
41
  bankName?: string;
41
42
  backNumber?: string;
43
+ taxRate?: string;
42
44
  }
43
45
  export interface SysOrgInvoiceUpdateReq extends EntityUpdateReq {
44
46
  invoiceId?: string;
@@ -48,5 +50,6 @@ export interface SysOrgInvoiceUpdateReq extends EntityUpdateReq {
48
50
  taxNumber?: string;
49
51
  bankName?: string;
50
52
  backNumber?: string;
53
+ taxRate?: string;
51
54
  }
52
55
  export type SysOrgInvoiceFormReq = SysOrgInvoiceCreateReq | SysOrgInvoiceUpdateReq;
@@ -1,5 +1,5 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { SysUserExtApi, SysUserExtReq, SysUserExtModel, SysUserExtPage, SysUserExtList, SysUserExtKey, SysUserExtCreateReq, SysUserExtUpdateReq } from "./types";
2
+ import type { SysUserExtApi, SysUserExtReq, SysUserExtModel, SysUserExtPage, SysUserExtList, SysUserExtKey, SysUserExtCreateReq, SysUserExtUpdateReq, SysUserExtImportReq } from "./types";
3
3
  declare class SysUserExtApiImpl implements SysUserExtApi {
4
4
  getKey(model: SysUserExtModel): SysUserExtKey;
5
5
  findPage(query?: SysUserExtReq): AxiosPromise<SysUserExtPage>;
@@ -9,6 +9,8 @@ declare class SysUserExtApiImpl implements SysUserExtApi {
9
9
  update(data: SysUserExtUpdateReq): AxiosPromise<SysUserExtModel>;
10
10
  delete(query: SysUserExtKey): AxiosPromise<SysUserExtModel>;
11
11
  batchDelete(keys: SysUserExtKey[]): AxiosPromise<number>;
12
+ downloadTemplate(): AxiosPromise;
13
+ importExcel(data: SysUserExtImportReq): AxiosPromise<string>;
12
14
  }
13
15
  declare const sysUserExtApi: SysUserExtApiImpl;
14
16
  export { sysUserExtApi };
@@ -1,4 +1,4 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityImportReq } from "jmash-core";
2
2
  export interface SysUserExtApi extends EntityApi {
3
3
  }
4
4
  export interface SysUserExtReq extends EntityReq {
@@ -32,6 +32,10 @@ export interface SysUserExtModel extends EntityModel {
32
32
  userPassword?: string;
33
33
  avatar?: string;
34
34
  userCreateTime?: string;
35
+ engineeCertificate?: string;
36
+ orgIds?: Array<string>;
37
+ roleIds?: Array<string>;
38
+ loginName?: string;
35
39
  }
36
40
  export interface SysUserExtList extends EntityList {
37
41
  results: Array<SysUserExtModel>;
@@ -68,6 +72,10 @@ export interface SysUserExtCreateReq extends EntityCreateReq {
68
72
  engineeJobMode?: string;
69
73
  orgId?: string;
70
74
  userPassword?: string;
75
+ engineeCertificate?: string;
76
+ orgIds?: Array<string>;
77
+ roleIds?: Array<string>;
78
+ loginName?: string;
71
79
  }
72
80
  export interface SysUserExtUpdateReq extends EntityUpdateReq {
73
81
  userId?: string;
@@ -86,5 +94,11 @@ export interface SysUserExtUpdateReq extends EntityUpdateReq {
86
94
  engineeJobMode?: string;
87
95
  orgId?: string;
88
96
  userPassword?: string;
97
+ engineeCertificate?: string;
98
+ orgIds?: Array<string>;
99
+ roleIds?: Array<string>;
100
+ loginName?: string;
89
101
  }
90
102
  export type SysUserExtFormReq = SysUserExtCreateReq | SysUserExtUpdateReq;
103
+ export interface SysUserExtImportReq extends EntityImportReq {
104
+ }
package/dts/constant.d.ts CHANGED
@@ -43,4 +43,5 @@ export declare class Constant {
43
43
  apiKey: string;
44
44
  securityJsCode: string;
45
45
  };
46
+ static readonly DICT_ENGINEE_GRADE = "enginee_grade";
46
47
  }
package/dts/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { App } from "vue";
2
2
  import "element-plus/dist/index.css";
3
+ import "./styles/index.scss";
3
4
  export { sysOrgApi } from "@/api/itsm-sys-org/index";
4
5
  export type { SysOrgReq, SysOrgModel } from "@/api/itsm-sys-org/types";
5
6
  export { sysUserExtApi } from "@/api/itsm-sys-user-ext/index";
@@ -31,6 +31,8 @@ declare const _default: {
31
31
  backNumber: string;
32
32
  backNumberRequired: string;
33
33
  backNumberLengthRequired: string;
34
+ taxRate: string;
35
+ taxRateRequired: string;
34
36
  };
35
37
  sysGov: {
36
38
  parentId: string;
@@ -101,8 +103,15 @@ declare const _default: {
101
103
  userPasswordRequired: string;
102
104
  randomPwd: string;
103
105
  userCreateTime: string;
106
+ orgIds: string;
107
+ orgIdsRequired: string;
108
+ roleIds: string;
109
+ roleIdsRequired: string;
110
+ loginName: string;
111
+ loginNameRequired: string;
104
112
  };
105
113
  sysUserOps: {
114
+ name: string;
106
115
  realName: string;
107
116
  realNameRequired: string;
108
117
  engineeType: string;
@@ -132,6 +141,10 @@ declare const _default: {
132
141
  userPasswordRequired: string;
133
142
  randomPwd: string;
134
143
  userCreateTime: string;
144
+ engineeCertificate: string;
145
+ engineeCertificateRequired: string;
146
+ loginName: string;
147
+ loginNameRequired: string;
135
148
  };
136
149
  };
137
150
  export default _default;
@@ -0,0 +1,31 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ uploadVisible: {
3
+ type: BooleanConstructor;
4
+ default: () => boolean;
5
+ };
6
+ templateTitle: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ templateDown: (...args: any[]) => void;
12
+ importEvents: (...args: any[]) => void;
13
+ uploadClosed: (...args: any[]) => void;
14
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ uploadVisible: {
16
+ type: BooleanConstructor;
17
+ default: () => boolean;
18
+ };
19
+ templateTitle: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{
24
+ onTemplateDown?: ((...args: any[]) => any) | undefined;
25
+ onImportEvents?: ((...args: any[]) => any) | undefined;
26
+ onUploadClosed?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ uploadVisible: boolean;
29
+ templateTitle: string;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ export default _default;
@@ -0,0 +1,31 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ uploadVisible: {
3
+ type: BooleanConstructor;
4
+ default: () => boolean;
5
+ };
6
+ templateTitle: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ templateDown: (...args: any[]) => void;
12
+ importEvents: (...args: any[]) => void;
13
+ uploadClosed: (...args: any[]) => void;
14
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ uploadVisible: {
16
+ type: BooleanConstructor;
17
+ default: () => boolean;
18
+ };
19
+ templateTitle: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{
24
+ onTemplateDown?: ((...args: any[]) => any) | undefined;
25
+ onImportEvents?: ((...args: any[]) => any) | undefined;
26
+ onUploadClosed?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ uploadVisible: boolean;
29
+ templateTitle: string;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-itsmsys",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -11,9 +11,9 @@
11
11
  "peerDependencies": {
12
12
  "axios": "^1.7.7",
13
13
  "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.109",
14
+ "jmash-core": "^0.0.118",
15
15
  "jmash-dict": "^0.0.44",
16
- "jmash-rbac": "^0.0.40",
16
+ "jmash-rbac": "^0.0.42",
17
17
  "pinia": "^2.2.4",
18
18
  "vue": "^3.5.11",
19
19
  "vue-i18n": "^9.14.1",
@@ -1,422 +0,0 @@
1
- import { defineComponent as K, mergeModels as M, ref as N, useModel as Z, reactive as P, resolveComponent as p, openBlock as f, createBlock as O, withCtx as l, createElementVNode as L, createVNode as e, createTextVNode as b, toDisplayString as c, unref as t, createElementBlock as G, Fragment as X, renderList as H, createCommentVNode as Q } from "vue";
2
- import { ElMessage as S } from "element-plus";
3
- import { useI18n as W } from "vue-i18n";
4
- import { sysUserExtApi as w } from "./index.mjs";
5
- import { generateRandomKey as Y } from "jmash-core";
6
- import { D as y, C as U } from "./index-cBbN-uY2.mjs";
7
- const x = { class: "dialog-footer" }, te = /* @__PURE__ */ K({
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(_, { emit: j }) {
21
- const { t: u } = W(), q = N(), m = Z(_, "modelValue"), R = j;
22
- y.sysOutBizDict.useValues();
23
- let a = P({
24
- requestId: Math.random() * 10 + "",
25
- updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
26
- userType: U.userType.outsourceOps,
27
- jobStatus: U.jobStatus.working,
28
- engineeType: U.engineeType.ease_test,
29
- engineeJobMode: U.engineeJobMode.resident
30
- });
31
- const T = (s, o, d) => {
32
- o === void 0 && d(new Error(u("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || d(new Error(u("sysUserOps.mobilePhoneRequireds"))), d();
33
- }, k = P({
34
- realName: [
35
- {
36
- required: !0,
37
- message: u("sysUserOps.realNameRequired"),
38
- trigger: "blur"
39
- }
40
- ],
41
- mobilePhone: [
42
- {
43
- required: !0,
44
- trigger: "blur",
45
- validator: T
46
- }
47
- ],
48
- email: [
49
- {
50
- pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
51
- message: u("sysUserOps.emailRequireds"),
52
- trigger: "blur"
53
- }
54
- ],
55
- idNo: [
56
- {
57
- 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)$/,
58
- message: u("sysUserOps.idNoLengthRequired"),
59
- trigger: "blur"
60
- }
61
- ],
62
- engineeType: [
63
- {
64
- required: !0,
65
- message: u("sysUserOps.engineeTypeRequired"),
66
- trigger: "change"
67
- }
68
- ],
69
- engineeJobMode: [
70
- {
71
- required: !0,
72
- message: u("sysUserOps.engineeJobModeRequired"),
73
- trigger: "change"
74
- }
75
- ],
76
- orgId: [
77
- {
78
- required: !0,
79
- message: u("sysUserOps.orgIdRequired"),
80
- trigger: "change"
81
- }
82
- ],
83
- userPassword: [
84
- {
85
- required: !0,
86
- message: u("sysUserOps.userPasswordRequired"),
87
- trigger: "blur"
88
- }
89
- ]
90
- }), $ = _, E = Object.keys($.entityKey), V = N(E.length >= 1);
91
- V.value && w.findById($.entityKey).then(({ data: s }) => {
92
- Object.assign(a, s);
93
- });
94
- const I = async () => {
95
- var s;
96
- await ((s = q.value) == null ? void 0 : s.validate((o) => {
97
- o && (V.value ? w.update(a).then((d) => {
98
- console.log(d), d.status === 200 && (S({
99
- message: u("common.submitSuccess"),
100
- type: "success"
101
- }), m.value && (m.value = !1), R("refresh", d.status === 200));
102
- }) : w.create(a).then((d) => {
103
- console.log(d), d.status === 200 && (S({
104
- message: u("common.submitSuccess"),
105
- type: "success"
106
- }), m.value && (m.value = !1), R("refresh", d.status === 200));
107
- }));
108
- }));
109
- };
110
- function J() {
111
- a.userPassword = Y();
112
- }
113
- function v() {
114
- m.value && (m.value = !1);
115
- }
116
- return (s, o) => {
117
- const d = p("jmash-select"), n = p("el-form-item"), i = p("el-col"), g = p("el-input"), C = p("jmash-enum-select"), D = p("el-radio"), B = p("el-radio-group"), h = p("el-button"), z = p("el-row"), A = p("el-form"), F = p("el-dialog");
118
- return f(), O(F, {
119
- modelValue: m.value,
120
- "onUpdate:modelValue": o[11] || (o[11] = (r) => m.value = r),
121
- onClose: v
122
- }, {
123
- footer: l(() => [
124
- L("div", x, [
125
- e(h, { onClick: v }, {
126
- default: l(() => [
127
- b(c(s.$t("common.cancel")), 1)
128
- ]),
129
- _: 1
130
- }),
131
- e(h, {
132
- type: "primary",
133
- onClick: I
134
- }, {
135
- default: l(() => [
136
- b(c(s.$t("common.confirm")), 1)
137
- ]),
138
- _: 1
139
- })
140
- ])
141
- ]),
142
- default: l(() => [
143
- e(A, {
144
- ref_key: "sysUserExtFormRef",
145
- ref: q,
146
- model: t(a),
147
- "label-width": "100px",
148
- rules: k
149
- }, {
150
- default: l(() => [
151
- e(z, null, {
152
- default: l(() => [
153
- e(i, { span: 12 }, {
154
- default: l(() => [
155
- e(n, {
156
- label: s.$t("sysUserOps.orgId"),
157
- prop: "orgId"
158
- }, {
159
- default: l(() => [
160
- e(d, {
161
- modelValue: t(a).orgId,
162
- "onUpdate:modelValue": o[0] || (o[0] = (r) => t(a).orgId = r),
163
- placeholder: s.$t("sysUserOps.orgIdRequired"),
164
- data: t(y).sysOutBizDict.values,
165
- clearable: "",
166
- class: "w-full"
167
- }, null, 8, ["modelValue", "placeholder", "data"])
168
- ]),
169
- _: 1
170
- }, 8, ["label"])
171
- ]),
172
- _: 1
173
- }),
174
- e(i, { span: 12 }, {
175
- default: l(() => [
176
- e(n, {
177
- label: s.$t("sysUserOps.realName"),
178
- prop: "realName"
179
- }, {
180
- default: l(() => [
181
- e(g, {
182
- modelValue: t(a).realName,
183
- "onUpdate:modelValue": o[1] || (o[1] = (r) => t(a).realName = r),
184
- placeholder: s.$t("sysUserOps.realNameRequired"),
185
- maxlength: "8",
186
- "show-word-limit": "",
187
- clearable: ""
188
- }, null, 8, ["modelValue", "placeholder"])
189
- ]),
190
- _: 1
191
- }, 8, ["label"])
192
- ]),
193
- _: 1
194
- }),
195
- e(i, { span: 12 }, {
196
- default: l(() => [
197
- e(n, {
198
- label: s.$t("sysUserOps.gender"),
199
- prop: "gender"
200
- }, {
201
- default: l(() => [
202
- e(C, {
203
- modelValue: t(a).gender,
204
- "onUpdate:modelValue": o[2] || (o[2] = (r) => t(a).gender = r),
205
- clearable: "",
206
- placeholder: s.$t("sysUserOps.genderRequired"),
207
- "enum-type": "jmash.protobuf.Gender",
208
- class: "w-full"
209
- }, null, 8, ["modelValue", "placeholder"])
210
- ]),
211
- _: 1
212
- }, 8, ["label"])
213
- ]),
214
- _: 1
215
- }),
216
- e(i, { span: 12 }, {
217
- default: l(() => [
218
- e(n, {
219
- label: s.$t("sysUserOps.mobilePhone"),
220
- prop: "mobilePhone"
221
- }, {
222
- default: l(() => [
223
- e(g, {
224
- modelValue: t(a).mobilePhone,
225
- "onUpdate:modelValue": o[3] || (o[3] = (r) => t(a).mobilePhone = r),
226
- placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
227
- maxlength: "11",
228
- "show-word-limit": "",
229
- clearable: ""
230
- }, null, 8, ["modelValue", "placeholder"])
231
- ]),
232
- _: 1
233
- }, 8, ["label"])
234
- ]),
235
- _: 1
236
- }),
237
- e(i, { span: 12 }, {
238
- default: l(() => [
239
- e(n, {
240
- label: s.$t("sysUserOps.email"),
241
- prop: "email"
242
- }, {
243
- default: l(() => [
244
- e(g, {
245
- modelValue: t(a).email,
246
- "onUpdate:modelValue": o[4] || (o[4] = (r) => t(a).email = r),
247
- placeholder: s.$t("sysUserOps.emailRequired"),
248
- maxlength: "30",
249
- "show-word-limit": "",
250
- clearable: ""
251
- }, null, 8, ["modelValue", "placeholder"])
252
- ]),
253
- _: 1
254
- }, 8, ["label"])
255
- ]),
256
- _: 1
257
- }),
258
- e(i, { span: 12 }, {
259
- default: l(() => [
260
- e(n, {
261
- label: s.$t("sysUserOps.idNo"),
262
- prop: "idNo"
263
- }, {
264
- default: l(() => [
265
- e(g, {
266
- modelValue: t(a).idNo,
267
- "onUpdate:modelValue": o[5] || (o[5] = (r) => t(a).idNo = r),
268
- placeholder: s.$t("sysUserOps.idNoRequired"),
269
- maxlength: "18",
270
- "show-word-limit": "",
271
- clearable: ""
272
- }, null, 8, ["modelValue", "placeholder"])
273
- ]),
274
- _: 1
275
- }, 8, ["label"])
276
- ]),
277
- _: 1
278
- }),
279
- e(i, { span: 12 }, {
280
- default: l(() => [
281
- e(n, {
282
- label: s.$t("sysUserOps.engineeType"),
283
- prop: "engineeType"
284
- }, {
285
- default: l(() => [
286
- e(d, {
287
- modelValue: t(a).engineeType,
288
- "onUpdate:modelValue": o[6] || (o[6] = (r) => t(a).engineeType = r),
289
- placeholder: s.$t("sysUserOps.engineeTypeRequired"),
290
- data: t(y).engineeTypeDictEnum.values,
291
- clearable: "",
292
- class: "w-full"
293
- }, null, 8, ["modelValue", "placeholder", "data"])
294
- ]),
295
- _: 1
296
- }, 8, ["label"])
297
- ]),
298
- _: 1
299
- }),
300
- e(i, { span: 12 }, {
301
- default: l(() => [
302
- e(n, {
303
- label: s.$t("sysUserOps.engineeJobMode"),
304
- prop: "engineeJobMode"
305
- }, {
306
- default: l(() => [
307
- e(d, {
308
- modelValue: t(a).engineeJobMode,
309
- "onUpdate:modelValue": o[7] || (o[7] = (r) => t(a).engineeJobMode = r),
310
- placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
311
- data: t(y).engineeJobModeDictEnum.values,
312
- clearable: "",
313
- class: "w-full"
314
- }, null, 8, ["modelValue", "placeholder", "data"])
315
- ]),
316
- _: 1
317
- }, 8, ["label"])
318
- ]),
319
- _: 1
320
- }),
321
- e(i, { span: 12 }, {
322
- default: l(() => [
323
- e(n, {
324
- label: s.$t("sysUserOps.jobStatus"),
325
- prop: "jobStatus"
326
- }, {
327
- default: l(() => [
328
- e(B, {
329
- modelValue: t(a).jobStatus,
330
- "onUpdate:modelValue": o[8] || (o[8] = (r) => t(a).jobStatus = r)
331
- }, {
332
- default: l(() => [
333
- (f(!0), G(X, null, H(t(y).jobStatusDictEnum.values, (r) => (f(), O(D, {
334
- key: r.key,
335
- label: r.key
336
- }, {
337
- default: l(() => [
338
- b(c(r.value), 1)
339
- ]),
340
- _: 2
341
- }, 1032, ["label"]))), 128))
342
- ]),
343
- _: 1
344
- }, 8, ["modelValue"])
345
- ]),
346
- _: 1
347
- }, 8, ["label"])
348
- ]),
349
- _: 1
350
- }),
351
- V.value ? Q("", !0) : (f(), O(i, {
352
- key: 0,
353
- span: 12
354
- }, {
355
- default: l(() => [
356
- e(n, {
357
- label: s.$t("sysUserOps.userPassword"),
358
- prop: "userPassword"
359
- }, {
360
- default: l(() => [
361
- e(g, {
362
- modelValue: t(a).userPassword,
363
- "onUpdate:modelValue": o[9] || (o[9] = (r) => t(a).userPassword = r),
364
- clearable: "",
365
- type: "password",
366
- "show-password": "",
367
- placeholder: s.$t("sysUserOps.userPasswordRequired")
368
- }, {
369
- append: l(() => [
370
- e(h, { onClick: J }, {
371
- default: l(() => [
372
- b(c(s.$t("sysUserOps.randomPwd")), 1)
373
- ]),
374
- _: 1
375
- })
376
- ]),
377
- _: 1
378
- }, 8, ["modelValue", "placeholder"])
379
- ]),
380
- _: 1
381
- }, 8, ["label"])
382
- ]),
383
- _: 1
384
- })),
385
- e(i, { span: 24 }, {
386
- default: l(() => [
387
- e(n, {
388
- label: s.$t("sysUserOps.engineeSpecialty"),
389
- prop: "engineeSpecialty"
390
- }, {
391
- default: l(() => [
392
- e(g, {
393
- modelValue: t(a).engineeSpecialty,
394
- "onUpdate:modelValue": o[10] || (o[10] = (r) => t(a).engineeSpecialty = r),
395
- placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
396
- type: "textarea",
397
- autosize: { minRows: 2 },
398
- maxlength: "200",
399
- "show-word-limit": "",
400
- clearable: ""
401
- }, null, 8, ["modelValue", "placeholder"])
402
- ]),
403
- _: 1
404
- }, 8, ["label"])
405
- ]),
406
- _: 1
407
- })
408
- ]),
409
- _: 1
410
- })
411
- ]),
412
- _: 1
413
- }, 8, ["model", "rules"])
414
- ]),
415
- _: 1
416
- }, 8, ["modelValue"]);
417
- };
418
- }
419
- });
420
- export {
421
- te as _
422
- };