xyvcard-itsmsys 0.0.11 → 0.0.13

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 (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -1,351 +0,0 @@
1
- import { defineComponent as oe, ref as U, reactive as I, resolveComponent as s, resolveDirective as le, openBlock as u, createElementBlock as w, createElementVNode as y, createVNode as a, withCtx as l, withKeys as R, unref as n, createTextVNode as d, toDisplayString as r, withDirectives as c, createBlock as b, isRef as M, createCommentVNode as V, vShow as T } from "vue";
2
- import { useTableHooks as ae } from "jmash-core";
3
- import { useI18n as ne } from "vue-i18n";
4
- import { useRouter as se } from "vue-router";
5
- import { C as q, D as S } from "./index-cBbN-uY2.mjs";
6
- import { sysUserExtApi as re } from "./index.mjs";
7
- import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs";
8
- const ue = { class: "app-container" }, me = { class: "search-container" }, de = { key: 0 }, pe = ["onClick"], ce = ["onClick"], ye = ["onClick"], Ce = /* @__PURE__ */ oe({
9
- __name: "index",
10
- setup(be) {
11
- const { t: g } = ne(), z = se(), m = U({
12
- userType: q.userType.companyManager
13
- }), {
14
- tableHooks: i,
15
- multipleTableRef: L,
16
- queryFormRef: K,
17
- listLoading: Q,
18
- tableData: B,
19
- total: h
20
- } = ae(g, re, m);
21
- let f = U([
22
- {
23
- label: "sysUserMan.realName",
24
- prop: "realName",
25
- width: "200",
26
- isColumn: !0
27
- },
28
- {
29
- label: "sysUserMan.gender",
30
- prop: "gender",
31
- width: "100",
32
- isColumn: !0,
33
- slotName: "gender",
34
- columnType: "slot"
35
- },
36
- {
37
- label: "sysUserMan.mobilePhone",
38
- prop: "mobilePhone",
39
- width: "150",
40
- isColumn: !0,
41
- slotName: "mobilePhone",
42
- columnType: "slot"
43
- },
44
- {
45
- label: "sysUserMan.email",
46
- prop: "email",
47
- isColumn: !0,
48
- slotName: "email",
49
- columnType: "slot"
50
- },
51
- {
52
- label: "sysUserMan.jobStatus",
53
- prop: "jobStatus",
54
- width: "150",
55
- isColumn: !0,
56
- slotName: "jobStatus",
57
- columnType: "slot"
58
- },
59
- {
60
- label: "common.operate",
61
- width: "200",
62
- slotName: "operation",
63
- columnType: "slot",
64
- fixed: "right",
65
- isColumn: !0
66
- }
67
- ]);
68
- function E(o) {
69
- o.showEncrypt = !o.showEncrypt;
70
- }
71
- const p = U({
72
- title: g("common.edit"),
73
- visible: !1
74
- });
75
- let j = I({});
76
- function A() {
77
- j = I({}), p.value.title = g("common.add"), p.value.visible = !0;
78
- }
79
- function F(o) {
80
- j.userId = o.userId, p.value.title = g("common.edit"), p.value.visible = !0;
81
- }
82
- function H(o) {
83
- z.push({
84
- path: "/rawitsmsys/itsm-sys-user-man/userManInfo",
85
- query: { userId: o.userId }
86
- });
87
- }
88
- function G(o) {
89
- i.selectionRows.value = o;
90
- }
91
- function J(o) {
92
- i.handleSort(o.prop, o.order);
93
- }
94
- function O(o) {
95
- o && i.getList();
96
- }
97
- return i.getList(), (o, t) => {
98
- const W = s("el-input"), $ = s("el-form-item"), _ = s("el-col"), X = s("jmash-select"), k = s("el-button"), N = s("el-row"), Y = s("el-form"), Z = s("jmash-column-select"), P = s("el-tag"), D = s("svg-icon"), x = s("jmash-table"), ee = s("jmash-pagination"), te = s("el-card"), v = le("hasPerm");
99
- return u(), w("div", ue, [
100
- y("div", me, [
101
- a(Y, {
102
- ref_key: "queryFormRef",
103
- ref: K,
104
- model: m.value,
105
- inline: !0
106
- }, {
107
- default: l(() => [
108
- a(N, null, {
109
- default: l(() => [
110
- a(_, { span: 6 }, {
111
- default: l(() => [
112
- a($, {
113
- label: o.$t("sysUserMan.realName"),
114
- prop: "likeUserName"
115
- }, {
116
- default: l(() => [
117
- a(W, {
118
- modelValue: m.value.likeUserName,
119
- "onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.likeUserName = e),
120
- placeholder: o.$t("sysUserMan.realNameRequired"),
121
- onKeyup: t[1] || (t[1] = R((e) => n(i).handleQuery(), ["enter"])),
122
- class: "!w-[203px]",
123
- clearable: ""
124
- }, null, 8, ["modelValue", "placeholder"])
125
- ]),
126
- _: 1
127
- }, 8, ["label"])
128
- ]),
129
- _: 1
130
- }),
131
- a(_, { span: 6 }, {
132
- default: l(() => [
133
- a($, {
134
- label: o.$t("sysUserMan.jobStatus"),
135
- prop: "jobStatus"
136
- }, {
137
- default: l(() => [
138
- a(X, {
139
- modelValue: m.value.jobStatus,
140
- "onUpdate:modelValue": t[2] || (t[2] = (e) => m.value.jobStatus = e),
141
- placeholder: o.$t("sysUserMan.jobStatusRequired"),
142
- data: n(S).jobStatusDictEnum.values,
143
- onKeyup: t[3] || (t[3] = R((e) => n(i).handleQuery(), ["enter"])),
144
- clearable: ""
145
- }, null, 8, ["modelValue", "placeholder", "data"])
146
- ]),
147
- _: 1
148
- }, 8, ["label"])
149
- ]),
150
- _: 1
151
- }),
152
- a(_, { span: 12 }, {
153
- default: l(() => [
154
- a($, { class: "search-btn" }, {
155
- default: l(() => [
156
- a(k, {
157
- type: "primary",
158
- onClick: t[4] || (t[4] = (e) => n(i).handleQuery())
159
- }, {
160
- default: l(() => [
161
- d(r(o.$t("common.search")), 1)
162
- ]),
163
- _: 1
164
- }),
165
- a(k, {
166
- onClick: t[5] || (t[5] = (e) => n(i).resetQuery())
167
- }, {
168
- default: l(() => [
169
- d(r(o.$t("common.reset")), 1)
170
- ]),
171
- _: 1
172
- })
173
- ]),
174
- _: 1
175
- })
176
- ]),
177
- _: 1
178
- })
179
- ]),
180
- _: 1
181
- })
182
- ]),
183
- _: 1
184
- }, 8, ["model"]),
185
- t[13] || (t[13] = y("div", { class: "clear" }, null, -1))
186
- ]),
187
- a(te, {
188
- shadow: "never",
189
- class: "table-container"
190
- }, {
191
- header: l(() => [
192
- a(N, null, {
193
- default: l(() => [
194
- a(_, { span: 17 }, {
195
- default: l(() => [
196
- c((u(), b(k, {
197
- type: "primary",
198
- onClick: A
199
- }, {
200
- default: l(() => [
201
- d(r(o.$t("common.add")), 1)
202
- ]),
203
- _: 1
204
- })), [
205
- [v, ["itsmsys:sys_user_man:add"]]
206
- ]),
207
- c((u(), b(k, {
208
- type: "primary",
209
- onClick: t[6] || (t[6] = (e) => n(i).deleteRecords())
210
- }, {
211
- default: l(() => [
212
- d(r(o.$t("common.batchDelete")), 1)
213
- ]),
214
- _: 1
215
- })), [
216
- [v, ["itsmsys:sys_user_man:delete"]]
217
- ])
218
- ]),
219
- _: 1
220
- }),
221
- a(_, {
222
- span: 7,
223
- class: "container-float"
224
- }, {
225
- default: l(() => [
226
- a(Z, {
227
- modelValue: n(f),
228
- "onUpdate:modelValue": t[7] || (t[7] = (e) => M(f) ? f.value = e : f = e),
229
- "label-name": "itsmsys/itsm-sys-user-man"
230
- }, null, 8, ["modelValue"])
231
- ]),
232
- _: 1
233
- })
234
- ]),
235
- _: 1
236
- })
237
- ]),
238
- footer: l(() => [
239
- n(h) > 0 ? (u(), b(ee, {
240
- key: 0,
241
- total: n(h),
242
- "onUpdate:total": t[8] || (t[8] = (e) => M(h) ? h.value = e : null),
243
- "current-page": m.value.curPage,
244
- "onUpdate:currentPage": t[9] || (t[9] = (e) => m.value.curPage = e),
245
- "page-size": m.value.pageSize,
246
- "onUpdate:pageSize": t[10] || (t[10] = (e) => m.value.pageSize = e),
247
- onPagination: t[11] || (t[11] = (e) => n(i).getList())
248
- }, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
249
- ]),
250
- default: l(() => [
251
- a(x, {
252
- ref_key: "multipleTableRef",
253
- ref: L,
254
- "row-key": "userId",
255
- "list-loading": n(Q),
256
- data: n(B),
257
- "table-label": n(f),
258
- onSelectionChange: G,
259
- onSortChange: J
260
- }, {
261
- gender: l((e) => [
262
- y("span", null, r(n(S).genderDict.getEnumValue(e.data.row.gender)), 1)
263
- ]),
264
- mobilePhone: l((e) => [
265
- y("span", null, r(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
266
- ]),
267
- email: l((e) => [
268
- y("span", null, r(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
269
- ]),
270
- jobStatus: l((e) => [
271
- y("span", null, [
272
- e.data.row.jobStatus === n(q).jobStatus.working ? (u(), b(P, {
273
- key: 0,
274
- type: "primary"
275
- }, {
276
- default: l(() => [
277
- d(r(n(S).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
278
- ]),
279
- _: 2
280
- }, 1024)) : (u(), b(P, {
281
- key: 1,
282
- type: "danger"
283
- }, {
284
- default: l(() => [
285
- d(r(n(S).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
286
- ]),
287
- _: 2
288
- }, 1024))
289
- ])
290
- ]),
291
- operation: l((e) => [
292
- e.data.row.mobilePhoneIns || e.data.row.emailIns ? (u(), w("span", de, [
293
- c(a(D, {
294
- "icon-class": "close-eye",
295
- onClick: (C) => E(e.data.row)
296
- }, null, 8, ["onClick"]), [
297
- [T, !e.data.row.showEncrypt]
298
- ]),
299
- c(a(D, {
300
- "icon-class": "eye-open",
301
- onClick: (C) => E(e.data.row)
302
- }, null, 8, ["onClick"]), [
303
- [T, e.data.row.showEncrypt]
304
- ])
305
- ])) : V("", !0),
306
- c((u(), w("span", {
307
- class: "el-button-color dropdown-left",
308
- onClick: (C) => F(e.data.row)
309
- }, [
310
- d(r(o.$t("common.edit")), 1)
311
- ], 8, pe)), [
312
- [v, ["itsmsys:sys_user_man:update"]]
313
- ]),
314
- c((u(), w("span", {
315
- class: "el-button-color dropdown-left",
316
- onClick: (C) => n(i).deleteRecord(e.data.row)
317
- }, [
318
- d(r(o.$t("common.delete")), 1)
319
- ], 8, ce)), [
320
- [v, ["itsmsys:sys_user_man:delete"]]
321
- ]),
322
- c((u(), w("span", {
323
- class: "el-button-color dropdown-left",
324
- onClick: (C) => H(e.data.row)
325
- }, [
326
- d(r(o.$t("common.view")), 1)
327
- ], 8, ye)), [
328
- [v, ["itsmsys:sys_user_man:view"]]
329
- ])
330
- ]),
331
- _: 1
332
- }, 8, ["list-loading", "data", "table-label"])
333
- ]),
334
- _: 1
335
- }),
336
- p.value.visible ? (u(), b(ie, {
337
- key: 0,
338
- modelValue: p.value.visible,
339
- "onUpdate:modelValue": t[12] || (t[12] = (e) => p.value.visible = e),
340
- title: p.value.title,
341
- "entity-key": n(j),
342
- onRefresh: O,
343
- width: "900px"
344
- }, null, 8, ["modelValue", "title", "entity-key"])) : V("", !0)
345
- ]);
346
- };
347
- }
348
- });
349
- export {
350
- Ce as default
351
- };
@@ -1,155 +0,0 @@
1
- var l = Object.defineProperty;
2
- var S = (i, r, t) => r in i ? l(i, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[r] = t;
3
- var s = (i, r, t) => S(i, typeof r != "symbol" ? r + "" : r, t);
4
- import { ref as T, reactive as p } from "vue";
5
- import { BizLayDict as _, BizDict as O, EnumDict as c } from "jmash-core";
6
- import { sysOrgApi as y } from "./index.mjs";
7
- class e {
8
- }
9
- //模块
10
- s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
11
- s(e, "HAS_STATUS", T([
12
- { key: !0, value: "启用" },
13
- { key: !1, value: "禁用" }
14
- ])), // 公司发票类型
15
- s(e, "ENUM_INVOICE_TYPE", "xyvcard.itsmsys.protobuf.InvoiceType"), // 管理人员工作状态
16
- s(e, "ENUM_JOB_ATATUS", "xyvcard.itsmsys.protobuf.SysUserJobStatus"), // 运维人员工作模式
17
- s(e, "ENUM_ENGINEE_JOB_MODE", "xyvcard.itsmsys.protobuf.SysUserJobMode"), // 人员性别
18
- s(e, "ENUM_GENDER", "jmash.protobuf.Gender"), // 运维人员工程师类型
19
- s(e, "ENUM_ENGINEE_TYPE", "xyvcard.itsmsys.protobuf.SysEngineeType"), // 机构类型
20
- s(e, "orgType", {
21
- // 公司
22
- cloud: "CLOUD",
23
- // 厅局
24
- hall: "HALL",
25
- // 外协
26
- outsource: "OUTSOURCE"
27
- }), // 工作状态
28
- s(e, "jobStatus", {
29
- // 在职
30
- working: "WORKING",
31
- // 离职
32
- leave: "LEAVE"
33
- }), // 人员类型
34
- s(e, "userType", {
35
- // 公司管理
36
- companyManager: "COMPANY_MANAGER",
37
- // 公司运维
38
- companyOps: "COMPANY_OPS",
39
- // 外协运维
40
- outsourceOps: "OUTSOURCE_OPS"
41
- }), // 工程师类型
42
- s(e, "engineeType", {
43
- // 等保测评
44
- ease_test: "EASE_TEST",
45
- // 安全服务
46
- security_service: "SECURITY_SERVICE",
47
- // 密码评价
48
- password_ecaluation: "PASSWORD_EVALUATION"
49
- }), // 工作模式
50
- s(e, "engineeJobMode", {
51
- // 驻场人员
52
- resident: "RESIDENT",
53
- // 远程人员
54
- remote: "REMOTE"
55
- }), // 高德地图配置
56
- s(e, "amapConfig", {
57
- // 高德地图key
58
- apiKey: "b08fdd63c62296ccd2c1f2cc0f423e14",
59
- // 高德地图安全密钥
60
- securityJsCode: "9c92eb8120ea30d8c5ce75140e5b5c08"
61
- });
62
- class h {
63
- constructor(r, t) {
64
- s(this, "values", p([]));
65
- // 查询条件
66
- s(this, "query");
67
- this.values.length = 0, this.values.push(...r.value), this.query = t;
68
- }
69
- // 根据给定键获取业务数据项的值的方法
70
- getValue(r) {
71
- for (const t of this.values)
72
- if (t.key == r)
73
- return t.value;
74
- return "";
75
- }
76
- }
77
- class M extends _ {
78
- // 实现 useValues 方法
79
- useValues() {
80
- return new Promise((r, t) => {
81
- if (typeof y.findList > "u") {
82
- r(this.values);
83
- return;
84
- }
85
- const E = { ...this.query };
86
- y.findList(E).then(({ data: o }) => {
87
- const u = o.results;
88
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(u)), r(this.values);
89
- }).catch(t);
90
- });
91
- }
92
- convertToLayEntryArray(r) {
93
- return r.map((t) => ({
94
- value: t.orgId,
95
- label: t.orgName,
96
- parentId: t.parentId || "",
97
- children: t.children ? this.convertToLayEntryArray(t.children) : []
98
- }));
99
- }
100
- }
101
- class n extends O {
102
- // 实现 useValues 方法
103
- useValues() {
104
- return new Promise((r, t) => {
105
- y.findPage(this.query).then(({ data: E }) => {
106
- const o = E.results;
107
- this.values.length = 0, this.values.push(
108
- ...o.map(
109
- (u) => ({
110
- key: u.orgId,
111
- value: u.orgName
112
- })
113
- )
114
- ), r(this.values);
115
- }).catch(t);
116
- });
117
- }
118
- }
119
- class a {
120
- }
121
- // 公司管理状态
122
- s(a, "hasStatusDict", new h(e.HAS_STATUS, {})), // 公司发票类型
123
- s(a, "invoiceTypeDictEnum", new c(
124
- e.MODULE_ITSMSYS,
125
- e.ENUM_INVOICE_TYPE
126
- )), // 厅局管理父厅级单位
127
- s(a, "parentIdBizDict", new M({
128
- orgType: e.orgType.hall
129
- })), // 管理人员工作状态
130
- s(a, "jobStatusDictEnum", new c(
131
- e.MODULE_ITSMSYS,
132
- e.ENUM_JOB_ATATUS
133
- )), // 运维人员工作模式
134
- s(a, "engineeJobModeDictEnum", new c(
135
- e.MODULE_ITSMSYS,
136
- e.ENUM_ENGINEE_JOB_MODE
137
- )), // 性别
138
- s(a, "genderDict", new c(
139
- e.MODULE_RBAC,
140
- e.ENUM_GENDER
141
- )), // 运维人员工程师类型
142
- s(a, "engineeTypeDictEnum", new c(
143
- e.MODULE_ITSMSYS,
144
- e.ENUM_ENGINEE_TYPE
145
- )), // 公司人员选择公司名称
146
- s(a, "sysOrgBizDict", new n({
147
- orgType: e.orgType.cloud
148
- })), // 外协运维人员选择公司名称
149
- s(a, "sysOutBizDict", new n({
150
- orgType: e.orgType.outsource
151
- }));
152
- export {
153
- e as C,
154
- a as D
155
- };
@@ -1,187 +0,0 @@
1
- import { defineComponent as C, ref as p, onBeforeMount as B, resolveComponent as a, openBlock as w, createElementBlock as M, createVNode as l, withCtx as e, createTextVNode as r, toDisplayString as o, createElementVNode as s, unref as y } from "vue";
2
- import { useRouter as j, useRoute as q } from "vue-router";
3
- import { routerUtil as A } from "jmash-core";
4
- import { sysOrgApi as R } from "./index.mjs";
5
- import { s as S } from "./index-B6vJj_z6.mjs";
6
- import { D as g } from "./index-cBbN-uY2.mjs";
7
- const U = { class: "app-container" }, L = { class: "cell-item" }, z = { class: "cell-item" }, F = { class: "cell-item" }, G = { class: "cell-item" }, H = { class: "cell-item" }, J = { class: "cell-item" }, ee = /* @__PURE__ */ C({
8
- __name: "info",
9
- setup(K) {
10
- const h = j(), b = q(), n = p({}), v = p([]), m = p("first");
11
- function I(t) {
12
- m.value = t.props.name, m.value === "second" && N();
13
- }
14
- const _ = p([!1]);
15
- function O(t) {
16
- _.value[t] = !_.value[t];
17
- }
18
- function P() {
19
- A.closeTagView(b.fullPath, h, !1);
20
- }
21
- B(() => {
22
- R.findById({ orgId: b.query.orgId }).then(({ data: t }) => {
23
- n.value = Object.assign(n.value, t);
24
- });
25
- });
26
- function N() {
27
- S.findList({ orgId: b.query.orgId }).then(({ data: t }) => {
28
- v.value = t.results;
29
- });
30
- }
31
- return (t, d) => {
32
- const $ = a("el-button"), c = a("el-descriptions-item"), k = a("jmash-mobileIns-component"), T = a("el-descriptions"), f = a("el-tab-pane"), u = a("el-table-column"), E = a("el-table"), V = a("el-tabs"), D = a("el-card");
33
- return w(), M("div", U, [
34
- l(D, { shadow: "never" }, {
35
- header: e(() => [
36
- l($, {
37
- type: "primary",
38
- onClick: P
39
- }, {
40
- default: e(() => [
41
- r(o(t.$t("common.back")), 1)
42
- ]),
43
- _: 1
44
- })
45
- ]),
46
- default: e(() => [
47
- l(V, {
48
- modelValue: m.value,
49
- "onUpdate:modelValue": d[1] || (d[1] = (i) => m.value = i),
50
- onTabClick: I
51
- }, {
52
- default: e(() => [
53
- l(f, {
54
- label: "外协单位信息",
55
- name: "first"
56
- }, {
57
- default: e(() => [
58
- l(T, {
59
- class: "margin-top",
60
- column: 2,
61
- border: ""
62
- }, {
63
- default: e(() => [
64
- l(c, null, {
65
- label: e(() => [
66
- s("div", L, o(t.$t("sysOut.orgName")), 1)
67
- ]),
68
- default: e(() => [
69
- r(" " + o(n.value.orgName), 1)
70
- ]),
71
- _: 1
72
- }),
73
- l(c, null, {
74
- label: e(() => [
75
- s("div", z, o(t.$t("sysOut.status")), 1)
76
- ]),
77
- default: e(() => [
78
- r(" " + o(y(g).hasStatusDict.getValue(n.value.status)), 1)
79
- ]),
80
- _: 1
81
- }),
82
- l(c, null, {
83
- label: e(() => [
84
- s("div", F, o(t.$t("sysOut.contactPerson")), 1)
85
- ]),
86
- default: e(() => [
87
- r(" " + o(n.value.contactPerson), 1)
88
- ]),
89
- _: 1
90
- }),
91
- l(c, null, {
92
- label: e(() => [
93
- s("div", G, o(t.$t("sysOut.contactPersonPosi")), 1)
94
- ]),
95
- default: e(() => [
96
- r(" " + o(n.value.contactPersonPosi), 1)
97
- ]),
98
- _: 1
99
- }),
100
- l(c, null, {
101
- label: e(() => [
102
- s("div", H, o(t.$t("sysOut.contactPersonMobile")), 1)
103
- ]),
104
- default: e(() => [
105
- l(k, {
106
- mobilePhoneIns: n.value.contactPersonMobileIns,
107
- mobilePhone: n.value.contactPersonMobile,
108
- mobileEncrypt: _.value[0],
109
- onToggleEncrypt: d[0] || (d[0] = (i) => O(0))
110
- }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt"])
111
- ]),
112
- _: 1
113
- }),
114
- l(c, null, {
115
- label: e(() => [
116
- s("div", J, o(t.$t("sysOut.contactPersonTel")), 1)
117
- ]),
118
- default: e(() => [
119
- r(" " + o(n.value.contactPersonTel), 1)
120
- ]),
121
- _: 1
122
- })
123
- ]),
124
- _: 1
125
- })
126
- ]),
127
- _: 1
128
- }),
129
- l(f, {
130
- label: "发票信息",
131
- name: "second"
132
- }, {
133
- default: e(() => [
134
- l(E, {
135
- data: v.value,
136
- style: { width: "100%" }
137
- }, {
138
- default: e(() => [
139
- l(u, {
140
- prop: "invoiceType",
141
- label: t.$t("sysOrgInvoice.invoiceType")
142
- }, {
143
- default: e(({ row: i }) => [
144
- s("div", null, o(y(g).invoiceTypeDictEnum.getEnumValue(i.invoiceType)), 1)
145
- ]),
146
- _: 1
147
- }, 8, ["label"]),
148
- l(u, {
149
- prop: "invoiceTitle",
150
- label: t.$t("sysOrgInvoice.invoiceTitle")
151
- }, null, 8, ["label"]),
152
- l(u, {
153
- prop: "taxNumber",
154
- label: t.$t("sysOrgInvoice.taxNumber")
155
- }, null, 8, ["label"]),
156
- l(u, {
157
- prop: "bankName",
158
- label: t.$t("sysOrgInvoice.bankName")
159
- }, null, 8, ["label"]),
160
- l(u, {
161
- prop: "backNumber",
162
- label: t.$t("sysOrgInvoice.backNumber")
163
- }, {
164
- default: e(({ row: i }) => [
165
- s("div", null, o(i.backNumber), 1)
166
- ]),
167
- _: 1
168
- }, 8, ["label"])
169
- ]),
170
- _: 1
171
- }, 8, ["data"])
172
- ]),
173
- _: 1
174
- })
175
- ]),
176
- _: 1
177
- }, 8, ["modelValue"])
178
- ]),
179
- _: 1
180
- })
181
- ]);
182
- };
183
- }
184
- });
185
- export {
186
- ee as default
187
- };