xyvcard-itsmsys 0.0.3 → 0.0.5

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 (70) hide show
  1. package/dist/common-B2PCBCJ2.mjs +13 -0
  2. package/dist/edit-BhRXuYku.mjs +342 -0
  3. package/dist/edit-CIm8Y0Be.mjs +4 -0
  4. package/dist/edit-CWVYUzgf.mjs +369 -0
  5. package/dist/edit-D82hX9if.mjs +4 -0
  6. package/dist/edit-DLAiwJjs.mjs +342 -0
  7. package/dist/edit-DPM0jGQT.mjs +4 -0
  8. package/dist/edit-DZJU5ZPt.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
  11. package/dist/{invoiceEdit-Chsj8_aC.mjs → edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs} +58 -63
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
  13. package/dist/{index-CUjT3FVb.mjs → index-BQRtMgmZ.mjs} +106 -117
  14. package/dist/index-B_cot8iN.mjs +439 -0
  15. package/dist/index-BkHGzL0R.mjs +358 -0
  16. package/dist/index-C6KvLUoL.mjs +4 -0
  17. package/dist/index-CEUyLrKg.mjs +404 -0
  18. package/dist/index-ChTssr8-.mjs +123 -0
  19. package/dist/{index-B02UvpyC.mjs → index-ClU157bA.mjs} +103 -113
  20. package/dist/{index-Cskg0LGf.mjs → index-CogdeN09.mjs} +101 -111
  21. package/dist/index.mjs +2765 -126
  22. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
  23. package/dist/info-70H0sycC.mjs +187 -0
  24. package/dist/info-BWgVN2mJ.mjs +176 -0
  25. package/dist/info-CE-ZnFj5.mjs +179 -0
  26. package/dist/info-Kf11Ye-N.mjs +187 -0
  27. package/dist/info-MYJGcyMX.mjs +179 -0
  28. package/dist/info-Z5LuCRmr.mjs +187 -0
  29. package/dist/style.css +1 -1
  30. package/dts/src/api/dict.d.ts +4 -1
  31. package/dts/src/api/index.d.ts +4 -1
  32. package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
  33. package/dts/src/api/itsm-sys-org/types.d.ts +2 -2
  34. package/dts/src/api/itsm-sys-user-ext/types.d.ts +18 -3
  35. package/dts/src/constant.d.ts +7 -0
  36. package/dts/src/lang/itsmsys/zh-cn.d.ts +27 -11
  37. package/dts/src/router/index.d.ts +6 -4
  38. package/dts/src/utils/common.d.ts +1 -0
  39. package/dts/src/utils/momentPlugin.d.ts +5 -0
  40. package/dts/src/views/itsmsys/{itsm-sys-gov/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
  41. package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
  42. package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
  43. package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-user-out/edit.vue.d.ts} +6 -15
  44. package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
  45. package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
  46. package/package.json +3 -3
  47. package/dist/edit-BeMy_aOl.mjs +0 -548
  48. package/dist/edit-BhXrnHr7.mjs +0 -520
  49. package/dist/edit-BsLAy2-H.mjs +0 -276
  50. package/dist/edit-D7n1rZY2.mjs +0 -240
  51. package/dist/edit-l4-w6Psd.mjs +0 -520
  52. package/dist/index-Bw3EuEs9.mjs +0 -345
  53. package/dist/index-COPul57Z.mjs +0 -84
  54. package/dist/index-CRlIL96y.mjs +0 -334
  55. package/dist/info-7Rre3Mm0.mjs +0 -198
  56. package/dist/info-CYKiOMB6.mjs +0 -198
  57. package/dist/info-Dub2j7gN.mjs +0 -198
  58. package/dist/info-O3dKVGmT.mjs +0 -10
  59. package/dist/invoiceEdit-C5dQG8ZJ.mjs +0 -253
  60. package/dist/invoiceEdit-DuSCNiDz.mjs +0 -253
  61. package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
  62. package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
  63. package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
  64. package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
  65. package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +0 -31
  66. /package/dts/src/views/{itsmsys-user/itsm-sys-user-man → itsmsys/itsm-sys-org-invoice}/index.vue.d.ts +0 -0
  67. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/edit.vue.d.ts +0 -0
  68. /package/dts/src/views/{itsmsys-user/itsm-sys-user-ops → itsmsys/itsm-sys-user-man}/index.vue.d.ts +0 -0
  69. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/info.vue.d.ts +0 -0
  70. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-ops/edit.vue.d.ts +0 -0
@@ -1,253 +0,0 @@
1
- import { defineComponent as j, mergeModels as k, ref as V, useModel as D, reactive as O, resolveComponent as m, openBlock as E, createBlock as K, withCtx as o, createElementVNode as B, createVNode as e, createTextVNode as h, toDisplayString as T, unref as r } from "vue";
2
- import { ElMessage as q } from "element-plus";
3
- import { useI18n as S } from "vue-i18n";
4
- import { s as v } from "./index-DOXuGEyW.mjs";
5
- import { D as F } from "./index-COPul57Z.mjs";
6
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const G = { class: "dialog-footer" }, L = /* @__PURE__ */ j({
8
- __name: "invoiceEdit",
9
- props: /* @__PURE__ */ k({
10
- // 厅局单位信息ID(orgId)
11
- orgKey: {
12
- type: String,
13
- default: () => ""
14
- },
15
- // 发票信息主键ID
16
- invoiceKey: {
17
- type: Object,
18
- default: () => {
19
- }
20
- }
21
- }, {
22
- modelValue: { type: Boolean },
23
- modelModifiers: {}
24
- }),
25
- emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
26
- setup(f, { emit: w }) {
27
- const { t: s } = S(), g = V(), u = D(f, "modelValue"), y = w;
28
- let a = O({
29
- requestId: Math.random() * 10 + "",
30
- updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber"
31
- });
32
- const R = O({
33
- invoiceType: [
34
- {
35
- required: !0,
36
- message: s("sysOrgInvoice.invoiceTypeRequired"),
37
- trigger: "blur"
38
- }
39
- ],
40
- invoiceTitle: [
41
- {
42
- required: !0,
43
- message: s("sysOrgInvoice.invoiceTitleRequired"),
44
- trigger: "blur"
45
- }
46
- ],
47
- taxNumber: [
48
- {
49
- required: !0,
50
- message: s("sysOrgInvoice.taxNumberRequired"),
51
- trigger: "blur"
52
- }
53
- ],
54
- bankName: [
55
- {
56
- required: !0,
57
- message: s("sysOrgInvoice.bankNameRequired"),
58
- trigger: "blur"
59
- }
60
- ],
61
- backNumber: [
62
- {
63
- required: !0,
64
- message: s("sysOrgInvoice.backNumberRequired"),
65
- trigger: "blur"
66
- },
67
- {
68
- min: 16,
69
- max: 20,
70
- message: s("sysOrgInvoice.backNumberLengthRequired"),
71
- trigger: "blur"
72
- }
73
- ]
74
- }), b = f, $ = Object.keys(b.invoiceKey), N = V($.length >= 1);
75
- N.value && v.findById({ invoiceId: b.invoiceKey.invoiceId }).then(({ data: l }) => {
76
- Object.assign(a, l);
77
- });
78
- const x = async () => {
79
- var l;
80
- await ((l = g.value) == null ? void 0 : l.validate((t) => {
81
- t && (a.orgId = b.orgKey, N.value ? v.update(a).then((n) => {
82
- console.log(n), n.status === 200 && (q({
83
- message: s("common.submitSuccess"),
84
- type: "success"
85
- }), u.value && (u.value = !1), y("refresh", n.status === 200));
86
- }) : v.create(a).then((n) => {
87
- console.log(n), n.status === 200 && (q({
88
- message: s("common.submitSuccess"),
89
- type: "success"
90
- }), u.value && (u.value = !1), y("refresh", n.status === 200));
91
- }));
92
- }));
93
- };
94
- function _() {
95
- u.value && (u.value = !1);
96
- }
97
- return (l, t) => {
98
- const n = m("jmash-select"), d = m("el-form-item"), c = m("el-col"), p = m("el-input"), C = m("el-row"), M = m("el-form"), I = m("el-button"), U = m("el-dialog");
99
- return E(), K(U, {
100
- modelValue: u.value,
101
- "onUpdate:modelValue": t[5] || (t[5] = (i) => u.value = i),
102
- onClose: _
103
- }, {
104
- footer: o(() => [
105
- B("div", G, [
106
- e(I, { onClick: _ }, {
107
- default: o(() => [
108
- h(T(l.$t("common.cancel")), 1)
109
- ]),
110
- _: 1
111
- }),
112
- e(I, {
113
- type: "primary",
114
- onClick: x
115
- }, {
116
- default: o(() => [
117
- h(T(l.$t("common.confirm")), 1)
118
- ]),
119
- _: 1
120
- })
121
- ])
122
- ]),
123
- default: o(() => [
124
- e(M, {
125
- ref_key: "sysOrgInvoiceFormRef",
126
- ref: g,
127
- model: r(a),
128
- "label-width": "100px",
129
- rules: R
130
- }, {
131
- default: o(() => [
132
- e(C, null, {
133
- default: o(() => [
134
- e(c, { span: 24 }, {
135
- default: o(() => [
136
- e(d, {
137
- label: l.$t("sysOrgInvoice.invoiceType"),
138
- prop: "invoiceType"
139
- }, {
140
- default: o(() => [
141
- e(n, {
142
- modelValue: r(a).invoiceType,
143
- "onUpdate:modelValue": t[0] || (t[0] = (i) => r(a).invoiceType = i),
144
- placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
145
- data: r(F).invoiceTypeDictEnum.values,
146
- class: "w-full",
147
- clearable: ""
148
- }, null, 8, ["modelValue", "placeholder", "data"])
149
- ]),
150
- _: 1
151
- }, 8, ["label"])
152
- ]),
153
- _: 1
154
- }),
155
- e(c, { span: 24 }, {
156
- default: o(() => [
157
- e(d, {
158
- label: l.$t("sysOrgInvoice.invoiceTitle"),
159
- prop: "invoiceTitle"
160
- }, {
161
- default: o(() => [
162
- e(p, {
163
- modelValue: r(a).invoiceTitle,
164
- "onUpdate:modelValue": t[1] || (t[1] = (i) => r(a).invoiceTitle = i),
165
- placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
166
- maxlength: "50",
167
- "show-word-limit": "",
168
- clearable: ""
169
- }, null, 8, ["modelValue", "placeholder"])
170
- ]),
171
- _: 1
172
- }, 8, ["label"])
173
- ]),
174
- _: 1
175
- }),
176
- e(c, { span: 24 }, {
177
- default: o(() => [
178
- e(d, {
179
- label: l.$t("sysOrgInvoice.taxNumber"),
180
- prop: "taxNumber"
181
- }, {
182
- default: o(() => [
183
- e(p, {
184
- modelValue: r(a).taxNumber,
185
- "onUpdate:modelValue": t[2] || (t[2] = (i) => r(a).taxNumber = i),
186
- placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
187
- maxlength: "50",
188
- "show-word-limit": "",
189
- clearable: ""
190
- }, null, 8, ["modelValue", "placeholder"])
191
- ]),
192
- _: 1
193
- }, 8, ["label"])
194
- ]),
195
- _: 1
196
- }),
197
- e(c, { span: 24 }, {
198
- default: o(() => [
199
- e(d, {
200
- label: l.$t("sysOrgInvoice.bankName"),
201
- prop: "bankName"
202
- }, {
203
- default: o(() => [
204
- e(p, {
205
- modelValue: r(a).bankName,
206
- "onUpdate:modelValue": t[3] || (t[3] = (i) => r(a).bankName = i),
207
- placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
208
- maxlength: "50",
209
- "show-word-limit": "",
210
- clearable: ""
211
- }, null, 8, ["modelValue", "placeholder"])
212
- ]),
213
- _: 1
214
- }, 8, ["label"])
215
- ]),
216
- _: 1
217
- }),
218
- e(c, { span: 24 }, {
219
- default: o(() => [
220
- e(d, {
221
- label: l.$t("sysOrgInvoice.backNumber"),
222
- prop: "backNumber"
223
- }, {
224
- default: o(() => [
225
- e(p, {
226
- modelValue: r(a).backNumber,
227
- "onUpdate:modelValue": t[4] || (t[4] = (i) => r(a).backNumber = i),
228
- placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
229
- maxlength: "20",
230
- "show-word-limit": "",
231
- clearable: ""
232
- }, null, 8, ["modelValue", "placeholder"])
233
- ]),
234
- _: 1
235
- }, 8, ["label"])
236
- ]),
237
- _: 1
238
- })
239
- ]),
240
- _: 1
241
- })
242
- ]),
243
- _: 1
244
- }, 8, ["model", "rules"])
245
- ]),
246
- _: 1
247
- }, 8, ["modelValue"]);
248
- };
249
- }
250
- }), X = /* @__PURE__ */ A(L, [["__scopeId", "data-v-e1b8df7e"]]);
251
- export {
252
- X as default
253
- };
@@ -1,15 +0,0 @@
1
- import type { AxiosPromise } from "axios";
2
- import type { SysGovApi, SysGovReq, SysGovModel, SysGovList, SysGovKey, SysGovCreateReq, SysGovUpdateReq } from "./types";
3
- declare class SysGovApiImpl implements SysGovApi {
4
- getKey(model: SysGovModel): SysGovKey;
5
- findList(query?: SysGovReq): AxiosPromise<SysGovList>;
6
- findById(query: SysGovKey): AxiosPromise<SysGovModel>;
7
- create(data: SysGovCreateReq): AxiosPromise<SysGovModel>;
8
- update(data: SysGovUpdateReq): AxiosPromise<SysGovModel>;
9
- move(key: SysGovKey, up: boolean): AxiosPromise<boolean>;
10
- enable(key: SysGovKey, enable: boolean): AxiosPromise<boolean>;
11
- delete(query: SysGovKey): AxiosPromise<SysGovModel>;
12
- batchDelete(keys: SysGovKey[]): AxiosPromise<number>;
13
- }
14
- declare const sysGovApi: SysGovApiImpl;
15
- export { sysGovApi };
@@ -1,87 +0,0 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
- export interface SysGovApi extends EntityApi {
3
- }
4
- export interface SysGovReq extends EntityReq {
5
- shortName?: string;
6
- contactPerson?: string;
7
- status?: boolean;
8
- hasStatus?: boolean;
9
- orgType?: string;
10
- hasOrgType?: boolean;
11
- }
12
- export interface SysGovModel extends EntityModel {
13
- orgId?: string;
14
- orgName?: string;
15
- shortName?: string;
16
- orgType?: string;
17
- address?: string;
18
- geoLongitude?: string;
19
- geoLatitude?: string;
20
- contactPerson?: string;
21
- contactPersonPosi?: string;
22
- contactPersonMobile?: string;
23
- contactPersonMobileIns?: string;
24
- contactPersonTel?: string;
25
- status?: boolean;
26
- parentId?: string;
27
- depth?: string;
28
- orderBy?: string;
29
- }
30
- export interface SysGovList extends EntityList {
31
- results: Array<SysGovModel>;
32
- }
33
- export interface SysGovKey extends EntityKey {
34
- tenant?: string;
35
- orgId?: string;
36
- }
37
- export interface SysGovKeyList extends EntityKeyList {
38
- tenant?: string;
39
- orgId?: Array<string>;
40
- }
41
- export interface SysGovCreateReq extends EntityCreateReq {
42
- orgId?: string;
43
- orgName?: string;
44
- shortName?: string;
45
- orgType?: string;
46
- address?: string;
47
- geoLongitude?: string;
48
- geoLatitude?: string;
49
- contactPerson?: string;
50
- contactPersonPosi?: string;
51
- contactPersonMobile?: string;
52
- contactPersonMobileIns?: string;
53
- contactPersonTel?: string;
54
- status?: boolean;
55
- parentId?: string;
56
- depth?: string;
57
- orderBy?: string;
58
- }
59
- export interface SysGovUpdateReq extends EntityUpdateReq {
60
- orgId?: string;
61
- orgName?: string;
62
- shortName?: string;
63
- orgType?: string;
64
- address?: string;
65
- geoLongitude?: string;
66
- geoLatitude?: string;
67
- contactPerson?: string;
68
- contactPersonPosi?: string;
69
- contactPersonMobile?: string;
70
- contactPersonMobileIns?: string;
71
- contactPersonTel?: string;
72
- status?: boolean;
73
- parentId?: string;
74
- depth?: string;
75
- orderBy?: string;
76
- }
77
- export type SysGovFormReq = SysGovCreateReq | SysGovUpdateReq;
78
- export interface SysGovMoveKey {
79
- tenant?: string;
80
- orgId?: string;
81
- up?: boolean;
82
- }
83
- export interface SysGovEnableKey {
84
- tenant?: string;
85
- orgId?: string;
86
- enable?: boolean;
87
- }
@@ -1,13 +0,0 @@
1
- import type { AxiosPromise } from "axios";
2
- import type { SysGovInvoiceApi, SysGovInvoiceReq, SysGovInvoiceModel, SysGovInvoicePage, SysGovInvoiceList, SysGovInvoiceKey, SysGovInvoiceCreateReq, SysGovInvoiceUpdateReq } from "./types";
3
- declare class SysGovInvoiceApiImpl implements SysGovInvoiceApi {
4
- getKey(model: SysGovInvoiceModel): SysGovInvoiceKey;
5
- findPage(query?: SysGovInvoiceReq): AxiosPromise<SysGovInvoicePage>;
6
- findList(query?: SysGovInvoiceReq): AxiosPromise<SysGovInvoiceList>;
7
- findById(query: SysGovInvoiceKey): AxiosPromise<SysGovInvoiceModel>;
8
- create(data: SysGovInvoiceCreateReq): AxiosPromise<SysGovInvoiceModel>;
9
- update(data: SysGovInvoiceUpdateReq): AxiosPromise<SysGovInvoiceModel>;
10
- delete(query: SysGovInvoiceKey): AxiosPromise<SysGovInvoiceModel>;
11
- }
12
- declare const sysGovInvoiceApi: SysGovInvoiceApiImpl;
13
- export { sysGovInvoiceApi };
@@ -1,48 +0,0 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
- export interface SysGovInvoiceApi extends EntityApi {
3
- }
4
- export interface SysGovInvoiceReq extends EntityReq {
5
- }
6
- export interface SysGovInvoiceModel extends EntityModel {
7
- invoiceId?: string;
8
- orgId?: string;
9
- invoiceType?: string;
10
- invoiceTitle?: string;
11
- taxNumber?: string;
12
- bankName?: string;
13
- backNumber?: string;
14
- }
15
- export interface SysGovInvoiceList extends EntityList {
16
- results: Array<SysGovInvoiceModel>;
17
- }
18
- export interface SysGovInvoicePage extends EntityPage {
19
- results: Array<SysGovInvoiceModel>;
20
- subTotalDto: SysGovInvoiceModelTotal;
21
- totalDto: SysGovInvoiceModelTotal;
22
- }
23
- export interface SysGovInvoiceModelTotal extends EntityTotal {
24
- totalSize: number;
25
- }
26
- export interface SysGovInvoiceKey extends EntityKey {
27
- tenant?: string;
28
- invoiceId?: string;
29
- }
30
- export interface SysGovInvoiceCreateReq extends EntityCreateReq {
31
- invoiceId?: string;
32
- orgId?: string;
33
- invoiceType?: string;
34
- invoiceTitle?: string;
35
- taxNumber?: string;
36
- bankName?: string;
37
- backNumber?: string;
38
- }
39
- export interface SysGovInvoiceUpdateReq extends EntityUpdateReq {
40
- invoiceId?: string;
41
- orgId?: string;
42
- invoiceType?: string;
43
- invoiceTitle?: string;
44
- taxNumber?: string;
45
- bankName?: string;
46
- backNumber?: string;
47
- }
48
- export type SysGovInvoiceFormReq = SysGovInvoiceCreateReq | SysGovInvoiceUpdateReq;
@@ -1,31 +0,0 @@
1
- import { type PropType } from "vue";
2
- import type { SysOrgInvoiceKey } from "@/api/itsm-sys-org-invoice/types";
3
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: PropType<boolean>;
5
- orgKey: {
6
- type: StringConstructor;
7
- default: () => string;
8
- };
9
- invoiceKey: {
10
- type: PropType<SysOrgInvoiceKey>;
11
- default: () => void;
12
- };
13
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- refresh: (...args: any[]) => void;
15
- }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
16
- modelValue: PropType<boolean>;
17
- orgKey: {
18
- type: StringConstructor;
19
- default: () => string;
20
- };
21
- invoiceKey: {
22
- type: PropType<SysOrgInvoiceKey>;
23
- default: () => void;
24
- };
25
- }>> & Readonly<{
26
- onRefresh?: ((...args: any[]) => any) | undefined;
27
- }>, {
28
- orgKey: string;
29
- invoiceKey: SysOrgInvoiceKey;
30
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
- export default _default;