xyvcard-itsmsys 0.0.4 → 0.0.6

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 (37) hide show
  1. package/dist/{edit-CkaU_6vk.mjs → edit-BNe0hNw4.mjs} +11 -10
  2. package/dist/{edit-D82hX9if.mjs → edit-BqPZHwxi.mjs} +1 -1
  3. package/dist/{edit-CIm8Y0Be.mjs → edit-CwV1OVfe.mjs} +1 -1
  4. package/dist/{edit-BhRXuYku.mjs → edit-CyM6IuLb.mjs} +30 -29
  5. package/dist/{edit-DPM0jGQT.mjs → edit-DG_Iw1-J.mjs} +1 -1
  6. package/dist/{edit-DZJU5ZPt.mjs → edit-DdUUCXSa.mjs} +1 -1
  7. package/dist/{edit-CWVYUzgf.mjs → edit-RSO388mB.mjs} +10 -9
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs → edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs} +13 -12
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs → edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs} +36 -35
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs → edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs → edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs} +21 -20
  12. package/dist/index-B6vJj_z6.mjs +74 -0
  13. package/dist/{index-CogdeN09.mjs → index-CI8Z4rNf.mjs} +101 -122
  14. package/dist/{index-B_cot8iN.mjs → index-CMBtB1kH.mjs} +126 -133
  15. package/dist/{index-BkHGzL0R.mjs → index-CNGaGeE7.mjs} +130 -137
  16. package/dist/{index-ChTssr8-.mjs → index-CQ5Bo5a2.mjs} +30 -18
  17. package/dist/{index-C6KvLUoL.mjs → index-DirPUdCN.mjs} +1 -1
  18. package/dist/{index-ClU157bA.mjs → index-DxILUznW.mjs} +113 -127
  19. package/dist/index-NugT80P7.mjs +364 -0
  20. package/dist/{index-CEUyLrKg.mjs → index-w2SWNZRB.mjs} +101 -108
  21. package/dist/index.mjs +20 -20
  22. package/dist/index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs +191 -0
  23. package/dist/{info-Z5LuCRmr.mjs → info-BFZTqoY3.mjs} +2 -2
  24. package/dist/{info-BWgVN2mJ.mjs → info-C0OHjgoS.mjs} +1 -1
  25. package/dist/{info-MYJGcyMX.mjs → info-CXx2899k.mjs} +1 -1
  26. package/dist/{info-Kf11Ye-N.mjs → info-DReeRuaA.mjs} +2 -2
  27. package/dist/{info-70H0sycC.mjs → info-Dilg-bji.mjs} +2 -2
  28. package/dist/{info-CE-ZnFj5.mjs → info-DvYUiSRY.mjs} +1 -1
  29. package/dts/src/api/itsm-sys-org/index.d.ts +1 -1
  30. package/dts/src/api/itsm-sys-org/types.d.ts +0 -3
  31. package/dts/src/api/itsm-sys-org-invoice/index.d.ts +1 -0
  32. package/dts/src/api/itsm-sys-org-invoice/types.d.ts +5 -1
  33. package/dts/src/constant.d.ts +9 -1
  34. package/package.json +1 -1
  35. package/dist/index-DOXuGEyW.mjs +0 -62
  36. package/dist/index-i7X9N_rj.mjs +0 -341
  37. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +0 -180
@@ -0,0 +1,191 @@
1
+ import { defineComponent as A, ref as k, reactive as T, resolveComponent as s, resolveDirective as H, openBlock as r, createElementBlock as C, createVNode as m, withCtx as n, withDirectives as y, createBlock as _, createTextVNode as g, toDisplayString as d, unref as l, isRef as N, createCommentVNode as I, 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-B6vJj_z6.mjs";
6
+ import { _ as Q } from "./edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs";
7
+ import { D as W } from "./index-CQ5Bo5a2.mjs";
8
+ const X = { class: "app-container" }, Y = ["onClick"], Z = ["onClick"], re = /* @__PURE__ */ A({
9
+ __name: "index",
10
+ setup(ee) {
11
+ const { t: p } = G(), V = J(), u = k({
12
+ orgId: V.query.entityKey
13
+ }), { tableHooks: a, multipleTableRef: D, listLoading: S, tableData: j, total: v } = F(p, M, u);
14
+ let c = k([
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 = k({
54
+ title: p("common.edit"),
55
+ visible: !1
56
+ });
57
+ let f = T({});
58
+ function R() {
59
+ f = T({}), i.value.title = p("common.add"), i.value.visible = !0;
60
+ }
61
+ function $(o) {
62
+ f.invoiceId = o.invoiceId, i.value.title = p("common.edit"), i.value.visible = !0;
63
+ }
64
+ function P(o) {
65
+ a.selectionRows.value = o;
66
+ }
67
+ function O(o) {
68
+ a.handleSort(o.prop, o.order);
69
+ }
70
+ function x(o) {
71
+ o && a.getList();
72
+ }
73
+ return a.getList(), (o, t) => {
74
+ const h = s("el-button"), w = s("el-col"), z = s("jmash-column-select"), E = s("el-row"), L = s("jmash-table"), U = s("jmash-pagination"), B = s("el-card"), b = H("hasPerm");
75
+ return r(), C("div", X, [
76
+ m(B, {
77
+ shadow: "never",
78
+ class: "table-container"
79
+ }, {
80
+ header: n(() => [
81
+ m(E, null, {
82
+ default: n(() => [
83
+ m(w, { span: 17 }, {
84
+ default: n(() => [
85
+ y((r(), _(h, {
86
+ type: "primary",
87
+ onClick: R
88
+ }, {
89
+ default: n(() => [
90
+ g(d(o.$t("common.add")), 1)
91
+ ]),
92
+ _: 1
93
+ })), [
94
+ [b, ["itsmsys:sys_org_invoice:add"]]
95
+ ]),
96
+ y((r(), _(h, {
97
+ type: "primary",
98
+ onClick: t[0] || (t[0] = (e) => l(a).deleteRecords())
99
+ }, {
100
+ default: n(() => [
101
+ g(d(o.$t("common.batchDelete")), 1)
102
+ ]),
103
+ _: 1
104
+ })), [
105
+ [b, ["itsmsys:sys_org_invoice:delete"]]
106
+ ])
107
+ ]),
108
+ _: 1
109
+ }),
110
+ m(w, {
111
+ span: 7,
112
+ class: "container-float"
113
+ }, {
114
+ default: n(() => [
115
+ m(z, {
116
+ modelValue: l(c),
117
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => N(c) ? c.value = e : c = e),
118
+ "label-name": "jobs/job-trigger"
119
+ }, null, 8, ["modelValue"])
120
+ ]),
121
+ _: 1
122
+ })
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ footer: n(() => [
128
+ l(v) > 0 ? (r(), _(U, {
129
+ key: 0,
130
+ total: l(v),
131
+ "onUpdate:total": t[2] || (t[2] = (e) => N(v) ? v.value = e : null),
132
+ "current-page": u.value.curPage,
133
+ "onUpdate:currentPage": t[3] || (t[3] = (e) => u.value.curPage = e),
134
+ "page-size": u.value.pageSize,
135
+ "onUpdate:pageSize": t[4] || (t[4] = (e) => u.value.pageSize = e),
136
+ onPagination: t[5] || (t[5] = (e) => l(a).getList())
137
+ }, null, 8, ["total", "current-page", "page-size"])) : I("", !0)
138
+ ]),
139
+ default: n(() => [
140
+ m(L, {
141
+ ref_key: "multipleTableRef",
142
+ ref: D,
143
+ "row-key": "invoiceId",
144
+ "list-loading": l(S),
145
+ data: l(j),
146
+ "table-label": l(c),
147
+ onSelectionChange: P,
148
+ onSortChange: O
149
+ }, {
150
+ invoiceType: n((e) => [
151
+ K("span", null, d(l(W).invoiceTypeDictEnum.getEnumValue(e.data.row.invoiceType)), 1)
152
+ ]),
153
+ operation: n((e) => [
154
+ y((r(), C("span", {
155
+ class: "el-button-color",
156
+ onClick: (q) => $(e.data.row)
157
+ }, [
158
+ g(d(o.$t("common.edit")), 1)
159
+ ], 8, Y)), [
160
+ [b, ["itsmsys:sys_org_invoice:update"]]
161
+ ]),
162
+ y((r(), C("span", {
163
+ class: "el-button-color dropdown-left",
164
+ onClick: (q) => l(a).deleteRecord(e.data.row)
165
+ }, [
166
+ g(d(o.$t("common.delete")), 1)
167
+ ], 8, Z)), [
168
+ [b, ["itsmsys:sys_org_invoice:delete"]]
169
+ ])
170
+ ]),
171
+ _: 1
172
+ }, 8, ["list-loading", "data", "table-label"])
173
+ ]),
174
+ _: 1
175
+ }),
176
+ i.value.visible ? (r(), _(Q, {
177
+ key: 0,
178
+ modelValue: i.value.visible,
179
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => i.value.visible = e),
180
+ title: i.value.title,
181
+ "entity-key": l(f),
182
+ onRefresh: x,
183
+ width: "700px"
184
+ }, null, 8, ["modelValue", "title", "entity-key"])) : I("", !0)
185
+ ]);
186
+ };
187
+ }
188
+ });
189
+ export {
190
+ re as _
191
+ };
@@ -2,8 +2,8 @@ import { defineComponent as C, ref as p, onBeforeMount as B, resolveComponent as
2
2
  import { useRouter as j, useRoute as q } from "vue-router";
3
3
  import { routerUtil as A } from "jmash-core";
4
4
  import { sysOrgApi as R } from "./index.mjs";
5
- import { s as S } from "./index-DOXuGEyW.mjs";
6
- import { D as g } from "./index-ChTssr8-.mjs";
5
+ import { s as S } from "./index-B6vJj_z6.mjs";
6
+ import { D as g } from "./index-CQ5Bo5a2.mjs";
7
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
8
  __name: "info",
9
9
  setup(K) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as D, getCurrentInstance as N, ref as c, onBeforeMount as U, resolveComponent as u, openBlock as j, createElementBlock as B, createVNode as s, withCtx as e, createTextVNode as r, toDisplayString as o, createElementVNode as l, unref as d } from "vue";
2
2
  import { useRouter as V, useRoute as C } from "vue-router";
3
- import { D as p } from "./index-ChTssr8-.mjs";
3
+ import { D as p } from "./index-CQ5Bo5a2.mjs";
4
4
  import { routerUtil as T } from "jmash-core";
5
5
  import { deptApi as k, jobApi as w } from "jmash-rbac";
6
6
  import { sysUserExtApi as S } from "./index.mjs";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as $, getCurrentInstance as D, ref as f, onBeforeMount as U, resolveComponent as d, openBlock as O, createElementBlock as T, createVNode as s, withCtx as e, createTextVNode as a, toDisplayString as l, createElementVNode as t, unref as u } from "vue";
2
2
  import { useRouter as V, useRoute as B } from "vue-router";
3
- import { D as m } from "./index-ChTssr8-.mjs";
3
+ import { D as m } from "./index-CQ5Bo5a2.mjs";
4
4
  import { routerUtil as C } from "jmash-core";
5
5
  import { sysUserExtApi as M } from "./index.mjs";
6
6
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -2,8 +2,8 @@ import { defineComponent as C, ref as p, onBeforeMount as G, resolveComponent as
2
2
  import { useRouter as M, useRoute as j } from "vue-router";
3
3
  import { routerUtil as q } from "jmash-core";
4
4
  import { sysOrgApi as A } from "./index.mjs";
5
- import { s as R } from "./index-DOXuGEyW.mjs";
6
- import { D as g } from "./index-ChTssr8-.mjs";
5
+ import { s as R } from "./index-B6vJj_z6.mjs";
6
+ import { D as g } from "./index-CQ5Bo5a2.mjs";
7
7
  const S = { class: "app-container" }, U = { class: "cell-item" }, L = { class: "cell-item" }, z = { class: "cell-item" }, F = { class: "cell-item" }, H = { class: "cell-item" }, J = { class: "cell-item" }, ee = /* @__PURE__ */ C({
8
8
  __name: "info",
9
9
  setup(K) {
@@ -2,8 +2,8 @@ import { defineComponent as C, ref as p, onBeforeMount as B, resolveComponent as
2
2
  import { useRouter as j, useRoute as q } from "vue-router";
3
3
  import { routerUtil as A } from "jmash-core";
4
4
  import { sysOrgApi as R } from "./index.mjs";
5
- import { s as S } from "./index-DOXuGEyW.mjs";
6
- import { D as g } from "./index-ChTssr8-.mjs";
5
+ import { s as S } from "./index-B6vJj_z6.mjs";
6
+ import { D as g } from "./index-CQ5Bo5a2.mjs";
7
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
8
  __name: "info",
9
9
  setup(K) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as $, getCurrentInstance as D, ref as f, onBeforeMount as U, resolveComponent as d, openBlock as O, createElementBlock as T, createVNode as s, withCtx as e, createTextVNode as a, toDisplayString as t, createElementVNode as o, unref as u } from "vue";
2
2
  import { useRouter as V, useRoute as B } from "vue-router";
3
- import { D as m } from "./index-ChTssr8-.mjs";
3
+ import { D as m } from "./index-CQ5Bo5a2.mjs";
4
4
  import { routerUtil as C } from "jmash-core";
5
5
  import { sysUserExtApi as M } from "./index.mjs";
6
6
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -4,7 +4,7 @@ declare class SysOrgApiImpl implements SysOrgApi {
4
4
  getKey(model: SysOrgModel): SysOrgKey;
5
5
  findPage(query?: SysOrgReq): AxiosPromise<SysOrgPage>;
6
6
  findList(query?: SysOrgReq): AxiosPromise<SysOrgList>;
7
- findTreeList(query?: SysOrgReq): AxiosPromise<SysOrgList>;
7
+ findOutSourceList(query?: SysOrgReq): AxiosPromise<SysOrgList>;
8
8
  findById(query: SysOrgKey): AxiosPromise<SysOrgModel>;
9
9
  create(data: SysOrgCreateReq): AxiosPromise<SysOrgModel>;
10
10
  update(data: SysOrgUpdateReq): AxiosPromise<SysOrgModel>;
@@ -3,13 +3,10 @@ export interface SysOrgApi extends EntityApi {
3
3
  }
4
4
  export interface SysOrgReq extends EntityReq {
5
5
  likeOrgName?: string;
6
- contactPerson?: string;
7
6
  status?: boolean;
8
7
  hasStatus?: boolean;
9
8
  orgType?: string;
10
9
  hasOrgType?: boolean;
11
- depth?: string;
12
- hasDepth?: boolean;
13
10
  }
14
11
  export interface SysOrgModel extends EntityModel {
15
12
  orgId?: string;
@@ -8,6 +8,7 @@ declare class SysOrgInvoiceApiImpl implements SysOrgInvoiceApi {
8
8
  create(data: SysOrgInvoiceCreateReq): AxiosPromise<SysOrgInvoiceModel>;
9
9
  update(data: SysOrgInvoiceUpdateReq): AxiosPromise<SysOrgInvoiceModel>;
10
10
  delete(query: SysOrgInvoiceKey): AxiosPromise<SysOrgInvoiceModel>;
11
+ batchDelete(keys: SysOrgInvoiceKey[]): AxiosPromise<number>;
11
12
  }
12
13
  declare const sysOrgInvoiceApi: SysOrgInvoiceApiImpl;
13
14
  export { sysOrgInvoiceApi };
@@ -1,4 +1,4 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityCreateReq, EntityUpdateReq } from "jmash-core";
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityCreateReq, EntityUpdateReq, EntityKeyList } from "jmash-core";
2
2
  export interface SysOrgInvoiceApi extends EntityApi {
3
3
  }
4
4
  export interface SysOrgInvoiceReq extends EntityReq {
@@ -28,6 +28,10 @@ export interface SysOrgInvoiceKey extends EntityKey {
28
28
  tenant?: string;
29
29
  invoiceId?: string;
30
30
  }
31
+ export interface SysOrgInvoiceKeyList extends EntityKeyList {
32
+ tenant?: string;
33
+ invoiceId?: Array<string>;
34
+ }
31
35
  export interface SysOrgInvoiceCreateReq extends EntityCreateReq {
32
36
  invoiceId?: string;
33
37
  orgId?: string;
@@ -21,5 +21,13 @@ export declare class Constant {
21
21
  hall: string;
22
22
  outsource: string;
23
23
  };
24
- static readonly depth = "0";
24
+ static readonly jobStatus: {
25
+ working: string;
26
+ leave: string;
27
+ };
28
+ static readonly userType: {
29
+ companyManager: string;
30
+ companyOps: string;
31
+ outsourceOps: string;
32
+ };
25
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-itsmsys",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -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
- };