@keyblade/pro-components 1.15.0-alpha.14 → 1.15.0-alpha.16
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/es/components.d.ts +2 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +53 -47
- package/es/inerface.d.ts +1 -0
- package/es/pro-appeal/appeal-step.vue.d.ts +228 -0
- package/es/pro-appeal/appeal-step.vue.js +424 -0
- package/es/pro-appeal/appeal-step.vue3.js +5 -0
- package/es/pro-appeal/assets/idCardImg.png.js +4 -0
- package/es/pro-appeal/enum.d.ts +28 -0
- package/es/pro-appeal/enum.js +12 -0
- package/es/pro-appeal/index.d.ts +11 -0
- package/es/pro-appeal/index.js +11 -0
- package/es/pro-appeal/index.vue.d.ts +43 -0
- package/es/pro-appeal/index.vue.js +172 -0
- package/es/pro-appeal/index.vue3.js +5 -0
- package/es/pro-appeal/interface.d.ts +48 -0
- package/es/pro-appeal/query-progress.vue.d.ts +222 -0
- package/es/pro-appeal/query-progress.vue.js +175 -0
- package/es/pro-appeal/query-progress.vue3.js +5 -0
- package/es/pro-find-password/index.vue.d.ts +2380 -2281
- package/es/pro-find-password/index.vue.js +64 -56
- package/es/pro-find-password/reset-password.vue.d.ts +209 -1
- package/es/pro-find-password/reset-password.vue.js +76 -73
- package/es/pro-login/auth-verify.vue.d.ts +780 -3
- package/es/pro-login/interface.d.ts +2 -2
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
var z = (P, k, o) => new Promise((u, d) => {
|
|
2
|
+
var S = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
m(o.next(n));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
d(c);
|
|
7
|
+
}
|
|
8
|
+
}, b = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
m(o.throw(n));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
d(c);
|
|
13
|
+
}
|
|
14
|
+
}, m = (n) => n.done ? u(n.value) : Promise.resolve(n.value).then(S, b);
|
|
15
|
+
m((o = o.apply(P, k)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as w, mergeModels as B, useModel as R, computed as U, resolveComponent as I, createBlock as C, openBlock as v, unref as r, mergeProps as O, withCtx as f, createElementVNode as l, renderSlot as V, normalizeClass as i, createVNode as g, toDisplayString as T, createTextVNode as y, createElementBlock as E, createCommentVNode as A, Fragment as M } from "vue";
|
|
18
|
+
import q from "./appeal-step.vue.js";
|
|
19
|
+
/* empty css */
|
|
20
|
+
import D from "./query-progress.vue.js";
|
|
21
|
+
/* empty css */
|
|
22
|
+
import { Card as F, Button as N, Space as h } from "@arco-design/web-vue";
|
|
23
|
+
import { EAppealSteps as a } from "./enum.js";
|
|
24
|
+
const s = "keyblade-appeal", Y = /* @__PURE__ */ w({
|
|
25
|
+
__name: "index",
|
|
26
|
+
props: /* @__PURE__ */ B({
|
|
27
|
+
cardProps: { default: () => ({
|
|
28
|
+
bordered: !1
|
|
29
|
+
}) },
|
|
30
|
+
inputProps: { default: () => ({
|
|
31
|
+
size: "large"
|
|
32
|
+
}) },
|
|
33
|
+
current: {},
|
|
34
|
+
loading: { type: Boolean },
|
|
35
|
+
progressResult: {},
|
|
36
|
+
validInfoResult: {},
|
|
37
|
+
checkAuth: { type: Boolean },
|
|
38
|
+
imageUploadOptions: {},
|
|
39
|
+
countdown: {}
|
|
40
|
+
}, {
|
|
41
|
+
current: { default: a.Tip, type: Number, required: !0 },
|
|
42
|
+
currentModifiers: {}
|
|
43
|
+
}),
|
|
44
|
+
emits: /* @__PURE__ */ B(["onBack", "onQueryProgressSubmit", "onAppealNextStep", "send-sms-code"], ["update:current"]),
|
|
45
|
+
setup(P, { emit: k }) {
|
|
46
|
+
const o = R(P, "current"), u = k, d = U(() => o.value === a.QueryProgress ? {
|
|
47
|
+
text: "查询申诉进度",
|
|
48
|
+
btnText: "返回登录页"
|
|
49
|
+
} : {
|
|
50
|
+
text: "账号申诉",
|
|
51
|
+
btnText: "无需申诉,去登录"
|
|
52
|
+
}), S = () => {
|
|
53
|
+
o.value = a.Appeal;
|
|
54
|
+
}, b = () => {
|
|
55
|
+
o.value = a.QueryProgress;
|
|
56
|
+
}, m = (e) => z(null, null, function* () {
|
|
57
|
+
return yield u("send-sms-code", e);
|
|
58
|
+
}), n = (e) => {
|
|
59
|
+
u("onAppealNextStep", e);
|
|
60
|
+
}, c = (e) => {
|
|
61
|
+
u("onQueryProgressSubmit", e);
|
|
62
|
+
}, x = () => {
|
|
63
|
+
u("onBack");
|
|
64
|
+
};
|
|
65
|
+
return (e, t) => {
|
|
66
|
+
const Q = I("icon-exclamation-circle-fill");
|
|
67
|
+
return v(), C(r(F), O({ class: s }, e.cardProps), {
|
|
68
|
+
default: f(() => [
|
|
69
|
+
l("div", {
|
|
70
|
+
class: i(`${s}-header`)
|
|
71
|
+
}, [
|
|
72
|
+
l("div", {
|
|
73
|
+
class: i(`${s}-header-title`)
|
|
74
|
+
}, T(d.value.text), 3),
|
|
75
|
+
g(r(N), {
|
|
76
|
+
class: i(`${s}-header-btn`),
|
|
77
|
+
type: "text",
|
|
78
|
+
onClick: x
|
|
79
|
+
}, {
|
|
80
|
+
default: f(() => [
|
|
81
|
+
y(T(d.value.btnText) + " > ", 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["class"])
|
|
85
|
+
], 2),
|
|
86
|
+
l("div", {
|
|
87
|
+
class: i(`${s}-container`)
|
|
88
|
+
}, [
|
|
89
|
+
o.value === r(a).Tip ? (v(), E(M, { key: 0 }, [
|
|
90
|
+
l("div", {
|
|
91
|
+
class: i(`${s}-step-tip`)
|
|
92
|
+
}, [
|
|
93
|
+
l("div", null, [
|
|
94
|
+
g(Q, {
|
|
95
|
+
size: "16",
|
|
96
|
+
style: { color: "#f8a33a" }
|
|
97
|
+
}),
|
|
98
|
+
t[2] || (t[2] = y("申诉须知:"))
|
|
99
|
+
]),
|
|
100
|
+
t[3] || (t[3] = l("div", null, "您可通过自助申诉,更改绑定的手机号", -1)),
|
|
101
|
+
t[4] || (t[4] = l("div", null, "审核时间为3个工作日,我们将利用这段等待时间验证您提交的信息。审核结果将在第一时间通知您", -1)),
|
|
102
|
+
t[5] || (t[5] = l("div", null, "提交申诉后,请妥善保管申诉单号,以便随时查询申诉进度", -1))
|
|
103
|
+
], 2),
|
|
104
|
+
g(r(h), {
|
|
105
|
+
direction: "vertical",
|
|
106
|
+
fill: ""
|
|
107
|
+
}, {
|
|
108
|
+
default: f(() => {
|
|
109
|
+
var p, $;
|
|
110
|
+
return [
|
|
111
|
+
g(r(N), {
|
|
112
|
+
type: "primary",
|
|
113
|
+
long: "",
|
|
114
|
+
size: (p = e.inputProps) == null ? void 0 : p.size,
|
|
115
|
+
class: i(`${s}-start-button`),
|
|
116
|
+
onClick: S
|
|
117
|
+
}, {
|
|
118
|
+
default: f(() => t[6] || (t[6] = [
|
|
119
|
+
y(" 开始申诉 ")
|
|
120
|
+
])),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["size", "class"]),
|
|
123
|
+
g(r(N), {
|
|
124
|
+
onClick: b,
|
|
125
|
+
type: "outline",
|
|
126
|
+
long: "",
|
|
127
|
+
size: ($ = e.inputProps) == null ? void 0 : $.size,
|
|
128
|
+
class: i(`${s}-query-button`)
|
|
129
|
+
}, {
|
|
130
|
+
default: f(() => t[7] || (t[7] = [
|
|
131
|
+
y(" 查询申诉进度 ")
|
|
132
|
+
])),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["size", "class"])
|
|
135
|
+
];
|
|
136
|
+
}),
|
|
137
|
+
_: 1
|
|
138
|
+
})
|
|
139
|
+
], 64)) : A("", !0),
|
|
140
|
+
o.value > r(a).Tip ? (v(), C(q, {
|
|
141
|
+
key: 1,
|
|
142
|
+
current: o.value,
|
|
143
|
+
"onUpdate:current": t[0] || (t[0] = (p) => o.value = p),
|
|
144
|
+
loading: e.loading,
|
|
145
|
+
validInfoResult: e.validInfoResult,
|
|
146
|
+
inputProps: e.inputProps,
|
|
147
|
+
checkAuth: e.checkAuth,
|
|
148
|
+
imageUploadOptions: e.imageUploadOptions,
|
|
149
|
+
countdown: e.countdown,
|
|
150
|
+
onNextStep: n,
|
|
151
|
+
onSendSmsCode: m
|
|
152
|
+
}, null, 8, ["current", "loading", "validInfoResult", "inputProps", "checkAuth", "imageUploadOptions", "countdown"])) : A("", !0),
|
|
153
|
+
o.value === r(a).QueryProgress ? (v(), C(D, {
|
|
154
|
+
key: 2,
|
|
155
|
+
loading: e.loading,
|
|
156
|
+
current: o.value,
|
|
157
|
+
"onUpdate:current": t[1] || (t[1] = (p) => o.value = p),
|
|
158
|
+
"progress-result": e.progressResult,
|
|
159
|
+
inputProps: e.inputProps,
|
|
160
|
+
onSubmit: c
|
|
161
|
+
}, null, 8, ["loading", "current", "progress-result", "inputProps"])) : A("", !0)
|
|
162
|
+
], 2),
|
|
163
|
+
V(e.$slots, "footer")
|
|
164
|
+
]),
|
|
165
|
+
_: 3
|
|
166
|
+
}, 16);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
Y as default
|
|
172
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FileItem } from '@arco-design/web-vue';
|
|
2
|
+
import { ICardProps, IInputProps } from '../pro-login';
|
|
3
|
+
import { EAppealSteps, EAppealAuditStatus } from './enum';
|
|
4
|
+
import { ImageUploadOptions } from '../pro-image-upload';
|
|
5
|
+
export * from './enum';
|
|
6
|
+
export type IAppeal = {
|
|
7
|
+
/** 卡片属性 */
|
|
8
|
+
cardProps?: ICardProps;
|
|
9
|
+
/** 输入框属性 */
|
|
10
|
+
inputProps?: IInputProps;
|
|
11
|
+
/** 当前步骤 */
|
|
12
|
+
current: EAppealSteps | number;
|
|
13
|
+
/** 加载中 */
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
/** 申诉进度响应结果 */
|
|
16
|
+
progressResult?: IAppealProgressResult;
|
|
17
|
+
/** 验证信息响应结果 */
|
|
18
|
+
validInfoResult?: IAppealValidInfoResult[];
|
|
19
|
+
/** 检查用户审核状态 */
|
|
20
|
+
checkAuth?: boolean;
|
|
21
|
+
/** 证件照片上传配置 */
|
|
22
|
+
imageUploadOptions: ImageUploadOptions;
|
|
23
|
+
/** 短信验证码倒计时 */
|
|
24
|
+
countdown?: number;
|
|
25
|
+
};
|
|
26
|
+
export type IAppealValidInfoResult = {
|
|
27
|
+
mobile: string;
|
|
28
|
+
rst: string;
|
|
29
|
+
};
|
|
30
|
+
export type IAppealProgressResult = {
|
|
31
|
+
/** 审核状态 */
|
|
32
|
+
auditStatus: EAppealAuditStatus;
|
|
33
|
+
/** 申诉单号 */
|
|
34
|
+
applyNo: string;
|
|
35
|
+
/** 申诉时间 */
|
|
36
|
+
applyTime: string;
|
|
37
|
+
/** 审核时间 */
|
|
38
|
+
auditTime: string;
|
|
39
|
+
/** 驳回意见 */
|
|
40
|
+
comment: string;
|
|
41
|
+
};
|
|
42
|
+
export type IAppealNextStep = {
|
|
43
|
+
current: number;
|
|
44
|
+
userName: string;
|
|
45
|
+
idCardImage: FileItem[];
|
|
46
|
+
mobile: string;
|
|
47
|
+
mobileCode: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { IAppealProgressResult } from './interface';
|
|
2
|
+
import { IInputProps } from '../pro-login/interface';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** 申诉进度响应结果 */
|
|
5
|
+
progressResult?: IAppealProgressResult;
|
|
6
|
+
/** 加载中 */
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
/** 输入框属性 */
|
|
9
|
+
inputProps?: IInputProps;
|
|
10
|
+
};
|
|
11
|
+
declare const current: import('vue').ModelRef<number, string, number, number>;
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
'current': typeof current['value'];
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:current": (value: number) => any;
|
|
17
|
+
} & {
|
|
18
|
+
submit: (value: {
|
|
19
|
+
applyNo: string;
|
|
20
|
+
}) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onSubmit?: ((value: {
|
|
23
|
+
applyNo: string;
|
|
24
|
+
}) => any) | undefined;
|
|
25
|
+
"onUpdate:current"?: ((value: number) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
inputProps: IInputProps;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
+
formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
model: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
layout: {
|
|
35
|
+
type: import('vue').PropType<"horizontal" | "vertical" | "inline">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
size: {
|
|
39
|
+
type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
|
|
40
|
+
};
|
|
41
|
+
labelColProps: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: () => {
|
|
44
|
+
span: number;
|
|
45
|
+
offset: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
wrapperColProps: {
|
|
49
|
+
type: ObjectConstructor;
|
|
50
|
+
default: () => {
|
|
51
|
+
span: number;
|
|
52
|
+
offset: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
labelColStyle: ObjectConstructor;
|
|
56
|
+
wrapperColStyle: ObjectConstructor;
|
|
57
|
+
labelAlign: {
|
|
58
|
+
type: import('vue').PropType<"left" | "right">;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
disabled: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
rules: {
|
|
66
|
+
type: import('vue').PropType<Record<string, import('@arco-design/web-vue').FieldRule<any> | import('@arco-design/web-vue').FieldRule<any>[]>>;
|
|
67
|
+
};
|
|
68
|
+
autoLabelWidth: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
id: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
scrollToFirstError: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
}>> & Readonly<{
|
|
80
|
+
onSubmit?: ((data: {
|
|
81
|
+
values: Record<string, any>;
|
|
82
|
+
errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined;
|
|
83
|
+
}, ev: Event) => any) | undefined;
|
|
84
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
85
|
+
onSubmitFailed?: ((data: {
|
|
86
|
+
values: Record<string, any>;
|
|
87
|
+
errors: Record<string, import('@arco-design/web-vue').ValidatedError>;
|
|
88
|
+
}, ev: Event) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
cls: import('vue').ComputedRef<(string | {
|
|
91
|
+
[x: string]: boolean;
|
|
92
|
+
})[]>;
|
|
93
|
+
formRef: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
94
|
+
handleSubmit: (e: Event) => void;
|
|
95
|
+
innerValidate: (callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
96
|
+
innerValidateField: (field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
97
|
+
innerResetFields: (field?: string | string[] | undefined) => void;
|
|
98
|
+
innerClearValidate: (field?: string | string[] | undefined) => void;
|
|
99
|
+
innerSetFields: (data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>) => void;
|
|
100
|
+
innerScrollToField: (field: string, options?: import('../../node_modules/scroll-into-view-if-needed').Options<any> | undefined) => void;
|
|
101
|
+
}, {}, {}, {
|
|
102
|
+
validate(callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
103
|
+
validateField(field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
104
|
+
resetFields(field?: string | string[] | undefined): void;
|
|
105
|
+
clearValidate(field?: string | string[] | undefined): void;
|
|
106
|
+
setFields(data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>): void;
|
|
107
|
+
scrollToField(field: string): void;
|
|
108
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
109
|
+
submit: (data: {
|
|
110
|
+
values: Record<string, any>;
|
|
111
|
+
errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined;
|
|
112
|
+
}, ev: Event) => true;
|
|
113
|
+
submitSuccess: (values: Record<string, any>, ev: Event) => true;
|
|
114
|
+
submitFailed: (data: {
|
|
115
|
+
values: Record<string, any>;
|
|
116
|
+
errors: Record<string, import('@arco-design/web-vue').ValidatedError>;
|
|
117
|
+
}, ev: Event) => true;
|
|
118
|
+
}, import('vue').PublicProps, {
|
|
119
|
+
disabled: boolean;
|
|
120
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
121
|
+
labelColProps: Record<string, any>;
|
|
122
|
+
wrapperColProps: Record<string, any>;
|
|
123
|
+
labelAlign: "left" | "right";
|
|
124
|
+
autoLabelWidth: boolean;
|
|
125
|
+
scrollToFirstError: boolean;
|
|
126
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
127
|
+
P: {};
|
|
128
|
+
B: {};
|
|
129
|
+
D: {};
|
|
130
|
+
C: {};
|
|
131
|
+
M: {};
|
|
132
|
+
Defaults: {};
|
|
133
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
134
|
+
model: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
required: true;
|
|
137
|
+
};
|
|
138
|
+
layout: {
|
|
139
|
+
type: import('vue').PropType<"horizontal" | "vertical" | "inline">;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
142
|
+
size: {
|
|
143
|
+
type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
|
|
144
|
+
};
|
|
145
|
+
labelColProps: {
|
|
146
|
+
type: ObjectConstructor;
|
|
147
|
+
default: () => {
|
|
148
|
+
span: number;
|
|
149
|
+
offset: number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
wrapperColProps: {
|
|
153
|
+
type: ObjectConstructor;
|
|
154
|
+
default: () => {
|
|
155
|
+
span: number;
|
|
156
|
+
offset: number;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
labelColStyle: ObjectConstructor;
|
|
160
|
+
wrapperColStyle: ObjectConstructor;
|
|
161
|
+
labelAlign: {
|
|
162
|
+
type: import('vue').PropType<"left" | "right">;
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
disabled: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: undefined;
|
|
168
|
+
};
|
|
169
|
+
rules: {
|
|
170
|
+
type: import('vue').PropType<Record<string, import('@arco-design/web-vue').FieldRule<any> | import('@arco-design/web-vue').FieldRule<any>[]>>;
|
|
171
|
+
};
|
|
172
|
+
autoLabelWidth: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
id: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
};
|
|
179
|
+
scrollToFirstError: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
183
|
+
}>> & Readonly<{
|
|
184
|
+
onSubmit?: ((data: {
|
|
185
|
+
values: Record<string, any>;
|
|
186
|
+
errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined;
|
|
187
|
+
}, ev: Event) => any) | undefined;
|
|
188
|
+
onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
|
|
189
|
+
onSubmitFailed?: ((data: {
|
|
190
|
+
values: Record<string, any>;
|
|
191
|
+
errors: Record<string, import('@arco-design/web-vue').ValidatedError>;
|
|
192
|
+
}, ev: Event) => any) | undefined;
|
|
193
|
+
}>, {
|
|
194
|
+
cls: import('vue').ComputedRef<(string | {
|
|
195
|
+
[x: string]: boolean;
|
|
196
|
+
})[]>;
|
|
197
|
+
formRef: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
198
|
+
handleSubmit: (e: Event) => void;
|
|
199
|
+
innerValidate: (callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
200
|
+
innerValidateField: (field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
201
|
+
innerResetFields: (field?: string | string[] | undefined) => void;
|
|
202
|
+
innerClearValidate: (field?: string | string[] | undefined) => void;
|
|
203
|
+
innerSetFields: (data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>) => void;
|
|
204
|
+
innerScrollToField: (field: string, options?: import('../../node_modules/scroll-into-view-if-needed').Options<any> | undefined) => void;
|
|
205
|
+
}, {}, {}, {
|
|
206
|
+
validate(callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
207
|
+
validateField(field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
|
|
208
|
+
resetFields(field?: string | string[] | undefined): void;
|
|
209
|
+
clearValidate(field?: string | string[] | undefined): void;
|
|
210
|
+
setFields(data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>): void;
|
|
211
|
+
scrollToField(field: string): void;
|
|
212
|
+
}, {
|
|
213
|
+
disabled: boolean;
|
|
214
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
215
|
+
labelColProps: Record<string, any>;
|
|
216
|
+
wrapperColProps: Record<string, any>;
|
|
217
|
+
labelAlign: "left" | "right";
|
|
218
|
+
autoLabelWidth: boolean;
|
|
219
|
+
scrollToFirstError: boolean;
|
|
220
|
+
}> | null;
|
|
221
|
+
}, any>;
|
|
222
|
+
export default _default;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { defineComponent as P, mergeModels as v, useModel as I, ref as p, computed as i, watch as $, resolveComponent as D, createBlock as F, createElementBlock as j, openBlock as b, unref as l, withCtx as s, createVNode as r, mergeProps as Q, createElementVNode as u, createTextVNode as a, normalizeClass as R, toDisplayString as U } from "vue";
|
|
2
|
+
import { Form as _, FormItem as S, Input as G, Space as H, Button as d, Alert as J, Descriptions as K } from "@arco-design/web-vue";
|
|
3
|
+
import { EAppealAuditStatus as N, EAppealAuditStatusMapText as L, EAppealSteps as x } from "./enum.js";
|
|
4
|
+
const O = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "progress-result"
|
|
7
|
+
}, k = "keyblade-appeal-query-progress", Z = /* @__PURE__ */ P({
|
|
8
|
+
__name: "query-progress",
|
|
9
|
+
props: /* @__PURE__ */ v({
|
|
10
|
+
progressResult: {},
|
|
11
|
+
loading: { type: Boolean },
|
|
12
|
+
inputProps: { default: () => ({
|
|
13
|
+
size: "large"
|
|
14
|
+
}) }
|
|
15
|
+
}, {
|
|
16
|
+
current: { default: x.QueryProgress, type: Number, required: !0 },
|
|
17
|
+
currentModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ v(["submit"], ["update:current"]),
|
|
20
|
+
setup(m, { emit: C }) {
|
|
21
|
+
const o = m, V = I(m, "current"), c = p(!0), A = C, f = p(), T = i(() => {
|
|
22
|
+
var e;
|
|
23
|
+
const t = (e = o.progressResult) == null ? void 0 : e.auditStatus;
|
|
24
|
+
return t === N.Passed ? "success" : t === N.Rejected ? "error" : "warning";
|
|
25
|
+
}), q = i(() => {
|
|
26
|
+
var e;
|
|
27
|
+
const t = (e = o.progressResult) == null ? void 0 : e.auditStatus;
|
|
28
|
+
return typeof t == "number" ? L[t] : "";
|
|
29
|
+
}), w = i(() => o.progressResult ? [
|
|
30
|
+
{
|
|
31
|
+
label: "申诉单号",
|
|
32
|
+
value: o.progressResult.applyNo
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "申诉时间",
|
|
36
|
+
value: o.progressResult.applyTime
|
|
37
|
+
}
|
|
38
|
+
] : []);
|
|
39
|
+
$(() => o.progressResult, (t) => {
|
|
40
|
+
t && (c.value = !1);
|
|
41
|
+
});
|
|
42
|
+
const n = p({
|
|
43
|
+
applyNo: ""
|
|
44
|
+
}), z = {
|
|
45
|
+
applyNo: [
|
|
46
|
+
{
|
|
47
|
+
required: !0,
|
|
48
|
+
message: "请输入申诉单号"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
match: /^[0-9]{20}$/,
|
|
52
|
+
message: "请输入正确的申诉单号"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}, B = (t) => {
|
|
56
|
+
var e;
|
|
57
|
+
(e = f.value) == null || e.clearValidate(t);
|
|
58
|
+
}, y = () => {
|
|
59
|
+
V.value = x.Tip;
|
|
60
|
+
}, E = () => {
|
|
61
|
+
A("submit", n.value);
|
|
62
|
+
};
|
|
63
|
+
return (t, e) => {
|
|
64
|
+
const M = D("icon-exclamation-circle-fill");
|
|
65
|
+
return !t.progressResult || c.value ? (b(), F(l(_), {
|
|
66
|
+
key: 0,
|
|
67
|
+
ref_key: "formRef",
|
|
68
|
+
ref: f,
|
|
69
|
+
model: n.value,
|
|
70
|
+
rules: z,
|
|
71
|
+
size: "large",
|
|
72
|
+
layout: "vertical",
|
|
73
|
+
onSubmitSuccess: E
|
|
74
|
+
}, {
|
|
75
|
+
default: s(() => [
|
|
76
|
+
r(l(S), {
|
|
77
|
+
field: "applyNo",
|
|
78
|
+
label: "请输入您的申诉单号:"
|
|
79
|
+
}, {
|
|
80
|
+
extra: s(() => [
|
|
81
|
+
u("div", null, [
|
|
82
|
+
u("p", null, [
|
|
83
|
+
r(M, {
|
|
84
|
+
size: "16",
|
|
85
|
+
style: { color: "#f8a33a" }
|
|
86
|
+
}),
|
|
87
|
+
e[2] || (e[2] = a(" 说明:1、提交申诉之后,申诉单号系统以短信形式发送到新手机号;"))
|
|
88
|
+
]),
|
|
89
|
+
e[3] || (e[3] = u("p", { style: { "text-indent": "4.5em" } }, " 2、请完整填写申诉单号。", -1))
|
|
90
|
+
]),
|
|
91
|
+
e[4] || (e[4] = u("div", null, null, -1))
|
|
92
|
+
]),
|
|
93
|
+
default: s(() => [
|
|
94
|
+
r(l(G), Q(t.inputProps, {
|
|
95
|
+
modelValue: n.value.applyNo,
|
|
96
|
+
"onUpdate:modelValue": e[0] || (e[0] = (g) => n.value.applyNo = g),
|
|
97
|
+
modelModifiers: { trim: !0 },
|
|
98
|
+
"max-length": 20,
|
|
99
|
+
placeholder: "请输入申诉单号",
|
|
100
|
+
onInput: e[1] || (e[1] = (g) => B("applyNo"))
|
|
101
|
+
}), null, 16, ["modelValue"])
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}),
|
|
105
|
+
r(l(S), null, {
|
|
106
|
+
default: s(() => [
|
|
107
|
+
r(l(H), {
|
|
108
|
+
direction: "vertical",
|
|
109
|
+
fill: "",
|
|
110
|
+
style: { width: "100%" }
|
|
111
|
+
}, {
|
|
112
|
+
default: s(() => [
|
|
113
|
+
r(l(d), {
|
|
114
|
+
type: "outline",
|
|
115
|
+
long: "",
|
|
116
|
+
onClick: y
|
|
117
|
+
}, {
|
|
118
|
+
default: s(() => e[5] || (e[5] = [
|
|
119
|
+
a(" 返回 ")
|
|
120
|
+
])),
|
|
121
|
+
_: 1
|
|
122
|
+
}),
|
|
123
|
+
r(l(d), {
|
|
124
|
+
type: "primary",
|
|
125
|
+
loading: t.loading,
|
|
126
|
+
long: "",
|
|
127
|
+
"html-type": "submit",
|
|
128
|
+
class: R(`${k}-query-button`)
|
|
129
|
+
}, {
|
|
130
|
+
default: s(() => e[6] || (e[6] = [
|
|
131
|
+
a(" 查询申诉进度 ")
|
|
132
|
+
])),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["loading", "class"])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
})
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["model"])) : (b(), j("div", O, [
|
|
144
|
+
u("div", null, [
|
|
145
|
+
r(l(J), { type: T.value }, {
|
|
146
|
+
default: s(() => [
|
|
147
|
+
a("您提交的账号申诉" + U(q.value) + "!", 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["type"]),
|
|
151
|
+
r(l(K), {
|
|
152
|
+
style: { margin: "20px 0 50px" },
|
|
153
|
+
data: w.value,
|
|
154
|
+
size: "large",
|
|
155
|
+
column: 1
|
|
156
|
+
}, null, 8, ["data"])
|
|
157
|
+
]),
|
|
158
|
+
r(l(d), {
|
|
159
|
+
type: "primary",
|
|
160
|
+
long: "",
|
|
161
|
+
class: R(`${k}-know-button`),
|
|
162
|
+
onClick: y
|
|
163
|
+
}, {
|
|
164
|
+
default: s(() => e[7] || (e[7] = [
|
|
165
|
+
a(" 知道了 ")
|
|
166
|
+
])),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["class"])
|
|
169
|
+
]));
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
export {
|
|
174
|
+
Z as default
|
|
175
|
+
};
|