xyvcard-itsmsys 0.0.18 → 0.0.19
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.
- package/README.md +51 -51
- package/dist/{edit-C1zg8B0y.mjs → edit-BrHOGUbU.mjs} +1 -1
- package/dist/{edit-Cs3KIwaz.mjs → edit-CNEVornb.mjs} +100 -100
- package/dist/{edit-CxRGbAP_.mjs → edit-COKceKzl.mjs} +87 -87
- package/dist/{edit-DLN1WFrt.mjs → edit-Czi-Vkbf.mjs} +1 -1
- package/dist/{edit-CNFS8ehW.mjs → edit-DYqAdRsK.mjs} +99 -99
- package/dist/{edit-DlEW6lB8.mjs → edit-DybO5r3p.mjs} +1 -1
- package/dist/{edit-Dmxyf_Gp.mjs → edit-_QJnKCdq.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-jsZCbrsm.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
- package/dist/{edit.vue_vue_type_script_setup_true_lang-MQ4ZtR6S.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +172 -173
- package/dist/{edit.vue_vue_type_script_setup_true_lang-eMXMvSnV.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
- package/dist/{import-upload-BM5kcXdg.mjs → import-upload-BvY7RZa-.mjs} +2 -2
- package/dist/{import-upload-BvBtwEbI.mjs → import-upload-DBk1lPqR.mjs} +5 -5
- package/dist/{index-CdQGs3Vu.mjs → index-BHcHN6PY.mjs} +3 -3
- package/dist/{index-Bxg8G8aA.mjs → index-Cow_4AlE.mjs} +3 -3
- package/dist/{index-D2e-NU3E.mjs → index-CuBZptA_.mjs} +1 -1
- package/dist/{index-nhzVBt2y.mjs → index-D__UxnZG.mjs} +13 -15
- package/dist/{index-Dsf1qOUx.mjs → index-IpHv0Vzi.mjs} +1 -1
- package/dist/{index-BzqZLipq.mjs → index-cpyRUYdS.mjs} +57 -55
- package/dist/{index-EhejgmO6.mjs → index-dIcRC4jE.mjs} +7 -13
- package/dist/{index-D2BUGsak.mjs → index-p50UkFiJ.mjs} +3 -3
- package/dist/index.mjs +1021 -936
- package/dist/{index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
- package/dist/{info-rnc-sgQt.mjs → info-BUKhtcuu.mjs} +2 -2
- package/dist/{info-DBObKyIh.mjs → info-Bn5mhJtq.mjs} +2 -2
- package/dist/{info-BZ7IZet8.mjs → info-Dx5fzSIP.mjs} +2 -2
- package/dist/{info-B2d8xPwW.mjs → info-EodyqiPm.mjs} +2 -2
- package/dist/{info-CoizfoOq.mjs → info-G1z1-aeX.mjs} +2 -2
- package/dist/{info-CCfX-q4c.mjs → info-bYWisCey.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/index.d.ts +5 -0
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
- package/dts/api/itsm-sys-user-ext/types.d.ts +8 -0
- package/dts/constant.d.ts +0 -4
- package/dts/index.d.ts +0 -1
- package/dts/lang/itsmsys/en.d.ts +130 -49
- package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
- package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
- package/package.json +18 -20
- package/dist/import-upload-CjeTCQBx.mjs +0 -161
- package/dts/components/TMaps/index.vue.d.ts +0 -20
- package/dts/utils/TMap.d.ts +0 -1
- package/dts/utils/common.d.ts +0 -1
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +0 -31
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, mergeModels as _, ref as k, useModel as K, reactive as O, resolveComponent as n, openBlock as E, createBlock as F, withCtx as o, createElementVNode as S, createVNode as e, createTextVNode as R, toDisplayString as h, unref as r } from "vue";
|
|
2
2
|
import { ElMessage as q } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useRoute as
|
|
3
|
+
import { useI18n as A } from "vue-i18n";
|
|
4
|
+
import { useRoute as L } from "vue-router";
|
|
5
5
|
import { s as b } from "./index-B6vJj_z6.mjs";
|
|
6
|
-
import { D as
|
|
7
|
-
const
|
|
6
|
+
import { D as z } from "./index-dIcRC4jE.mjs";
|
|
7
|
+
const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
|
|
8
8
|
__name: "edit",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ _({
|
|
10
10
|
entityKey: {
|
|
11
11
|
type: Object,
|
|
12
12
|
default: () => {
|
|
@@ -16,78 +16,78 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
16
16
|
modelValue: { type: Boolean },
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
|
-
emits: /* @__PURE__ */
|
|
20
|
-
setup(g, { emit:
|
|
21
|
-
const { t:
|
|
22
|
-
let
|
|
19
|
+
emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(g, { emit: T }) {
|
|
21
|
+
const { t: s } = A(), w = L(), f = k(), u = K(g, "modelValue"), v = T;
|
|
22
|
+
let t = O({
|
|
23
23
|
requestId: Math.random() * 10 + "",
|
|
24
24
|
updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber,taxRate",
|
|
25
25
|
orgId: w.query.entityKey
|
|
26
26
|
});
|
|
27
|
-
const $ =
|
|
27
|
+
const $ = O({
|
|
28
28
|
invoiceType: [
|
|
29
29
|
{
|
|
30
30
|
required: !0,
|
|
31
|
-
message:
|
|
31
|
+
message: s("sysOrgInvoice.invoiceTypeRequired"),
|
|
32
32
|
trigger: "blur"
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
invoiceTitle: [
|
|
36
36
|
{
|
|
37
37
|
required: !0,
|
|
38
|
-
message:
|
|
38
|
+
message: s("sysOrgInvoice.invoiceTitleRequired"),
|
|
39
39
|
trigger: "blur"
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
taxNumber: [
|
|
43
43
|
{
|
|
44
44
|
required: !0,
|
|
45
|
-
message:
|
|
45
|
+
message: s("sysOrgInvoice.taxNumberRequired"),
|
|
46
46
|
trigger: "blur"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
bankName: [
|
|
50
50
|
{
|
|
51
51
|
required: !0,
|
|
52
|
-
message:
|
|
52
|
+
message: s("sysOrgInvoice.bankNameRequired"),
|
|
53
53
|
trigger: "blur"
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
backNumber: [
|
|
57
57
|
{
|
|
58
58
|
required: !0,
|
|
59
|
-
message:
|
|
59
|
+
message: s("sysOrgInvoice.backNumberRequired"),
|
|
60
60
|
trigger: "blur"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
min: 16,
|
|
64
64
|
max: 20,
|
|
65
|
-
message:
|
|
65
|
+
message: s("sysOrgInvoice.backNumberLengthRequired"),
|
|
66
66
|
trigger: "blur"
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
taxRate: [
|
|
70
70
|
{
|
|
71
71
|
required: !0,
|
|
72
|
-
message:
|
|
72
|
+
message: s("sysOrgInvoice.taxRateRequired"),
|
|
73
73
|
trigger: "blur"
|
|
74
74
|
}
|
|
75
75
|
]
|
|
76
|
-
}), y = g,
|
|
76
|
+
}), y = g, x = Object.keys(y.entityKey), N = k(x.length >= 1);
|
|
77
77
|
N.value && b.findById(y.entityKey).then(({ data: l }) => {
|
|
78
|
-
Object.assign(
|
|
78
|
+
Object.assign(t, l);
|
|
79
79
|
});
|
|
80
80
|
const U = async () => {
|
|
81
81
|
var l;
|
|
82
|
-
await ((l = f.value) == null ? void 0 : l.validate((
|
|
83
|
-
|
|
82
|
+
await ((l = f.value) == null ? void 0 : l.validate((a) => {
|
|
83
|
+
a && (N.value ? b.update(t).then((m) => {
|
|
84
84
|
m.status === 200 && (q({
|
|
85
|
-
message:
|
|
85
|
+
message: s("common.submitSuccess"),
|
|
86
86
|
type: "success"
|
|
87
87
|
}), u.value && (u.value = !1), v("refresh", m.status === 200));
|
|
88
|
-
}) : b.create(
|
|
88
|
+
}) : b.create(t).then((m) => {
|
|
89
89
|
m.status === 200 && (q({
|
|
90
|
-
message:
|
|
90
|
+
message: s("common.submitSuccess"),
|
|
91
91
|
type: "success"
|
|
92
92
|
}), u.value && (u.value = !1), v("refresh", m.status === 200));
|
|
93
93
|
}));
|
|
@@ -96,18 +96,18 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
96
96
|
function V() {
|
|
97
97
|
u.value && (u.value = !1);
|
|
98
98
|
}
|
|
99
|
-
return (l,
|
|
100
|
-
const m =
|
|
101
|
-
return
|
|
99
|
+
return (l, a) => {
|
|
100
|
+
const m = n("jmash-select"), d = n("el-form-item"), c = n("el-col"), p = n("el-input"), C = n("el-input-number"), M = n("el-row"), j = n("el-form"), I = n("el-button"), D = n("el-dialog");
|
|
101
|
+
return E(), F(D, {
|
|
102
102
|
modelValue: u.value,
|
|
103
|
-
"onUpdate:modelValue":
|
|
103
|
+
"onUpdate:modelValue": a[6] || (a[6] = (i) => u.value = i),
|
|
104
104
|
onClose: V
|
|
105
105
|
}, {
|
|
106
106
|
footer: o(() => [
|
|
107
|
-
|
|
107
|
+
S("div", G, [
|
|
108
108
|
e(I, { onClick: V }, {
|
|
109
109
|
default: o(() => [
|
|
110
|
-
|
|
110
|
+
R(h(l.$t("common.cancel")), 1)
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
}),
|
|
@@ -116,22 +116,22 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
116
116
|
onClick: U
|
|
117
117
|
}, {
|
|
118
118
|
default: o(() => [
|
|
119
|
-
|
|
119
|
+
R(h(l.$t("common.confirm")), 1)
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
122
|
})
|
|
123
123
|
])
|
|
124
124
|
]),
|
|
125
125
|
default: o(() => [
|
|
126
|
-
e(
|
|
126
|
+
e(j, {
|
|
127
127
|
ref_key: "sysOrgInvoiceFormRef",
|
|
128
128
|
ref: f,
|
|
129
|
-
model: r(
|
|
129
|
+
model: r(t),
|
|
130
130
|
"label-width": "120px",
|
|
131
131
|
rules: $
|
|
132
132
|
}, {
|
|
133
133
|
default: o(() => [
|
|
134
|
-
e(
|
|
134
|
+
e(M, null, {
|
|
135
135
|
default: o(() => [
|
|
136
136
|
e(c, { span: 12 }, {
|
|
137
137
|
default: o(() => [
|
|
@@ -141,10 +141,10 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
141
141
|
}, {
|
|
142
142
|
default: o(() => [
|
|
143
143
|
e(m, {
|
|
144
|
-
modelValue: r(
|
|
145
|
-
"onUpdate:modelValue":
|
|
144
|
+
modelValue: r(t).invoiceType,
|
|
145
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => r(t).invoiceType = i),
|
|
146
146
|
placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
|
|
147
|
-
data: r(
|
|
147
|
+
data: r(z).invoiceTypeDictEnum.values,
|
|
148
148
|
class: "w-full",
|
|
149
149
|
clearable: ""
|
|
150
150
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -162,8 +162,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
162
162
|
}, {
|
|
163
163
|
default: o(() => [
|
|
164
164
|
e(p, {
|
|
165
|
-
modelValue: r(
|
|
166
|
-
"onUpdate:modelValue":
|
|
165
|
+
modelValue: r(t).invoiceTitle,
|
|
166
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => r(t).invoiceTitle = i),
|
|
167
167
|
placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
|
|
168
168
|
maxlength: "50",
|
|
169
169
|
"show-word-limit": "",
|
|
@@ -183,8 +183,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
183
183
|
}, {
|
|
184
184
|
default: o(() => [
|
|
185
185
|
e(p, {
|
|
186
|
-
modelValue: r(
|
|
187
|
-
"onUpdate:modelValue":
|
|
186
|
+
modelValue: r(t).taxNumber,
|
|
187
|
+
"onUpdate:modelValue": a[2] || (a[2] = (i) => r(t).taxNumber = i),
|
|
188
188
|
placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
|
|
189
189
|
maxlength: "50",
|
|
190
190
|
"show-word-limit": "",
|
|
@@ -204,8 +204,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
204
204
|
}, {
|
|
205
205
|
default: o(() => [
|
|
206
206
|
e(p, {
|
|
207
|
-
modelValue: r(
|
|
208
|
-
"onUpdate:modelValue":
|
|
207
|
+
modelValue: r(t).bankName,
|
|
208
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => r(t).bankName = i),
|
|
209
209
|
placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
|
|
210
210
|
maxlength: "50",
|
|
211
211
|
"show-word-limit": "",
|
|
@@ -225,8 +225,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
225
225
|
}, {
|
|
226
226
|
default: o(() => [
|
|
227
227
|
e(p, {
|
|
228
|
-
modelValue: r(
|
|
229
|
-
"onUpdate:modelValue":
|
|
228
|
+
modelValue: r(t).backNumber,
|
|
229
|
+
"onUpdate:modelValue": a[4] || (a[4] = (i) => r(t).backNumber = i),
|
|
230
230
|
placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
|
|
231
231
|
maxlength: "20",
|
|
232
232
|
"show-word-limit": "",
|
|
@@ -245,16 +245,16 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
245
245
|
prop: "taxRate"
|
|
246
246
|
}, {
|
|
247
247
|
default: o(() => [
|
|
248
|
-
e(
|
|
249
|
-
modelValue: r(
|
|
250
|
-
"onUpdate:modelValue":
|
|
248
|
+
e(C, {
|
|
249
|
+
modelValue: r(t).taxRate,
|
|
250
|
+
"onUpdate:modelValue": a[5] || (a[5] = (i) => r(t).taxRate = i),
|
|
251
251
|
placeholder: l.$t("sysOrgInvoice.taxRateRequired"),
|
|
252
252
|
precision: 2,
|
|
253
|
-
min:
|
|
254
|
-
max:
|
|
253
|
+
min: 0,
|
|
254
|
+
max: 0.99,
|
|
255
255
|
step: 0.01,
|
|
256
256
|
class: "w-full"
|
|
257
|
-
}, null, 8, ["modelValue", "placeholder"
|
|
257
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
258
258
|
]),
|
|
259
259
|
_: 1
|
|
260
260
|
}, 8, ["label"])
|
|
@@ -274,5 +274,5 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
export {
|
|
277
|
-
|
|
277
|
+
Y as _
|
|
278
278
|
};
|