xyvcard-itsmsys 0.0.5 → 0.0.7

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 (38) hide show
  1. package/dist/{edit-DPM0jGQT.mjs → edit-B2gR_6I8.mjs} +1 -1
  2. package/dist/{edit-DLAiwJjs.mjs → edit-BbJa_Nfr.mjs} +10 -10
  3. package/dist/{edit-CIm8Y0Be.mjs → edit-C42Omp9z.mjs} +1 -1
  4. package/dist/{edit-DZJU5ZPt.mjs → edit-Dfay8i1B.mjs} +1 -1
  5. package/dist/{edit-CWVYUzgf.mjs → edit-Dm9CXMA6.mjs} +11 -10
  6. package/dist/{edit-D82hX9if.mjs → edit-Fi1_QjAr.mjs} +1 -1
  7. package/dist/{edit-BhRXuYku.mjs → edit-GlkC3kLR.mjs} +15 -15
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs → edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs} +24 -23
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs → edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs} +49 -48
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs → edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs} +46 -45
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs → edit.vue_vue_type_script_setup_true_lang-r4tQk9wV.mjs} +2 -2
  12. package/dist/index-B6FMyHxQ.mjs +99 -0
  13. package/dist/index-B6vJj_z6.mjs +74 -0
  14. package/dist/{index-B_cot8iN.mjs → index-BHLCtDlx.mjs} +126 -133
  15. package/dist/{index-C6KvLUoL.mjs → index-BV8SsW14.mjs} +1 -1
  16. package/dist/{index-CEUyLrKg.mjs → index-CSMVzE7h.mjs} +101 -108
  17. package/dist/{index-BkHGzL0R.mjs → index-Ce07ACPH.mjs} +130 -137
  18. package/dist/{index-CogdeN09.mjs → index-DTjJvEfz.mjs} +103 -124
  19. package/dist/{index-ClU157bA.mjs → index-N57BEkTO.mjs} +116 -130
  20. package/dist/index-Up4lAJrU.mjs +364 -0
  21. package/dist/index.mjs +1096 -1055
  22. package/dist/index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs +191 -0
  23. package/dist/{info-BWgVN2mJ.mjs → info-BVrtvDle.mjs} +1 -1
  24. package/dist/{info-70H0sycC.mjs → info-Bc3bycK1.mjs} +2 -2
  25. package/dist/{info-CE-ZnFj5.mjs → info-Bz6yHt3N.mjs} +1 -1
  26. package/dist/{info-MYJGcyMX.mjs → info-D-ykgDrJ.mjs} +1 -1
  27. package/dist/{info-Z5LuCRmr.mjs → info-D7YAHptq.mjs} +2 -2
  28. package/dist/{info-Kf11Ye-N.mjs → info-DO3PSaAZ.mjs} +2 -2
  29. package/dts/src/api/itsm-sys-org/types.d.ts +0 -3
  30. package/dts/src/api/itsm-sys-org-invoice/index.d.ts +1 -0
  31. package/dts/src/api/itsm-sys-org-invoice/types.d.ts +5 -1
  32. package/dts/src/constant.d.ts +9 -1
  33. package/dts/src/index.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/dist/index-BQRtMgmZ.mjs +0 -340
  36. package/dist/index-ChTssr8-.mjs +0 -123
  37. package/dist/index-DOXuGEyW.mjs +0 -62
  38. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +0 -180
@@ -1,123 +0,0 @@
1
- var y = Object.defineProperty;
2
- var h = (i, r, t) => r in i ? y(i, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[r] = t;
3
- var s = (i, r, t) => h(i, typeof r != "symbol" ? r + "" : r, t);
4
- import { ref as p, reactive as T } from "vue";
5
- import { BizLayDict as S, BizDict as _, EnumDict as u } from "jmash-core";
6
- import { sysOrgApi as l } from "./index.mjs";
7
- class e {
8
- }
9
- //模块
10
- s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
11
- s(e, "HAS_STATUS", p([
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, "depth", "0");
29
- class v {
30
- constructor(r, t) {
31
- s(this, "values", T([]));
32
- // 查询条件
33
- s(this, "query");
34
- this.values.length = 0, this.values.push(...r.value), this.query = t;
35
- }
36
- // 根据给定键获取业务数据项的值的方法
37
- getValue(r) {
38
- for (const t of this.values)
39
- if (t.key == r)
40
- return t.value;
41
- return "";
42
- }
43
- }
44
- class M extends S {
45
- // 实现 useValues 方法
46
- useValues() {
47
- return new Promise((r, t) => {
48
- if (typeof l.findList > "u") {
49
- r(this.values);
50
- return;
51
- }
52
- const o = { ...this.query };
53
- l.findList(o).then(({ data: E }) => {
54
- const c = E.results;
55
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(c)), r(this.values);
56
- }).catch(t);
57
- });
58
- }
59
- convertToLayEntryArray(r) {
60
- return r.map((t) => ({
61
- value: t.orgId,
62
- label: t.orgName,
63
- parentId: t.parentId || "",
64
- children: t.children ? this.convertToLayEntryArray(t.children) : []
65
- }));
66
- }
67
- }
68
- class n extends _ {
69
- // 实现 useValues 方法
70
- useValues() {
71
- return new Promise((r, t) => {
72
- l.findPage(this.query).then(({ data: o }) => {
73
- const E = o.results;
74
- this.values.length = 0, this.values.push(
75
- ...E.map(
76
- (c) => ({
77
- key: c.orgId,
78
- value: c.orgName
79
- })
80
- )
81
- ), r(this.values);
82
- }).catch(t);
83
- });
84
- }
85
- }
86
- class a {
87
- }
88
- // 公司管理状态
89
- s(a, "hasStatusDict", new v(e.HAS_STATUS, {})), // 公司发票类型
90
- s(a, "invoiceTypeDictEnum", new u(
91
- e.MODULE_ITSMSYS,
92
- e.ENUM_INVOICE_TYPE
93
- )), // 厅局管理父厅级单位
94
- s(a, "parentIdBizDict", new M({
95
- depth: e.depth,
96
- orgType: e.orgType.hall
97
- })), // 管理人员工作状态
98
- s(a, "jobStatusDictEnum", new u(
99
- e.MODULE_ITSMSYS,
100
- e.ENUM_JOB_ATATUS
101
- )), // 运维人员工作模式
102
- s(a, "engineeJobModeDictEnum", new u(
103
- e.MODULE_ITSMSYS,
104
- e.ENUM_ENGINEE_JOB_MODE
105
- )), // 性别
106
- s(a, "genderDict", new u(
107
- e.MODULE_RBAC,
108
- e.ENUM_GENDER
109
- )), // 运维人员工程师类型
110
- s(a, "engineeTypeDictEnum", new u(
111
- e.MODULE_ITSMSYS,
112
- e.ENUM_ENGINEE_TYPE
113
- )), // 公司人员选择公司名称
114
- s(a, "sysOrgBizDict", new n({
115
- orgType: e.orgType.cloud
116
- })), // 外协运维人员选择公司名称
117
- s(a, "sysOutBizDict", new n({
118
- orgType: e.orgType.outsource
119
- }));
120
- export {
121
- e as C,
122
- a as D
123
- };
@@ -1,62 +0,0 @@
1
- import { useUserStore as t, clearEmpty as s, request as n } from "jmash-core";
2
- class i {
3
- getKey(e) {
4
- return {
5
- invoiceId: e.invoiceId
6
- };
7
- }
8
- // 查询翻页信息机构发票信息
9
- findPage(e) {
10
- const r = t().user.tenant;
11
- return s(e), n({
12
- url: "/v1/itsmsys/sys_org_invoice/page/" + r,
13
- method: "get",
14
- params: e
15
- });
16
- }
17
- // 查询列表信息机构发票信息
18
- findList(e) {
19
- const r = t().user.tenant;
20
- return s(e), n({
21
- url: "/v1/itsmsys/sys_org_invoice/list/" + r,
22
- method: "get",
23
- params: e
24
- });
25
- }
26
- // 查询机构发票信息
27
- findById(e) {
28
- const r = t().user.tenant;
29
- return s(e), n({
30
- url: "/v1/itsmsys/sys_org_invoice/id/" + r + "/" + e.invoiceId,
31
- method: "get"
32
- });
33
- }
34
- // 创建实体机构发票信息
35
- create(e) {
36
- return e.tenant = t().user.tenant, s(e), n({
37
- url: "/v1/itsmsys/sys_org_invoice",
38
- method: "post",
39
- data: e
40
- });
41
- }
42
- // 修改实体机构发票信息
43
- update(e) {
44
- return e.tenant = t().user.tenant, s(e), n({
45
- url: "/v1/itsmsys/sys_org_invoice",
46
- method: "patch",
47
- data: e
48
- });
49
- }
50
- // 删除机构发票信息
51
- delete(e) {
52
- return e.tenant = t().user.tenant, s(e), n({
53
- url: "/v1/itsmsys/sys_org_invoice/id",
54
- method: "delete",
55
- params: e
56
- });
57
- }
58
- }
59
- const m = new i();
60
- export {
61
- m as s
62
- };
@@ -1,180 +0,0 @@
1
- import { defineComponent as A, ref as g, reactive as w, resolveComponent as a, resolveDirective as H, openBlock as r, createElementBlock as y, createVNode as u, withCtx as n, withDirectives as f, createBlock as k, createTextVNode as h, toDisplayString as v, unref as l, isRef as T, createCommentVNode as N, createElementVNode as K } from "vue";
2
- import { useTableHooks as F } from "jmash-core";
3
- import { useI18n as G } from "vue-i18n";
4
- import { useRoute as J } from "vue-router";
5
- import { s as M } from "./index-DOXuGEyW.mjs";
6
- import { _ as Q } from "./edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs";
7
- import { D as W } from "./index-ChTssr8-.mjs";
8
- const X = { class: "app-container" }, Y = ["onClick"], Z = ["onClick"], re = /* @__PURE__ */ A({
9
- __name: "index",
10
- setup(ee) {
11
- const { t: d } = G(), I = J(), m = g({
12
- orgId: I.query.entityKey
13
- }), { tableHooks: s, multipleTableRef: V, listLoading: S, tableData: j, total: p } = F(d, M, m);
14
- let c = g([
15
- {
16
- label: "sysOrgInvoice.invoiceType",
17
- prop: "invoiceType",
18
- width: "150",
19
- isColumn: !0,
20
- slotName: "invoiceType",
21
- columnType: "slot"
22
- },
23
- {
24
- label: "sysOrgInvoice.invoiceTitle",
25
- prop: "invoiceTitle",
26
- width: "150",
27
- isColumn: !0
28
- },
29
- {
30
- label: "sysOrgInvoice.taxNumber",
31
- prop: "taxNumber",
32
- isColumn: !0
33
- },
34
- {
35
- label: "sysOrgInvoice.bankName",
36
- prop: "bankName",
37
- isColumn: !0
38
- },
39
- {
40
- label: "sysOrgInvoice.backNumber",
41
- prop: "backNumber",
42
- isColumn: !0
43
- },
44
- {
45
- label: "common.operate",
46
- width: "200",
47
- slotName: "operation",
48
- columnType: "slot",
49
- fixed: "right",
50
- isColumn: !0
51
- }
52
- ]);
53
- const i = g({
54
- title: d("common.edit"),
55
- visible: !1
56
- });
57
- let b = w({});
58
- function D() {
59
- b = w({}), i.value.title = d("common.add"), i.value.visible = !0;
60
- }
61
- function P(t) {
62
- b.invoiceId = t.invoiceId, i.value.title = d("common.edit"), i.value.visible = !0;
63
- }
64
- function R(t) {
65
- s.selectionRows.value = t;
66
- }
67
- function x(t) {
68
- s.handleSort(t.prop, t.order);
69
- }
70
- function O(t) {
71
- t && s.getList();
72
- }
73
- return s.getList(), (t, o) => {
74
- const $ = a("el-button"), C = a("el-col"), z = a("jmash-column-select"), E = a("el-row"), L = a("jmash-table"), U = a("jmash-pagination"), B = a("el-card"), _ = H("hasPerm");
75
- return r(), y("div", X, [
76
- u(B, {
77
- shadow: "never",
78
- class: "table-container"
79
- }, {
80
- header: n(() => [
81
- u(E, null, {
82
- default: n(() => [
83
- u(C, { span: 17 }, {
84
- default: n(() => [
85
- f((r(), k($, {
86
- type: "primary",
87
- onClick: D
88
- }, {
89
- default: n(() => [
90
- h(v(t.$t("common.add")), 1)
91
- ]),
92
- _: 1
93
- })), [
94
- [_, ["itsmsys:sys_org_invoice:add"]]
95
- ])
96
- ]),
97
- _: 1
98
- }),
99
- u(C, {
100
- span: 7,
101
- class: "container-float"
102
- }, {
103
- default: n(() => [
104
- u(z, {
105
- modelValue: l(c),
106
- "onUpdate:modelValue": o[0] || (o[0] = (e) => T(c) ? c.value = e : c = e),
107
- "label-name": "jobs/job-trigger"
108
- }, null, 8, ["modelValue"])
109
- ]),
110
- _: 1
111
- })
112
- ]),
113
- _: 1
114
- })
115
- ]),
116
- footer: n(() => [
117
- l(p) > 0 ? (r(), k(U, {
118
- key: 0,
119
- total: l(p),
120
- "onUpdate:total": o[1] || (o[1] = (e) => T(p) ? p.value = e : null),
121
- "current-page": m.value.curPage,
122
- "onUpdate:currentPage": o[2] || (o[2] = (e) => m.value.curPage = e),
123
- "page-size": m.value.pageSize,
124
- "onUpdate:pageSize": o[3] || (o[3] = (e) => m.value.pageSize = e),
125
- onPagination: o[4] || (o[4] = (e) => l(s).getList())
126
- }, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
127
- ]),
128
- default: n(() => [
129
- u(L, {
130
- ref_key: "multipleTableRef",
131
- ref: V,
132
- "row-key": "invoiceId",
133
- "list-loading": l(S),
134
- data: l(j),
135
- "table-label": l(c),
136
- onSelectionChange: R,
137
- onSortChange: x
138
- }, {
139
- invoiceType: n((e) => [
140
- K("span", null, v(l(W).invoiceTypeDictEnum.getEnumValue(e.data.row.invoiceType)), 1)
141
- ]),
142
- operation: n((e) => [
143
- f((r(), y("span", {
144
- class: "el-button-color",
145
- onClick: (q) => P(e.data.row)
146
- }, [
147
- h(v(t.$t("common.edit")), 1)
148
- ], 8, Y)), [
149
- [_, ["itsmsys:sys_org_invoice:update"]]
150
- ]),
151
- f((r(), y("span", {
152
- class: "el-button-color dropdown-left",
153
- onClick: (q) => l(s).deleteRecord(e.data.row)
154
- }, [
155
- h(v(t.$t("common.delete")), 1)
156
- ], 8, Z)), [
157
- [_, ["itsmsys:sys_org_invoice:delete"]]
158
- ])
159
- ]),
160
- _: 1
161
- }, 8, ["list-loading", "data", "table-label"])
162
- ]),
163
- _: 1
164
- }),
165
- i.value.visible ? (r(), k(Q, {
166
- key: 0,
167
- modelValue: i.value.visible,
168
- "onUpdate:modelValue": o[5] || (o[5] = (e) => i.value.visible = e),
169
- title: i.value.title,
170
- "entity-key": l(b),
171
- onRefresh: O,
172
- width: "700px"
173
- }, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
174
- ]);
175
- };
176
- }
177
- });
178
- export {
179
- re as _
180
- };