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.
- package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
- package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
- package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
- package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
- package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
- package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
- package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
- package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
- package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
- package/dist/import-upload-Bsl-7w0B.mjs +161 -0
- package/dist/import-upload-COLdGpcs.mjs +161 -0
- package/dist/index-B4M6ZC7N.mjs +196 -0
- package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
- package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
- package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
- package/dist/index-DNpEXtyQ.mjs +423 -0
- package/dist/index-Dh_kNwqv.mjs +470 -0
- package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
- package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
- package/dist/index.mjs +293 -256
- package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
- package/dist/info-BHylKqOX.mjs +186 -0
- package/dist/info-BZOWTNSd.mjs +209 -0
- package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
- package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
- package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
- package/dist/info-dBqoxL-p.mjs +209 -0
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +7 -7
- package/dts/api/index.d.ts +6 -2
- package/dts/api/itsm-sys-org/types.d.ts +1 -0
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
- package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
- package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
- package/dts/constant.d.ts +9 -0
- package/dts/index.d.ts +1 -0
- package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
- package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
- package/package.json +3 -3
- package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
- package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
- package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
- package/dist/index-BTO0NHK6.mjs +0 -397
- package/dist/index-Hh4b5GAI.mjs +0 -351
- package/dist/index-cBbN-uY2.mjs +0 -155
- package/dist/info-BCPme1g5.mjs +0 -187
- package/dist/info-CtGMbfQJ.mjs +0 -187
- package/dist/info-Dk3RzCIp.mjs +0 -176
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useRoute as
|
|
1
|
+
import { defineComponent as K, mergeModels as R, ref as _, useModel as E, reactive as k, resolveComponent as s, openBlock as F, createBlock as S, withCtx as o, createElementVNode as A, createVNode as e, createTextVNode as O, toDisplayString as h, unref as r } from "vue";
|
|
2
|
+
import { ElMessage as q } from "element-plus";
|
|
3
|
+
import { useI18n as L } from "vue-i18n";
|
|
4
|
+
import { useRoute as z } from "vue-router";
|
|
5
5
|
import { s as b } from "./index-B6vJj_z6.mjs";
|
|
6
|
-
import { D as
|
|
7
|
-
const
|
|
6
|
+
import { D as G, C as T } from "./index-B4M6ZC7N.mjs";
|
|
7
|
+
const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
|
|
8
8
|
__name: "edit",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ R({
|
|
10
10
|
entityKey: {
|
|
11
11
|
type: Object,
|
|
12
12
|
default: () => {
|
|
@@ -16,117 +16,124 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
16
16
|
modelValue: { type: Boolean },
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
|
-
emits: /* @__PURE__ */
|
|
20
|
-
setup(
|
|
21
|
-
const { t:
|
|
22
|
-
let
|
|
19
|
+
emits: /* @__PURE__ */ R(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(g, { emit: x }) {
|
|
21
|
+
const { t: i } = L(), w = z(), f = _(), u = E(g, "modelValue"), v = x;
|
|
22
|
+
let a = k({
|
|
23
23
|
requestId: Math.random() * 10 + "",
|
|
24
|
-
updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber",
|
|
25
|
-
orgId:
|
|
24
|
+
updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber,taxRate",
|
|
25
|
+
orgId: w.query.entityKey
|
|
26
26
|
});
|
|
27
|
-
const $ =
|
|
27
|
+
const $ = k({
|
|
28
28
|
invoiceType: [
|
|
29
29
|
{
|
|
30
30
|
required: !0,
|
|
31
|
-
message:
|
|
31
|
+
message: i("sysOrgInvoice.invoiceTypeRequired"),
|
|
32
32
|
trigger: "blur"
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
invoiceTitle: [
|
|
36
36
|
{
|
|
37
37
|
required: !0,
|
|
38
|
-
message:
|
|
38
|
+
message: i("sysOrgInvoice.invoiceTitleRequired"),
|
|
39
39
|
trigger: "blur"
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
taxNumber: [
|
|
43
43
|
{
|
|
44
44
|
required: !0,
|
|
45
|
-
message:
|
|
45
|
+
message: i("sysOrgInvoice.taxNumberRequired"),
|
|
46
46
|
trigger: "blur"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
bankName: [
|
|
50
50
|
{
|
|
51
51
|
required: !0,
|
|
52
|
-
message:
|
|
52
|
+
message: i("sysOrgInvoice.bankNameRequired"),
|
|
53
53
|
trigger: "blur"
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
backNumber: [
|
|
57
57
|
{
|
|
58
58
|
required: !0,
|
|
59
|
-
message:
|
|
59
|
+
message: i("sysOrgInvoice.backNumberRequired"),
|
|
60
60
|
trigger: "blur"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
min: 16,
|
|
64
64
|
max: 20,
|
|
65
|
-
message:
|
|
65
|
+
message: i("sysOrgInvoice.backNumberLengthRequired"),
|
|
66
|
+
trigger: "blur"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
taxRate: [
|
|
70
|
+
{
|
|
71
|
+
required: !0,
|
|
72
|
+
message: i("sysOrgInvoice.taxRateRequired"),
|
|
66
73
|
trigger: "blur"
|
|
67
74
|
}
|
|
68
75
|
]
|
|
69
|
-
}), y =
|
|
76
|
+
}), y = g, C = Object.keys(y.entityKey), N = _(C.length >= 1);
|
|
70
77
|
N.value && b.findById(y.entityKey).then(({ data: l }) => {
|
|
71
|
-
Object.assign(
|
|
78
|
+
Object.assign(a, l);
|
|
72
79
|
});
|
|
73
|
-
const
|
|
80
|
+
const U = async () => {
|
|
74
81
|
var l;
|
|
75
|
-
await ((l =
|
|
76
|
-
|
|
77
|
-
m.status === 200 && (
|
|
78
|
-
message:
|
|
82
|
+
await ((l = f.value) == null ? void 0 : l.validate((t) => {
|
|
83
|
+
t && (N.value ? b.update(a).then((m) => {
|
|
84
|
+
m.status === 200 && (q({
|
|
85
|
+
message: i("common.submitSuccess"),
|
|
79
86
|
type: "success"
|
|
80
|
-
}),
|
|
81
|
-
}) : b.create(
|
|
82
|
-
m.status === 200 && (
|
|
83
|
-
message:
|
|
87
|
+
}), u.value && (u.value = !1), v("refresh", m.status === 200));
|
|
88
|
+
}) : b.create(a).then((m) => {
|
|
89
|
+
m.status === 200 && (q({
|
|
90
|
+
message: i("common.submitSuccess"),
|
|
84
91
|
type: "success"
|
|
85
|
-
}),
|
|
92
|
+
}), u.value && (u.value = !1), v("refresh", m.status === 200));
|
|
86
93
|
}));
|
|
87
94
|
}));
|
|
88
95
|
};
|
|
89
|
-
function
|
|
90
|
-
|
|
96
|
+
function V() {
|
|
97
|
+
u.value && (u.value = !1);
|
|
91
98
|
}
|
|
92
|
-
return (l,
|
|
93
|
-
const m =
|
|
94
|
-
return
|
|
95
|
-
modelValue:
|
|
96
|
-
"onUpdate:modelValue":
|
|
97
|
-
onClose:
|
|
99
|
+
return (l, t) => {
|
|
100
|
+
const m = s("jmash-select"), d = s("el-form-item"), c = s("el-col"), p = s("el-input"), M = s("el-input-number"), j = s("el-row"), D = s("el-form"), I = s("el-button"), B = s("el-dialog");
|
|
101
|
+
return F(), S(B, {
|
|
102
|
+
modelValue: u.value,
|
|
103
|
+
"onUpdate:modelValue": t[6] || (t[6] = (n) => u.value = n),
|
|
104
|
+
onClose: V
|
|
98
105
|
}, {
|
|
99
106
|
footer: o(() => [
|
|
100
|
-
|
|
101
|
-
e(
|
|
107
|
+
A("div", H, [
|
|
108
|
+
e(I, { onClick: V }, {
|
|
102
109
|
default: o(() => [
|
|
103
|
-
h(
|
|
110
|
+
O(h(l.$t("common.cancel")), 1)
|
|
104
111
|
]),
|
|
105
112
|
_: 1
|
|
106
113
|
}),
|
|
107
|
-
e(
|
|
114
|
+
e(I, {
|
|
108
115
|
type: "primary",
|
|
109
|
-
onClick:
|
|
116
|
+
onClick: U
|
|
110
117
|
}, {
|
|
111
118
|
default: o(() => [
|
|
112
|
-
h(
|
|
119
|
+
O(h(l.$t("common.confirm")), 1)
|
|
113
120
|
]),
|
|
114
121
|
_: 1
|
|
115
122
|
})
|
|
116
123
|
])
|
|
117
124
|
]),
|
|
118
125
|
default: o(() => [
|
|
119
|
-
e(
|
|
126
|
+
e(D, {
|
|
120
127
|
ref_key: "sysOrgInvoiceFormRef",
|
|
121
|
-
ref:
|
|
122
|
-
model: r(
|
|
123
|
-
"label-width": "
|
|
128
|
+
ref: f,
|
|
129
|
+
model: r(a),
|
|
130
|
+
"label-width": "120px",
|
|
124
131
|
rules: $
|
|
125
132
|
}, {
|
|
126
133
|
default: o(() => [
|
|
127
|
-
e(
|
|
134
|
+
e(j, null, {
|
|
128
135
|
default: o(() => [
|
|
129
|
-
e(c, { span:
|
|
136
|
+
e(c, { span: 12 }, {
|
|
130
137
|
default: o(() => [
|
|
131
138
|
e(d, {
|
|
132
139
|
label: l.$t("sysOrgInvoice.invoiceType"),
|
|
@@ -134,10 +141,10 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
134
141
|
}, {
|
|
135
142
|
default: o(() => [
|
|
136
143
|
e(m, {
|
|
137
|
-
modelValue: r(
|
|
138
|
-
"onUpdate:modelValue":
|
|
144
|
+
modelValue: r(a).invoiceType,
|
|
145
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => r(a).invoiceType = n),
|
|
139
146
|
placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
|
|
140
|
-
data: r(
|
|
147
|
+
data: r(G).invoiceTypeDictEnum.values,
|
|
141
148
|
class: "w-full",
|
|
142
149
|
clearable: ""
|
|
143
150
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -147,7 +154,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
147
154
|
]),
|
|
148
155
|
_: 1
|
|
149
156
|
}),
|
|
150
|
-
e(c, { span:
|
|
157
|
+
e(c, { span: 12 }, {
|
|
151
158
|
default: o(() => [
|
|
152
159
|
e(d, {
|
|
153
160
|
label: l.$t("sysOrgInvoice.invoiceTitle"),
|
|
@@ -155,8 +162,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
155
162
|
}, {
|
|
156
163
|
default: o(() => [
|
|
157
164
|
e(p, {
|
|
158
|
-
modelValue: r(
|
|
159
|
-
"onUpdate:modelValue":
|
|
165
|
+
modelValue: r(a).invoiceTitle,
|
|
166
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r(a).invoiceTitle = n),
|
|
160
167
|
placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
|
|
161
168
|
maxlength: "50",
|
|
162
169
|
"show-word-limit": "",
|
|
@@ -168,7 +175,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
168
175
|
]),
|
|
169
176
|
_: 1
|
|
170
177
|
}),
|
|
171
|
-
e(c, { span:
|
|
178
|
+
e(c, { span: 12 }, {
|
|
172
179
|
default: o(() => [
|
|
173
180
|
e(d, {
|
|
174
181
|
label: l.$t("sysOrgInvoice.taxNumber"),
|
|
@@ -176,8 +183,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
176
183
|
}, {
|
|
177
184
|
default: o(() => [
|
|
178
185
|
e(p, {
|
|
179
|
-
modelValue: r(
|
|
180
|
-
"onUpdate:modelValue":
|
|
186
|
+
modelValue: r(a).taxNumber,
|
|
187
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r(a).taxNumber = n),
|
|
181
188
|
placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
|
|
182
189
|
maxlength: "50",
|
|
183
190
|
"show-word-limit": "",
|
|
@@ -189,7 +196,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
189
196
|
]),
|
|
190
197
|
_: 1
|
|
191
198
|
}),
|
|
192
|
-
e(c, { span:
|
|
199
|
+
e(c, { span: 12 }, {
|
|
193
200
|
default: o(() => [
|
|
194
201
|
e(d, {
|
|
195
202
|
label: l.$t("sysOrgInvoice.bankName"),
|
|
@@ -197,8 +204,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
197
204
|
}, {
|
|
198
205
|
default: o(() => [
|
|
199
206
|
e(p, {
|
|
200
|
-
modelValue: r(
|
|
201
|
-
"onUpdate:modelValue":
|
|
207
|
+
modelValue: r(a).bankName,
|
|
208
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => r(a).bankName = n),
|
|
202
209
|
placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
|
|
203
210
|
maxlength: "50",
|
|
204
211
|
"show-word-limit": "",
|
|
@@ -210,7 +217,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
210
217
|
]),
|
|
211
218
|
_: 1
|
|
212
219
|
}),
|
|
213
|
-
e(c, { span:
|
|
220
|
+
e(c, { span: 12 }, {
|
|
214
221
|
default: o(() => [
|
|
215
222
|
e(d, {
|
|
216
223
|
label: l.$t("sysOrgInvoice.backNumber"),
|
|
@@ -218,8 +225,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
218
225
|
}, {
|
|
219
226
|
default: o(() => [
|
|
220
227
|
e(p, {
|
|
221
|
-
modelValue: r(
|
|
222
|
-
"onUpdate:modelValue":
|
|
228
|
+
modelValue: r(a).backNumber,
|
|
229
|
+
"onUpdate:modelValue": t[4] || (t[4] = (n) => r(a).backNumber = n),
|
|
223
230
|
placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
|
|
224
231
|
maxlength: "20",
|
|
225
232
|
"show-word-limit": "",
|
|
@@ -230,6 +237,29 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
230
237
|
}, 8, ["label"])
|
|
231
238
|
]),
|
|
232
239
|
_: 1
|
|
240
|
+
}),
|
|
241
|
+
e(c, { span: 12 }, {
|
|
242
|
+
default: o(() => [
|
|
243
|
+
e(d, {
|
|
244
|
+
label: l.$t("sysOrgInvoice.taxRate"),
|
|
245
|
+
prop: "taxRate"
|
|
246
|
+
}, {
|
|
247
|
+
default: o(() => [
|
|
248
|
+
e(M, {
|
|
249
|
+
modelValue: r(a).taxRate,
|
|
250
|
+
"onUpdate:modelValue": t[5] || (t[5] = (n) => r(a).taxRate = n),
|
|
251
|
+
placeholder: l.$t("sysOrgInvoice.taxRateRequired"),
|
|
252
|
+
precision: 2,
|
|
253
|
+
min: r(T).taxRate.min,
|
|
254
|
+
max: r(T).taxRate.max,
|
|
255
|
+
step: 0.01,
|
|
256
|
+
class: "w-full"
|
|
257
|
+
}, null, 8, ["modelValue", "placeholder", "min", "max"])
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["label"])
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
233
263
|
})
|
|
234
264
|
]),
|
|
235
265
|
_: 1
|
|
@@ -244,5 +274,5 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
|
244
274
|
}
|
|
245
275
|
});
|
|
246
276
|
export {
|
|
247
|
-
|
|
277
|
+
Z as _
|
|
248
278
|
};
|