@das-fed/ui 6.4.0-dev.70 → 6.4.0-dev.72
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/esm-map.json +5 -1
- package/package.json +6 -5
- package/packages/business-components/app-container/index.js +97 -68
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +59 -59
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +12 -13
- package/packages/business-components/import-button/index.js +117 -115
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/payment/api.d.ts +8 -0
- package/packages/business-components/payment/i18n/index.d.ts +68 -0
- package/packages/business-components/payment/index.d.ts +52 -0
- package/packages/business-components/payment/index.js +1818 -0
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
- package/packages/business-components/payment/style.css +1 -0
- package/packages/business-components/payment/type.d.ts +41 -0
- package/packages/business-components/process-log/index.js +289 -289
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/components/edit-table/index.d.ts +3 -3
- package/packages/components/edit-table/index.js +1254 -1251
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/pagination/index.js +101 -98
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/search-form/index.js +49 -49
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/table/index.js +4 -4
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +50 -49
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/type.d.ts +3 -0
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/import-button/style.css';
|
|
2
2
|
import { withInstall as fe } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as k, defineComponent as ge, computed as ve, watch as he, openBlock as
|
|
4
|
-
import { t as
|
|
3
|
+
import { ref as k, defineComponent as ge, computed as ve, watch as he, openBlock as Ce, createElementBlock as we, createElementVNode as q, unref as o, renderSlot as re, createVNode as D, withCtx as L, createTextVNode as Y, toDisplayString as H, createCommentVNode as le, isRef as Q } from "vue";
|
|
4
|
+
import { t as p, currentLang as xe, i18n as j, setI18nRule as ke } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as se } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
-
import { DasUpload as
|
|
7
|
-
import { DasProgress as
|
|
6
|
+
import { DasUpload as be } from "@das-fed/ui/packages/components/upload/index";
|
|
7
|
+
import { DasProgress as ye } from "@das-fed/ui/packages/components/progress/index";
|
|
8
8
|
import { DasButton as W } from "@das-fed/ui/packages/components/button/index";
|
|
9
|
-
import { iotMinio as ae, iotProgress as
|
|
9
|
+
import { iotMinio as ae, iotProgress as Ne } from "@das-fed/utils/api-services/modules/iot";
|
|
10
10
|
import { DasMessage as U } from "@das-fed/ui/packages/components/message/index";
|
|
11
|
-
import
|
|
11
|
+
import ze from "dayjs";
|
|
12
12
|
import { getConfig as ne } from "@das-fed/utils/config";
|
|
13
|
-
import { extractFilename as
|
|
14
|
-
import { getUserInfo as
|
|
13
|
+
import { extractFilename as Te } from "@das-fed/utils/common-tools";
|
|
14
|
+
import { getUserInfo as Fe } from "@das-fed/utils/common-info/index";
|
|
15
15
|
import { pureImageSrc as ie } from "@das-fed/utils/pure-image-src";
|
|
16
16
|
let te = (e = 21) => {
|
|
17
|
-
let m = "",
|
|
17
|
+
let m = "", u = crypto.getRandomValues(new Uint8Array(e));
|
|
18
18
|
for (; e--; ) {
|
|
19
|
-
let l =
|
|
19
|
+
let l = u[e] & 63;
|
|
20
20
|
l < 36 ? m += l.toString(36) : l < 62 ? m += (l - 26).toString(36).toUpperCase() : l < 63 ? m += "_" : m += "-";
|
|
21
21
|
}
|
|
22
22
|
return m;
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
let m = k(!1),
|
|
24
|
+
const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), $e = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Se = Ne.get("progress"), Pe = (e) => {
|
|
25
|
+
let m = k(!1), u = k(!1), l = k(""), w = k(0), n = k("normal"), v = k(!1), b, N = k(""), I = k(""), $ = k(""), z = k(""), S = k(!1), M = k(""), F = "", _ = k(""), P;
|
|
26
26
|
const E = () => {
|
|
27
|
-
I.value = "", $.value = "", z.value = "",
|
|
27
|
+
I.value = "", $.value = "", z.value = "", S.value = !1, M.value = "";
|
|
28
28
|
}, y = async () => {
|
|
29
|
-
const [r, s] = await
|
|
29
|
+
const [r, s] = await _e().run();
|
|
30
30
|
return r ? { stauts: !1 } : { status: !0, data: s };
|
|
31
31
|
}, B = (r) => new Promise((s, g) => {
|
|
32
32
|
const i = [];
|
|
33
33
|
let t = 0;
|
|
34
34
|
for (; t < r.size; ) {
|
|
35
|
-
const
|
|
36
|
-
i.push(
|
|
35
|
+
const C = r.slice(t, t + 1048576);
|
|
36
|
+
i.push(C), t += 1048576;
|
|
37
37
|
}
|
|
38
38
|
const c = new Blob(i, { type: r.type });
|
|
39
39
|
s(c);
|
|
40
40
|
}), A = async (r, s, g, a = !1, i = !0, t = "") => {
|
|
41
|
-
F = t, _.value = "import", i && (n.value = "normal",
|
|
41
|
+
F = t, _.value = "import", i && (n.value = "normal", w.value = 0, l.value = p("导入进度"), u.value = !0, N.value = ""), P = s;
|
|
42
42
|
const c = await y();
|
|
43
43
|
if (!c.status) return;
|
|
44
|
-
let
|
|
45
|
-
const
|
|
44
|
+
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } = g;
|
|
45
|
+
const pe = a ? $e : Ie;
|
|
46
46
|
if (a) {
|
|
47
47
|
let X = [];
|
|
48
48
|
await s.forEach(async (G) => {
|
|
49
49
|
let ee = await B(G);
|
|
50
50
|
X.push(ee);
|
|
51
|
-
}), x = new FormData(), x.append("accessKeyId",
|
|
51
|
+
}), x = new FormData(), x.append("accessKeyId", C.accessKeyId), x.append("secretAccessKey", C.secretAccessKey), x.append("sessionToken", C.sessionToken), x.append("bucketName", V), s.forEach((G, ee) => {
|
|
52
52
|
x.append("file", X[ee]);
|
|
53
53
|
}), J.forEach((G) => {
|
|
54
54
|
x.append("filePaths", G);
|
|
@@ -56,113 +56,113 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
56
56
|
} else {
|
|
57
57
|
const X = await B(s);
|
|
58
58
|
x = {
|
|
59
|
-
accessKeyId:
|
|
60
|
-
secretAccessKey:
|
|
61
|
-
sessionToken:
|
|
59
|
+
accessKeyId: C.accessKeyId,
|
|
60
|
+
secretAccessKey: C.secretAccessKey,
|
|
61
|
+
sessionToken: C.sessionToken,
|
|
62
62
|
file: X,
|
|
63
63
|
bucketName: V,
|
|
64
64
|
filePath: J,
|
|
65
65
|
autoContentType: K
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
const [me, ce] = await
|
|
68
|
+
const [me, ce] = await pe(x).run();
|
|
69
69
|
if (me) return;
|
|
70
|
-
const de = await
|
|
70
|
+
const de = await Ue(ce.data), Z = await (r == null ? void 0 : r(de));
|
|
71
71
|
if (i) {
|
|
72
72
|
if (!Z.status) {
|
|
73
|
-
|
|
73
|
+
u.value = !1, n.value = "error";
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
l.value =
|
|
76
|
+
l.value = p("导入进度"), u.value = !0, T(Z.taskId, "import", "");
|
|
77
77
|
} else {
|
|
78
78
|
if (!Z.status) return;
|
|
79
79
|
n.value = "success", U.success({
|
|
80
|
-
message:
|
|
80
|
+
message: p("导入成功"),
|
|
81
81
|
grouping: !0,
|
|
82
82
|
repeatNum: 1
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}, R = async (r, s = "", g = "") => {
|
|
86
|
-
n.value = "normal",
|
|
86
|
+
n.value = "normal", w.value = 0, l.value = g || p("导出进度"), u.value = !0;
|
|
87
87
|
const a = await (r == null ? void 0 : r());
|
|
88
88
|
if (!a.status) {
|
|
89
|
-
|
|
89
|
+
u.value = !1, n.value = "error";
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
T(a.taskId, "action", "");
|
|
93
93
|
}, O = async (r, s = "", g = "xlsx") => {
|
|
94
|
-
_.value = "export", n.value = "normal",
|
|
94
|
+
_.value = "export", n.value = "normal", w.value = 0, l.value = p("导出进度"), u.value = !0;
|
|
95
95
|
const a = await (r == null ? void 0 : r());
|
|
96
96
|
if (!a.status) {
|
|
97
|
-
|
|
97
|
+
u.value = !1, n.value = "error";
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "", g);
|
|
101
101
|
}, T = async (r, s, g, a = "") => {
|
|
102
102
|
v.value = !0, f(r, s, g, a), b = setTimeout(() => {
|
|
103
103
|
}, 50);
|
|
104
104
|
}, d = () => {
|
|
105
|
-
clearTimeout(b), b = null,
|
|
105
|
+
clearTimeout(b), b = null, u.value = !1;
|
|
106
106
|
}, f = async (r, s = "export", g, a = "") => {
|
|
107
|
-
var
|
|
108
|
-
const [i, t] = await
|
|
107
|
+
var C, x;
|
|
108
|
+
const [i, t] = await Se("", {
|
|
109
109
|
url: `progress/${r}`
|
|
110
110
|
}).run();
|
|
111
111
|
if (i) {
|
|
112
112
|
v.value = !1;
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
const c = s == "export" ?
|
|
117
|
-
if (
|
|
115
|
+
w.value = t.percentage;
|
|
116
|
+
const c = s == "export" ? p("导出") : p("导入");
|
|
117
|
+
if (w.value == 100)
|
|
118
118
|
if (N.value = t, v.value = !1, d(), s == "export")
|
|
119
|
-
t.status == 1 ? (n.value = "success",
|
|
120
|
-
message: t.message || `${c}${
|
|
119
|
+
t.status == 1 ? (n.value = "success", ue(`${ne().baseURL}/oss${t.filePath}`, g, a), v.value = !1) : t.status == 2 && (z.value = t.message || `${c}${p("失败")}`, U.error({
|
|
120
|
+
message: t.message || `${c}${p("失败")}`,
|
|
121
121
|
grouping: !0,
|
|
122
122
|
repeatNum: 1
|
|
123
123
|
}));
|
|
124
124
|
else if (s == "import") {
|
|
125
125
|
if (t.filePath) {
|
|
126
126
|
n.value = "error";
|
|
127
|
-
const K = (
|
|
128
|
-
K.length && K[2],
|
|
129
|
-
let V = await
|
|
127
|
+
const K = (C = P.name) == null ? void 0 : C.match(/(.*?)(\.[^.]*$|$)/);
|
|
128
|
+
K.length && K[2], S.value = !0;
|
|
129
|
+
let V = await Te(`/oss/${t == null ? void 0 : t.filePath}`);
|
|
130
130
|
const J = ((x = V == null ? void 0 : V.split("/")) == null ? void 0 : x.pop()) || "";
|
|
131
|
-
I.value = F || J, $.value =
|
|
131
|
+
I.value = F || J, $.value = P.sizeText, z.value = p("部分数据校验不通过,请下载附件并修改,重新导入!"), M.value = `${ne().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
|
|
132
132
|
}
|
|
133
133
|
h(t.status, c, t.message), t.status == 1 && (m.value = !1), e("success");
|
|
134
134
|
} else s == "action" && (n.value = "success");
|
|
135
135
|
else
|
|
136
136
|
b && t.status != 2 ? b = setTimeout(() => {
|
|
137
137
|
f(r, s, g, a);
|
|
138
|
-
}, 50) : (N.value = t, v.value = !1, h(t.status, c, t.message), d(),
|
|
138
|
+
}, 50) : (N.value = t, v.value = !1, h(t.status, c, t.message), d(), S.value = !0, z.value = (t == null ? void 0 : t.message) || "", e("error", t));
|
|
139
139
|
}, h = (r, s, g) => {
|
|
140
140
|
r == 1 ? (n.value = "success", U.success({
|
|
141
|
-
message:
|
|
141
|
+
message: p("business-components_export-success-tip", s),
|
|
142
142
|
grouping: !0,
|
|
143
143
|
repeatNum: 1
|
|
144
144
|
}), I.value = "", $.value = "", z.value = "") : r == 2 ? (n.value = "error", U.error({
|
|
145
|
-
message:
|
|
145
|
+
message: p("business-components_export-failure-tip", s),
|
|
146
146
|
grouping: !0,
|
|
147
147
|
repeatNum: 1
|
|
148
148
|
})) : r == 3 && (n.value = "error", U.error({
|
|
149
|
-
message:
|
|
149
|
+
message: p("business-components_export-partially-failure-tip", s),
|
|
150
150
|
grouping: !0,
|
|
151
151
|
repeatNum: 1
|
|
152
152
|
}));
|
|
153
153
|
};
|
|
154
154
|
return {
|
|
155
155
|
importDialog: m,
|
|
156
|
-
showProgressDialog:
|
|
156
|
+
showProgressDialog: u,
|
|
157
157
|
progressTitle: l,
|
|
158
|
-
percent:
|
|
158
|
+
percent: w,
|
|
159
159
|
progressStatus: n,
|
|
160
160
|
progressLoading: v,
|
|
161
161
|
progressResult: N,
|
|
162
162
|
errorFileName: I,
|
|
163
163
|
errorFileSize: $,
|
|
164
164
|
errorMessage: z,
|
|
165
|
-
errorImport:
|
|
165
|
+
errorImport: S,
|
|
166
166
|
errorFilePath: M,
|
|
167
167
|
fileHandleType: _,
|
|
168
168
|
fileImport: A,
|
|
@@ -172,12 +172,12 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
172
172
|
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/), g = s.length ? s[2] : "";
|
|
173
173
|
return `${s.length ? s[1] : r}${te()}${g}`;
|
|
174
174
|
},
|
|
175
|
-
downloadFile:
|
|
175
|
+
downloadFile: ue,
|
|
176
176
|
resetStataus: E,
|
|
177
177
|
checkProgress: T,
|
|
178
178
|
clearTimer: d
|
|
179
179
|
};
|
|
180
|
-
},
|
|
180
|
+
}, De = (e) => {
|
|
181
181
|
let m = e == null ? void 0 : e.toLocaleLowerCase();
|
|
182
182
|
return {
|
|
183
183
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -206,11 +206,11 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
206
206
|
der: "application/x-x509-ca-cert",
|
|
207
207
|
cer: "application/pkix-cert"
|
|
208
208
|
}[m];
|
|
209
|
-
},
|
|
209
|
+
}, ue = (e, m, u = "excel") => {
|
|
210
210
|
const l = new XMLHttpRequest();
|
|
211
|
-
l.open("get", e), l.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), l.responseType = "blob", l.onload = function(
|
|
211
|
+
l.open("get", e), l.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), l.responseType = "blob", l.onload = function(w) {
|
|
212
212
|
const n = new Blob([this.response], {
|
|
213
|
-
type:
|
|
213
|
+
type: De(u)
|
|
214
214
|
}), v = URL.createObjectURL(n);
|
|
215
215
|
if (window.navigator.msSaveOrOpenBlob)
|
|
216
216
|
navigator.msSaveBlob(n, m);
|
|
@@ -219,18 +219,18 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
219
219
|
b.href = v, b.download = m, b.click(), window.URL.revokeObjectURL(v);
|
|
220
220
|
}
|
|
221
221
|
}, l.send();
|
|
222
|
-
},
|
|
222
|
+
}, Ue = (e) => new Promise((m, u) => {
|
|
223
223
|
var l = new FileReader();
|
|
224
|
-
l.onload = function(
|
|
224
|
+
l.onload = function(w) {
|
|
225
225
|
let n = "";
|
|
226
226
|
typeof l.result == "string" && (n = JSON.parse(l.result)), m(n);
|
|
227
227
|
}, l.readAsText(e);
|
|
228
|
-
}),
|
|
228
|
+
}), Me = (e, m) => {
|
|
229
229
|
var g;
|
|
230
230
|
const {
|
|
231
|
-
importDialog:
|
|
231
|
+
importDialog: u,
|
|
232
232
|
showProgressDialog: l,
|
|
233
|
-
progressTitle:
|
|
233
|
+
progressTitle: w,
|
|
234
234
|
percent: n,
|
|
235
235
|
progressStatus: v,
|
|
236
236
|
progressLoading: b,
|
|
@@ -238,28 +238,30 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
238
238
|
errorFileSize: I,
|
|
239
239
|
errorMessage: $,
|
|
240
240
|
errorImport: z,
|
|
241
|
-
errorFilePath:
|
|
241
|
+
errorFilePath: S,
|
|
242
242
|
fileHandleType: M,
|
|
243
243
|
fileImport: F,
|
|
244
244
|
fileExport: _,
|
|
245
|
-
downloadFile:
|
|
245
|
+
downloadFile: P,
|
|
246
246
|
clearTimer: E
|
|
247
247
|
} = Pe(m);
|
|
248
|
-
let y = k([]), B = (g =
|
|
248
|
+
let y = k([]), B = (g = Fe()) == null ? void 0 : g.tenantId;
|
|
249
249
|
const A = () => {
|
|
250
|
-
y.value = [], z.value = !1, N.value = "", I.value = "", $.value = "",
|
|
250
|
+
y.value = [], z.value = !1, N.value = "", I.value = "", $.value = "", u.value = !0, S.value = "", m("open");
|
|
251
251
|
};
|
|
252
252
|
let R;
|
|
253
253
|
const O = (a) => {
|
|
254
|
-
const i = e.fileType.split(","), t = a.name.substring(a.name.lastIndexOf(".")), c = T(a.sizeText),
|
|
254
|
+
const i = e.fileType.split(","), t = a.name.substring(a.name.lastIndexOf(".")), c = T(a.sizeText), C = T(e.fileMaxSize);
|
|
255
255
|
if (!i.includes(t)) {
|
|
256
|
-
U.warning(
|
|
256
|
+
U.warning(p("文件格式错误,请重新上传!")), setTimeout(() => {
|
|
257
257
|
y.value = [];
|
|
258
258
|
});
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
-
if (c >
|
|
262
|
-
U.warning(
|
|
261
|
+
if (c > C) {
|
|
262
|
+
U.warning(
|
|
263
|
+
`${p("文件大小不超过")}${xe.value === "zh-CN" ? e.fileMaxSize : " " + e.fileMaxSize}`
|
|
264
|
+
), setTimeout(() => {
|
|
263
265
|
y.value = [];
|
|
264
266
|
});
|
|
265
267
|
return;
|
|
@@ -276,10 +278,10 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
276
278
|
filePath: a.value,
|
|
277
279
|
taskId: t,
|
|
278
280
|
...e.importParams
|
|
279
|
-
},
|
|
281
|
+
}, C = e.importParamsPosition === "params" ? e.importFun("", { params: c }) : e.importFun(c), [x, K] = await C.run();
|
|
280
282
|
return x ? { status: !1 } : { status: !0, taskId: t };
|
|
281
283
|
}, f = async () => {
|
|
282
|
-
if (!y.value.length) return U.warning(
|
|
284
|
+
if (!y.value.length) return U.warning(p("请上传文件"));
|
|
283
285
|
const a = {
|
|
284
286
|
bucketName: e.bucketName,
|
|
285
287
|
importFileName: `${B}/${e.ossName}/${R}`
|
|
@@ -288,7 +290,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
288
290
|
const i = e.maxCount > 1, t = e.maxCount > 1 ? y.value : y.value[0];
|
|
289
291
|
await F(d, t, a, i);
|
|
290
292
|
}, h = () => {
|
|
291
|
-
S
|
|
293
|
+
P(S.value, N.value);
|
|
292
294
|
}, oe = () => {
|
|
293
295
|
_(r, e.templateName);
|
|
294
296
|
}, r = async () => {
|
|
@@ -298,7 +300,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
298
300
|
};
|
|
299
301
|
return {
|
|
300
302
|
showProgressDialog: l,
|
|
301
|
-
progressTitle:
|
|
303
|
+
progressTitle: w,
|
|
302
304
|
percent: n,
|
|
303
305
|
progressStatus: v,
|
|
304
306
|
progressLoading: b,
|
|
@@ -306,7 +308,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
306
308
|
errorFileSize: I,
|
|
307
309
|
errorMessage: $,
|
|
308
310
|
errorImport: z,
|
|
309
|
-
importDialog:
|
|
311
|
+
importDialog: u,
|
|
310
312
|
fileList: y,
|
|
311
313
|
fileHandleType: M,
|
|
312
314
|
showImportHandle: A,
|
|
@@ -316,7 +318,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
316
318
|
downTemplate: async () => {
|
|
317
319
|
let a = "";
|
|
318
320
|
if (e.templateUrl)
|
|
319
|
-
a = e.templateUrl,
|
|
321
|
+
a = e.templateUrl, P(ie(a), e.templateName);
|
|
320
322
|
else if (e.templateFun) {
|
|
321
323
|
if (e.templateType === "static") {
|
|
322
324
|
if (e.templateUrl)
|
|
@@ -325,14 +327,14 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
325
327
|
const [i, t] = await e.templateFun().run();
|
|
326
328
|
a = t;
|
|
327
329
|
}
|
|
328
|
-
|
|
330
|
+
P(ie(a), e.templateName);
|
|
329
331
|
}
|
|
330
332
|
e.templateType === "dynamic" && e.templateFun && oe();
|
|
331
333
|
}
|
|
332
334
|
},
|
|
333
335
|
clearTimer: E
|
|
334
336
|
};
|
|
335
|
-
},
|
|
337
|
+
}, Ee = { class: "das-import-button" }, Le = { class: "tip-box" }, je = { class: "first-line" }, Be = { class: "second-line" }, Re = /* @__PURE__ */ ge({
|
|
336
338
|
__name: "App",
|
|
337
339
|
props: {
|
|
338
340
|
btnText: {},
|
|
@@ -354,33 +356,33 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
354
356
|
multiple: { type: Boolean, default: !1 }
|
|
355
357
|
},
|
|
356
358
|
emits: ["open", "success", "error"],
|
|
357
|
-
setup(e, { expose: m, emit:
|
|
358
|
-
const l = e,
|
|
359
|
+
setup(e, { expose: m, emit: u }) {
|
|
360
|
+
const l = e, w = u, n = ve(() => l.btnText ? l.btnText : p("导入")), {
|
|
359
361
|
showProgressDialog: v,
|
|
360
362
|
progressTitle: b,
|
|
361
363
|
percent: N,
|
|
362
364
|
progressStatus: I,
|
|
363
365
|
errorFileName: $,
|
|
364
366
|
errorFileSize: z,
|
|
365
|
-
errorMessage:
|
|
367
|
+
errorMessage: S,
|
|
366
368
|
errorImport: M,
|
|
367
369
|
importDialog: F,
|
|
368
370
|
fileList: _,
|
|
369
|
-
fileHandleType:
|
|
371
|
+
fileHandleType: P,
|
|
370
372
|
showImportHandle: E,
|
|
371
373
|
confirmImport: y,
|
|
372
374
|
fileUpload: B,
|
|
373
375
|
errorFileDownload: A,
|
|
374
376
|
downTemplate: R,
|
|
375
377
|
clearTimer: O
|
|
376
|
-
} =
|
|
378
|
+
} = Me(l, w);
|
|
377
379
|
let T;
|
|
378
|
-
return he(
|
|
379
|
-
d.includes("import") ? T = [
|
|
380
|
+
return he(P, (d) => {
|
|
381
|
+
d.includes("import") ? T = [p("正在导入中..."), p("导入失败"), p("导入成功")] : T = [p("正在导出中..."), p("导出失败"), p("导出成功")];
|
|
380
382
|
}), m({
|
|
381
383
|
confirmImport: y,
|
|
382
384
|
showImportHandle: E
|
|
383
|
-
}), (d, f) => (
|
|
385
|
+
}), (d, f) => (Ce(), we("div", Ee, [
|
|
384
386
|
q("div", {
|
|
385
387
|
onClick: f[0] || (f[0] = //@ts-ignore
|
|
386
388
|
(...h) => o(E) && o(E)(...h))
|
|
@@ -390,7 +392,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
390
392
|
size: "middle",
|
|
391
393
|
"btn-type": "primary"
|
|
392
394
|
}, {
|
|
393
|
-
default:
|
|
395
|
+
default: L(() => [
|
|
394
396
|
Y(
|
|
395
397
|
H(n.value),
|
|
396
398
|
1
|
|
@@ -404,22 +406,22 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
404
406
|
]),
|
|
405
407
|
le(" 导入弹窗 "),
|
|
406
408
|
D(o(se), {
|
|
407
|
-
title: o(
|
|
409
|
+
title: o(j)(d.importDialogName).value,
|
|
408
410
|
modelValue: o(F),
|
|
409
411
|
"onUpdate:modelValue": f[3] || (f[3] = (h) => Q(F) ? F.value = h : null),
|
|
410
412
|
customClass: "upload-dialog",
|
|
411
413
|
width: "610px",
|
|
412
414
|
height: "500px"
|
|
413
415
|
}, {
|
|
414
|
-
footer:
|
|
416
|
+
footer: L(() => [
|
|
415
417
|
q("div", null, [
|
|
416
418
|
D(o(W), {
|
|
417
419
|
size: "middle",
|
|
418
420
|
onClick: f[2] || (f[2] = (h) => F.value = !1)
|
|
419
421
|
}, {
|
|
420
|
-
default:
|
|
422
|
+
default: L(() => [
|
|
421
423
|
Y(
|
|
422
|
-
H(o(
|
|
424
|
+
H(o(j)("取消").value),
|
|
423
425
|
1
|
|
424
426
|
/* TEXT */
|
|
425
427
|
)
|
|
@@ -434,9 +436,9 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
434
436
|
style: { "margin-left": "12px", width: "100%" },
|
|
435
437
|
onClick: o(y)
|
|
436
438
|
}, {
|
|
437
|
-
default:
|
|
439
|
+
default: L(() => [
|
|
438
440
|
Y(
|
|
439
|
-
H(o(
|
|
441
|
+
H(o(j)(`${d.confirmButtonName}`).value),
|
|
440
442
|
1
|
|
441
443
|
/* TEXT */
|
|
442
444
|
)
|
|
@@ -446,12 +448,12 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
446
448
|
}, 8, ["disabled", "onClick"])
|
|
447
449
|
])
|
|
448
450
|
]),
|
|
449
|
-
default:
|
|
451
|
+
default: L(() => [
|
|
450
452
|
re(d.$slots, "tip", {}, () => [
|
|
451
|
-
q("div",
|
|
453
|
+
q("div", Le, [
|
|
452
454
|
q("div", je, [
|
|
453
455
|
Y(
|
|
454
|
-
H(o(
|
|
456
|
+
H(o(j)("1、点击下载 ").value),
|
|
455
457
|
1
|
|
456
458
|
/* TEXT */
|
|
457
459
|
),
|
|
@@ -461,9 +463,9 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
461
463
|
block: "",
|
|
462
464
|
onClick: o(R)
|
|
463
465
|
}, {
|
|
464
|
-
default:
|
|
466
|
+
default: L(() => [
|
|
465
467
|
Y(
|
|
466
|
-
H(o(
|
|
468
|
+
H(o(j)(`${d.templateName}`).value),
|
|
467
469
|
1
|
|
468
470
|
/* TEXT */
|
|
469
471
|
)
|
|
@@ -474,20 +476,20 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
474
476
|
]),
|
|
475
477
|
q(
|
|
476
478
|
"div",
|
|
477
|
-
|
|
478
|
-
H(o(
|
|
479
|
+
Be,
|
|
480
|
+
H(o(j)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
|
|
479
481
|
1
|
|
480
482
|
/* TEXT */
|
|
481
483
|
)
|
|
482
484
|
])
|
|
483
485
|
], !0),
|
|
484
|
-
D(o(
|
|
486
|
+
D(o(be), {
|
|
485
487
|
modelValue: o(_),
|
|
486
488
|
"onUpdate:modelValue": f[1] || (f[1] = (h) => Q(_) ? _.value = h : null),
|
|
487
489
|
error: o(M),
|
|
488
490
|
"error-file-name": o($),
|
|
489
491
|
"error-file-size": o(z),
|
|
490
|
-
"error-message": o(
|
|
492
|
+
"error-message": o(S),
|
|
491
493
|
accept: d.fileType,
|
|
492
494
|
maxCount: d.maxCount,
|
|
493
495
|
multiple: d.multiple,
|
|
@@ -501,15 +503,15 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
501
503
|
le(" 进度弹窗 "),
|
|
502
504
|
D(o(se), {
|
|
503
505
|
size: "mini",
|
|
504
|
-
title: o(
|
|
506
|
+
title: o(j)(o(b)).value,
|
|
505
507
|
"is-feedback-img": !1,
|
|
506
508
|
modelValue: o(v),
|
|
507
509
|
"onUpdate:modelValue": f[5] || (f[5] = (h) => Q(v) ? v.value = h : null),
|
|
508
510
|
type: "feedback",
|
|
509
511
|
onClose: o(O)
|
|
510
512
|
}, {
|
|
511
|
-
default:
|
|
512
|
-
D(o(
|
|
513
|
+
default: L(() => [
|
|
514
|
+
D(o(ye), {
|
|
513
515
|
modelValue: o(N),
|
|
514
516
|
"onUpdate:modelValue": f[4] || (f[4] = (h) => Q(N) ? N.value = h : null),
|
|
515
517
|
style: { "margin-top": "35px" },
|
|
@@ -523,12 +525,12 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
523
525
|
}, 8, ["title", "modelValue", "onClose"])
|
|
524
526
|
]));
|
|
525
527
|
}
|
|
526
|
-
}),
|
|
527
|
-
const
|
|
528
|
-
for (const [l,
|
|
529
|
-
|
|
530
|
-
return
|
|
531
|
-
},
|
|
528
|
+
}), Ve = (e, m) => {
|
|
529
|
+
const u = e.__vccOpts || e;
|
|
530
|
+
for (const [l, w] of m)
|
|
531
|
+
u[l] = w;
|
|
532
|
+
return u;
|
|
533
|
+
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-89d6ab48"]]), Ae = {
|
|
532
534
|
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1、Click to Download ", _appCode: "framework" },
|
|
533
535
|
"2、仅支持上传Excel文件,重复数据以最后一条为准": {
|
|
534
536
|
"zh-CN": "2、仅支持上传Excel文件,重复数据以最后一条为准",
|
|
@@ -574,9 +576,9 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
574
576
|
_appCode: "framework"
|
|
575
577
|
}
|
|
576
578
|
};
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
+
ke(Ae);
|
|
580
|
+
const rt = fe(He);
|
|
579
581
|
export {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
+
rt as DasImportButton,
|
|
583
|
+
rt as default
|
|
582
584
|
};
|
|
Binary file
|
|
@@ -8,6 +8,7 @@ export * from './export-button';
|
|
|
8
8
|
export * from './import-button';
|
|
9
9
|
export * from './layout-breadcrumb';
|
|
10
10
|
export * from './model-table-dialog';
|
|
11
|
+
export * from './payment';
|
|
11
12
|
export * from './process-configuration';
|
|
12
13
|
export * from './process-form';
|
|
13
14
|
export * from './process-log';
|
|
@@ -8,6 +8,7 @@ export * from './export-button'
|
|
|
8
8
|
export * from './import-button'
|
|
9
9
|
export * from './layout-breadcrumb'
|
|
10
10
|
export * from './model-table-dialog'
|
|
11
|
+
export * from './payment'
|
|
11
12
|
export * from './process-configuration'
|
|
12
13
|
export * from './process-form'
|
|
13
14
|
export * from './process-log'
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const payService: {
|
|
2
|
+
get: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
3
|
+
post: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
4
|
+
put: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
5
|
+
patch: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
6
|
+
delete: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
7
|
+
};
|
|
8
|
+
export declare const getOrderState: (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|